Clean up the FPU stack before returning. One stack slot was leaked on

every call.  The damage was sometimes limited by other routines using
and freeing stack slots that should have been empty to being with.
This commit is contained in:
bde 1996-12-14 16:24:42 +00:00
parent 669ca89787
commit 14480319f6
2 changed files with 4 additions and 2 deletions

View File

@ -35,10 +35,11 @@
#include <machine/asmacros.h>
RCSID("$Id: e_scalb.S,v 1.1.1.1 1994/08/19 09:40:00 jkh Exp $")
RCSID("$Id: e_scalb.S,v 1.2 1994/08/19 11:14:19 jkh Exp $")
ENTRY(__ieee754_scalb)
fldl 12(%esp)
fldl 4(%esp)
fscale
fstp %st(1)
ret

View File

@ -35,10 +35,11 @@
#include <machine/asmacros.h>
RCSID("$Id: s_scalbn.S,v 1.1.1.1 1994/08/19 09:40:01 jkh Exp $")
RCSID("$Id: s_scalbn.S,v 1.2 1994/08/19 11:14:30 jkh Exp $")
ENTRY(scalbn)
fildl 12(%esp)
fldl 4(%esp)
fscale
fstp %st(1)
ret