[libc-commits] [PATCH] D133400: [libc][math] Implement asinf function correctly rounded for all rounding modes.
Kirill Okhotnikov via Phabricator via libc-commits
libc-commits at lists.llvm.org
Wed Sep 7 04:03:16 PDT 2022
orex added a comment.
Good job, Tue!
I have an optional suggestion. You can use formula
`asin(x)=1/2*acos(1-2*x^2)`
and, of course,
`acos(x)=pi/2-asin(x)`
for cases where `|x|>=0.5` Probably it can be much faster than `sqrt`.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D133400/new/
https://reviews.llvm.org/D133400
More information about the libc-commits
mailing list