[BACK]Return to s_scalbnl.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / lib / libm / src

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/lib/libm/src/s_scalbnl.c between version 1.7 and 1.8

version 1.7, 2013/04/28 14:46:16 version 1.8, 2013/05/19 20:50:02
Line 82  scalblnl(long double x, long n)
Line 82  scalblnl(long double x, long n)
         /* Protect against integer overflow in calculation of new exponent */          /* Protect against integer overflow in calculation of new exponent */
         if (n > LDBL_MAX_EXP - LDBL_MIN_EXP + LDBL_MANT_DIG)          if (n > LDBL_MAX_EXP - LDBL_MIN_EXP + LDBL_MANT_DIG)
                 goto overflow;                  goto overflow;
         if (n < LDBL_MAX_EXP - LDBL_MIN_EXP + LDBL_MANT_DIG)          if (n < LDBL_MIN_EXP - LDBL_MAX_EXP - LDBL_MANT_DIG)
                 goto underflow;                  goto underflow;
   
         /* Scale denormalized numbers slightly, so that they are normal */          /* Scale denormalized numbers slightly, so that they are normal */

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8

CVSweb <webmaster@jp.NetBSD.org>