Skip to content

Commit 6d9a926

Browse files
committed
[libc][math][c23] Update accuracy.
1 parent aa994f7 commit 6d9a926

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

libc/src/math/generic/acoshf16.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,9 @@ LLVM_LIBC_FUNCTION(float16, acoshf16, (float16 x)) {
7070
float delta = xf32 - 1.0f;
7171
float sqrt_2_delta = fputil::sqrt<float>(2.0 * delta);
7272
float x2 = delta;
73-
float pe = fputil::polyeval(x2, 0x1.0000000000000p+0f,
74-
-0x1.55551a83a9472p-4f, 0x1.331601c4b8ecfp-6f,
75-
-0x1.6890f49eb0acbp-8f, 0x1.8f3a617040a6ap-10f);
73+
float pe =
74+
fputil::polyeval(x2, 0x1.000000p+0f, -0x1.55551ap-4f, 0x1.33160cp-6f,
75+
-0x1.6890f4p-8f, 0x1.8f3a62p-10f);
7676
float approx = sqrt_2_delta * pe;
7777
return fputil::cast<float16>(approx);
7878
}

0 commit comments

Comments
 (0)