1 #ifndef SIMDJSON_BUILTIN_IMPLEMENTATION_H
2 #define SIMDJSON_BUILTIN_IMPLEMENTATION_H
4 #include "simdjson/builtin/base.h"
6 #include "simdjson/generic/dependencies.h"
8 #define SIMDJSON_CONDITIONAL_INCLUDE
10 #if SIMDJSON_BUILTIN_IMPLEMENTATION_IS(arm64)
11 #include "simdjson/arm64/implementation.h"
12 #elif SIMDJSON_BUILTIN_IMPLEMENTATION_IS(fallback)
13 #include "simdjson/fallback/implementation.h"
14 #elif SIMDJSON_BUILTIN_IMPLEMENTATION_IS(haswell)
15 #include "simdjson/haswell/implementation.h"
16 #elif SIMDJSON_BUILTIN_IMPLEMENTATION_IS(icelake)
17 #include "simdjson/icelake/implementation.h"
18 #elif SIMDJSON_BUILTIN_IMPLEMENTATION_IS(ppc64)
19 #include "simdjson/ppc64/implementation.h"
20 #elif SIMDJSON_BUILTIN_IMPLEMENTATION_IS(westmere)
21 #include "simdjson/westmere/implementation.h"
22 #elif SIMDJSON_BUILTIN_IMPLEMENTATION_IS(lsx)
23 #include "simdjson/lsx/implementation.h"
24 #elif SIMDJSON_BUILTIN_IMPLEMENTATION_IS(lasx)
25 #include "simdjson/lasx/implementation.h"
27 #error Unknown SIMDJSON_BUILTIN_IMPLEMENTATION
30 #undef SIMDJSON_CONDITIONAL_INCLUDE
An implementation of simdjson for a particular CPU architecture.
The top level simdjson namespace, containing everything the library provides.
const implementation * builtin_implementation()
Function which returns a pointer to an implementation matching the "builtin" implementation.