add test for CPU/FPU AVX capabilities
This commit is contained in:
parent
bf1b65029c
commit
4079855507
@ -96,6 +96,10 @@ FPU::FPU ()
|
||||
#endif /* _LP64 */
|
||||
#endif /* PLATFORM_WINDOWS */
|
||||
|
||||
if (cpuflags & ((1<<27)|(1<<28))) {
|
||||
_flags = Flags (_flags | HasAVX);
|
||||
}
|
||||
|
||||
if (cpuflags & (1<<25)) {
|
||||
_flags = Flags (_flags | (HasSSE|HasFlushToZero));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user