Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-5]: src/lib/libm/arch/i387 Pull up revision 1.6 (requested by f...
details: https://anonhg.NetBSD.org/src/rev/a31376e185b5
branches: netbsd-1-5
changeset: 493017:a31376e185b5
user: he <he%NetBSD.org@localhost>
date: Thu Mar 28 22:54:47 2002 +0000
description:
Pull up revision 1.6 (requested by fvdl):
Fix stack usage so that a signal delivered in ceil() or floor()
no longer corrupts the stack.
diffstat:
lib/libm/arch/i387/s_ceil.S | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diffs (34 lines):
diff -r 13e32a20cb71 -r a31376e185b5 lib/libm/arch/i387/s_ceil.S
--- a/lib/libm/arch/i387/s_ceil.S Thu Mar 28 22:49:02 2002 +0000
+++ b/lib/libm/arch/i387/s_ceil.S Thu Mar 28 22:54:47 2002 +0000
@@ -5,24 +5,24 @@
#include <machine/asm.h>
-RCSID("$NetBSD: s_ceil.S,v 1.4 1995/05/08 23:52:13 jtc Exp $")
+RCSID("$NetBSD: s_ceil.S,v 1.4.16.1 2002/03/28 22:54:47 he Exp $")
ENTRY(ceil)
pushl %ebp
movl %esp,%ebp
subl $8,%esp
- fstcw -12(%ebp) /* store fpu control word */
- movw -12(%ebp),%dx
+ fstcw -4(%ebp) /* store fpu control word */
+ movw -4(%ebp),%dx
orw $0x0800,%dx /* round towards +oo */
andw $0xfbff,%dx
- movw %dx,-16(%ebp)
- fldcw -16(%ebp) /* load modfied control word */
+ movw %dx,-8(%ebp)
+ fldcw -8(%ebp) /* load modfied control word */
fldl 8(%ebp); /* round */
frndint
- fldcw -12(%ebp) /* restore original control word */
+ fldcw -4(%ebp) /* restore original control word */
leave
ret
Home |
Main Index |
Thread Index |
Old Index