Add some more __builtin_expect.
authordrepper <drepper>
Fri, 21 Apr 2000 05:02:13 +0000 (05:02 +0000)
committerdrepper <drepper>
Fri, 21 Apr 2000 05:02:13 +0000 (05:02 +0000)
iconv/loop.c

index ffdd24d..c8f8934 100644 (file)
@@ -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;