diff options
author | Ulrich Drepper <drepper@redhat.com> | 2000-06-06 05:02:18 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2000-06-06 05:02:18 +0000 |
commit | 365afefc6b7054d9ca7585f6f17bdd1fe03b8cfd (patch) | |
tree | ca5117da5f6e954d45892b85ccde3889f542db58 /iconv/gconv_dl.c | |
parent | 85830c4c4688b30d3d76111aa9a26745c7b141d6 (diff) | |
download | glibc-365afefc6b7054d9ca7585f6f17bdd1fe03b8cfd.tar glibc-365afefc6b7054d9ca7585f6f17bdd1fe03b8cfd.tar.gz glibc-365afefc6b7054d9ca7585f6f17bdd1fe03b8cfd.tar.bz2 glibc-365afefc6b7054d9ca7585f6f17bdd1fe03b8cfd.zip |
Update.
* iconv/gconv_dl.c: Add __builtin_expect in many places.
* iconv/skeleton.c: Add more __builtin_expect.
* iconv/gconv_simple.c: Add __builtin_expect in many places.
Diffstat (limited to 'iconv/gconv_dl.c')
-rw-r--r-- | iconv/gconv_dl.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/iconv/gconv_dl.c b/iconv/gconv_dl.c index 710b440c58..d07f84e31b 100644 --- a/iconv/gconv_dl.c +++ b/iconv/gconv_dl.c @@ -91,7 +91,8 @@ __gconv_find_shlib (const char *name) found->counter = -TRIES_BEFORE_UNLOAD - 1; found->handle = NULL; - if (__tsearch (found, &loaded, known_compare) == NULL) + if (__builtin_expect (__tsearch (found, &loaded, known_compare) + == NULL, 0)) { /* Something went wrong while inserting the entry. */ free (found); |