]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - iconvdata/gbk.c
Use glibc_likely instead __builtin_expect.
[thirdparty/glibc.git] / iconvdata / gbk.c
index 2f7d7fb886f804e536770829b4a3f85d86b365a4..05d7eb8114feffa880f53789d3e42c8287d7f7cc 100644 (file)
@@ -13157,7 +13157,7 @@ static const char __gbk_from_ucs4_tab12[][2] =
          uint32_t ch2;                                                       \
          int idx;                                                            \
                                                                              \
-         if (__builtin_expect (inptr + 1 >= inend, 0))                       \
+         if (__glibc_unlikely (inptr + 1 >= inend))                          \
            {                                                                 \
              /* The second character is not available.  Store                \
                 the intermediate result.  */                                 \