(__printf_fp.c): If _FPIO_CONST_SHIFT is non-zero, adjust exponent.
authordrepper <drepper>
Thu, 11 Jul 2002 03:08:33 +0000 (03:08 +0000)
committerdrepper <drepper>
Thu, 11 Jul 2002 03:08:33 +0000 (03:08 +0000)
stdio-common/printf_fp.c

index 974a1f0..e265fe9 100644 (file)
@@ -494,6 +494,9 @@ __printf_fp (FILE *fp,
                              &__tens[powers->arrayoff],
                              tmpsize * sizeof (mp_limb_t));
                      MPN_ZERO (tmp, _FPIO_CONST_SHIFT);
+                     /* Adjust exponent, as scaleexpo will be this much
+                        bigger too.  */
+                     exponent += _FPIO_CONST_SHIFT * BITS_PER_MP_LIMB;
                    }
                  else
 #endif