diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2013-07-15 18:50:33 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2013-07-15 18:50:33 +0000 |
commit | f31c58e2c9b61eb21b8016685dc8907824c40a43 (patch) | |
tree | 0adcd74db3c5155b53b71c61abd46546b9304eb6 /lib/libm/arch | |
parent | e20b3c364c93e7648bb049b043dfc6b2c77b05cd (diff) |
Fix atan2f() and hypotf() by actually converting both their arguments to the
larger type and passing them both the the double routine.
Diffstat (limited to 'lib/libm/arch')
-rw-r--r-- | lib/libm/arch/vax/n_atan2.S | 5 | ||||
-rw-r--r-- | lib/libm/arch/vax/n_hypot.S | 5 |
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 |