From a1fe3592c65d7226e9961a82801b61650acd0b36 Mon Sep 17 00:00:00 2001 From: jmc Date: Wed, 27 Mar 2002 03:41:54 +0000 Subject: [PATCH] Correct mistaken signature for _Qp_dtoq. It gets a double passed in, not a pointer to double which causes obvious errors on evaluation --- lib/libc/arch/sparc64/softfloat/qp.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/lib/libc/arch/sparc64/softfloat/qp.c b/lib/libc/arch/sparc64/softfloat/qp.c index 3d5b70d30c72..7e0c0e69d4a4 100644 --- a/lib/libc/arch/sparc64/softfloat/qp.c +++ b/lib/libc/arch/sparc64/softfloat/qp.c @@ -1,4 +1,4 @@ -/* $NetBSD: qp.c,v 1.1 2002/02/05 07:53:05 jmc Exp $ */ +/* $NetBSD: qp.c,v 1.2 2002/03/27 03:41:54 jmc Exp $ */ #include #include @@ -49,11 +49,13 @@ void _Qp_div(float128 *c, float128 *a, float128 *b) } -void _Qp_dtoq(float128 *c, float64 *a); +void _Qp_dtoq(float128 *c, double a); -void _Qp_dtoq(float128 *c, float64 *a) +void _Qp_dtoq(float128 *c, double a) { - *c = float64_to_float128(*a); + float64 _b; + memcpy (&_b, &a, sizeof(float64)); + *c = float64_to_float128(b); }