mirror of
https://github.com/netwide-assembler/nasm
synced 2026-08-26 16:23:04 -04: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
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue