Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libm/src Just use EXT_EXP_INFNAN instead of EXT_EXP_INF ...



details:   https://anonhg.NetBSD.org/src/rev/ed548326268a
branches:  trunk
changeset: 793247:ed548326268a
user:      matt <matt%NetBSD.org@localhost>
date:      Fri Jan 31 19:38:47 2014 +0000

description:
Just use EXT_EXP_INFNAN instead of EXT_EXP_INF or EXT_EXP_NAN.

diffstat:

 lib/libm/src/s_nextafterl.c |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (39 lines):

diff -r efe6a6b0d536 -r ed548326268a lib/libm/src/s_nextafterl.c
--- a/lib/libm/src/s_nextafterl.c       Fri Jan 31 19:38:06 2014 +0000
+++ b/lib/libm/src/s_nextafterl.c       Fri Jan 31 19:38:47 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: s_nextafterl.c,v 1.4 2013/07/18 22:31:13 matt Exp $    */
+/*     $NetBSD: s_nextafterl.c,v 1.5 2014/01/31 19:38:47 matt Exp $    */
 
 /* @(#)s_nextafter.c 5.1 93/09/24 */
 /*
@@ -13,7 +13,7 @@
  */
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: s_nextafterl.c,v 1.4 2013/07/18 22:31:13 matt Exp $");
+__RCSID("$NetBSD: s_nextafterl.c,v 1.5 2014/01/31 19:38:47 matt Exp $");
 
 #include <float.h>
 #include <math.h>
@@ -48,9 +48,9 @@
        ux.extu_ld = x;
        uy.extu_ld = y;
 
-       if ((ux.extu_exp == EXT_EXP_NAN &&
+       if ((ux.extu_exp == EXT_EXP_INFNAN &&
                ((ux.extu_frach &~ LDBL_NBIT)|ux.extu_fracl) != 0) ||
-           (uy.extu_exp == EXT_EXP_NAN &&
+           (uy.extu_exp == EXT_EXP_INFNAN &&
                ((uy.extu_frach &~ LDBL_NBIT)|uy.extu_fracl) != 0))
                return x+y;                     /* x or y is nan */
 
@@ -85,7 +85,7 @@
                }
        }
 
-       if (ux.extu_exp == EXT_EXP_INF)
+       if (ux.extu_exp == EXT_EXP_INFNAN)
                return x+x;                     /* overflow  */
 
        if (ux.extu_exp == 0) {                 /* underflow */



Home | Main Index | Thread Index | Old Index