mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-11-28 08:02:08 +00:00
[libc][math] Fix broken atan function.
This commit is contained in:
parent
6c75240da0
commit
8c9d685fa8
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user