Skip to content

Commit b08e1ca

Browse files
committed
Refactor simd/conf.rb - unnecessary have_type
Remove `have_type` calls because the next `try_compile` calls check those types.
1 parent fdbb606 commit b08e1ca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/json/ext/simd/conf.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
when /^(arm|aarch64)/
33
# Try to compile a small program using NEON instructions
44
if have_header('arm_neon.h') &&
5-
have_type('uint8x16_t', headers=['arm_neon.h']) && try_compile(<<~'SRC')
5+
try_compile(<<~'SRC')
66
#include <arm_neon.h>
77
int main(int argc, char **argv) {
88
uint8x16_t test = vdupq_n_u8(32);
@@ -14,7 +14,7 @@
1414
end
1515
when /^(x86_64|x64)/
1616
if have_header('x86intrin.h') &&
17-
have_type('__m128i', headers=['x86intrin.h']) && try_compile(<<~'SRC')
17+
try_compile(<<~'SRC')
1818
#include <x86intrin.h>
1919
int main(int argc, char **argv) {
2020
__m128i test = _mm_set1_epi8(32);

0 commit comments

Comments
 (0)