Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/arch Make NAN tests consistent with other platforms...
details: https://anonhg.NetBSD.org/src/rev/ab71be5cfa6c
branches: trunk
changeset: 765744:ab71be5cfa6c
user: christos <christos%NetBSD.org@localhost>
date: Sat Jun 04 15:45:41 2011 +0000
description:
Make NAN tests consistent with other platforms and FreeBSD.
diffstat:
lib/libc/arch/i386/gen/isnanl.c | 9 ++++-----
lib/libc/arch/x86_64/gen/isnanl.c | 9 ++++-----
2 files changed, 8 insertions(+), 10 deletions(-)
diffs (56 lines):
diff -r ffb87161c2f5 -r ab71be5cfa6c lib/libc/arch/i386/gen/isnanl.c
--- a/lib/libc/arch/i386/gen/isnanl.c Sat Jun 04 14:56:57 2011 +0000
+++ b/lib/libc/arch/i386/gen/isnanl.c Sat Jun 04 15:45:41 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: isnanl.c,v 1.6 2007/02/02 23:14:09 christos Exp $ */
+/* $NetBSD: isnanl.c,v 1.7 2011/06/04 15:45:41 christos 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.6 2007/02/02 23:14:09 christos Exp $");
+__RCSID("$NetBSD: isnanl.c,v 1.7 2011/06/04 15:45:41 christos Exp $");
#endif
#endif /* LIBC_SCCS and not lint */
@@ -58,7 +58,6 @@
u.extu_ld = x;
- return (u.extu_ext.ext_exp == EXT_EXP_INFNAN &&
- (u.extu_ext.ext_frach & 0x80000000) != 0 &&
- (u.extu_ext.ext_frach != 0x80000000 || u.extu_ext.ext_fracl != 0));
+ return u.extu_ext.ext_exp == EXT_EXP_INFNAN &&
+ (u.extu_ext.ext_frach != 0 || u.extu_ext.ext_fracl != 0);
}
diff -r ffb87161c2f5 -r ab71be5cfa6c lib/libc/arch/x86_64/gen/isnanl.c
--- a/lib/libc/arch/x86_64/gen/isnanl.c Sat Jun 04 14:56:57 2011 +0000
+++ b/lib/libc/arch/x86_64/gen/isnanl.c Sat Jun 04 15:45:41 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: isnanl.c,v 1.6 2007/02/02 23:19:25 christos Exp $ */
+/* $NetBSD: isnanl.c,v 1.7 2011/06/04 15:45:41 christos 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.6 2007/02/02 23:19:25 christos Exp $");
+__RCSID("$NetBSD: isnanl.c,v 1.7 2011/06/04 15:45:41 christos Exp $");
#endif
#endif /* LIBC_SCCS and not lint */
@@ -58,7 +58,6 @@
u.extu_ld = x;
- return (u.extu_ext.ext_exp == EXT_EXP_INFNAN &&
- (u.extu_ext.ext_frach & 0x80000000) != 0 &&
- (u.extu_ext.ext_frach != 0x80000000 || u.extu_ext.ext_fracl != 0));
+ return u.extu_ext.ext_exp == EXT_EXP_INFNAN &&
+ (u.extu_ext.ext_frach != 0 || u.extu_ext.ext_fracl != 0);
}
Home |
Main Index |
Thread Index |
Old Index