|
1 | | -/* auto-generated on Tue Jul 7 15:13:17 EDT 2020. Do not edit! */ |
| 1 | +/* auto-generated on Tue Jul 7 15:39:55 EDT 2020. Do not edit! */ |
2 | 2 | /* begin file src/simdjson.cpp */ |
3 | 3 | #include "simdjson.h" |
4 | 4 |
|
@@ -2649,7 +2649,7 @@ really_inline int8x16_t make_int8x16_t(int8_t x1, int8_t x2, int8_t x3, int8_ |
2649 | 2649 | template<typename T> |
2650 | 2650 | struct simd8x64 { |
2651 | 2651 | static constexpr int NUM_CHUNKS = 64 / sizeof(simd8<T>); |
2652 | | - static_assert(NUM_CHUNKS == 4); |
| 2652 | + static_assert(NUM_CHUNKS == 4, "ARM kernel should use four registers per 64-byte block."); |
2653 | 2653 | const simd8<T> chunks[NUM_CHUNKS]; |
2654 | 2654 |
|
2655 | 2655 | simd8x64(const simd8x64<T>& o) = delete; // no copy allowed |
@@ -3554,7 +3554,8 @@ namespace utf8_validation { |
3554 | 3554 | really_inline void check_next_input(const simd8x64<uint8_t>& input) { |
3555 | 3555 | if (unlikely(!is_ascii(input))) { |
3556 | 3556 | // you might think that a for-loop would work, but under Visual Studio, it is not good enough. |
3557 | | - static_assert((simd8x64<uint8_t>::NUM_CHUNKS == 2) || (simd8x64<uint8_t>::NUM_CHUNKS == 4)); |
| 3557 | + static_assert((simd8x64<uint8_t>::NUM_CHUNKS == 2) || (simd8x64<uint8_t>::NUM_CHUNKS == 4), |
| 3558 | + "We support either two or four chunks per 64-byte block."); |
3558 | 3559 | if(simd8x64<uint8_t>::NUM_CHUNKS == 2) { |
3559 | 3560 | this->check_utf8_bytes(input.chunks[0], this->prev_input_block); |
3560 | 3561 | this->check_utf8_bytes(input.chunks[1], input.chunks[0]); |
@@ -8022,7 +8023,7 @@ namespace simd { |
8022 | 8023 | template<typename T> |
8023 | 8024 | struct simd8x64 { |
8024 | 8025 | static constexpr int NUM_CHUNKS = 64 / sizeof(simd8<T>); |
8025 | | - static_assert(NUM_CHUNKS == 2); |
| 8026 | + static_assert(NUM_CHUNKS == 2, "Haswell kernel should use two registers per 64-byte block."); |
8026 | 8027 | const simd8<T> chunks[NUM_CHUNKS]; |
8027 | 8028 |
|
8028 | 8029 | simd8x64(const simd8x64<T>& o) = delete; // no copy allowed |
@@ -8871,7 +8872,8 @@ namespace utf8_validation { |
8871 | 8872 | really_inline void check_next_input(const simd8x64<uint8_t>& input) { |
8872 | 8873 | if (unlikely(!is_ascii(input))) { |
8873 | 8874 | // you might think that a for-loop would work, but under Visual Studio, it is not good enough. |
8874 | | - static_assert((simd8x64<uint8_t>::NUM_CHUNKS == 2) || (simd8x64<uint8_t>::NUM_CHUNKS == 4)); |
| 8875 | + static_assert((simd8x64<uint8_t>::NUM_CHUNKS == 2) || (simd8x64<uint8_t>::NUM_CHUNKS == 4), |
| 8876 | + "We support either two or four chunks per 64-byte block."); |
8875 | 8877 | if(simd8x64<uint8_t>::NUM_CHUNKS == 2) { |
8876 | 8878 | this->check_utf8_bytes(input.chunks[0], this->prev_input_block); |
8877 | 8879 | this->check_utf8_bytes(input.chunks[1], input.chunks[0]); |
@@ -11208,7 +11210,7 @@ namespace simd { |
11208 | 11210 | template<typename T> |
11209 | 11211 | struct simd8x64 { |
11210 | 11212 | static constexpr int NUM_CHUNKS = 64 / sizeof(simd8<T>); |
11211 | | - static_assert(NUM_CHUNKS == 4); |
| 11213 | + static_assert(NUM_CHUNKS == 4, "Westmere kernel should use four registers per 64-byte block."); |
11212 | 11214 | const simd8<T> chunks[NUM_CHUNKS]; |
11213 | 11215 |
|
11214 | 11216 | simd8x64(const simd8x64<T>& o) = delete; // no copy allowed |
@@ -12073,7 +12075,8 @@ namespace utf8_validation { |
12073 | 12075 | really_inline void check_next_input(const simd8x64<uint8_t>& input) { |
12074 | 12076 | if (unlikely(!is_ascii(input))) { |
12075 | 12077 | // you might think that a for-loop would work, but under Visual Studio, it is not good enough. |
12076 | | - static_assert((simd8x64<uint8_t>::NUM_CHUNKS == 2) || (simd8x64<uint8_t>::NUM_CHUNKS == 4)); |
| 12078 | + static_assert((simd8x64<uint8_t>::NUM_CHUNKS == 2) || (simd8x64<uint8_t>::NUM_CHUNKS == 4), |
| 12079 | + "We support either two or four chunks per 64-byte block."); |
12077 | 12080 | if(simd8x64<uint8_t>::NUM_CHUNKS == 2) { |
12078 | 12081 | this->check_utf8_bytes(input.chunks[0], this->prev_input_block); |
12079 | 12082 | this->check_utf8_bytes(input.chunks[1], input.chunks[0]); |
|
0 commit comments