1 | #ifndef SIMDJSON_INTERNAL_SIMDPRUNE_TABLES_H |
---|---|
2 | #define SIMDJSON_INTERNAL_SIMDPRUNE_TABLES_H |
3 | |
4 | #include <cstdint> |
5 | |
6 | namespace simdjson { // table modified and copied from |
7 | namespace internal { // http://graphics.stanford.edu/~seander/bithacks.html#CountBitsSetTable |
8 | |
9 | extern SIMDJSON_DLLIMPORTEXPORT const unsigned char BitsSetTable256mul2[256]; |
10 | |
11 | extern SIMDJSON_DLLIMPORTEXPORT const uint8_t pshufb_combine_table[272]; |
12 | |
13 | // 256 * 8 bytes = 2kB, easily fits in cache. |
14 | extern SIMDJSON_DLLIMPORTEXPORT const uint64_t thintable_epi8[256]; |
15 | |
16 | } // namespace internal |
17 | } // namespace simdjson |
18 | |
19 | #endif // SIMDJSON_INTERNAL_SIMDPRUNE_TABLES_H |
20 |