@@ -34,26 +34,26 @@ really_inline void find_whitespace_and_structurals(simd_input<ARCHITECTURE> in,
3434 const __m256i mask_close_bracket = _mm256_set1_epi8 (0x5d );
3535 const __m256i mask_column = _mm256_set1_epi8 (0x3a );
3636 const __m256i mask_comma = _mm256_set1_epi8 (0x2c );
37- structurals = in-> build_bitmask ([&](auto in) {
37+ structurals = in. map ([&](auto in) {
3838 __m256i structurals = _mm256_cmpeq_epi8 (in, mask_open_brace);
3939 structurals = _mm256_or_si256 (structurals, _mm256_cmpeq_epi8 (in, mask_close_brace));
4040 structurals = _mm256_or_si256 (structurals, _mm256_cmpeq_epi8 (in, mask_open_bracket));
4141 structurals = _mm256_or_si256 (structurals, _mm256_cmpeq_epi8 (in, mask_close_bracket));
4242 structurals = _mm256_or_si256 (structurals, _mm256_cmpeq_epi8 (in, mask_column));
4343 structurals = _mm256_or_si256 (structurals, _mm256_cmpeq_epi8 (in, mask_comma));
4444 return structurals;
45- });
45+ }). to_bitmask () ;
4646
4747 const __m256i mask_space = _mm256_set1_epi8 (0x20 );
4848 const __m256i mask_linefeed = _mm256_set1_epi8 (0x0a );
4949 const __m256i mask_tab = _mm256_set1_epi8 (0x09 );
5050 const __m256i mask_carriage = _mm256_set1_epi8 (0x0d );
51- whitespace = in-> build_bitmask ([&](auto in) {
51+ whitespace = in. map ([&](auto in) {
5252 __m256i space = _mm256_cmpeq_epi8 (in, mask_space);
5353 space = _mm256_or_si256 (space, _mm256_cmpeq_epi8 (in, mask_linefeed));
5454 space = _mm256_or_si256 (space, _mm256_cmpeq_epi8 (in, mask_tab));
5555 space = _mm256_or_si256 (space, _mm256_cmpeq_epi8 (in, mask_carriage));
56- });
56+ }). to_bitmask () ;
5757 // end of naive approach
5858
5959 #else // SIMDJSON_NAIVE_STRUCTURAL
@@ -69,15 +69,15 @@ really_inline void find_whitespace_and_structurals(simd_input<ARCHITECTURE> in,
6969 const __m256i struct_offset = _mm256_set1_epi8 (0xd4u );
7070 const __m256i struct_mask = _mm256_set1_epi8 (32 );
7171
72- whitespace = in.build_bitmask ([&](auto chunk) {
72+ whitespace = in.map ([&](auto chunk) {
7373 return _mm256_cmpeq_epi8 (chunk, _mm256_shuffle_epi8 (white_table, chunk));
74- });
75- structurals = in.build_bitmask ([&](auto chunk) {
74+ }). to_bitmask () ;
75+ structurals = in.map ([&](auto chunk) {
7676 __m256i struct_r1 = _mm256_add_epi8 (struct_offset, chunk);
7777 __m256i struct_r2 = _mm256_or_si256 (chunk, struct_mask);
7878 __m256i struct_r3 = _mm256_shuffle_epi8 (structural_table, struct_r1);
7979 return _mm256_cmpeq_epi8 (struct_r2, struct_r3);
80- });
80+ }). to_bitmask () ;
8181
8282 #endif // else SIMDJSON_NAIVE_STRUCTURAL
8383}
0 commit comments