avoid some uninitalised variable warnings.
This commit is contained in:
parent
259d2a08e1
commit
bf90b28081
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: hdtoa.c,v 1.8 2011/03/21 23:37:42 enami Exp $ */
|
||||
/* $NetBSD: hdtoa.c,v 1.9 2011/07/04 11:46:41 mrg Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2004, 2005 David Schultz <das@FreeBSD.ORG>
|
||||
|
@ -30,7 +30,7 @@
|
|||
#if 0
|
||||
__FBSDID("$FreeBSD: src/lib/libc/gdtoa/_hdtoa.c,v 1.4 2007/01/03 04:57:58 das Exp $");
|
||||
#else
|
||||
__RCSID("$NetBSD: hdtoa.c,v 1.8 2011/03/21 23:37:42 enami Exp $");
|
||||
__RCSID("$NetBSD: hdtoa.c,v 1.9 2011/07/04 11:46:41 mrg Exp $");
|
||||
#endif
|
||||
|
||||
#include <float.h>
|
||||
|
@ -261,6 +261,7 @@ hldtoa(long double e, const char *xdigs, int ndigits, int *decpt, int *sign,
|
|||
char *s, *s0;
|
||||
size_t bufsize;
|
||||
|
||||
memset(&u, 0, sizeof u);
|
||||
u.extu_ld = e;
|
||||
*sign = u.extu_ext.ext_sign;
|
||||
|
||||
|
|
|
@ -25,11 +25,12 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__RCSID("$NetBSD: s_fmaxl.c,v 1.2 2010/03/08 01:05:20 snj Exp $");
|
||||
__RCSID("$NetBSD: s_fmaxl.c,v 1.3 2011/07/04 11:46:41 mrg Exp $");
|
||||
#ifdef notdef
|
||||
__FBSDID("$FreeBSD: src/lib/msun/src/s_fmaxl.c,v 1.1 2004/06/30 07:04:01 das Exp $");
|
||||
#endif
|
||||
|
||||
#include <string.h>
|
||||
#include <math.h>
|
||||
|
||||
#include <machine/ieee.h>
|
||||
|
@ -39,6 +40,7 @@ fmaxl(long double x, long double y)
|
|||
{
|
||||
union ieee_ext_u u[2];
|
||||
|
||||
memset(&u, 0, sizeof u);
|
||||
u[0].extu_ld = x;
|
||||
u[0].extu_ext.ext_frach &= ~0x80000000;
|
||||
u[1].extu_ld = y;
|
||||
|
|
|
@ -25,12 +25,13 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__RCSID("$NetBSD: s_fminl.c,v 1.2 2010/03/08 01:05:20 snj Exp $");
|
||||
__RCSID("$NetBSD: s_fminl.c,v 1.3 2011/07/04 11:46:41 mrg Exp $");
|
||||
#ifdef notdef
|
||||
__FBSDID("$FreeBSD: src/lib/msun/src/s_fminl.c,v 1.1 2004/06/30 07:04:01 das Exp $");
|
||||
#endif
|
||||
|
||||
#include <math.h>
|
||||
#include <string.h>
|
||||
|
||||
#include <machine/ieee.h>
|
||||
#ifdef EXT_EXP_INFNAN
|
||||
|
@ -39,6 +40,7 @@ fminl(long double x, long double y)
|
|||
{
|
||||
union ieee_ext_u u[2];
|
||||
|
||||
memset(&u, 0, sizeof u);
|
||||
u[0].extu_ld = x;
|
||||
u[0].extu_ext.ext_frach &= ~0x80000000;
|
||||
u[1].extu_ld = y;
|
||||
|
|
Loading…
Reference in New Issue