From dc7ba3882303125e28a008608342adc1a596c7e7 Mon Sep 17 00:00:00 2001 From: drochner Date: Sun, 14 Sep 2008 13:38:38 +0000 Subject: [PATCH] fix the -0.0 case, fixes a gm4 test error reported by wiz (normally, the libm implementation should be used) --- lib/libc/compat/gen/compat_frexp_ieee754.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/libc/compat/gen/compat_frexp_ieee754.c b/lib/libc/compat/gen/compat_frexp_ieee754.c index f9b8df7f0d03..61fb3e272912 100644 --- a/lib/libc/compat/gen/compat_frexp_ieee754.c +++ b/lib/libc/compat/gen/compat_frexp_ieee754.c @@ -1,4 +1,4 @@ -/* $NetBSD: compat_frexp_ieee754.c,v 1.2 2006/07/03 13:33:39 drochner Exp $ */ +/* $NetBSD: compat_frexp_ieee754.c,v 1.3 2008/09/14 13:38:38 drochner Exp $ */ /* * Copyright (c) 1992, 1993 @@ -40,7 +40,7 @@ #if 0 static char sccsid[] = "@(#)frexp.c 8.1 (Berkeley) 6/4/93"; #else -__RCSID("$NetBSD: compat_frexp_ieee754.c,v 1.2 2006/07/03 13:33:39 drochner Exp $"); +__RCSID("$NetBSD: compat_frexp_ieee754.c,v 1.3 2008/09/14 13:38:38 drochner Exp $"); #endif #endif /* LIBC_SCCS and not lint */ @@ -77,6 +77,6 @@ frexp(double value, int *eptr) return (u.dblu_d); } else { *eptr = 0; - return (0.0); + return (value); } }