diff options
author | Josh Blum <josh@joshknows.com> | 2012-04-18 13:32:36 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2012-04-18 13:32:36 -0700 |
commit | ef97a9935853b928cefe0bf27273e935c0df7552 (patch) | |
tree | 7a250895bd705fa5e6485f543d1a9940f9233bb7 /volk | |
parent | ad9752793bbb7134e14483553766ab3d36e02366 (diff) |
volk: gcc version check without __GNUC_PREREQ
Diffstat (limited to 'volk')
-rw-r--r-- | volk/gen/make_cpuid_c.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/volk/gen/make_cpuid_c.py b/volk/gen/make_cpuid_c.py index 674b4fb2e5..49b2166771 100644 --- a/volk/gen/make_cpuid_c.py +++ b/volk/gen/make_cpuid_c.py @@ -45,7 +45,7 @@ struct VOLK_CPU volk_cpu; * This function will bomb on non-AVX-capable machines, so * check for AVX capability before executing. */ - #if defined(__GNUC_PREREQ) && __GNUC_PREREQ(4, 4) + #if __GNUC__ > 4 || __GNUC__ == 4 && __GNUC_MINOR__ >= 4 static inline unsigned long long _xgetbv(unsigned int index){ unsigned int eax, edx; __asm__ __volatile__("xgetbv" : "=a"(eax), "=d"(edx) : "c"(index)); |