Mercurial > sdl-ios-xcode
diff src/cpuinfo/SDL_cpuinfo.c @ 1864:7bea26ad3130
I think this fixes bug #244
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Tue, 20 Jun 2006 05:35:44 +0000 |
parents | 96d8c3fec479 |
children | c121d94672cb a1b03ba2fcd0 |
line wrap: on
line diff
--- a/src/cpuinfo/SDL_cpuinfo.c Tue Jun 20 05:25:04 2006 +0000 +++ b/src/cpuinfo/SDL_cpuinfo.c Tue Jun 20 05:35:44 2006 +0000 @@ -109,7 +109,7 @@ mov has_CPUID,1 ; We have CPUID support done: } -#elif defined(__sun) && defined(__x86) +#elif defined(__sun) && defined(__i386) __asm ( " pushfl \n" " popl %eax \n" @@ -175,7 +175,7 @@ mov features, edx done: } -#elif defined(__sun) && (defined(__x86) || defined(__amd64)) +#elif defined(__sun) && (defined(__i386) || defined(__amd64)) __asm( " movl %ebx,%edi\n" " xorl %eax,%eax \n"