Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ext/json/ext/generator/extconf.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
end
end

if have_header('x86intrin.h') && have_type('__m128i', headers=['x86intrin.h']) && try_compile(<<~'SRC', opt='-msse2')
if have_header('x86intrin.h') && have_type('__m128i', headers=['x86intrin.h']) && try_compile(<<~'SRC')
#include <x86intrin.h>
int main() {
__m128i test = _mm_set1_epi8(32);
Expand Down
4 changes: 2 additions & 2 deletions ext/json/ext/generator/generator.c
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,9 @@ typedef struct _search_state {
const char *chunk_end;
bool has_matches;

#ifdef HAVE_SIMD_NEON
#if defined(HAVE_SIMD_NEON)
uint64_t matches_mask;
#elif HAVE_SIMD_SSE2
#elif defined(HAVE_SIMD_SSE2)
int matches_mask;
#else
#error "Unknown SIMD Implementation."
Expand Down
Loading