mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-22 11:17:19 +00:00
Clean up the FP stack before returning. The i387 exp() leaked an FP
register on its first call. Subsequent calls reused the register so the leak didn't accumulate. Fixes PR 1275.
This commit is contained in:
parent
b68933975f
commit
f05bebb3ad
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=16054
@ -35,7 +35,7 @@
|
||||
|
||||
#include <machine/asmacros.h>
|
||||
|
||||
RCSID("$Id: e_exp.S,v 1.1.1.1 1994/08/19 09:40:00 jkh Exp $")
|
||||
RCSID("$Id: e_exp.S,v 1.2 1994/08/19 11:14:14 jkh Exp $")
|
||||
|
||||
/* e^x = 2^(x * log2(e)) */
|
||||
ENTRY(__ieee754_exp)
|
||||
@ -50,4 +50,5 @@ ENTRY(__ieee754_exp)
|
||||
fld1
|
||||
faddp /* 2^(fract(x * log2(e))) */
|
||||
fscale /* e^x */
|
||||
fstpl %st(1)
|
||||
ret
|
||||
|
Loading…
Reference in New Issue
Block a user