From 48020812832930677df580847412323cad164852 Mon Sep 17 00:00:00 2001 From: Veselin Georgiev Date: Tue, 20 Apr 2010 09:52:24 +0000 Subject: [PATCH] Apple's GCC wasn't very happy with "eax" in the assembly block operands. However, changing to "a" fixes it git-svn-id: https://svn.code.sf.net/p/libcpuid/code/HEAD/libcpuid@81 3b4be424-7ac5-41d7-8526-f4ddcb85d872 --- libcpuid/asm-bits.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libcpuid/asm-bits.c b/libcpuid/asm-bits.c index 59a9444..d493e26 100644 --- a/libcpuid/asm-bits.c +++ b/libcpuid/asm-bits.c @@ -509,7 +509,7 @@ void busy_sse_loop(int cycles) " dec %%eax\n" " jnz .bsLoop\n" - ::"eax"(cycles) + ::"a"(cycles) ); #else # ifdef COMPILER_MICROSOFT @@ -518,4 +518,4 @@ void busy_sse_loop(int cycles) # endif /* COMPILER_MICROSOFT */ #endif /* COMPILER_GCC */ } -#endif /* INLINE_ASSEMBLY_SUPPORTED */ \ No newline at end of file +#endif /* INLINE_ASSEMBLY_SUPPORTED */