• S
    math: fix sinh overflows in non-nearest rounding · d2055814
    Szabolcs Nagy 提交于
    The final rounding operation should be done with the correct sign
    otherwise huge results may incorrectly get rounded to or away from
    infinity in upward or downward rounding modes.
    
    This affected sinh and sinhf which set the sign on the result after
    a potentially overflowing mul. There may be other non-nearest rounding
    issues, but this was a known long standing issue with large ulp error
    (depending on how ulp is defined near infinity).
    
    The fix should have no effect on sinh and sinhf performance but may
    have a tiny effect on cosh and coshf.
    d2055814
libm.h 7.2 KB