summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormiod <miod@openbsd.org>2004-07-22 08:52:36 +0000
committermiod <miod@openbsd.org>2004-07-22 08:52:36 +0000
commit9fb73daf88945898e5087fca8654827871a01c72 (patch)
tree4bd77a91b9e710ad49127d5ca7671b1304e71bf5
parentremove p arg from fdplock (diff)
downloadwireguard-openbsd-9fb73daf88945898e5087fca8654827871a01c72.tar.xz
wireguard-openbsd-9fb73daf88945898e5087fca8654827871a01c72.zip
Do not overallocate stack space, and keep the stack on a 16-byte boundary.
-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