Skip to content

NEON: replace numeric conversion with bit reinterpretation in SIMD log#70

Merged
zkingston merged 1 commit intoKavrakiLab:mainfrom
mlsdpk:fix/neon-log
Sep 22, 2025
Merged

NEON: replace numeric conversion with bit reinterpretation in SIMD log#70
zkingston merged 1 commit intoKavrakiLab:mainfrom
mlsdpk:fix/neon-log

Conversation

@mlsdpk
Copy link
Contributor

@mlsdpk mlsdpk commented Sep 21, 2025

Neon SIMD log was clamping via integer->float conversion instead of a bit reinterpretation of FLT_MIN, and exponent masking wasn’t purely bitwise. This PR switches to a bit cast and explicit bit masking.

I noticed this while testing AORRTC: it causes ProlateHyperspheroidRNG in AORRTC to produce NaNs, so informed sampling didn’t work as intended. The issue only affects ARM/NEON builds.

@zkingston zkingston merged commit eb1d5a4 into KavrakiLab:main Sep 22, 2025
7 checks passed
@zkingston
Copy link
Collaborator

Thanks for the contribution!

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.

2 participants