SIMDJSON_PADDING is now an absolute constant. This is temporary since

padding should go away once  https://github.com/lemire/simdjson/issues/174
is resolved.
This commit is contained in:
Daniel Lemire 2020-01-15 15:49:50 -05:00
parent f611b65bc0
commit 27861f6358
1 changed files with 1 additions and 4 deletions

View File

@ -9,13 +9,10 @@
#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
// See https://github.com/lemire/simdjson/issues/174
#define SIMDJSON_PADDING 32
#endif
#if defined(__GNUC__)
// Marks a block with a name so that MCA analysis can see it.