mirror of
https://github.com/ruby/ruby.git
synced 2026-01-27 04:24:23 +00:00
[ruby/json] Fix duplicate 'inline' declaration specifier
Followup: https://github.com/ruby/json/pull/889 https://github.com/ruby/json/commit/591510392a
This commit is contained in:
parent
4740b3d7aa
commit
2f9e0d355e
@ -418,7 +418,7 @@ static ALWAYS_INLINE() unsigned char sse2_next_match(search_state *search)
|
||||
#define TARGET_SSE2
|
||||
#endif
|
||||
|
||||
static inline TARGET_SSE2 ALWAYS_INLINE() unsigned char search_escape_basic_sse2(search_state *search)
|
||||
static TARGET_SSE2 ALWAYS_INLINE() unsigned char search_escape_basic_sse2(search_state *search)
|
||||
{
|
||||
if (RB_UNLIKELY(search->has_matches)) {
|
||||
// There are more matches if search->matches_mask > 0.
|
||||
|
||||
@ -136,7 +136,7 @@ static inline uint8x16x4_t load_uint8x16_4(const unsigned char *table)
|
||||
#define _mm_cmpgt_epu8(a, b) _mm_xor_si128(_mm_cmple_epu8(a, b), _mm_set1_epi8(-1))
|
||||
#define _mm_cmplt_epu8(a, b) _mm_cmpgt_epu8(b, a)
|
||||
|
||||
static inline TARGET_SSE2 ALWAYS_INLINE() int compute_chunk_mask_sse2(const char *ptr)
|
||||
static TARGET_SSE2 ALWAYS_INLINE() int compute_chunk_mask_sse2(const char *ptr)
|
||||
{
|
||||
__m128i chunk = _mm_loadu_si128((__m128i const*)ptr);
|
||||
// Trick: c < 32 || c == 34 can be factored as c ^ 2 < 33
|
||||
@ -147,7 +147,7 @@ static inline TARGET_SSE2 ALWAYS_INLINE() int compute_chunk_mask_sse2(const char
|
||||
return _mm_movemask_epi8(needs_escape);
|
||||
}
|
||||
|
||||
static inline TARGET_SSE2 ALWAYS_INLINE() int string_scan_simd_sse2(const char **ptr, const char *end, int *mask)
|
||||
static TARGET_SSE2 ALWAYS_INLINE() int string_scan_simd_sse2(const char **ptr, const char *end, int *mask)
|
||||
{
|
||||
while (*ptr + sizeof(__m128i) <= end) {
|
||||
int chunk_mask = compute_chunk_mask_sse2(*ptr);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user