Temporarily added a non-x86 definition of SIMDJSON_PADDING

This commit is contained in:
Geoff Langdale 2019-03-21 11:37:40 +11:00
parent 5578401a0f
commit 2c23b375b2
1 changed files with 6 additions and 0 deletions

View File

@ -9,7 +9,13 @@
#define SIMDJSON_MAXSIZE_BYTES 0xFFFFFFFF
// the input buf should be readable up to buf + SIMDJSON_PADDING
#ifdef __AVX2__
#define SIMDJSON_PADDING sizeof(__m256i)
#else
// this is a stopgap; there should be a better description of the
// main loop and its behavior that abstracts over this
#define SIMDJSON_PADDING 32
#endif
#ifndef _MSC_VER
// Implemented using Labels as Values which works in GCC and CLANG (and maybe