You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
easing_matches_python_bit_exactly fails on x86_64 CPUs without FMA (glibc libm variants) #56
Cause: CPython 3.12 with the same glibc on the same CPU produces exactly the Rust values (0 ulp), so this is not Rust codegen. glibc's x86_64 libm selects sin/pow/exp/... implementations at runtime (FMA/AVX2 vs SSE2 variants). The goldens match the correctly rounded sin results, while the SSE2 sin is 1 ulp off for sin(0.5356415474370597) and sin(-4.4750242021134605). The bezier's Newton iterations amplify a last-bit libm difference to 17 ulp.
Suggestion: bit-exactness on "Linux/glibc" is CPU-dependent, so use the existing 1e-15 absolute tolerance there too (or an ulp bound with an absolute floor for values near zero). The largest measured difference is 2.36e-16.
Activity