1
0
Fork 0
mirror of https://github.com/anrieff/libcpuid synced 2025-01-23 20:06:41 +00:00

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
This commit is contained in:
Veselin Georgiev 2010-04-20 09:52:24 +00:00
parent 75c7ba17d5
commit 4802081283

View file

@ -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 */
#endif /* INLINE_ASSEMBLY_SUPPORTED */