#include "xsize.h"
#if NEED_PRINTF_DIRECTIVE_A && !defined IN_LIBINTL
+# include "float+.h"
# include "isnan.h"
# include "printf-frexp.h"
# if HAVE_LONG_DOUBLE
{
/* Distinguish 0.0L and -0.0L. */
static long double plus_zero = 0.0L;
- long double arg_mem;
- memset (&arg_mem, 0, sizeof (long double));
- arg_mem = arg;
- if (memcmp (&plus_zero, &arg_mem, sizeof (long double)) != 0)
+ long double arg_mem = arg;
+ if (memcmp (&plus_zero, &arg_mem, SIZEOF_LDBL) != 0)
{
sign = -1;
arg = -arg;
{
/* Distinguish 0.0 and -0.0. */
static double plus_zero = 0.0;
- double arg_mem;
- memset (&arg_mem, 0, sizeof (double));
- arg_mem = arg;
- if (memcmp (&plus_zero, &arg_mem, sizeof (double)) != 0)
+ double arg_mem = arg;
+ if (memcmp (&plus_zero, &arg_mem, SIZEOF_DBL) != 0)
{
sign = -1;
arg = -arg;