diff options
author | uzhas <uzhas@yandex-team.com> | 2024-10-03 16:34:24 +0300 |
---|---|---|
committer | uzhas <uzhas@yandex-team.com> | 2024-10-03 16:44:27 +0300 |
commit | d7525e0eec8e7242a5cedd5fbdaf3bdaaeea02c7 (patch) | |
tree | ce9f81f6cf7c08a4dd02d982b956b3b7c7637a3f /contrib/libs/simdjson/src/generic/dom_parser_implementation.h | |
parent | 58e24167b404650b5a636bfa016b291d24d9830d (diff) | |
download | ydb-d7525e0eec8e7242a5cedd5fbdaf3bdaaeea02c7.tar.gz |
ydblib: add simdjson
commit_hash:a86d76c6047d0b7407a8f1e013ccecf0e3c886eb
Diffstat (limited to 'contrib/libs/simdjson/src/generic/dom_parser_implementation.h')
-rw-r--r-- | contrib/libs/simdjson/src/generic/dom_parser_implementation.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/contrib/libs/simdjson/src/generic/dom_parser_implementation.h b/contrib/libs/simdjson/src/generic/dom_parser_implementation.h new file mode 100644 index 0000000000..20f7813fca --- /dev/null +++ b/contrib/libs/simdjson/src/generic/dom_parser_implementation.h @@ -0,0 +1,21 @@ +#ifndef SIMDJSON_SRC_GENERIC_DOM_PARSER_IMPLEMENTATION_H + +#ifndef SIMDJSON_CONDITIONAL_INCLUDE +#define SIMDJSON_SRC_GENERIC_DOM_PARSER_IMPLEMENTATION_H +#include <generic/base.h> +#include <simdjson/generic/dom_parser_implementation.h> +#endif // SIMDJSON_CONDITIONAL_INCLUDE + +// Interface a dom parser implementation must fulfill +namespace simdjson { +namespace SIMDJSON_IMPLEMENTATION { +namespace { + +simdjson_inline simd8<uint8_t> must_be_2_3_continuation(const simd8<uint8_t> prev2, const simd8<uint8_t> prev3); +simdjson_inline bool is_ascii(const simd8x64<uint8_t>& input); + +} // unnamed namespace +} // namespace SIMDJSON_IMPLEMENTATION +} // namespace simdjson + +#endif // SIMDJSON_SRC_GENERIC_DOM_PARSER_IMPLEMENTATION_H
\ No newline at end of file |