|
1 | | -/* auto-generated on Tue 9 Jul 2019 16:53:17 EDT. Do not edit! */ |
| 1 | +/* auto-generated on Tue Jul 9 19:40:16 EDT 2019. Do not edit! */ |
2 | 2 | /* begin file include/simdjson/simdjson_version.h */ |
3 | 3 | // /include/simdjson/simdjson_version.h automatically generated by release.py, do not change by hand |
4 | 4 | #ifndef SIMDJSON_INCLUDE_SIMDJSON_VERSION |
@@ -100,7 +100,7 @@ static inline int hamming(uint64_t input_num) { |
100 | 100 | __popcnt((uint32_t)(input_num >> 32))); |
101 | 101 | #endif |
102 | 102 | } |
103 | | -} |
| 103 | +} // namespace simdjson |
104 | 104 | #else |
105 | 105 | #include <cstdint> |
106 | 106 | #include <cstdlib> |
@@ -917,11 +917,12 @@ padded_string get_corpus(const std::string& filename); |
917 | 917 | /* begin file include/simdjson/simdprune_tables.h */ |
918 | 918 | #ifndef SIMDJSON_SIMDPRUNE_TABLES_H |
919 | 919 | #define SIMDJSON_SIMDPRUNE_TABLES_H |
| 920 | +#include <cstdint> |
920 | 921 |
|
921 | 922 |
|
922 | 923 |
|
923 | | -namespace simdjson { |
924 | 924 | #ifdef __AVX__ |
| 925 | +namespace simdjson { |
925 | 926 | static const unsigned char mask128_epi8[] = { |
926 | 927 | 0x0, 0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, 0x8, 0x9, 0xa, 0xb, 0xc, 0xd, 0xe, |
927 | 928 | 0xf, 0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, 0x8, 0x9, 0xa, 0xb, 0xc, 0xd, 0xe, |
@@ -35901,12 +35902,10 @@ static const unsigned char mask128_epi32[] = { |
35901 | 35902 | 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, |
35902 | 35903 | 0xff, 0xff, 0xff, 0xff, |
35903 | 35904 | }; |
35904 | | -} |
| 35905 | +} // namespace simdjson |
35905 | 35906 | #endif //__SSE3__ |
35906 | 35907 |
|
35907 | 35908 | #ifdef __AVX2__ |
35908 | | - |
35909 | | -#include <cstdint> |
35910 | 35909 | namespace simdjson { |
35911 | 35910 | static const uint32_t mask256_epi32[] = { |
35912 | 35911 | 0, 1, 2, 3, 4, 5, 6, 7, 1, 2, 3, 4, 5, 6, 7, 7, 0, 2, 3, 4, 5, 6, 7, 7, 2, |
@@ -36335,13 +36334,13 @@ avxcheckUTF8Bytes(__m256i current_bytes, |
36335 | 36334 | #ifndef SIMDJSON_SIMDUTF8CHECK_NEON_H |
36336 | 36335 | #define SIMDJSON_SIMDUTF8CHECK_NEON_H |
36337 | 36336 |
|
36338 | | -#if defined(__aarch64__) || (defined(_MSC_VER) && defined(_M_ARM64)) |
| 36337 | +#if defined(_ARM_NEON) || defined(__aarch64__) || (defined(_MSC_VER) && defined(_M_ARM64)) |
36339 | 36338 |
|
36340 | | -#include <stdio.h> |
36341 | | -#include <stddef.h> |
36342 | | -#include <stdint.h> |
36343 | | -#include <string.h> |
36344 | | -#include <inttypes.h> |
| 36339 | +#include <cstdio> |
| 36340 | +#include <cstddef> |
| 36341 | +#include <cstdint> |
| 36342 | +#include <cstring> |
| 36343 | +#include <cinttypes> |
36345 | 36344 | #include <arm_neon.h> |
36346 | 36345 |
|
36347 | 36346 | /* |
@@ -36508,6 +36507,7 @@ checkUTF8Bytes(int8x16_t current_bytes, struct processed_utf_bytes *previous, |
36508 | 36507 |
|
36509 | 36508 | #include <cstddef> |
36510 | 36509 | #include <cstdint> |
| 36510 | +#include <string_view> |
36511 | 36511 |
|
36512 | 36512 | namespace simdjson { |
36513 | 36513 |
|
@@ -37137,18 +37137,10 @@ uint64_t neonmovemask_bulk(uint8x16_t p0, uint8x16_t p1, uint8x16_t p2, uint8x16 |
37137 | 37137 | 0x04, 0x40, 0x04, 0x40, 0x04, 0x40, 0x04, 0x40}; |
37138 | 37138 | const uint8x16_t bitmask4 = { 0x08, 0x80, 0x08, 0x80, 0x08, 0x80, 0x08, 0x80, |
37139 | 37139 | 0x08, 0x80, 0x08, 0x80, 0x08, 0x80, 0x08, 0x80}; |
37140 | | -#if 0 |
37141 | | - uint8x16_t t0 = vandq_u8(p0, bitmask1); |
37142 | | - uint8x16_t t1 = vandq_u8(p1, bitmask2); |
37143 | | - uint8x16_t t2 = vandq_u8(p2, bitmask3); |
37144 | | - uint8x16_t t3 = vandq_u8(p3, bitmask4); |
37145 | | - uint8x16_t tmp = vorrq_u8(vorrq_u8(t0, t1), vorrq_u8(t2, t3)); |
37146 | | -#else |
37147 | 37140 | uint8x16_t t0 = vandq_u8(p0, bitmask1); |
37148 | 37141 | uint8x16_t t1 = vbslq_u8(bitmask2, p1, t0); |
37149 | 37142 | uint8x16_t t2 = vbslq_u8(bitmask3, p2, t1); |
37150 | 37143 | uint8x16_t tmp = vbslq_u8(bitmask4, p3, t2); |
37151 | | -#endif |
37152 | 37144 | uint8x16_t sum = vpaddq_u8(tmp, tmp); |
37153 | 37145 | return vgetq_lane_u64(vreinterpretq_u64_u8(sum), 0); |
37154 | 37146 | #endif |
|
0 commit comments