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:
H. Peter Anvin 2016-11-15 15:53:38 -08:00
parent 8d4fb26ad4
commit 7294d62040

View File

@ -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