From a8eab8b1402ceff505b0cdee440c02a72cc4307d Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Mon, 26 Oct 1998 17:59:59 +0000 Subject: Update. * include/libc-symbols.h: If HAVE_BUILTIN_EXPECT is not defined define __builtin_expect as a macro substituting to the first argument. * config.h.in: Define HAVE_BUILTIN_EXPECT. * configure.in: Add test for __builtin_expect. --- include/libc-symbols.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include/libc-symbols.h') diff --git a/include/libc-symbols.h b/include/libc-symbols.h index 4684cb7f4a..5d15791fda 100644 --- a/include/libc-symbols.h +++ b/include/libc-symbols.h @@ -226,6 +226,11 @@ extern const char _libc_intl_domainname[]; # define internal_function /* empty */ #endif +/* Prepare for the case that `__builtin_expect' is not available. */ +#ifndef HAVE_BUILTIN_EXPECT +# define __builtin_expect(expr, val) (expr) +#endif + /* When a reference to SYMBOL is encountered, the linker will emit a warning message MSG. */ #ifdef HAVE_GNU_LD -- cgit v1.2.3