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:
parent
542372dbe8
commit
dc7ba38823
@ -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
|
* Copyright (c) 1992, 1993
|
||||||
@ -40,7 +40,7 @@
|
|||||||
#if 0
|
#if 0
|
||||||
static char sccsid[] = "@(#)frexp.c 8.1 (Berkeley) 6/4/93";
|
static char sccsid[] = "@(#)frexp.c 8.1 (Berkeley) 6/4/93";
|
||||||
#else
|
#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
|
||||||
#endif /* LIBC_SCCS and not lint */
|
#endif /* LIBC_SCCS and not lint */
|
||||||
|
|
||||||
@ -77,6 +77,6 @@ frexp(double value, int *eptr)
|
|||||||
return (u.dblu_d);
|
return (u.dblu_d);
|
||||||
} else {
|
} else {
|
||||||
*eptr = 0;
|
*eptr = 0;
|
||||||
return (0.0);
|
return (value);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user