[AD] CPU feature detection. |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
cpu detection for SSSE3, SSE4.1 SSE4.2
which are found on the 'Core' series of Intel CPUs
sorry for the state of my 'diff' output, im too retarded to use diff
properly.
and/or the version of diff i did use showed something quite different to
other recent patches, so even if i did use it, it'd not be in a format
not too friendly to use.
allegro/src/i386/icpu.c
cpu_capabilities |= (reg[2] & 0x00000001 ? CPU_SSE3 : 0);
+ cpu_capabilities |= (reg[2] & 0x00000200 ? CPU_SSSE3 : 0);
+ cpu_capabilities |= (reg[2] & 0x00080000 ? CPU_SSE41 : 0);
+ cpu_capabilities |= (reg[2] & 0x00100 000 ? CPU_SSE42 : 0);
cpu_capabilities |= (reg[3] & 0x40000000 ? CPU_IA64 : 0);