fix the -0.0 case, fixes a gm4 test error reported by wiz

(normally, the libm implementation should be used)
This commit is contained in:
drochner 2008-09-14 13:38:38 +00:00
parent 542372dbe8
commit dc7ba38823

View File

@ -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);
}
}