10000 Merge pull request #1078 from simdjson/jkeiser/no-computed-goto · JavaScriptExpert/simdjson@86162aa · GitHub
[go: up one dir, main page]

Skip to content

Commit 86162aa

Browse files
authored
Merge pull request simdjson#1078 from simdjson/jkeiser/no-computed-goto
[2/3] Remove computed GOTOs
2 parents 9cc7a94 + 6bca122 commit 86162aa

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+169
-197
lines changed

src/arm64/bitmanipulation.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,6 @@ really_inline bool add_overflow(uint64_t value1, uint64_t value2, uint64_t *resu
5656
}
5757

5858
} // namespace arm64
59-
} // namespace {
59+
} // unnamed namespace
6060

6161
#endif // SIMDJSON_ARM64_BITMANIPULATION_H

src/arm64/dom_parser_implementation.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ really_inline simd8<bool> must_be_2_3_continuation(const simd8<uint8_t> prev2, c
9999
}
100100

101101
} // namespace SIMDJSON_IMPLEMENTATION
102-
} // namespace {
102+
} // unnamed namespace
103103

104104
#include "generic/stage1/utf8_lookup4_algorithm.h"
105105
#include "generic/stage1/json_structural_indexer.h"
@@ -167,6 +167,6 @@ WARN_UNUSED error_code dom_parser_implementation::parse(const uint8_t *_buf, siz
167167
}
168168

169169
} // namespace SIMDJSON_IMPLEMENTATION
170-
} // namespace {
170+
} // unnamed namespace
171171

172172
#include "arm64/end_implementation.h"

src/arm64/implementation.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@ WARN_UNUSED error_code implementation::create_dom_parser_implementation(
1717
}
1818

1919
} // namespace SIMDJSON_IMPLEMENTATION
20-
} // namespace {
20+
} // unnamed namespace
2121

2222
#include "arm64/end_implementation.h"

src/arm64/implementation.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,6 @@ class implementation final : public simdjson::implementation {
2323
};
2424

2525
} // namespace arm64
26-
} // namespace {
26+
} // unnamed namespace
2727

2828
#endif // SIMDJSON_ARM64_IMPLEMENTATION_H

src/arm64/numberparsing.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ static really_inline uint32_t parse_eight_digits_unrolled(const uint8_t *chars)
1515
}
1616

1717
} // namespace arm64
18-
} // namespace {
18+
} // unnamed namespace
1919

2020
#define SWAR_NUMBER_PARSING
2121

src/arm64/simd.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -495,6 +495,6 @@ really_inline int8x16_t make_int8x16_t(int8_t x1, int8_t x2, int8_t x3, int8_
495495

496496
} // namespace simd
497497
} // namespace arm64
498-
} // namespace {
498+
} // unnamed namespace
499499

500500
#endif // SIMDJSON_ARM64_SIMD_H

src/arm64/stringparsing.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ really_inline backslash_and_quote backslash_and_quote::copy_and_find(const uint8
4444
}
4545

4646
} // namespace arm64
47-
} // namespace {
47+
} // unnamed namespace
4848

4949
#include "generic/stage2/stringparsing.h"
5050

src/fallback/bitmanipulation.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,6 @@ really_inline int leading_zeroes(uint64_t input_num) {
4040
}
4141

4242
} // namespace fallback
43-
} // namespace {
43+
} // unnamed namespace
4444

4545
#endif // SIMDJSON_FALLBACK_BITMANIPULATION_H

src/fallback/dom_parser_implementation.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ WARN_UNUSED bool implementation::validate_utf8(const char *buf, size_t len) cons
308308
}
309309

310310
} // namespace SIMDJSON_IMPLEMENTATION
311-
} // namespace {
311+
} // unnamed namespace
312312

313313
//
314314
// Stage 2
@@ -344,6 +344,6 @@ WARN_UNUSED error_code dom_parser_implementation::parse(const uint8_t *_buf, siz
344344
}
345345

346346
} // namespace SIMDJSON_IMPLEMENTATION
347-
} // namespace {
347+
} // unnamed namespace
348348

349349
#include "fallback/end_implementation.h"

src/fallback/implementation.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@ WARN_UNUSED error_code implementation::create_dom_parser_implementation(
1717
}
1818

1919
} // namespace SIMDJSON_IMPLEMENTATION
20-
} // namespace {
20+
} // unnamed namespace
2121

2222
#include "fallback/end_implementation.h"

0 commit comments

Comments
 (0)
0