Browse Source

Fixed the FMA3 detection bug.

tags/v0.2.8^2
Zhang Xianyi 12 years ago
parent
commit
23186d9f21
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      cpuid_x86.c

+ 1
- 1
cpuid_x86.c View File

@@ -229,8 +229,8 @@ int get_cputype(int gettype){
if ((ecx & (1 << 20)) != 0) feature |= HAVE_SSE4_2;
#ifndef NO_AVX
if (support_avx()) feature |= HAVE_AVX;
if ((ecx & (1 << 12)) != 0) feature |= HAVE_FMA3;
#endif
if ((ecx & (1 << 20)) != 0) feature |= HAVE_FMA3;

if (have_excpuid() >= 0x01) {
cpuid(0x80000001, &eax, &ebx, &ecx, &edx);


Loading…
Cancel
Save