[libc][math] Fix broken atan function.

This commit is contained in:
Kirill Okhotnikov 2022-08-30 23:04:00 +02:00
parent 6c75240da0
commit 8c9d685fa8

View File

@ -83,7 +83,7 @@ inline static double atan_eval(double x) {
ATAN_K[3], ATAN_K[4]);
double result;
if (one_over_x)
result = M_PI_2 - fputil::multiply_add(pe, v, ATAN_T[val - 1]);
result = M_MATH_PI_2 - fputil::multiply_add(pe, v, ATAN_T[val - 1]);
else
result = fputil::multiply_add(pe, v, ATAN_T[val - 1]);
return sign ? -result : result;