Skip to content

Commit 36ed377

Browse files
committed
uesless using signed_result in [0,0.5]
1 parent cf02f7c commit 36ed377

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libc/src/math/generic/asinpif16.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,8 @@ LLVM_LIBC_FUNCTION(float16, asinpif16, (float16 x)) {
110110
// if |x| <= 0.5:
111111
if (LIBC_UNLIKELY(x_abs <= 0.5f16)) {
112112
// Use polynomial approximation of asin(x)/pi in the range [0, 0.5]
113-
double result = asinpi_polyeval(fputil::cast<double>(x_abs));
114-
return fputil::cast<float16>(signed_result(result));
113+
double result = asinpi_polyeval(fputil::cast<double>(x));
114+
return fputil::cast<float16>(result);
115115
}
116116

117117
// If |x| > 0.5, we need to use the range reduction method:

0 commit comments

Comments
 (0)