From 978ce92b89ad3433b4cec6986b3b9f535a52c83b Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Fri, 21 Apr 2000 05:02:54 +0000 Subject: Update. 2000-04-20 Ulrich Drepper * iconv/skeleton.c: Add some more __builtin_expect. * iconv/loop.c: Likewise. --- iconv/skeleton.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'iconv/skeleton.c') diff --git a/iconv/skeleton.c b/iconv/skeleton.c index 50ee45d..81677cc 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; -- cgit v1.1