aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libgcc-math/ChangeLog5
-rw-r--r--libgcc-math/dbl-64/mpa.c2
-rw-r--r--libgcc-math/dbl-64/mpa.h1
3 files changed, 7 insertions, 1 deletions
diff --git a/libgcc-math/ChangeLog b/libgcc-math/ChangeLog
index cd7d0a8..8b93085 100644
--- a/libgcc-math/ChangeLog
+++ b/libgcc-math/ChangeLog
@@ -1,3 +1,8 @@
+2006-02-08 Richard Guenther <rguenther@suse.de>
+
+ * dbl-64/mpa.c: Do not include sys/param.h.
+ * dbl-64/mpa.h (MIN): Define.
+
2006-02-07 Richard Guenther <rguenther@suse.de>
PR bootstrap/26050
diff --git a/libgcc-math/dbl-64/mpa.c b/libgcc-math/dbl-64/mpa.c
index 68647ba..85d9647 100644
--- a/libgcc-math/dbl-64/mpa.c
+++ b/libgcc-math/dbl-64/mpa.c
@@ -47,7 +47,7 @@
#include "endian.h"
#include "mpa.h"
#include "mpa2.h"
-#include <sys/param.h> /* For MIN() */
+
/* mcr() compares the sizes of the mantissas of two multiple precision */
/* numbers. Mantissas are compared regardless of the signs of the */
/* numbers, even if x->d[0] or y->d[0] are zero. Exponents are also */
diff --git a/libgcc-math/dbl-64/mpa.h b/libgcc-math/dbl-64/mpa.h
index 912b5e4..14a446b 100644
--- a/libgcc-math/dbl-64/mpa.h
+++ b/libgcc-math/dbl-64/mpa.h
@@ -66,6 +66,7 @@ typedef union { int i[2]; double d; } number;
#define EZ z->e
#define ABS(x) ((x) < 0 ? -(x) : (x))
+#define MIN(a,b) (((a)<(b))?(a):(b))
int __acr(const mp_no *, const mp_no *, int);
int __cr(const mp_no *, const mp_no *, int);