Source-Changes-HG archive

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

[src/trunk]: src/lib/libc/arch/m68k/gen Ignore the explicit integer bit here, ...



details:   https://anonhg.NetBSD.org/src/rev/5c45b1bd532a
branches:  trunk
changeset: 554416:5c45b1bd532a
user:      kleink <kleink%NetBSD.org@localhost>
date:      Tue Oct 28 00:13:22 2003 +0000

description:
Ignore the explicit integer bit here, too; otherwise an infinity with the
explicit integer bit set could be classified as NaN.

diffstat:

 lib/libc/arch/m68k/gen/isnanl.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (28 lines):

diff -r 637816a8e511 -r 5c45b1bd532a lib/libc/arch/m68k/gen/isnanl.c
--- a/lib/libc/arch/m68k/gen/isnanl.c   Mon Oct 27 23:56:55 2003 +0000
+++ b/lib/libc/arch/m68k/gen/isnanl.c   Tue Oct 28 00:13:22 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: isnanl.c,v 1.3 2003/10/27 01:11:46 kleink Exp $        */
+/*     $NetBSD: isnanl.c,v 1.4 2003/10/28 00:13:22 kleink Exp $        */
 
 /*
  * Copyright (c) 1992, 1993
@@ -40,7 +40,7 @@
 #if 0
 static char sccsid[] = "@(#)isinf.c    8.1 (Berkeley) 6/4/93";
 #else
-__RCSID("$NetBSD: isnanl.c,v 1.3 2003/10/27 01:11:46 kleink Exp $");
+__RCSID("$NetBSD: isnanl.c,v 1.4 2003/10/28 00:13:22 kleink Exp $");
 #endif
 #endif /* LIBC_SCCS and not lint */
 
@@ -61,7 +61,7 @@
        union ieee_ext_u u;
 
        u.extu_ld = ld;
+       /* Note: the explicit integer bit is "don't care". */
        return (u.extu_ext.ext_exp == EXT_EXP_INFNAN &&
-           (u.extu_ext.ext_int != 0 ||
-            u.extu_ext.ext_frach != 0 || u.extu_ext.ext_fracl != 0));
+           (u.extu_ext.ext_frach != 0 || u.extu_ext.ext_fracl != 0));
 }



Home | Main Index | Thread Index | Old Index