simdjson  3.11.0
Ridiculously Fast JSON
intrinsics.h
1 #ifndef SIMDJSON_PPC64_INTRINSICS_H
2 #define SIMDJSON_PPC64_INTRINSICS_H
3 
4 #ifndef SIMDJSON_CONDITIONAL_INCLUDE
5 #include "simdjson/ppc64/base.h"
6 #endif // SIMDJSON_CONDITIONAL_INCLUDE
7 
8 // This should be the correct header whether
9 // you use visual studio or other compilers.
10 #include <altivec.h>
11 
12 // These are defined by altivec.h in GCC toolchain, it is safe to undef them.
13 #ifdef bool
14 #undef bool
15 #endif
16 
17 #ifdef vector
18 #undef vector
19 #endif
20 
21 static_assert(sizeof(__vector unsigned char) <= simdjson::SIMDJSON_PADDING, "insufficient padding for ppc64");
22 
23 #endif // SIMDJSON_PPC64_INTRINSICS_H
constexpr size_t SIMDJSON_PADDING
The amount of padding needed in a buffer to parse JSON.
Definition: base.h:32