about summary refs log tree commit diff
path: root/iconv/loop.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/loop.c
parent460e040a3ff405d8fc0de1e380610dd10764e6f3 (diff)
downloadglibc-978ce92b89ad3433b4cec6986b3b9f535a52c83b.tar.gz
glibc-978ce92b89ad3433b4cec6986b3b9f535a52c83b.tar.xz
glibc-978ce92b89ad3433b4cec6986b3b9f535a52c83b.zip
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/loop.c')
-rw-r--r--iconv/loop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/iconv/loop.c b/iconv/loop.c
index ffdd24d7e3..c8f893406a 100644
--- a/iconv/loop.c
+++ b/iconv/loop.c
@@ -307,7 +307,7 @@ SINGLE(LOOPFCT) (const unsigned char **inptrp, const unsigned char *inend,
 #endif
 
   /* Are there enough bytes in the input buffer?  */
-  if (inptr + (MAX_NEEDED_INPUT - inlen) > inend)
+  if (__builtin_expect (inptr + (MAX_NEEDED_INPUT - inlen) > inend, 0))
     {
 #ifdef STORE_REST
       *inptrp = inend;