remove. math has isnormal, isgreater, isgreaterequal, isless,

islessequal, isunordered.  tested by me and sthen@
ok sthen@
This commit is contained in:
martynas 2008-07-24 19:00:11 +00:00
parent e64e345303
commit 3bfabf618f
4 changed files with 6 additions and 50 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.35 2008/06/19 05:51:17 todd Exp $
# $OpenBSD: Makefile,v 1.36 2008/07/24 19:00:11 martynas Exp $
# no success building on other archs yet
ONLY_FOR_ARCHS= amd64 i386 powerpc
@ -6,7 +6,7 @@ ONLY_FOR_ARCHS= amd64 i386 powerpc
COMMENT= multi system emulator
DISTNAME= qemu-0.9.1
PKGNAME= ${DISTNAME}p2
PKGNAME= ${DISTNAME}p3
CATEGORIES= emulators
HOMEPAGE= http://bellard.org/qemu/

View File

@ -1,11 +0,0 @@
$OpenBSD: patch-fpu_softfloat-native_c,v 1.2 2007/05/01 12:55:14 todd Exp $
--- fpu/softfloat-native.c.orig Mon Feb 5 17:01:54 2007
+++ fpu/softfloat-native.c Sat Mar 10 16:39:39 2007
@@ -1,6 +1,7 @@
/* Native implementation of soft float functions. Only a single status
context is supported */
#include "softfloat.h"
+#include "gnu-c99-math.h"
#include <math.h>
void set_float_rounding_mode(int val STATUS_PARAM)

View File

@ -1,13 +1,7 @@
$OpenBSD: patch-fpu_softfloat-native_h,v 1.4 2008/04/28 22:52:38 todd Exp $
--- fpu/softfloat-native.h.orig Sun Jan 6 14:38:42 2008
+++ fpu/softfloat-native.h Tue Apr 1 01:33:39 2008
@@ -1,4 +1,5 @@
/* Native implementation of soft float functions */
+#include "gnu-c99-math.h"
#include <math.h>
#if (defined(_BSD) && !defined(__APPLE__)) || defined(HOST_SOLARIS)
@@ -84,6 +85,11 @@ typedef union {
$OpenBSD: patch-fpu_softfloat-native_h,v 1.5 2008/07/24 19:00:11 martynas Exp $
--- fpu/softfloat-native.h.orig Sun Jan 6 21:38:42 2008
+++ fpu/softfloat-native.h Thu Jul 24 21:41:56 2008
@@ -84,6 +84,11 @@ typedef union {
| Software IEC/IEEE floating-point rounding mode.
*----------------------------------------------------------------------------*/
#if (defined(_BSD) && !defined(__APPLE__)) || defined(HOST_SOLARIS)

View File

@ -1,27 +0,0 @@
$OpenBSD: patch-gnu-c99-math_h,v 1.4 2007/05/01 12:55:14 todd Exp $
--- gnu-c99-math.h.orig Sat Mar 10 16:39:40 2007
+++ gnu-c99-math.h Sat Mar 10 16:39:40 2007
@@ -0,0 +1,23 @@
+#if (defined(__sun__) || defined(__OpenBSD__)) && defined(__GNUC__)
+
+/*
+ * C99 7.12.3 classification macros
+ * and
+ * C99 7.12.14 comparison macros
+ *
+ * ... do not work on Solaris 10 using GNU CC 3.4.x.
+ * Try to workaround the missing / broken C99 math macros.
+ */
+#include <ieeefp.h>
+#include <float.h>
+
+#define isnormal(x) (fabs(x) < DBL_EPSILON && !isnan(x) && !isinf(x))
+
+#define isgreater(x, y) ((x) > (y))
+#define isgreaterequal(x, y) ((x) >= (y))
+#define isless(x, y) ((x) < (y))
+#define islessequal(x, y) ((x) <= (y))
+
+#define isunordered(x,y) (isnan(x) || isnan(y))
+
+#endif