use libm for acosh and asinh for f16, f32, and f64#154051
use libm for acosh and asinh for f16, f32, and f64#154051malezjaa wants to merge 1 commit intorust-lang:mainfrom
Conversation
|
r? @joboet rustbot has assigned @joboet. Use Why was this reviewer chosen?The reviewer was selected based on:
|
|
Hello @malezjaa, |
|
I'm really sorry about that. I should've checked If anyone was already assigned to this issue. I'll do that from now on. |
This comment has been minimized.
This comment has been minimized.
4a67c1e to
90a7256
Compare
|
This PR was rebased onto a different main commit. Here's a range-diff highlighting what actually changed. Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers. |
|
Happy to review this or alternatives, unless you have a preference @joboet r? tgross35 |
Can we just call libm via the Can you also clarify what approximations you are referencing? This isn't what is in https://github.com/rust-lang/compiler-builtins/blob/644346f0541f74fc425070f8e0712f2dac898e11/libm/src/math/acosh.rs. |
3a210bb to
538e681
Compare
|
Oh yeah that makes sense. I'll update the PR title and description to show that we're now using libm for these functions. |
|
The job Click to see the possible cause of the failure (guessed by this bot) |
Fixes #153878
Uses libm for
acoshandasinhforf16,f32, andf64.I didn't change impl for f128 as i couldn't find existing function for these in libm