1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-08-08 17:42:12 +03:00

stdio-common: Use array_length and array_end macros

This commit is contained in:
Florian Weimer
2017-11-02 12:14:51 +01:00
parent c94a5688fb
commit d10b132bf5
15 changed files with 65 additions and 42 deletions

View File

@@ -21,6 +21,7 @@
/* The gmp headers need some configuration frobs. */
#define HAVE_ALLOCA 1
#include <array_length.h>
#include <libioP.h>
#include <alloca.h>
#include <ctype.h>
@@ -371,8 +372,7 @@ __printf_fp_l (FILE *fp, locale_t loc,
else \
{ \
p.fracsize = __mpn_extract_##SUFFIX \
(fp_input, \
(sizeof (fp_input) / sizeof (fp_input[0])), \
(fp_input, array_length (fp_input), \
&p.exponent, &is_neg, VAR); \
to_shift = 1 + p.fracsize * BITS_PER_MP_LIMB - MANT_DIG; \
} \