Skip to content

Commit 26b757a

Browse files
committed
updated occurrences of PI_2 with PI_OVER_2, to match existing declaration
1 parent f8b3c3a commit 26b757a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libc/src/math/generic/acosf16.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,15 +80,15 @@ LLVM_LIBC_FUNCTION(float16, acosf16, (float16 x)) {
8080
if (x_abs <= 0x3800) {
8181
// if x is 0, return pi/2
8282
if (LIBC_UNLIKELY(x_abs == 0))
83-
return fputil::cast<float16>(PI_2);
83+
return fputil::cast<float16>(PI_OVER_2);
8484

8585
// Note that: acos(x) = pi/2 + asin(-x) = pi/2 - asin(x)
8686
// Degree-6 minimax polynomial of asin(x) generated by Sollya with:
8787
// > P = fpminimax(asin(x)/x, [|0, 2, 4, 6, 8|], [|SG...|], [0, 0.5]);
8888
float interm =
8989
fputil::polyeval(xsq, 0x1.000002p0f, 0x1.554c2ap-3f, 0x1.3541ccp-4f,
9090
0x1.43b2d6p-5f, 0x1.a0d73ep-5f);
91-
return fputil::cast<float16>(fputil::multiply_add(-xf, interm, PI_2));
91+
return fputil::cast<float16>(fputil::multiply_add(-xf, interm, PI_OVER_2));
9292
}
9393

9494
// When |x| > 0.5, assume that 0.5 < |x| <= 1

0 commit comments

Comments
 (0)