diff options
author | rubidium <rubidium@openttd.org> | 2014-01-02 18:52:54 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2014-01-02 18:52:54 +0000 |
commit | b1001258668ee3fd2cdb579ddbc9aa3bd5ac0c2c (patch) | |
tree | 7d2d197e68e21b05e940fe308e73d9f0d2715ab0 /src/viewport_sprite_sorter_sse4.cpp | |
parent | 7247ecf172e85ed47b13ccb9aa1ffcc2050b0114 (diff) | |
download | openttd-b1001258668ee3fd2cdb579ddbc9aa3bd5ac0c2c.tar.xz |
(svn r26207) -Codechange: move the CPUID flag detection into cpu.cpp
Diffstat (limited to 'src/viewport_sprite_sorter_sse4.cpp')
-rw-r--r-- | src/viewport_sprite_sorter_sse4.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/viewport_sprite_sorter_sse4.cpp b/src/viewport_sprite_sorter_sse4.cpp index 40bbca87d..7cd48e7d9 100644 --- a/src/viewport_sprite_sorter_sse4.cpp +++ b/src/viewport_sprite_sorter_sse4.cpp @@ -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 */ |