@@ -59,7 +59,7 @@ LLVM_LIBC_FUNCTION(float16, asinpif16, (float16 x)) {
5959 bool is_neg = static_cast <bool >(x_uint >> 15 );
6060 float16 x_abs = is_neg ? -x : x;
6161
62- auto __signed_result = [is_neg](float16 r) -> float16 {
62+ auto signed_result = [is_neg](float16 r) -> float16 {
6363 return is_neg ? -r : r;
6464 };
6565
@@ -82,9 +82,8 @@ LLVM_LIBC_FUNCTION(float16, asinpif16, (float16 x)) {
8282
8383#ifndef LIBC_MATH_HAS_SKIP_ACCURATE_PASS
8484 // exceptional values
85- if (auto r = ASINFPI_EXCEPTS.lookup (x_uint); LIBC_UNLIKELY (r.has_value ())) {
85+ if (auto r = ASINFPI_EXCEPTS.lookup (x_uint); LIBC_UNLIKELY (r.has_value ()))
8686 return r.value ();
87- }
8887#endif // !LIBC_MATH_HAS_SKIP_ACCURATE_PASS
8988
9089 // the coefficients for the polynomial approximation of asin(x)/pi in the
@@ -121,7 +120,7 @@ LLVM_LIBC_FUNCTION(float16, asinpif16, (float16 x)) {
121120
122121 // polynomial evaluation using horner's method
123122 // work only for |x| in [0, 0.5]
124- auto __asinpi_polyeval = [](float16 xsq) -> float16 {
123+ auto asinpi_polyeval = [](float16 xsq) -> float16 {
125124 return fputil::polyeval (xsq, POLY_COEFFS[0 ], POLY_COEFFS[1 ], POLY_COEFFS[2 ],
126125 POLY_COEFFS[3 ], POLY_COEFFS[4 ], POLY_COEFFS[5 ],
127126 POLY_COEFFS[6 ], POLY_COEFFS[7 ], POLY_COEFFS[8 ],
@@ -132,8 +131,8 @@ LLVM_LIBC_FUNCTION(float16, asinpif16, (float16 x)) {
132131 if (LIBC_UNLIKELY (x_abs <= ONE_OVER_TWO)) {
133132 // Use polynomial approximation of asin(x)/pi in the range [0, 0.5]
134133 float16 xsq = x * x;
135- float16 result = x * __asinpi_polyeval (xsq);
136- return fputil::cast<float16>(__signed_result (result));
134+ float16 result = x * asinpi_polyeval (xsq);
135+ return fputil::cast<float16>(signed_result (result));
137136 }
138137
139138 // If |x| > 0.5, we need to use the range reduction method:
@@ -165,10 +164,10 @@ LLVM_LIBC_FUNCTION(float16, asinpif16, (float16 x)) {
165164
166165 float16 u = fputil::multiply_add (-ONE_OVER_TWO, x_abs, ONE_OVER_TWO);
167166 float16 u_sqrt = fputil::sqrt<float16>(u);
168- float16 asinpi_sqrt_u = u_sqrt * __asinpi_polyeval (u);
167+ float16 asinpi_sqrt_u = u_sqrt * asinpi_polyeval (u);
169168 float16 result = fputil::multiply_add (-2 .0f16, asinpi_sqrt_u, ONE_OVER_TWO);
170169
171- return fputil::cast<float16>(__signed_result (result));
170+ return fputil::cast<float16>(signed_result (result));
172171}
173172
174173} // namespace LIBC_NAMESPACE_DECL
0 commit comments