summaryrefslogtreecommitdiff
path: root/libc/src/math/generic/pow.cpp
AgeCommit message (Collapse)Author
2025-10-05[libc][math] Refactor exp2 implementation to header-only in ↵Muhammad Bassiouni
src/__support/math folder. (#161297) Part of #147386 in preparation for: https://discourse.llvm.org/t/rfc-make-clang-builtin-math-functions-constexpr-with-llvm-libc-to-support-c-23-constexpr-math-functions/86450
2025-04-08[libc][math] Fix signaling NaN handling for math functions. (#133347)wldfngrs
Add tests for signaling NaNs, and fix function behavior for handling signaling NaN input. Fixes https://github.com/llvm/llvm-project/issues/124812
2025-03-11[libc] Provide more fine-grained control of FMA instruction for ARM targets. ↵lntue
(#130700)
2025-02-11[libc][math] Add float-only option for atan2f. (#122979)lntue
For targets that have single precision FPU but not double precision FPU such as Cortex M4, only using float-float in the intermediate computations might reduce the code size compared to using double. In this case, when the exact pass is skipped, the float-only option for atan2f implemented in this PR reduces the code size of this function by ~1 KB compared to the double precision version.
2024-10-26[libc][math] Add tests and fix some issues with FTZ/DAZ modes. (#113744)lntue
2024-10-10[libc][math] Improve performance of double precision trig functions. (#111793)lntue
- Improve the accuracy of fast pass' range reduction. - Provide tighter error estimations. - Reduce the table size when `LIBC_MATH_SMALL_TABLES` flag is set.
2024-10-01[libc][math] Fix exceptional cases pow(-0, 1/2) and pow(-inf, 1/2). (#110566)lntue
2024-08-06[libc][math] Improve the error analysis and accuracy for pow function. (#102098)lntue
2024-08-05[libc][math] Implement fast pass for double precision pow function with up ↵lntue
to 1ULP error. (#101926)
2023-04-20[libc][math] Remove placeholder implementations of asin and pow.Tue Ly
Reviewed By: sivachandra Differential Revision: https://reviews.llvm.org/D148781
2022-10-31[libc][math] Add place-holder implementation for pow function.Tue Ly
Add place-holder implementation for pow function to unblock libc demo examples. Reviewed By: michaelrj Differential Revision: https://reviews.llvm.org/D137109