From c67add57d8232b2c2fd52e2b5a30b8631a1b9e1a Mon Sep 17 00:00:00 2001 From: Daniel Lemire Date: Sun, 13 Dec 2020 18:50:14 -0500 Subject: [PATCH] By default, it seems that optimized kernels are disabled. --- include/simdjson/arm64.h | 6 +++++- include/simdjson/ppc64.h | 4 ++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/include/simdjson/arm64.h b/include/simdjson/arm64.h index 6cbc0bffc..b8c33401a 100644 --- a/include/simdjson/arm64.h +++ b/include/simdjson/arm64.h @@ -6,7 +6,11 @@ #endif #include "simdjson/portability.h" - +// Default Haswell to on if this is x86-64. Even if we're not compiled for it, it could be selected +// at runtime. +#ifndef SIMDJSON_IMPLEMENTATION_ARM64 +#define SIMDJSON_IMPLEMENTATION_ARM64 (SIMDJSON_IS_ARM64) +#endif #include "simdjson/internal/isadetection.h" #include "simdjson/internal/jsoncharutils_tables.h" #include "simdjson/internal/numberparsing_tables.h" diff --git a/include/simdjson/ppc64.h b/include/simdjson/ppc64.h index a03cc347f..47e5d4f83 100644 --- a/include/simdjson/ppc64.h +++ b/include/simdjson/ppc64.h @@ -7,6 +7,10 @@ #include "simdjson/portability.h" +#ifndef SIMDJSON_IMPLEMENTATION_PPC64 +#define SIMDJSON_IMPLEMENTATION_PPC64 (SIMDJSON_IS_PPC64) +#endif + #include "simdjson/internal/isadetection.h" #include "simdjson/internal/jsoncharutils_tables.h" #include "simdjson/internal/numberparsing_tables.h"