diff options
Diffstat (limited to 'pnggccrd.c')
-rw-r--r-- | pnggccrd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pnggccrd.c b/pnggccrd.c index e61523e77..78b8a7e41 100644 --- a/pnggccrd.c +++ b/pnggccrd.c @@ -17,9 +17,9 @@ int PNGAPI png_dummy_mmx_support(void) { int result; -#if defined(PNG_MMX_CODE_SUPPORTED) // superfluous, but what the heck +#ifdef PNG_MMX_CODE_SUPPORTED // superfluous, but what the heck __asm__ __volatile__ ( -#if defined(__x86_64__) +#ifdef __x86_64__ "pushq %%rbx \n\t" // rbx gets clobbered by CPUID instruction "pushq %%rcx \n\t" // so does rcx... "pushq %%rdx \n\t" // ...and rdx (but rcx & rdx safe on Linux) @@ -71,7 +71,7 @@ png_dummy_mmx_support(void) "0: \n\t" // .NOT_SUPPORTED: target label for jump instructions "movl $0, %%eax \n\t" // set return value to 0 "1: \n\t" // .RETURN: target label for jump instructions -#if defined(__x86_64__) +#ifdef __x86_64__ "popq %%rdx \n\t" // restore rdx "popq %%rcx \n\t" // restore rcx "popq %%rbx \n\t" // restore rbx |