(svn r26207) -Codechange: move the CPUID flag detection into cpu.cpp

This commit is contained in:
rubidium
2014-01-02 18:52:54 +00:00
parent 7247ecf172
commit b100125866
3 changed files with 23 additions and 8 deletions

View File

@@ -97,13 +97,7 @@ void ViewportSortParentSpritesSSE41(ParentSpriteToSortVector *psdv)
*/
bool ViewportSortParentSpritesSSE41Checker()
{
int cpu_info[4] = {-1};
ottd_cpuid(cpu_info, 0);
unsigned int max_info_type = cpu_info[0];
if (max_info_type < 1) return false;
ottd_cpuid(cpu_info, 1);
return (cpu_info[2] & (1 << 19)) != 0;
return HasCPUIDFlag(1, 2, 19);
}
#endif /* WITH_SSE */