summaryrefslogtreecommitdiff
path: root/iconv/skeleton.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2000-04-21 05:02:54 +0000
committerUlrich Drepper <drepper@redhat.com>2000-04-21 05:02:54 +0000
commit978ce92b89ad3433b4cec6986b3b9f535a52c83b (patch)
treee3a8e6928ed6f4727a23a9ec673c3b7aed6d336c /iconv/skeleton.c
parent460e040a3ff405d8fc0de1e380610dd10764e6f3 (diff)
downloadglibc-978ce92b89ad3433b4cec6986b3b9f535a52c83b.tar.gz
Update.
2000-04-20 Ulrich Drepper <drepper@redhat.com> * iconv/skeleton.c: Add some more __builtin_expect. * iconv/loop.c: Likewise.
Diffstat (limited to 'iconv/skeleton.c')
-rw-r--r--iconv/skeleton.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/iconv/skeleton.c b/iconv/skeleton.c
index 50ee45d2c9..81677cc7d9 100644
--- a/iconv/skeleton.c
+++ b/iconv/skeleton.c
@@ -281,7 +281,7 @@ FUNCTION_NAME (struct __gconv_step *step, struct __gconv_step_data *data,
/* If the function is called with no input this means we have to reset
to the initial state. The possibly partly converted input is
dropped. */
- if (do_flush)
+ if (__builtin_expect (do_flush, 0))
{
status = __GCONV_OK;
@@ -439,7 +439,7 @@ FUNCTION_NAME (struct __gconv_step *step, struct __gconv_step_data *data,
if (result != __GCONV_EMPTY_INPUT)
{
- if (outerr != outbuf)
+ if (__builtin_expect (outerr != outbuf, 0))
{
#ifdef RESET_INPUT_BUFFER
RESET_INPUT_BUFFER;