diff options
| author | David Schultz <das@FreeBSD.org> | 2005-05-31 22:16:54 +0000 |
|---|---|---|
| committer | David Schultz <das@FreeBSD.org> | 2005-05-31 22:16:54 +0000 |
| commit | f768ec06e60fed5e5c14e6d9ced247e090829ae1 (patch) | |
| tree | 8c748086721116ed72b7a233bcf7899421a6f840 /lib/msun | |
| parent | f792d29609bdd64d454f30b7b2415ae37f474741 (diff) | |
Notes
Diffstat (limited to 'lib/msun')
| -rw-r--r-- | lib/msun/i387/s_ceilf.S | 10 | ||||
| -rw-r--r-- | lib/msun/i387/s_floorf.S | 10 |
2 files changed, 10 insertions, 10 deletions
diff --git a/lib/msun/i387/s_ceilf.S b/lib/msun/i387/s_ceilf.S index 0b15a1f4c28b..473d30951d2b 100644 --- a/lib/msun/i387/s_ceilf.S +++ b/lib/msun/i387/s_ceilf.S @@ -13,17 +13,17 @@ ENTRY(ceilf) 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 */ flds 8(%ebp); /* round */ frndint - fldcw -12(%ebp) /* restore original control word */ + fldcw -4(%ebp) /* restore original control word */ leave ret diff --git a/lib/msun/i387/s_floorf.S b/lib/msun/i387/s_floorf.S index 64a1031f6b58..f1000fef7659 100644 --- a/lib/msun/i387/s_floorf.S +++ b/lib/msun/i387/s_floorf.S @@ -13,17 +13,17 @@ ENTRY(floorf) 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 $0x0400,%dx /* round towards -oo */ andw $0xf7ff,%dx - movw %dx,-16(%ebp) - fldcw -16(%ebp) /* load modfied control word */ + movw %dx,-8(%ebp) + fldcw -8(%ebp) /* load modfied control word */ flds 8(%ebp); /* round */ frndint - fldcw -12(%ebp) /* restore original control word */ + fldcw -4(%ebp) /* restore original control word */ leave ret |
