Skip to content

Add runtime SIMD instruction set detection.#992

Closed
samyron wants to merge 1 commit intoohler55:developfrom
samyron:sm/runtime-detect-simd-impl
Closed

Add runtime SIMD instruction set detection.#992
samyron wants to merge 1 commit intoohler55:developfrom
samyron:sm/runtime-detect-simd-impl

Conversation

@samyron
Copy link
Copy Markdown
Contributor

@samyron samyron commented Jan 24, 2026

This PR adds runtime SIMD instruction set detection. It does so by using __builtin_cpu_supports if it's available on x86-64.

Note: I'm not sure if this will work on Windows if the compiler isn't gcc or clang. In that case it would fall back to the scalar string scan code.

I believe this will resolve #989.

@samyron
Copy link
Copy Markdown
Contributor Author

samyron commented Jan 24, 2026

Closing in favor of #993.

@ohler55 ohler55 closed this Feb 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

oj gem 3.16.13 causes an illegal instruction on CPUs that do not support SSE4.2

2 participants