diff options
Diffstat (limited to 'source/blender/blenlib/intern/cpu.c')
-rw-r--r-- | source/blender/blenlib/intern/cpu.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/source/blender/blenlib/intern/cpu.c b/source/blender/blenlib/intern/cpu.c index 4e2003dcbf7..d942ffdf2c9 100644 --- a/source/blender/blenlib/intern/cpu.c +++ b/source/blender/blenlib/intern/cpu.c @@ -34,22 +34,22 @@ int BLI_cpu_support_sse2(void) /* for GCC x86 we check cpuid */ unsigned int d; __asm__( - "pushl %%ebx\n\t" - "cpuid\n\t" - "popl %%ebx\n\t" - : "=d"(d) - : "a"(1)); + "pushl %%ebx\n\t" + "cpuid\n\t" + "popl %%ebx\n\t" + : "=d" (d) + : "a" (1)); return (d & 0x04000000) != 0; #elif (defined(_MSC_VER) && defined(_M_IX86)) /* also check cpuid for MSVC x86 */ unsigned int d; __asm { xor eax, eax - inc eax - push ebx + inc eax + push ebx cpuid - pop ebx - mov d, edx + pop ebx + mov d, edx } return (d & 0x04000000) != 0; #endif |