aboutsummaryrefslogtreecommitdiff
path: root/libc/src/math/generic/cos.cpp
AgeCommit message (Collapse)AuthorFilesLines
2025-04-08[libc][math] Fix signaling NaN handling for math functions. (#133347)wldfngrs1-1/+5
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. ↵lntue1-2/+2
(#130700)
2024-10-11[libc] Fix compilation of new trig functions (#111987)Joseph Huber1-1/+1
2024-10-10[libc][math] Improve performance of double precision trig functions. (#111793)lntue1-66/+51
- 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-08-09[libc] Moved range_reduction_double ifdef statement (#102659)RoseZhang031-20/+0
Sin/cos/tan fuzzers were having issues with ONE_TWENTY_EIGHT_OVER_PI, so the LIBC_TARGET_CPU_HAS_FMA ifdef statement got moved from the sin/cos/tan .cpp files to the range_reduction_double_common.cpp file.
2024-07-12[libc] Migrate to using LIBC_NAMESPACE_DECL for namespace declaration (#98597)Petr Hosek1-2/+3
This is a part of #97655.
2024-07-12Revert "[libc] Migrate to using LIBC_NAMESPACE_DECL for namespace ↵Mehdi Amini1-3/+2
declaration" (#98593) Reverts llvm/llvm-project#98075 bots are broken
2024-07-11[libc] Migrate to using LIBC_NAMESPACE_DECL for namespace declaration (#98075)Petr Hosek1-2/+3
This is a part of #97655.
2024-07-07[libc] fix aarch64 GCC build (#97932)Schrodinger ZHU Yifan1-1/+1
This PR fix several build errors on aarch64 targets when building with gcc: - uninitialized values leading to `Werrors` - undefined builtin functions - glibc header pollution
2024-06-25[libc][math] Implement double precision cos correctly rounded to all ↵lntue1-0/+197
rounding modes. (#96591) Sharing the same algorithm as double precision sin: https://github.com/llvm/llvm-project/pull/95736