13
0

add test for CPU/FPU AVX capabilities

This commit is contained in:
Paul Davis 2015-08-11 16:36:39 -04:00
parent bf1b65029c
commit 4079855507

View File

@ -96,6 +96,10 @@ FPU::FPU ()
#endif /* _LP64 */ #endif /* _LP64 */
#endif /* PLATFORM_WINDOWS */ #endif /* PLATFORM_WINDOWS */
if (cpuflags & ((1<<27)|(1<<28))) {
_flags = Flags (_flags | HasAVX);
}
if (cpuflags & (1<<25)) { if (cpuflags & (1<<25)) {
_flags = Flags (_flags | (HasSSE|HasFlushToZero)); _flags = Flags (_flags | (HasSSE|HasFlushToZero));
} }