diff options
author | 2013-07-15 18:50:32 +0000 | |
---|---|---|
committer | 2013-07-15 18:50:32 +0000 | |
commit | be1b5fbea1ba9d33ebb09daeb2b900c2334f2a03 (patch) | |
tree | fff0ae16a351457f354cde8b3040947d66db45b0 | |
parent | Use getpropstringA(), not getpropstring(), to get the card's name. This ensures (diff) | |
download | wireguard-openbsd-be1b5fbea1ba9d33ebb09daeb2b900c2334f2a03.tar.xz wireguard-openbsd-be1b5fbea1ba9d33ebb09daeb2b900c2334f2a03.zip |
Fix atan2f() and hypotf() by actually converting both their arguments to the
larger type and passing them both the the double routine.
-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 |