Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/arch/arm/softfloat Deal with arguments being NaNs
details: https://anonhg.NetBSD.org/src/rev/83e6fc273872
branches: trunk
changeset: 786125:83e6fc273872
user: matt <matt%NetBSD.org@localhost>
date: Tue Apr 16 13:38:34 2013 +0000
description:
Deal with arguments being NaNs
diffstat:
lib/libc/arch/arm/softfloat/__aeabi_dcmpge.c | 6 +++---
lib/libc/arch/arm/softfloat/__aeabi_dcmpgt.c | 6 +++---
lib/libc/arch/arm/softfloat/__aeabi_fcmpge.c | 6 +++---
lib/libc/arch/arm/softfloat/__aeabi_fcmpgt.c | 6 +++---
4 files changed, 12 insertions(+), 12 deletions(-)
diffs (100 lines):
diff -r 101652d8d6df -r 83e6fc273872 lib/libc/arch/arm/softfloat/__aeabi_dcmpge.c
--- a/lib/libc/arch/arm/softfloat/__aeabi_dcmpge.c Tue Apr 16 12:26:28 2013 +0000
+++ b/lib/libc/arch/arm/softfloat/__aeabi_dcmpge.c Tue Apr 16 13:38:34 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: __aeabi_dcmpge.c,v 1.1 2013/04/16 10:37:39 matt Exp $ */
+/* $NetBSD: __aeabi_dcmpge.c,v 1.2 2013/04/16 13:38:34 matt Exp $ */
/*
* Written by Ben Harris, 2000. This file is in the Public Domain.
@@ -10,7 +10,7 @@
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: __aeabi_dcmpge.c,v 1.1 2013/04/16 10:37:39 matt Exp $");
+__RCSID("$NetBSD: __aeabi_dcmpge.c,v 1.2 2013/04/16 13:38:34 matt Exp $");
#endif /* LIBC_SCCS and not lint */
int __aeabi_dcmpge(float64, float64);
@@ -19,5 +19,5 @@
__aeabi_dcmpge(float64 a, float64 b)
{
- return !float64_lt(a, b);
+ return !float64_lt(a, b) && float64_eq(a, a) && float64_eq(b, b);
}
diff -r 101652d8d6df -r 83e6fc273872 lib/libc/arch/arm/softfloat/__aeabi_dcmpgt.c
--- a/lib/libc/arch/arm/softfloat/__aeabi_dcmpgt.c Tue Apr 16 12:26:28 2013 +0000
+++ b/lib/libc/arch/arm/softfloat/__aeabi_dcmpgt.c Tue Apr 16 13:38:34 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: __aeabi_dcmpgt.c,v 1.1 2013/04/16 10:37:39 matt Exp $ */
+/* $NetBSD: __aeabi_dcmpgt.c,v 1.2 2013/04/16 13:38:34 matt Exp $ */
/*
* Written by Ben Harris, 2000. This file is in the Public Domain.
@@ -10,7 +10,7 @@
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: __aeabi_dcmpgt.c,v 1.1 2013/04/16 10:37:39 matt Exp $");
+__RCSID("$NetBSD: __aeabi_dcmpgt.c,v 1.2 2013/04/16 13:38:34 matt Exp $");
#endif /* LIBC_SCCS and not lint */
int __aeabi_dcmpgt(float64, float64);
@@ -19,5 +19,5 @@
__aeabi_dcmpgt(float64 a, float64 b)
{
- return !float64_le(a, b);
+ return !float64_le(a, b) && float64_eq(a, a) && float64_eq(b, b);
}
diff -r 101652d8d6df -r 83e6fc273872 lib/libc/arch/arm/softfloat/__aeabi_fcmpge.c
--- a/lib/libc/arch/arm/softfloat/__aeabi_fcmpge.c Tue Apr 16 12:26:28 2013 +0000
+++ b/lib/libc/arch/arm/softfloat/__aeabi_fcmpge.c Tue Apr 16 13:38:34 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: __aeabi_fcmpge.c,v 1.1 2013/04/16 10:37:39 matt Exp $ */
+/* $NetBSD: __aeabi_fcmpge.c,v 1.2 2013/04/16 13:38:34 matt Exp $ */
/*
* Written by Ben Harris, 2000. This file is in the Public Domain.
@@ -10,7 +10,7 @@
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: __aeabi_fcmpge.c,v 1.1 2013/04/16 10:37:39 matt Exp $");
+__RCSID("$NetBSD: __aeabi_fcmpge.c,v 1.2 2013/04/16 13:38:34 matt Exp $");
#endif /* LIBC_SCCS and not lint */
int __aeabi_fcmpge(float32, float32);
@@ -19,5 +19,5 @@
__aeabi_fcmpge(float32 a, float32 b)
{
- return !float32_lt(a, b);
+ return !float32_lt(a, b) && float32_eq(a, a) && float32_eq(b, b);
}
diff -r 101652d8d6df -r 83e6fc273872 lib/libc/arch/arm/softfloat/__aeabi_fcmpgt.c
--- a/lib/libc/arch/arm/softfloat/__aeabi_fcmpgt.c Tue Apr 16 12:26:28 2013 +0000
+++ b/lib/libc/arch/arm/softfloat/__aeabi_fcmpgt.c Tue Apr 16 13:38:34 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: __aeabi_fcmpgt.c,v 1.1 2013/04/16 10:37:39 matt Exp $ */
+/* $NetBSD: __aeabi_fcmpgt.c,v 1.2 2013/04/16 13:38:34 matt Exp $ */
/*
* Written by Ben Harris, 2000. This file is in the Public Domain.
@@ -10,7 +10,7 @@
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: __aeabi_fcmpgt.c,v 1.1 2013/04/16 10:37:39 matt Exp $");
+__RCSID("$NetBSD: __aeabi_fcmpgt.c,v 1.2 2013/04/16 13:38:34 matt Exp $");
#endif /* LIBC_SCCS and not lint */
int __aeabi_fcmpgt(float32, float32);
@@ -19,5 +19,5 @@
__aeabi_fcmpgt(float32 a, float32 b)
{
- return !float32_le(a, b);
+ return !float32_le(a, b) && float32_eq(a, a) && float32_eq(b, b);
}
Home |
Main Index |
Thread Index |
Old Index