| 35 | #endif |
| 36 | } |
| 37 | unsigned long long xgetbv0() { |
| 38 | #if defined(_MSC_VER) |
| 39 | return _xgetbv(0); |
| 40 | #else |
| 41 | unsigned eax, edx; |
| 42 | __asm__ volatile("xgetbv" : "=a"(eax), "=d"(edx) : "c"(0)); |
| 43 | return ((unsigned long long) edx << 32) | eax; |
| 44 | #endif |
| 45 | } |
| 46 | #endif |
| 47 | |
| 48 | // STRATA_FORCE_ISA caps the probes like the pool's own (expert_layout.cpp): avx2 = no AVX-512, avx = AVX only, sse = SSE4.2 only. |