From ab9e20905dc1cb74d955cc94b5b76e6e1892b8fe Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Thu, 6 Feb 2020 13:29:45 -0500 Subject: fix excess precision in return value of i386 log-family functions --- src/math/i386/log1p.s | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/math/i386/log1p.s') diff --git a/src/math/i386/log1p.s b/src/math/i386/log1p.s index 354f391a..f3c95f83 100644 --- a/src/math/i386/log1p.s +++ b/src/math/i386/log1p.s @@ -10,10 +10,14 @@ log1p: cmp $0x00100000,%eax jb 2f fyl2xp1 + fstpl 4(%esp) + fldl 4(%esp) ret 1: fld1 faddp fyl2x + fstpl 4(%esp) + fldl 4(%esp) ret # subnormal x, return x with underflow 2: fsts 4(%esp) -- cgit v1.2.1