From a8f73bb1a685dd7d67669c6f6ceb255cfa967790 Mon Sep 17 00:00:00 2001 From: Szabolcs Nagy Date: Fri, 14 Dec 2012 18:29:56 +0100 Subject: math: fix i386/expl.s with more precise x*log2e with naive exp2l(x*log2e) the last 12bits of the result was incorrect for x with large absolute value with hi + lo = x*log2e is caluclated to 128 bits precision and then expl(x) = exp2l(hi) + exp2l(hi) * f2xm1(lo) this gives <1.5ulp measured error everywhere in nearest rounding mode --- src/math/i386/exp.s | 6 ------ 1 file changed, 6 deletions(-) (limited to 'src/math/i386/exp.s') diff --git a/src/math/i386/exp.s b/src/math/i386/exp.s index c7f5ad0f..e3b42af5 100644 --- a/src/math/i386/exp.s +++ b/src/math/i386/exp.s @@ -50,12 +50,6 @@ expf: flds 4(%esp) jmp 2f -.global expl -.type expl,@function -expl: - fldt 4(%esp) - jmp 2f - .global exp .type exp,@function exp: -- cgit v1.2.1