mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-13 22:27:13 +02:00
Removed the commented-out AVX2 detection
This commit is contained in:
parent
04798a45fc
commit
0968118ef7
1 changed files with 0 additions and 24 deletions
|
@ -141,42 +141,18 @@ static bool cpuSupportsAVX() {
|
|||
return result;
|
||||
}
|
||||
|
||||
//static bool cpuSupportsAVX2() {
|
||||
// int info[4];
|
||||
// int mask = (1 << 5); // AVX2
|
||||
//
|
||||
// bool result = false;
|
||||
// if (cpuSupportsAVX()) {
|
||||
//
|
||||
// __cpuidex(info, 0x7, 0);
|
||||
//
|
||||
// if ((info[1] & mask) == mask) {
|
||||
// result = true;
|
||||
// }
|
||||
// }
|
||||
// return result;
|
||||
//}
|
||||
|
||||
#elif defined(__GNU__)
|
||||
|
||||
static bool cpuSupportsAVX() {
|
||||
return __builtin_cpu_supports("avx");
|
||||
}
|
||||
|
||||
//static bool cpuSupportsAVX2() {
|
||||
// return __builtin_cpu_supports("avx2");
|
||||
//}
|
||||
|
||||
#else
|
||||
|
||||
static bool cpuSupportsAVX() {
|
||||
return false;
|
||||
}
|
||||
|
||||
//static bool cpuSupportsAVX2() {
|
||||
// return false;
|
||||
//}
|
||||
|
||||
#endif
|
||||
|
||||
//
|
||||
|
|
Loading…
Reference in a new issue