diff options
author | Josh Blum | 2012-04-16 15:14:06 -0700 |
---|---|---|
committer | Josh Blum | 2012-04-19 18:13:22 -0700 |
commit | 63809a2c71ea1d50aca6165a73b13fee0eae1d84 (patch) | |
tree | dae85091fda0088a3bf16d80fbf44b5d8c01f02c /volk | |
parent | 3e2aebaaccf3e97aa56e1159694a212028eb92ad (diff) | |
download | gnuradio-63809a2c71ea1d50aca6165a73b13fee0eae1d84.tar.gz gnuradio-63809a2c71ea1d50aca6165a73b13fee0eae1d84.tar.bz2 gnuradio-63809a2c71ea1d50aca6165a73b13fee0eae1d84.zip |
volk: fix for cpuid_eax check with hardcoded values
Diffstat (limited to 'volk')
-rw-r--r-- | volk/tmpl/volk_cpu.tmpl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/volk/tmpl/volk_cpu.tmpl.c b/volk/tmpl/volk_cpu.tmpl.c index 58b2cfbd2..1bd1ad211 100644 --- a/volk/tmpl/volk_cpu.tmpl.c +++ b/volk/tmpl/volk_cpu.tmpl.c @@ -164,8 +164,8 @@ static int i_can_has_$arch.name (void) { #else if $arch.op == 0x80000001 #if defined(VOLK_CPU_x86) #set $op = hex($arch.op) - unsigned int extended_fct_count = cpuid_eax($op); - if (extended_fct_count < $op) + unsigned int extended_fct_count = cpuid_eax(0x80000000); + if (extended_fct_count < 0x80000001) return $(arch.val)^1; unsigned int extended_features = cpuid_e$(arch.reg)x ($op); return ((extended_features >> $arch.shift) & 1) == $arch.val; |