Skip to content

f64 hyperbolic: drop regressing fast paths, keep asinh win#119

Merged
arduano merged 1 commit intofeat/f64-wave-1from
feat/f64-hyperbolic-audit
Mar 22, 2026
Merged

f64 hyperbolic: drop regressing fast paths, keep asinh win#119
arduano merged 1 commit intofeat/f64-wave-1from
feat/f64-hyperbolic-audit

Conversation

@arduano
Copy link
Owner

@arduano arduano commented Mar 22, 2026

Summary

  • revert f64 sinh_u35, cosh_u35, tanh_u35 to scalar-mapped implementations (map::unary_f64)
  • revert f64 acosh_u35 and atanh_u35 to scalar-mapped implementations
  • keep existing f64 asinh_u35 SIMD fast path (still a strong benchmark win)
  • add targeted f64 signed-zero semantic checks for hyperbolic and inverse-hyperbolic families

Why

On x86, the family-local f64 fast paths for sinh/cosh/tanh and atanh were clear regressions, and acosh was still a mild regression. This change keeps only the worthwhile implementation (asinh) and routes the others through safer scalar mapping.

Validation

  • cargo test --tests
  • cargo bench --bench simd_math -- 'simd_math/f64/(sinh_u35|cosh_u35|tanh_u35)'
  • cargo bench --bench simd_math_remaining_baseline -- 'simd_math_baseline/f64/(asinh_u35|acosh_u35|atanh_u35)'

@arduano arduano merged commit f8052b8 into feat/f64-wave-1 Mar 22, 2026
4 checks passed
@arduano arduano deleted the feat/f64-hyperbolic-audit branch March 22, 2026 21:51
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.

1 participant