summaryrefslogtreecommitdiff
path: root/lib/libc/arch
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2004-07-22 08:52:37 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2004-07-22 08:52:37 +0000
commitb37988958a17122010019bbff27da994d99e9fbf (patch)
treeec9d3c81460e46928bb7dbc982465418975dec89 /lib/libc/arch
parentbf90844ed23846d32bd82f2b60ef39dd83175904 (diff)
Do not overallocate stack space, and keep the stack on a 16-byte boundary.
Diffstat (limited to 'lib/libc/arch')
-rw-r--r--lib/libc/arch/m88k/gen/fabs.S14
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/libc/arch/m88k/gen/fabs.S b/lib/libc/arch/m88k/gen/fabs.S
index 0e30b1fba10..271a17446fd 100644
--- a/lib/libc/arch/m88k/gen/fabs.S
+++ b/lib/libc/arch/m88k/gen/fabs.S
@@ -30,7 +30,7 @@
#if defined(LIBC_SCCS)
.data
- .string "$OpenBSD: fabs.S,v 1.3 2003/01/07 22:01:29 miod Exp $"
+ .string "$OpenBSD: fabs.S,v 1.4 2004/07/22 08:52:36 miod Exp $"
#endif /* LIBC_SCCS */
#include "DEFS.h"
@@ -40,11 +40,11 @@
*/
ENTRY(fabs)
- subu r31,r31,40
- st.d r2,r31,32
- ld.bu r4,r31,32
+ subu r31,r31,16
+ st.d r2,r31,0
+ ld.bu r4,r31,0
mask r4,r4,0x7f /* set sign bit to 0 */
- st.b r4,r31,32
- ld.d r2,r31,32
+ st.b r4,r31,0
+ ld.d r2,r31,0
jmp.n r1
- addu r31,r31,40
+ addu r31,r31,16