Use direct call to templated flatten_bits instead of if (#262)

* Use direct call to templated flatten_bits instead of if

* Put really_inline back on find_structural_bits_64
This commit is contained in:
John Keiser
2019-08-08 12:09:17 -07:00
committed by Daniel Lemire
parent 1e26859bb7
commit f3c3afd4cd
11 changed files with 48 additions and 42 deletions
+6 -5
View File
@@ -3,17 +3,18 @@
#ifdef IS_X86_64
#include "simdjson/stage1_find_marks_haswell.h"
#include "simdjson/stage1_find_marks_westmere.h"
#define TARGETED_ARCHITECTURE Architecture::HASWELL
#define TARGETED_REGION TARGET_HASWELL
#include "simdjson/stage1_find_marks_flatten_haswell.h"
#include "simdjson/stage1_find_marks_haswell.h"
#include "simdjson/stage1_find_marks_common.h"
#undef TARGETED_ARCHITECTURE
#undef TARGETED_REGION
#define TARGETED_ARCHITECTURE Architecture::WESTMERE
#define TARGETED_REGION TARGET_WESTMERE
#include "simdjson/stage1_find_marks_flatten_common.h"
#include "simdjson/stage1_find_marks_westmere.h"
#include "simdjson/stage1_find_marks_common.h"
#undef TARGETED_ARCHITECTURE
#undef TARGETED_REGION
@@ -22,10 +23,10 @@
#ifdef IS_ARM64
#include "simdjson/stage1_find_marks_arm64.h"
#define TARGETED_ARCHITECTURE Architecture::ARM64
#define TARGETED_REGION TARGET_ARM64
#include "simdjson/stage1_find_marks_flatten_common.h"
#include "simdjson/stage1_find_marks_arm64.h"
#include "simdjson/stage1_find_marks_common.h"
#undef TARGETED_ARCHITECTURE
#undef TARGETED_REGION