mirror of
https://github.com/lubosz/overte.git
synced 2025-08-07 20:06:02 +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;
|
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__)
|
#elif defined(__GNU__)
|
||||||
|
|
||||||
static bool cpuSupportsAVX() {
|
static bool cpuSupportsAVX() {
|
||||||
return __builtin_cpu_supports("avx");
|
return __builtin_cpu_supports("avx");
|
||||||
}
|
}
|
||||||
|
|
||||||
//static bool cpuSupportsAVX2() {
|
|
||||||
// return __builtin_cpu_supports("avx2");
|
|
||||||
//}
|
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
static bool cpuSupportsAVX() {
|
static bool cpuSupportsAVX() {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
//static bool cpuSupportsAVX2() {
|
|
||||||
// return false;
|
|
||||||
//}
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
//
|
//
|
||||||
|
|
Loading…
Reference in a new issue