aboutsummaryrefslogtreecommitdiff
path: root/pl/math/expf.c
diff options
context:
space:
mode:
Diffstat (limited to 'pl/math/expf.c')
-rw-r--r--pl/math/expf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pl/math/expf.c b/pl/math/expf.c
index c325e45d5cc6..cd3cfa925c64 100644
--- a/pl/math/expf.c
+++ b/pl/math/expf.c
@@ -59,8 +59,8 @@ optr_aor_exp_f32 (float x)
/* Round and convert z to int, the result is in [-150*N, 128*N] and
ideally nearest int is used, otherwise the magnitude of r can be
bigger which gives larger approximation error. */
- kd = roundtoint (z);
- ki = converttoint (z);
+ kd = round (z);
+ ki = lround (z);
r = z - kd;
/* exp(x) = 2^(k/N) * 2^(r/N) ~= s * (C0*r^3 + C1*r^2 + C2*r + 1) */