Jean Boussier
069a24c93c
[ruby/json] Don't assume __builtin_cpu_supports
exists
...
Fix: https://github.com/ruby/json/issues/827
On very old compilers it might not exist, at that point
might as well skip SIMD entirely.
da878435dc
2025-07-25 11:11:23 +09:00
Nobuyoshi Nakada
8a2210b351
[ruby/json] Refactor simd/conf.rb - duplicate code
...
Integrate duplicate code by extracting headers, types and
initialization code.
1a768d9179
2025-07-01 15:35:36 +09:00
Nobuyoshi Nakada
f909c907bb
[ruby/json] Refactor simd/conf.rb - unnecessary have_type
...
Remove `have_type` calls because the next `try_compile` calls check
those types.
b08e1ca2c1
2025-07-01 15:35:35 +09:00
Nobuyoshi Nakada
7d9c3004cf
[ruby/json] Refactor simd/conf.rb - conditions to enable
...
See the results of `have_type` and `try_compile` in addition to
`have_header` for NEON as well as x86_64. The former results were
just ignored, and `HAVE_TYPE_` macros are unused too.
fdbb6062c2
2025-07-01 15:35:35 +09:00
Nobuyoshi Nakada
a9e2a818bd
[ruby/json] Refactor simd/conf.rb - balance
...
Align code for arm and x86_64 in parallel.
2211e30a59
2025-07-01 15:35:34 +09:00
Nobuyoshi Nakada
60eb1d5d23
[ruby/json] Refactor simd/conf.rb - compiler warnings
...
Suppress warnings for old style function definition and unused
variable.
58dc0aa938
2025-07-01 15:35:33 +09:00
Hiroshi SHIBATA
43d27eb129
Adjust ruby/ruby directory structure
2025-06-30 12:56:50 +09:00