summaryrefslogtreecommitdiff
path: root/iconvdata/euc-jp-ms.c
diff options
context:
space:
mode:
authorOndřej Bílka <neleai@seznam.cz>2014-02-10 14:45:42 +0100
committerOndřej Bílka <neleai@seznam.cz>2014-02-10 15:07:12 +0100
commita1ffb40e32741f992c743e7b16c061fefa3747ac (patch)
tree246a29a87b26cfd5d07b17070f85eb3785018de9 /iconvdata/euc-jp-ms.c
parent1448f3244714a9dabb5240ec18b094f100887d5c (diff)
Use glibc_likely instead __builtin_expect.
Diffstat (limited to 'iconvdata/euc-jp-ms.c')
-rw-r--r--iconvdata/euc-jp-ms.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/iconvdata/euc-jp-ms.c b/iconvdata/euc-jp-ms.c
index 5ec40ad6cc..854e3017fe 100644
--- a/iconvdata/euc-jp-ms.c
+++ b/iconvdata/euc-jp-ms.c
@@ -4673,7 +4673,7 @@ static const unsigned char from_ucs4_extra[229][2] =
character is also available. */ \
unsigned char ch2; \
\
- if (__builtin_expect (inptr + 1 >= inend, 0)) \
+ if (__glibc_unlikely (inptr + 1 >= inend)) \
{ \
/* The second character is not available. Store the \
intermediate result. */ \
@@ -4684,7 +4684,7 @@ static const unsigned char from_ucs4_extra[229][2] =
ch2 = (unsigned char)inptr[1]; \
\
/* All second bytes of a multibyte character must be >= 0xa1. */ \
- if (__builtin_expect (ch2 < 0xa1, 0)) \
+ if (__glibc_unlikely (ch2 < 0xa1)) \
{ \
/* This is an illegal character. */ \
if (! ignore_errors_p ()) \
@@ -4703,7 +4703,7 @@ static const unsigned char from_ucs4_extra[229][2] =
/* This is code set 2: half-width katakana. */ \
ch = jisx0201_to_ucs4 (ch2); \
/*if (__builtin_expect (ch, 0) == __UNKNOWN_10646_CHAR)*/ \
- if (__builtin_expect (ch == __UNKNOWN_10646_CHAR, 0)) \
+ if (__glibc_unlikely (ch == __UNKNOWN_10646_CHAR)) \
{ \
/* Illegal character. */ \
if (! ignore_errors_p ()) \
@@ -4896,15 +4896,15 @@ static const unsigned char from_ucs4_extra[229][2] =
/* Now test for a possible second byte and write this if possible. */\
if (cp[1] != '\0') \
{ \
- if (__builtin_expect (outptr + 1 >= outend, 0)) \
+ if (__glibc_unlikely (outptr + 1 >= outend)) \
{ \
/* The result does not fit into the buffer. */ \
result = __GCONV_FULL_OUTPUT; \
break; \
} \
- if (__builtin_expect (cp[1] < 0x80, 0)) \
+ if (__glibc_unlikely (cp[1] < 0x80)) \
{ \
- if (__builtin_expect (outptr + 2 >= outend, 0)) \
+ if (__glibc_unlikely (outptr + 2 >= outend)) \
{ \
/* The result does not fit into the buffer. */ \
result = __GCONV_FULL_OUTPUT; \