Home
last modified time | relevance | path

Searched refs:inptr (Results 1 – 25 of 88) sorted by relevance

1234

/glibc-2.36/iconvdata/
Diso-2022-cn-ext.c173 uint32_t ch = *inptr; \
188 if (inptr + 2 > inend \
189 || (inptr[1] == '$' \
190 && (inptr + 3 > inend \
191 || (inptr[2] == ')' && inptr + 4 > inend) \
192 || (inptr[2] == '*' && inptr + 4 > inend) \
193 || (inptr[2] == '+' && inptr + 4 > inend))) \
194 || (inptr[1] == SS2_1 && inptr + 4 > inend) \
195 || (inptr[1] == SS3_1 && inptr + 4 > inend)) \
200 if (inptr[1] == '$' \
[all …]
Diso-2022-cn.c121 uint32_t ch = *inptr; \
135 if (__builtin_expect (inptr + 2 > inend, 0) \
136 || (inptr[1] == '$' \
137 && (__builtin_expect (inptr + 3 > inend, 0) \
138 || (inptr[2] == ')' \
139 && __builtin_expect (inptr + 4 > inend, 0)) \
140 || (inptr[2] == '*' \
141 && __builtin_expect (inptr + 4 > inend, 0)))) \
142 || (inptr[1] == SS2_1 \
143 && __builtin_expect (inptr + 4 > inend, 0))) \
[all …]
Diso-2022-jp-3.c189 ch = *inptr; \
199 if (__builtin_expect (inptr + 2 >= inend, 0) \
200 || (inptr[1] == '$' && inptr[2] == '(' \
201 && __builtin_expect (inptr + 3 >= inend, 0))) \
208 if (inptr[1] == '(') \
210 if (inptr[2] == 'B') \
214 inptr += 3; \
217 else if (inptr[2] == 'J') \
221 inptr += 3; \
224 else if (inptr[2] == 'I') \
[all …]
Diso-2022-jp.c268 uint32_t ch = *inptr; \
278 if (__builtin_expect (inptr + 2 >= inend, 0) \
279 || (var == iso2022jp2 && inptr[1] == '$' && inptr[2] == '(' \
280 && __builtin_expect (inptr + 3 >= inend, 0))) \
287 if (inptr[1] == '(') \
289 if (inptr[2] == 'B') \
293 inptr += 3; \
296 else if (inptr[2] == 'J') \
300 inptr += 3; \
303 else if (var == iso2022jp2 && inptr[2] == 'I') \
[all …]
Deuc-jp-ms.c4653 uint32_t ch = (uint32_t)inptr[0] & 0xff; \
4656 ++inptr; \
4666 ++inptr; \
4676 if (__glibc_unlikely (inptr + 1 >= inend)) \
4684 ch2 = (unsigned char)inptr[1]; \
4696 ++inptr; \
4717 inptr += 2; \
4721 const unsigned char *endp = inptr; \
4726 if (inend - inptr < 3) \
4730 unsigned char ch3 = (unsigned char)inptr[2]; \
[all …]
Dtscii.c297 uint32_t ch = *inptr; \
313 inptr++; \
327 inptr++; \
336 inptr++; \
377 inptr++; \
404 inptr++; \
414 inptr++; \
421 inptr++; \
454 inptr++; \
479 inptr++; \
[all …]
Dutf-16.c54 if (inptr + 2 > inend) \
55 return (inptr == inend \
58 if (get16u (inptr) == BOM) \
60 *inptrp = inptr += 2; \
61 else if (get16u (inptr) == BOM_OE) \
64 *inptrp = inptr += 2; \
201 uint32_t c = get32 (inptr); \
212 inptr += 4; \
266 inptr += 4; \
281 uint16_t u1 = get16 (inptr); \
[all …]
Diso-2022-kr.c118 uint32_t ch = *inptr; \
131 if (__builtin_expect (inptr + 2 > inend, 0) \
132 || (inptr[1] == '$' \
133 && (__builtin_expect (inptr + 3 > inend, 0) \
134 || (inptr[2] == ')' \
135 && __builtin_expect (inptr + 4 > inend, 0))))) \
140 if (inptr[1] == '$' && inptr[2] == ')' && inptr[3] == 'C') \
143 inptr += 4; \
150 ++inptr; \
157 ++inptr; \
[all …]
Deuc-tw.c43 uint32_t ch = *inptr; \
47 ++inptr; \
59 if (inptr + 1 >= inend) \
67 ch2 = *(inptr + 1); \
76 const unsigned char *endp = inptr + 1; \
78 ch = cns11643_to_ucs4 (&endp, inend - inptr - 1, 0x80); \
92 inptr += 4; \
97 const unsigned char *endp = inptr; \
99 ch = cns11643l1_to_ucs4 (&endp, inend - inptr, 0x80); \
106 inptr += 2; \
[all …]
Dgbbig5.c4797 uint32_t ch = *inptr; \
4800 *outptr++ = *inptr++; \
4808 if (__glibc_unlikely (inptr + 1 >= inend)) \
4817 ch = inptr[1]; \
4847 inptr += 2; \
4867 inptr += 2; \
4886 uint32_t ch = *inptr; \
4889 *outptr++ = *inptr++; \
4897 if (__glibc_unlikely (inptr + 1 >= inend)) \
4906 ch = inptr[1]; \
[all …]
Dgbgbk.c45 uint32_t ch = *inptr; \
48 *outptr++ = *inptr++; \
76 if (__glibc_unlikely (inptr + 1 >= inend)) \
91 ch = (ch << 8) | inptr[1]; \
100 || __builtin_expect (inptr[1] < 0xa1, 0) \
114 *outptr++ = *inptr++; \
115 *outptr++ = *inptr++; \
133 unsigned char ch = *inptr++; \
137 if (__glibc_unlikely (inptr + 1 >= inend)) \
153 ch = *inptr++; \
Deuc-jp.c45 uint32_t ch = *inptr; \
48 ++inptr; \
60 if (__glibc_unlikely (inptr + 1 >= inend)) \
68 ch2 = inptr[1]; \
81 inptr += 2; \
90 endp = inptr + 1; \
97 endp = inptr; \
99 ch = jisx0208_to_ucs4 (&endp, inend - inptr, 0x80); \
112 inptr = endp; \
137 uint32_t ch = get32 (inptr); \
[all …]
Deuc-jisx0213.c125 ch = *inptr; \
129 ++inptr; \
135 if (__glibc_unlikely (inptr + 1 >= inend)) \
142 ch2 = inptr[1]; \
158 inptr += 2; \
169 if (__glibc_unlikely (inptr + 2 >= inend)) \
176 ch3 = inptr[2]; \
177 endp = inptr + 3; \
184 endp = inptr + 2; \
193 inptr = endp; \
[all …]
Dgb18030.c24109 uint32_t ch = *inptr; \
24112 ++inptr; \
24126 if (inptr + 1 >= inend) \
24134 ch2 = inptr[1]; \
24146 if (inptr + 3 >= inend) \
24154 ch3 = inptr[2]; \
24162 ch4 = inptr[3]; \
24197 if (ch == 0 && *inptr != '\0') \
24203 inptr += 4; \
24212 ch == 0 && *inptr != '\0')) \
[all …]
Dunicode.c50 if (inptr + 2 > inend) \
51 return (inptr == inend \
54 if (get16u (inptr) == BOM) \
56 *inptrp = inptr += 2; \
57 else if (get16u (inptr) == BOM_OE) \
60 *inptrp = inptr += 2; \
151 uint32_t c = get32 (inptr); \
169 inptr += 4; \
179 inptr += 4; \
193 uint16_t u1 = get16 (inptr); \
[all …]
Dcp932.c4545 uint32_t ch = *inptr; \
4548 ++inptr; \
4552 ++inptr; \
4566 ++inptr; \
4577 if (__glibc_unlikely (inptr + 1 >= inend)) \
4585 ch2 = inptr[1]; \
4606 ++inptr; \
4641 inptr += 2; \
4646 inptr += 2; \
4663 uint32_t ch = get32 (inptr); \
[all …]
Dsjis.c4331 uint32_t ch = *inptr; \
4336 ++inptr; \
4341 ++inptr; \
4344 ++inptr; \
4348 ++inptr; \
4364 if (__glibc_unlikely (inptr + 1 >= inend)) \
4372 ch2 = inptr[1]; \
4407 inptr += 2; \
4439 uint32_t ch = get32 (inptr); \
4483 inptr += 4; \
/glibc-2.36/iconv/
Dgconv_simple.c81 const unsigned char *inptr = *inptrp; in internal_ucs4_loop() local
83 size_t n_convert = MIN (inend - inptr, outend - outptr) / 4; in internal_ucs4_loop()
91 for (cnt = 0; cnt < n_convert; ++cnt, inptr += 4) in internal_ucs4_loop()
92 *outptr32++ = bswap_32 (*(const uint32_t *) inptr); in internal_ucs4_loop()
94 *inptrp = inptr; in internal_ucs4_loop()
98 *inptrp = inptr + n_convert * 4; in internal_ucs4_loop()
99 *outptrp = __mempcpy (outptr, inptr, n_convert * 4); in internal_ucs4_loop()
126 const unsigned char *inptr = *inptrp; in internal_ucs4_loop_unaligned() local
128 size_t n_convert = MIN (inend - inptr, outend - outptr) / 4; in internal_ucs4_loop_unaligned()
135 for (cnt = 0; cnt < n_convert; ++cnt, inptr += 4, outptr += 4) in internal_ucs4_loop_unaligned()
[all …]
Dloop.c202 inptr += (Incr); \
230 &inptr, inend, &outptr, irreversible); \
249 inptr += Incr; \
275 inptr += Incr; \
301 const unsigned char *inptr = *inptrp; in FCTNAME() local
308 while (inptr != inend) in FCTNAME()
314 && __builtin_expect (inptr + MIN_NEEDED_INPUT > inend, 0)) in FCTNAME()
339 *inptrp = inptr; in FCTNAME()
382 const unsigned char *inptr = *inptrp; in SINGLE() local
401 && __builtin_expect (inptr + (MIN_NEEDED_INPUT - inlen) > inend, 0)) in SINGLE()
[all …]
/glibc-2.36/sysdeps/s390/
Diso-8859-1_cp037_z900.c180 size_t length = (inend - inptr < outend - outptr \
181 ? inend - inptr : outend - outptr); \
192 : /* outputs */ [R_IN] "+a" (inptr) \
206 outptr[0] = TABLE[inptr[0]]; \
207 outptr[1] = TABLE[inptr[1]]; \
208 outptr[2] = TABLE[inptr[2]]; \
209 outptr[3] = TABLE[inptr[3]]; \
210 outptr[4] = TABLE[inptr[4]]; \
211 outptr[5] = TABLE[inptr[5]]; \
212 outptr[6] = TABLE[inptr[6]]; \
[all …]
Dutf8-utf16-z9.c171 register const unsigned char* pInput __asm__ ("8") = inptr; \
172 register size_t inlen __asm__ ("9") = inend - inptr; \
189 inptr = pInput; \
222 if (__glibc_likely (inptr == inend) \
227 for (i = 1; inptr + i < inend && i < 5; ++i) \
228 if ((inptr[i] & 0xc0) != 0x80) \
231 if (__glibc_likely (inptr + i == inend \
243 register const unsigned char* pInput asm ("8") = inptr; \
244 register size_t inlen asm ("9") = inend - inptr; \
313 inptr = pInput; \
[all …]
Dutf8-utf32-z9.c171 register const unsigned char* pInput __asm__ ("8") = inptr; \
172 register size_t inlen __asm__ ("9") = inend - inptr; \
189 inptr = pInput; \
311 if (__glibc_likely (inptr == inend) \
316 for (i = 1; inptr + i < inend && i < 5; ++i) \
317 if ((inptr[i] & 0xc0) != 0x80) \
320 if (__glibc_likely (inptr + i == inend \
334 uint32_t ch = *inptr; \
339 ++inptr; \
373 while (inptr + i < inend \
[all …]
Dutf16-utf32-z9.c195 uint16_t u1 = get16 (inptr); \
201 inptr += 2; \
213 if (__glibc_unlikely (inptr + 4 > inend)) \
221 inptr += 2; \
222 uint16_t u2 = get16 (inptr); \
227 inptr -= 2; \
232 inptr += 2; \
254 size_t inlen = inend - inptr; \
361 : /* outputs */ [R_IN] "+a" (inptr) \
375 if (__glibc_likely (inptr == inend) \
[all …]
/glibc-2.36/sysdeps/s390/multiarch/
Dgconv_simple.c109 if (__glibc_unlikely (*inptr > '\x7f')) \
116 *((uint32_t *) outptr) = *inptr++; \
122 size_t len = inend - inptr; \
195 , [R_IN] "+a" (inptr) \
236 UNICODE_TAG_HANDLER (*((const uint32_t *) inptr), 4); \
241 if (__glibc_unlikely (*((const uint32_t *) inptr) > 0x7f)) \
248 *outptr++ = *((const uint32_t *) inptr); \
249 inptr += sizeof (uint32_t); \
254 size_t len = (inend - inptr) / 4; \
362 , [R_IN] "+a" (inptr) \
[all …]
D8bit-generic.c60 uint32_t ch = to_ucs4[*inptr]; \
62 if (HAS_HOLES && __builtin_expect (ch == L'\0', 0) && *inptr != '\0') \
70 ++inptr; \
75 if (__builtin_expect (inend - inptr < 16, 1) \
84 size_t loop_count = (inend - inptr) / 16; \
163 : /* outputs */ [R_IN] "+a" (inptr) \
193 uint32_t ch = get32 (inptr); \
205 inptr += 4; \
209 if (__builtin_expect (inend - inptr < 64, 1) \
218 size_t loop_count = (inend - inptr) / 64; \
[all …]

1234