1 #ifndef SIMDJSON_HASWELL_BITMASK_H
2 #define SIMDJSON_HASWELL_BITMASK_H
4 #ifndef SIMDJSON_CONDITIONAL_INCLUDE
5 #include "simdjson/haswell/base.h"
6 #include "simdjson/haswell/intrinsics.h"
18 simdjson_inline uint64_t prefix_xor(
const uint64_t bitmask) {
21 __m128i all_ones = _mm_set1_epi8(
'\xFF');
22 __m128i result = _mm_clmulepi64_si128(_mm_set_epi64x(0ULL, bitmask), all_ones, 0);
23 return _mm_cvtsi128_si64(result);
The top level simdjson namespace, containing everything the library provides.