daskol

Untitled

Oct 7th, 2019
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.20 KB | None | 0 0
  1. #include <cpuid.h>
  2. #include <x86intrin.h>
  3.  
  4. bool IsAVXSupported(void) {
  5.     uint32_t eax, ebx, ecx, edx;
  6.     __get_cpuid(1, &eax, &ebx, &ecx, &edx);
  7.     return static_cast<bool>(ecx & bit_AVX);
  8. }
Advertisement
Add Comment
Please, Sign In to add comment