Skip to content

Commit 5a071c1

Browse files
committed
Remove TARGET_FALLBACK
1 parent 7cf3a75 commit 5a071c1

File tree

7 files changed

+0
-15
lines changed

7 files changed

+0
-15
lines changed

include/simdjson/portability.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@
7070
#endif
7171

7272
// under GCC and CLANG, we use these two macros
73-
#define TARGET_FALLBACK TARGET_REGION("")
7473
#define TARGET_HASWELL TARGET_REGION("avx2,bmi,pclmul,lzcnt")
7574
#define TARGET_WESTMERE TARGET_REGION("sse4.2,pclmul")
7675
#define TARGET_ARM64

src/fallback/bitmanipulation.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
#include "simdjson.h"
55
#include <limits>
66

7-
TARGET_FALLBACK
87
namespace simdjson::fallback {
98

109
#ifndef _MSC_VER
@@ -60,6 +59,5 @@ really_inline bool mul_overflow(uint64_t value1, uint64_t value2, uint64_t *resu
6059
}
6160

6261
} // namespace simdjson::fallback
63-
UNTARGET_REGION
6462

6563
#endif // SIMDJSON_FALLBACK_BITMANIPULATION_H

src/fallback/implementation.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
#include "simdjson.h"
55
#include "isadetection.h"
66

7-
TARGET_FALLBACK
87
namespace simdjson::fallback {
98

109
class implementation final : public simdjson::implementation {
@@ -21,6 +20,5 @@ class implementation final : public simdjson::implementation {
2120
};
2221

2322
} // namespace simdjson::fallback
24-
UNTARGET_REGION
2523

2624
#endif // SIMDJSON_FALLBACK_IMPLEMENTATION_H

src/fallback/numberparsing.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ void found_unsigned_integer(uint64_t result, const uint8_t *buf);
1414
void found_float(double result, const uint8_t *buf);
1515
#endif
1616

17-
TARGET_FALLBACK
1817
namespace simdjson::fallback {
1918
static inline uint32_t parse_eight_digits_unrolled(const char *chars) {
2019
uint32_t result = 0;
@@ -29,6 +28,5 @@ static inline uint32_t parse_eight_digits_unrolled(const char *chars) {
2928
#include "generic/numberparsing.h"
3029

3130
} // namespace simdjson::fallback
32-
UNTARGET_REGION
3331

3432
#endif // SIMDJSON_FALLBACK_NUMBERPARSING_H

src/fallback/stage1_find_marks.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
#include "simdjson.h"
55
#include "fallback/implementation.h"
66

7-
TARGET_FALLBACK
87
namespace simdjson::fallback::stage1 {
98

109
class structural_scanner {
@@ -141,9 +140,7 @@ really_inline error_code scan() {
141140
}; // structural_scanner
142141

143142
} // simdjson::fallback::stage1
144-
UNTARGET_REGION
145143

146-
TARGET_FALLBACK
147144
namespace simdjson::fallback {
148145

149146
WARN_UNUSED error_code implementation::stage1(const uint8_t *buf, size_t len, document::parser &parser, bool streaming) const noexcept {
@@ -155,6 +152,5 @@ WARN_UNUSED error_code implementation::stage1(const uint8_t *buf, size_t len, do
155152
}
156153

157154
} // namespace simdjson::fallback
158-
UNTARGET_REGION
159155

160156
#endif // SIMDJSON_FALLBACK_STAGE1_FIND_MARKS_H

src/fallback/stage2_build_tape.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,12 @@
77
#include "fallback/stringparsing.h"
88
#include "fallback/numberparsing.h"
99

10-
TARGET_FALLBACK
1110
namespace simdjson::fallback {
1211

1312
#include "generic/atomparsing.h"
1413
#include "generic/stage2_build_tape.h"
1514
#include "generic/stage2_streaming_build_tape.h"
1615

1716
} // namespace simdjson
18-
UNTARGET_REGION
1917

2018
#endif // SIMDJSON_FALLBACK_STAGE2_BUILD_TAPE_H

src/fallback/stringparsing.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
#include "simdjson.h"
55
#include "jsoncharutils.h"
66

7-
TARGET_FALLBACK
87
namespace simdjson::fallback {
98

109
// Holds backslashes and quotes locations.
@@ -30,6 +29,5 @@ really_inline backslash_and_quote backslash_and_quote::copy_and_find(const uint8
3029
#include "generic/stringparsing.h"
3130

3231
} // namespace simdjson::fallback
33-
UNTARGET_REGION
3432

3533
#endif // SIMDJSON_FALLBACK_STRINGPARSING_H

0 commit comments

Comments
 (0)