diff options
author | Ulrich Drepper <drepper@redhat.com> | 1998-10-26 17:59:59 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 1998-10-26 17:59:59 +0000 |
commit | a8eab8b1402ceff505b0cdee440c02a72cc4307d (patch) | |
tree | 8e80293b123361be225adf8e0048ffcdb866349d /include | |
parent | 665a657ef1aec8a605aa33e46a4f701e2fd9eba3 (diff) | |
download | glibc-a8eab8b1402ceff505b0cdee440c02a72cc4307d.tar.gz |
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.
Diffstat (limited to 'include')
-rw-r--r-- | include/libc-symbols.h | 5 |
1 files changed, 5 insertions, 0 deletions
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 |