aboutsummaryrefslogtreecommitdiff
path: root/iconvdata/gb18030.c
diff options
context:
space:
mode:
Diffstat (limited to 'iconvdata/gb18030.c')
-rw-r--r--iconvdata/gb18030.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/iconvdata/gb18030.c b/iconvdata/gb18030.c
index 4302fbf..4eaa8b5 100644
--- a/iconvdata/gb18030.c
+++ b/iconvdata/gb18030.c
@@ -24212,7 +24212,7 @@ static const unsigned char __ucs_to_gb18030_tab2[][2] =
\
inptr += 4; \
} \
- else if (__builtin_expect (ch2 >= 0x40, 1)) \
+ else if (__glibc_likely (ch2 >= 0x40)) \
{ \
/* A two-byte character */ \
idx = (ch - 0x81) * 192 + (ch2 - 0x40); \
@@ -24375,7 +24375,7 @@ static const unsigned char __ucs_to_gb18030_tab2[][2] =
{ \
/* See whether there is enough room for all four bytes we \
write. */ \
- if (__builtin_expect (outptr + 3 >= outend, 0)) \
+ if (__glibc_unlikely (outptr + 3 >= outend)) \
{ \
/* We have not enough room. */ \
result = __GCONV_FULL_OUTPUT; \