From 4b539a826b64d846d02a6cde9d6bcff22472af88 Mon Sep 17 00:00:00 2001 From: Szabolcs Nagy Date: Mon, 7 Oct 2013 18:41:03 +0000 Subject: math: use sqrtl if FLT_EVAL_METHOD==2 in acosh and acoshf this makes acosh slightly more precise around 1.0 on i386 --- src/math/acoshf.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/math/acoshf.c') diff --git a/src/math/acoshf.c b/src/math/acoshf.c index 16550f19..8a4ec4d5 100644 --- a/src/math/acoshf.c +++ b/src/math/acoshf.c @@ -1,5 +1,13 @@ #include "libm.h" +#if FLT_EVAL_METHOD==2 +#undef sqrtf +#define sqrtf sqrtl +#elif FLT_EVAL_METHOD==1 +#undef sqrtf +#define sqrtf sqrt +#endif + /* acosh(x) = log(x + sqrt(x*x-1)) */ float acoshf(float x) { -- cgit v1.2.1