Skip to content

Commit d1ab568

Browse files
[libc][math][C23] Correct sinpif range reduction comment
1 parent 717d839 commit d1ab568

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

libc/src/math/generic/sinpif.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,13 @@ LLVM_LIBC_FUNCTION(float, sinpif, (float x)) {
2626
double xd = static_cast<double>(x);
2727

2828
// Range reduction:
29-
// For |x| > pi/32, we perform range reduction as follows:
29+
// For |x| > 1/32, we perform range reduction as follows:
3030
// Find k and y such that:
3131
// x = (k + y) * 1/32
3232
// k is an integer
3333
// |y| < 0.5
34-
// For small range (|x| < 2^45 when FMA instructions are available, 2^22
35-
// otherwise), this is done by performing:
34+
//
35+
// This is done by performing:
3636
// k = round(x * 32)
3737
// y = x * 32 - k
3838
//

0 commit comments

Comments
 (0)