summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/libm/arch/vax/n_atan2.S5
-rw-r--r--lib/libm/arch/vax/n_hypot.S5
2 files changed, 6 insertions, 4 deletions
diff --git a/lib/libm/arch/vax/n_atan2.S b/lib/libm/arch/vax/n_atan2.S
index 19281bc8918..ba1a022a55e 100644
--- a/lib/libm/arch/vax/n_atan2.S
+++ b/lib/libm/arch/vax/n_atan2.S
@@ -1,4 +1,4 @@
-/* $OpenBSD: n_atan2.S,v 1.9 2013/07/15 04:03:41 espie Exp $ */
+/* $OpenBSD: n_atan2.S,v 1.10 2013/07/15 18:50:32 miod Exp $ */
/* $NetBSD: n_atan2.S,v 1.1 1995/10/10 23:40:25 ragge Exp $ */
/*
* Copyright (c) 1985, 1993
@@ -74,8 +74,9 @@
*/
ENTRY(atan2f, 0)
+ cvtfd 8(%ap),-(%sp)
cvtfd 4(%ap),-(%sp)
- calls $2,_C_LABEL(atan2)
+ calls $4,_C_LABEL(atan2)
cvtdf %r0,%r0
ret
diff --git a/lib/libm/arch/vax/n_hypot.S b/lib/libm/arch/vax/n_hypot.S
index fde36eb9166..680cfe5a792 100644
--- a/lib/libm/arch/vax/n_hypot.S
+++ b/lib/libm/arch/vax/n_hypot.S
@@ -1,4 +1,4 @@
-/* $OpenBSD: n_hypot.S,v 1.3 2013/07/15 04:03:41 espie Exp $ */
+/* $OpenBSD: n_hypot.S,v 1.4 2013/07/15 18:50:32 miod Exp $ */
/* $NetBSD: n_cabs.S,v 1.1 1995/10/10 23:40:26 ragge Exp $ */
/*
* Copyright (c) 1985, 1993
@@ -44,8 +44,9 @@
/* entry for c functions cabs and hypot */
ENTRY(hypotf, 0)
+ cvtfd 8(%ap),-(%sp)
cvtfd 4(%ap),-(%sp)
- calls $2,_C_LABEL(hypot)
+ calls $4,_C_LABEL(hypot)
cvtdf %r0,%r0
ret