]> Git Repo - uclibc-ng.git/blobdiff - libm/s_scalbn.c
Synchronized with glibc (2.3.2).
[uclibc-ng.git] / libm / s_scalbn.c
index 6534fd4cfd775d4d7981293326af64ab4dbf5876..b10bd7028ab5a55c06750768289a754ed814d406 100644 (file)
@@ -56,10 +56,11 @@ tiny   = 1.0e-300;
         if (k >  0x7fe) return huge*copysign(huge,x); /* overflow  */
         if (k > 0)                             /* normal result */
            {SET_HIGH_WORD(x,(hx&0x800fffff)|(k<<20)); return x;}
-        if (k <= -54)
+        if (k <= -54) {
             if (n > 50000)     /* in case integer overflow in n+k */
                return huge*copysign(huge,x);   /*overflow*/
            else return tiny*copysign(tiny,x);  /*underflow*/
+       }
         k += 54;                               /* subnormal result */
        SET_HIGH_WORD(x,(hx&0x800fffff)|(k<<20));
         return x*twom54;
This page took 0.025956 seconds and 4 git commands to generate.