From ee4ce289076db8fec41bf651c9e10688eaa96154 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Tue, 6 Jun 2000 22:58:45 +0000 Subject: Add __builtin_expect in many places. --- iconvdata/unicode.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'iconvdata/unicode.c') diff --git a/iconvdata/unicode.c b/iconvdata/unicode.c index 7f2aca51b4..34c563bd79 100644 --- a/iconvdata/unicode.c +++ b/iconvdata/unicode.c @@ -63,7 +63,7 @@ else if (!data->__internal_use && data->__invocation_counter == 0) \ { \ /* Emit the Byte Order Mark. */ \ - if (outbuf + 2 > outend) \ + if (__builtin_expect (outbuf + 2 > outend, 0)) \ return __GCONV_FULL_OUTPUT; \ \ put16u (outbuf, BOM); \ @@ -149,7 +149,7 @@ gconv_end (struct __gconv_step *data) { \ uint32_t c = get32 (inptr); \ \ - if (c >= 0x10000) \ + if (__builtin_expect (c, 0) >= 0x10000) \ { \ if (! ignore_errors_p ()) \ { \ -- cgit v1.2.3