aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/simdjson/src/simdjson.cpp
diff options
context:
space:
mode:
authoruzhas <uzhas@yandex-team.com>2024-10-03 16:34:24 +0300
committeruzhas <uzhas@yandex-team.com>2024-10-03 16:44:27 +0300
commitd7525e0eec8e7242a5cedd5fbdaf3bdaaeea02c7 (patch)
treece9f81f6cf7c08a4dd02d982b956b3b7c7637a3f /contrib/libs/simdjson/src/simdjson.cpp
parent58e24167b404650b5a636bfa016b291d24d9830d (diff)
downloadydb-d7525e0eec8e7242a5cedd5fbdaf3bdaaeea02c7.tar.gz
ydblib: add simdjson
commit_hash:a86d76c6047d0b7407a8f1e013ccecf0e3c886eb
Diffstat (limited to 'contrib/libs/simdjson/src/simdjson.cpp')
-rw-r--r--contrib/libs/simdjson/src/simdjson.cpp50
1 files changed, 50 insertions, 0 deletions
diff --git a/contrib/libs/simdjson/src/simdjson.cpp b/contrib/libs/simdjson/src/simdjson.cpp
new file mode 100644
index 0000000000..1012795253
--- /dev/null
+++ b/contrib/libs/simdjson/src/simdjson.cpp
@@ -0,0 +1,50 @@
+#define SIMDJSON_SRC_SIMDJSON_CPP
+
+#include <base.h>
+
+SIMDJSON_PUSH_DISABLE_UNUSED_WARNINGS
+
+#include <to_chars.cpp>
+#include <from_chars.cpp>
+#include <internal/error_tables.cpp>
+#include <internal/jsoncharutils_tables.cpp>
+#include <internal/numberparsing_tables.cpp>
+#include <internal/simdprune_tables.cpp>
+
+#include <simdjson/generic/dependencies.h>
+#include <generic/dependencies.h>
+#include <generic/stage1/dependencies.h>
+#include <generic/stage2/dependencies.h>
+
+#include <implementation.cpp>
+
+#define SIMDJSON_CONDITIONAL_INCLUDE
+
+#if SIMDJSON_IMPLEMENTATION_ARM64
+#include <arm64.cpp>
+#endif
+#if SIMDJSON_IMPLEMENTATION_HASWELL
+#include <haswell.cpp>
+#endif
+#if SIMDJSON_IMPLEMENTATION_ICELAKE
+#include <icelake.cpp>
+#endif
+#if SIMDJSON_IMPLEMENTATION_PPC64
+#error #include <ppc64.cpp>
+#endif
+#if SIMDJSON_IMPLEMENTATION_WESTMERE
+#include <westmere.cpp>
+#endif
+#if SIMDJSON_IMPLEMENTATION_LSX
+#error #include <lsx.cpp>
+#endif
+#if SIMDJSON_IMPLEMENTATION_LASX
+#error #include <lasx.cpp>
+#endif
+#if SIMDJSON_IMPLEMENTATION_FALLBACK
+#include <fallback.cpp>
+#endif
+#undef SIMDJSON_CONDITIONAL_INCLUDE
+
+SIMDJSON_POP_DISABLE_UNUSED_WARNINGS
+