On Tue Mar 12 20:45:00 2024 +0000, Piotr Caban wrote:
`exp2()` works incorrectly when 24-bit precision is used (`_control87(_PC_24, _MCW_PC)`). It's probably better to change the implementation so it's not affected by precision set on function call. I guess there's similar problem in other functions. I'm not sure what's the best way of addressing it (I guess it may be side effect of using SSE).
Ok, although I probably won't be volunteering to do that (you know better than me in which form you'd like it). I presume the previous implementation here didn't have these issues?
(I'm not sure how many of the other musl math functions that may have similar issues, this is the only one that did affect a notable test outcome for me so far. If the fix is easy and small enough, I would have suggested to backport it to further 9.0.x stable releases, as this issue was a notable regression when updating from 8.0.x to 9.0.x.)