Lines Matching refs:p

275 inline const char* SkipWhitespace(const char* p, const char* end) {  in SkipWhitespace()  argument
276 while (p != end && (*p == ' ' || *p == '\n' || *p == '\r' || *p == '\t')) in SkipWhitespace()
277 ++p; in SkipWhitespace()
278 return p; in SkipWhitespace()
283 inline const char *SkipWhitespace_SIMD(const char* p) { in SkipWhitespace_SIMD() argument
285 if (*p == ' ' || *p == '\n' || *p == '\r' || *p == '\t') in SkipWhitespace_SIMD()
286 ++p; in SkipWhitespace_SIMD()
288 return p; in SkipWhitespace_SIMD()
291 …const char* nextAligned = reinterpret_cast<const char*>((reinterpret_cast<size_t>(p) + 15) & stati… in SkipWhitespace_SIMD()
292 while (p != nextAligned) in SkipWhitespace_SIMD()
293 if (*p == ' ' || *p == '\n' || *p == '\r' || *p == '\t') in SkipWhitespace_SIMD()
294 ++p; in SkipWhitespace_SIMD()
296 return p; in SkipWhitespace_SIMD()
302 for (;; p += 16) { in SkipWhitespace_SIMD()
303 const __m128i s = _mm_load_si128(reinterpret_cast<const __m128i *>(p)); in SkipWhitespace_SIMD()
306 return p + r; in SkipWhitespace_SIMD()
310 inline const char *SkipWhitespace_SIMD(const char* p, const char* end) { in SkipWhitespace_SIMD() argument
312 if (p != end && (*p == ' ' || *p == '\n' || *p == '\r' || *p == '\t')) in SkipWhitespace_SIMD()
313 ++p; in SkipWhitespace_SIMD()
315 return p; in SkipWhitespace_SIMD()
321 for (; p <= end - 16; p += 16) { in SkipWhitespace_SIMD()
322 const __m128i s = _mm_loadu_si128(reinterpret_cast<const __m128i *>(p)); in SkipWhitespace_SIMD()
325 return p + r; in SkipWhitespace_SIMD()
328 return SkipWhitespace(p, end); in SkipWhitespace_SIMD()
334 inline const char *SkipWhitespace_SIMD(const char* p) { in SkipWhitespace_SIMD() argument
336 if (*p == ' ' || *p == '\n' || *p == '\r' || *p == '\t') in SkipWhitespace_SIMD()
337 ++p; in SkipWhitespace_SIMD()
339 return p; in SkipWhitespace_SIMD()
342 …const char* nextAligned = reinterpret_cast<const char*>((reinterpret_cast<size_t>(p) + 15) & stati… in SkipWhitespace_SIMD()
343 while (p != nextAligned) in SkipWhitespace_SIMD()
344 if (*p == ' ' || *p == '\n' || *p == '\r' || *p == '\t') in SkipWhitespace_SIMD()
345 ++p; in SkipWhitespace_SIMD()
347 return p; in SkipWhitespace_SIMD()
359 for (;; p += 16) { in SkipWhitespace_SIMD()
360 const __m128i s = _mm_load_si128(reinterpret_cast<const __m128i *>(p)); in SkipWhitespace_SIMD()
370 return p + offset; in SkipWhitespace_SIMD()
372 return p + __builtin_ffs(r) - 1; in SkipWhitespace_SIMD()
378 inline const char *SkipWhitespace_SIMD(const char* p, const char* end) { in SkipWhitespace_SIMD() argument
380 if (p != end && (*p == ' ' || *p == '\n' || *p == '\r' || *p == '\t')) in SkipWhitespace_SIMD()
381 ++p; in SkipWhitespace_SIMD()
383 return p; in SkipWhitespace_SIMD()
395 for (; p <= end - 16; p += 16) { in SkipWhitespace_SIMD()
396 const __m128i s = _mm_loadu_si128(reinterpret_cast<const __m128i *>(p)); in SkipWhitespace_SIMD()
406 return p + offset; in SkipWhitespace_SIMD()
408 return p + __builtin_ffs(r) - 1; in SkipWhitespace_SIMD()
413 return SkipWhitespace(p, end); in SkipWhitespace_SIMD()
419 inline const char *SkipWhitespace_SIMD(const char* p) { in SkipWhitespace_SIMD() argument
421 if (*p == ' ' || *p == '\n' || *p == '\r' || *p == '\t') in SkipWhitespace_SIMD()
422 ++p; in SkipWhitespace_SIMD()
424 return p; in SkipWhitespace_SIMD()
427 …const char* nextAligned = reinterpret_cast<const char*>((reinterpret_cast<size_t>(p) + 15) & stati… in SkipWhitespace_SIMD()
428 while (p != nextAligned) in SkipWhitespace_SIMD()
429 if (*p == ' ' || *p == '\n' || *p == '\r' || *p == '\t') in SkipWhitespace_SIMD()
430 ++p; in SkipWhitespace_SIMD()
432 return p; in SkipWhitespace_SIMD()
439 for (;; p += 16) { in SkipWhitespace_SIMD()
440 const uint8x16_t s = vld1q_u8(reinterpret_cast<const uint8_t *>(p)); in SkipWhitespace_SIMD()
454 return p + 8 + (lz >> 3); in SkipWhitespace_SIMD()
458 return p + (lz >> 3); in SkipWhitespace_SIMD()
463 inline const char *SkipWhitespace_SIMD(const char* p, const char* end) { in SkipWhitespace_SIMD() argument
465 if (p != end && (*p == ' ' || *p == '\n' || *p == '\r' || *p == '\t')) in SkipWhitespace_SIMD()
466 ++p; in SkipWhitespace_SIMD()
468 return p; in SkipWhitespace_SIMD()
475 for (; p <= end - 16; p += 16) { in SkipWhitespace_SIMD()
476 const uint8x16_t s = vld1q_u8(reinterpret_cast<const uint8_t *>(p)); in SkipWhitespace_SIMD()
490 return p + 8 + (lz >> 3); in SkipWhitespace_SIMD()
494 return p + (lz >> 3); in SkipWhitespace_SIMD()
498 return SkipWhitespace(p, end); in SkipWhitespace_SIMD()
1078 const char* p = is.src_; in ScanCopyUnescapedString() local
1081 …const char* nextAligned = reinterpret_cast<const char*>((reinterpret_cast<size_t>(p) + 15) & stati… in ScanCopyUnescapedString()
1082 while (p != nextAligned) in ScanCopyUnescapedString()
1083 …if (RAPIDJSON_UNLIKELY(*p == '\"') || RAPIDJSON_UNLIKELY(*p == '\\') || RAPIDJSON_UNLIKELY(static_… in ScanCopyUnescapedString()
1084 is.src_ = p; in ScanCopyUnescapedString()
1088 os.Put(*p++); in ScanCopyUnescapedString()
1098 for (;; p += 16) { in ScanCopyUnescapedString()
1099 const __m128i s = _mm_load_si128(reinterpret_cast<const __m128i *>(p)); in ScanCopyUnescapedString()
1117 q[i] = p[i]; in ScanCopyUnescapedString()
1119 p += length; in ScanCopyUnescapedString()
1126 is.src_ = p; in ScanCopyUnescapedString()
1139 char* p = is.src_; in ScanCopyUnescapedString() local
1143 …const char* nextAligned = reinterpret_cast<const char*>((reinterpret_cast<size_t>(p) + 15) & stati… in ScanCopyUnescapedString()
1144 while (p != nextAligned) in ScanCopyUnescapedString()
1145 …if (RAPIDJSON_UNLIKELY(*p == '\"') || RAPIDJSON_UNLIKELY(*p == '\\') || RAPIDJSON_UNLIKELY(static_… in ScanCopyUnescapedString()
1146 is.src_ = p; in ScanCopyUnescapedString()
1151 *q++ = *p++; in ScanCopyUnescapedString()
1161 for (;; p += 16, q += 16) { in ScanCopyUnescapedString()
1162 const __m128i s = _mm_load_si128(reinterpret_cast<const __m128i *>(p)); in ScanCopyUnescapedString()
1177 for (const char* pend = p + length; p != pend; ) in ScanCopyUnescapedString()
1178 *q++ = *p++; in ScanCopyUnescapedString()
1184 is.src_ = p; in ScanCopyUnescapedString()
1191 char* p = is.src_; in SkipUnescapedString() local
1194 …const char* nextAligned = reinterpret_cast<const char*>((reinterpret_cast<size_t>(p) + 15) & stati… in SkipUnescapedString()
1195 for (; p != nextAligned; p++) in SkipUnescapedString()
1196 …if (RAPIDJSON_UNLIKELY(*p == '\"') || RAPIDJSON_UNLIKELY(*p == '\\') || RAPIDJSON_UNLIKELY(static_… in SkipUnescapedString()
1197 is.src_ = is.dst_ = p; in SkipUnescapedString()
1209 for (;; p += 16) { in SkipUnescapedString()
1210 const __m128i s = _mm_load_si128(reinterpret_cast<const __m128i *>(p)); in SkipUnescapedString()
1225 p += length; in SkipUnescapedString()
1230 is.src_ = is.dst_ = p; in SkipUnescapedString()
1235 const char* p = is.src_; in ScanCopyUnescapedString() local
1238 …const char* nextAligned = reinterpret_cast<const char*>((reinterpret_cast<size_t>(p) + 15) & stati… in ScanCopyUnescapedString()
1239 while (p != nextAligned) in ScanCopyUnescapedString()
1240 …if (RAPIDJSON_UNLIKELY(*p == '\"') || RAPIDJSON_UNLIKELY(*p == '\\') || RAPIDJSON_UNLIKELY(static_… in ScanCopyUnescapedString()
1241 is.src_ = p; in ScanCopyUnescapedString()
1245 os.Put(*p++); in ScanCopyUnescapedString()
1253 for (;; p += 16) { in ScanCopyUnescapedString()
1254 const uint8x16_t s = vld1q_u8(reinterpret_cast<const uint8_t *>(p)); in ScanCopyUnescapedString()
1281 q[i] = p[i]; in ScanCopyUnescapedString()
1283 p += length; in ScanCopyUnescapedString()
1290 is.src_ = p; in ScanCopyUnescapedString()
1303 char* p = is.src_; in ScanCopyUnescapedString() local
1307 …const char* nextAligned = reinterpret_cast<const char*>((reinterpret_cast<size_t>(p) + 15) & stati… in ScanCopyUnescapedString()
1308 while (p != nextAligned) in ScanCopyUnescapedString()
1309 …if (RAPIDJSON_UNLIKELY(*p == '\"') || RAPIDJSON_UNLIKELY(*p == '\\') || RAPIDJSON_UNLIKELY(static_… in ScanCopyUnescapedString()
1310 is.src_ = p; in ScanCopyUnescapedString()
1315 *q++ = *p++; in ScanCopyUnescapedString()
1323 for (;; p += 16, q += 16) { in ScanCopyUnescapedString()
1324 const uint8x16_t s = vld1q_u8(reinterpret_cast<uint8_t *>(p)); in ScanCopyUnescapedString()
1348 for (const char* pend = p + length; p != pend; ) { in ScanCopyUnescapedString()
1349 *q++ = *p++; in ScanCopyUnescapedString()
1356 is.src_ = p; in ScanCopyUnescapedString()
1363 char* p = is.src_; in SkipUnescapedString() local
1366 …const char* nextAligned = reinterpret_cast<const char*>((reinterpret_cast<size_t>(p) + 15) & stati… in SkipUnescapedString()
1367 for (; p != nextAligned; p++) in SkipUnescapedString()
1368 …if (RAPIDJSON_UNLIKELY(*p == '\"') || RAPIDJSON_UNLIKELY(*p == '\\') || RAPIDJSON_UNLIKELY(static_… in SkipUnescapedString()
1369 is.src_ = is.dst_ = p; in SkipUnescapedString()
1379 for (;; p += 16) { in SkipUnescapedString()
1380 const uint8x16_t s = vld1q_u8(reinterpret_cast<uint8_t *>(p)); in SkipUnescapedString()
1393 p += 8 + (lz >> 3); in SkipUnescapedString()
1398 p += lz >> 3; in SkipUnescapedString()
1403 is.src_ = is.dst_ = p; in SkipUnescapedString()
1713 int p = exp + expFrac; in ParseNumber() local
1715 d = internal::StrtodFullPrecision(d, p, decimal, length, decimalPosition, exp); in ParseNumber()
1717 d = internal::StrtodNormalPrecision(d, p); in ParseNumber()