From 3d913cde5286c77ae4805bf7511b59190f2266dd Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Wed, 18 Apr 2012 13:33:07 -0700 Subject: volk: gcc version check without __GNUC_PREREQ --- volk/tmpl/volk_cpu.tmpl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/volk/tmpl/volk_cpu.tmpl.c b/volk/tmpl/volk_cpu.tmpl.c index b312c4485..1aa36d2bf 100644 --- a/volk/tmpl/volk_cpu.tmpl.c +++ b/volk/tmpl/volk_cpu.tmpl.c @@ -44,7 +44,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)); -- cgit