Skip to content

Commit 9a1e08b

Browse files
committed
doc update
1 parent b6e0457 commit 9a1e08b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

libc/src/math/generic/cospif16.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,9 @@ LLVM_LIBC_FUNCTION(float16, cospif16, (float16 x)) {
6666
//
6767
// Once k and y are computed, we then deduce the answer by the sine of sum
6868
// formula:
69-
// sin(x * pi) = sin((k + y) * pi/32)
70-
// = sin(k * pi/32) * cos(y * pi/32) + sin (y * pi/32) * cos (k *
71-
// pi/32)
69+
// cos(x * pi) = cos((k + y) * pi/32)
70+
// = cos(k * pi/32) * cos(y * pi/32)
71+
// + sin(y * pi/32) * sin(k * pi/32)
7272
// The values of sin(k * pi/32) and cos (k * pi/32) for k = 0...63 are
7373
// precomputed and stored using a vector of 64 single precision floats. sin(y
7474
// * pi/32) and cos(y * pi/32) are computed using degree-9 chebyshev

libc/test/src/math/smoke/cospif16_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//===-- Unittests for sinpif16 --------------------------------------------===//
1+
//===-- Unittests for cospif16 --------------------------------------------===//
22
//
33
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
44
// See https://llvm.org/LICENSE.txt for license information.

0 commit comments

Comments
 (0)