summaryrefslogtreecommitdiff
path: root/volk/tmpl
diff options
context:
space:
mode:
authorJosh Blum2012-04-18 13:33:07 -0700
committerJosh Blum2012-04-19 18:13:23 -0700
commit3d913cde5286c77ae4805bf7511b59190f2266dd (patch)
tree25f24d73ece25719143a76990682601f69fdae8a /volk/tmpl
parent283b6e911517313597756a9c3acd966c2dfe77e4 (diff)
downloadgnuradio-3d913cde5286c77ae4805bf7511b59190f2266dd.tar.gz
gnuradio-3d913cde5286c77ae4805bf7511b59190f2266dd.tar.bz2
gnuradio-3d913cde5286c77ae4805bf7511b59190f2266dd.zip
volk: gcc version check without __GNUC_PREREQ
Diffstat (limited to 'volk/tmpl')
-rw-r--r--volk/tmpl/volk_cpu.tmpl.c2
1 files changed, 1 insertions, 1 deletions
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));