mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-01-30 16:41:05 +08:00
compiler.h: use the correct symbol to test for __builtin_expect()
__builtin_expect() has leading underscores, they need to be reflected in the symbol. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
This commit is contained in:
parent
8d4fb26ad4
commit
7294d62040
@ -172,7 +172,7 @@ char *strsep(char **, const char *);
|
||||
* Hints to the compiler that a particular branch of code is more or
|
||||
* less likely to be taken.
|
||||
*/
|
||||
#if HAVE_BUILTIN_EXPECT
|
||||
#if HAVE___BUILTIN_EXPECT
|
||||
# define likely(x) __builtin_expect(!!(x), 1)
|
||||
# define unlikely(x) __builtin_expect(!!(x), 0)
|
||||
#else
|
||||
|
Loading…
Reference in New Issue
Block a user