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:
parent
75c7ba17d5
commit
4802081283
1 changed files with 2 additions and 2 deletions
|
@ -509,7 +509,7 @@ void busy_sse_loop(int cycles)
|
||||||
|
|
||||||
" dec %%eax\n"
|
" dec %%eax\n"
|
||||||
" jnz .bsLoop\n"
|
" jnz .bsLoop\n"
|
||||||
::"eax"(cycles)
|
::"a"(cycles)
|
||||||
);
|
);
|
||||||
#else
|
#else
|
||||||
# ifdef COMPILER_MICROSOFT
|
# ifdef COMPILER_MICROSOFT
|
||||||
|
@ -518,4 +518,4 @@ void busy_sse_loop(int cycles)
|
||||||
# endif /* COMPILER_MICROSOFT */
|
# endif /* COMPILER_MICROSOFT */
|
||||||
#endif /* COMPILER_GCC */
|
#endif /* COMPILER_GCC */
|
||||||
}
|
}
|
||||||
#endif /* INLINE_ASSEMBLY_SUPPORTED */
|
#endif /* INLINE_ASSEMBLY_SUPPORTED */
|
||||||
|
|
Loading…
Reference in a new issue