]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - sysdeps/ieee754/ldbl-96/printf_fphex.c
stdio-common: Convert vfprintf and related functions to buffers
[thirdparty/glibc.git] / sysdeps / ieee754 / ldbl-96 / printf_fphex.c
index 26bc60682ef05513794069182c277f88ef2fe4bc..1f09b5f08bcb8d6a600ee3afd808aa471cc209a3 100644 (file)
@@ -36,31 +36,17 @@ do {                                                                              \
       zero_mantissa = num == 0;                                                      \
                                                                              \
       if (sizeof (unsigned long int) > 6)                                    \
-       {                                                                     \
-         numstr = _itoa_word (num, numbuf + sizeof numbuf, 16,               \
-                              info->spec == 'A');                            \
-         wnumstr = _itowa_word (num,                                         \
-                                wnumbuf + sizeof (wnumbuf) / sizeof (wchar_t),\
-                                16, info->spec == 'A');                      \
-       }                                                                     \
+       numstr = _itoa_word (num, numbuf + sizeof numbuf, 16,                 \
+                            info->spec == 'A');                              \
       else                                                                   \
-       {                                                                     \
-         numstr = _itoa (num, numbuf + sizeof numbuf, 16, info->spec == 'A');\
-         wnumstr = _itowa (num,                                              \
-                           wnumbuf + sizeof (wnumbuf) / sizeof (wchar_t),    \
-                           16, info->spec == 'A');                           \
-       }                                                                     \
+       numstr = _itoa (num, numbuf + sizeof numbuf, 16, info->spec == 'A');  \
                                                                              \
       /* Fill with zeroes.  */                                               \
       while (numstr > numbuf + (sizeof numbuf - 64 / 4))                     \
-       {                                                                     \
-         *--numstr = '0';                                                    \
-         *--wnumstr = L'0';                                                  \
-       }                                                                     \
+       *--numstr = '0';                                                      \
                                                                              \
       /* We use a full nibble for the leading digit.  */                     \
       leading = *numstr++;                                                   \
-      wnumstr++;                                                             \
                                                                              \
       /* We have 3 bits from the mantissa in the leading nibble.             \
         Therefore we are here using `IEEE854_LONG_DOUBLE_BIAS + 3'.  */      \