mirror of
https://github.com/simdjson/simdjson
synced 2026-06-08 17:27:07 +00:00
Intrinsic-based flatten (#234)
* Providing a flatten function with intrinsics (for Visual Studio).
This commit is contained in:
@@ -9,7 +9,7 @@ TARGET_HASWELL
|
||||
namespace simdjson {
|
||||
template<>
|
||||
int find_structural_bits<architecture::haswell>(const uint8_t *buf, size_t len, ParsedJson &pj) {
|
||||
FIND_STRUCTURAL_BITS(architecture::haswell, buf, len, pj);
|
||||
FIND_STRUCTURAL_BITS(architecture::haswell, buf, len, pj, simdjson::haswell::flatten_bits);
|
||||
}
|
||||
} // simdjson
|
||||
UNTARGET_REGION
|
||||
@@ -18,7 +18,7 @@ TARGET_WESTMERE
|
||||
namespace simdjson {
|
||||
template<>
|
||||
int find_structural_bits<architecture::westmere>(const uint8_t *buf, size_t len, ParsedJson &pj) {
|
||||
FIND_STRUCTURAL_BITS(architecture::westmere, buf, len, pj);
|
||||
FIND_STRUCTURAL_BITS(architecture::westmere, buf, len, pj, simdjson::flatten_bits);
|
||||
}
|
||||
} // simdjson
|
||||
UNTARGET_REGION
|
||||
@@ -31,7 +31,7 @@ UNTARGET_REGION
|
||||
namespace simdjson {
|
||||
template<>
|
||||
int find_structural_bits<architecture::arm64>(const uint8_t *buf, size_t len, ParsedJson &pj) {
|
||||
FIND_STRUCTURAL_BITS(architecture::arm64, buf, len, pj);
|
||||
FIND_STRUCTURAL_BITS(architecture::arm64, buf, len, pj, simdjson::flatten_bits);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user