Use glibc_likely instead __builtin_expect.
[jlayton/glibc.git] / iconvdata / iso_6937-2.c
index d5e09a3795b7ab5d98ab75ba2a341c3964eda1ce..03f08734e91cee8cc3a51545448e62c28e77240b 100644 (file)
@@ -397,7 +397,7 @@ static const char from_ucs4[][2] =
           is also available.  */                                             \
        int ch2;                                                              \
                                                                              \
-       if (__builtin_expect (inptr + 1 >= inend, 0))                         \
+       if (__glibc_unlikely (inptr + 1 >= inend))                            \
          {                                                                   \
            /* The second character is not available.  Store the              \
               intermediate result.  */                                       \
@@ -416,7 +416,7 @@ static const char from_ucs4[][2] =
                                                                              \
        ch = to_ucs4_comb[ch - 0xc1][ch2 - 0x20];                             \
                                                                              \
-       if (__builtin_expect (ch == 0, 0))                                    \
+       if (__glibc_unlikely (ch == 0))                                       \
          {                                                                   \
            /* Illegal character.  */                                         \
            STANDARD_FROM_LOOP_ERR_HANDLER (2);                               \
@@ -536,7 +536,7 @@ static const char from_ucs4[][2] =
     /* Now test for a possible second byte and write this if possible.  */    \
     if (cp[1] != '\0')                                                       \
       {                                                                              \
-       if (__builtin_expect (outptr >= outend, 0))                           \
+       if (__glibc_unlikely (outptr >= outend))                              \
          {                                                                   \
            /* The result does not fit into the buffer.  */                   \
            --outptr;                                                         \