[libc-commits] [libc] [libc] Fix compilation of new trig functions (PR #111987)
Joseph Huber via libc-commits
libc-commits at lists.llvm.org
Fri Oct 11 05:34:21 PDT 2024
================
@@ -99,7 +99,7 @@ LLVM_LIBC_FUNCTION(double, cos, (double x)) {
// Fast look up version, but needs 256-entry table.
// -sin(k * pi/128) = sin((k + 128) * pi/128)
// cos(k * pi/128) = sin(k * pi/128 + pi/2) = sin((k + 64) * pi/128).
- DoubleDouble msin_k = SIN_K_PI_OVER_128[(k + 128) & 255];
+ DoubleDouble sin_k = SIN_K_PI_OVER_128[(k + 128) & 255];
----------------
jhuber6 wrote:
done
https://github.com/llvm/llvm-project/pull/111987
More information about the libc-commits
mailing list