Skip to content

Commit 44b7a71

Browse files
committed
Include bitmanip/simd everywhere
1 parent 3867ee7 commit 44b7a71

25 files changed

+23
-86
lines changed

src/arm64/begin_implementation.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
#include "simdjson.h"
22
#include "arm64/implementation.h"
3-
#include "arm64/intrinsics.h" // Generally need to be included outside SIMDJSON_TARGET_REGION
3+
#include "arm64/intrinsics.h"
44

55
#define SIMDJSON_IMPLEMENTATION arm64
6+
7+
#include "arm64/bitmanipulation.h"
8+
#include "arm64/bitmask.h"
9+
#include "arm64/simd.h"

src/arm64/bitmanipulation.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
#ifndef SIMDJSON_ARM64_BITMANIPULATION_H
22
#define SIMDJSON_ARM64_BITMANIPULATION_H
33

4-
#include "simdjson.h"
5-
64
namespace simdjson {
75
namespace arm64 {
86

src/arm64/bitmask.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
#ifndef SIMDJSON_ARM64_BITMASK_H
22
#define SIMDJSON_ARM64_BITMASK_H
33

4-
#include "simdjson.h"
5-
64
namespace simdjson {
75
namespace arm64 {
86

src/arm64/dom_parser_implementation.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,6 @@
44
//
55
// Stage 1
66
//
7-
#include "arm64/bitmask.h"
8-
#include "arm64/simd.h"
9-
#include "arm64/bitmanipulation.h"
10-
117
namespace simdjson {
128
namespace SIMDJSON_IMPLEMENTATION {
139

src/arm64/numberparsing.h

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,6 @@
11
#ifndef SIMDJSON_ARM64_NUMBERPARSING_H
22
#define SIMDJSON_ARM64_NUMBERPARSING_H
33

4-
#include "simdjson.h"
5-
#include "jsoncharutils.h"
6-
#include "arm64/bitmanipulation.h"
7-
#include <cmath>
8-
#include <limits>
9-
10-
11-
#ifdef JSON_TEST_NUMBERS // for unit testing
12-
void found_invalid_number(const uint8_t *buf);
13-
void found_integer(int64_t result, const uint8_t *buf);
14-
void found_unsigned_integer(uint64_t result, const uint8_t *buf);
15-
void found_float(double result, const uint8_t *buf);
16-
#endif
17-
184
namespace simdjson {
195
namespace arm64 {
206

src/arm64/stringparsing.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
#define SIMDJSON_ARM64_STRINGPARSING_H
33

44
#include "simdjson.h"
5-
#include "jsoncharutils.h"
65
#include "arm64/simd.h"
76
#include "arm64/bitmanipulation.h"
87

src/fallback/begin_implementation.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,5 @@
22
#include "fallback/implementation.h"
33

44
#define SIMDJSON_IMPLEMENTATION fallback
5+
6+
#include "fallback/bitmanipulation.h"

src/fallback/numberparsing.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,6 @@
11
#ifndef SIMDJSON_FALLBACK_NUMBERPARSING_H
22
#define SIMDJSON_FALLBACK_NUMBERPARSING_H
33

4-
#include "simdjson.h"
5-
#include "jsoncharutils.h"
6-
#include "fallback/bitmanipulation.h"
7-
#include <cmath>
8-
#include <limits>
9-
104
#ifdef JSON_TEST_NUMBERS // for unit testing
115
void found_invalid_number(const uint8_t *buf);
126
void found_integer(int64_t result, const uint8_t *buf);

src/fallback/stringparsing.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
#define SIMDJSON_FALLBACK_STRINGPARSING_H
33

44
#include "simdjson.h"
5-
#include "jsoncharutils.h"
65

76
namespace simdjson {
87
namespace fallback {

src/generic/stage2/numberparsing.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
#include "jsoncharutils.h"
2+
#include <cmath>
3+
#include <limits>
4+
15
namespace simdjson {
26
namespace SIMDJSON_IMPLEMENTATION {
37
namespace stage2 {

0 commit comments

Comments
 (0)