-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Fix: expose std.math.ldexp as C ldexp in compiler-rt to address LLVM release-mode simplification #24006
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Ok I close my Pull Request. The task of removing the entries in |
As mentioned on #24005, this needs to remove any duplicate C implementations in |
Converting this to a draft for now - it needs a bit more testing before it's ready for review |
Fixes #23358
Adds the ldexp family of functions to compiler_rt, proxying the implementation to std.math.ldexp. Inspired by the approach taken to exp2, which does not appear to handle errno when wrapping std.math.
A duplicate approach appeared as I was running the final tests:
#24005
I have regression tests which may be worth integrating if the above approach is preferred.