mpa.c: Do not include sys/param.h.
authorRichard Guenther <rguenther@suse.de>
Wed, 8 Feb 2006 10:05:30 +0000 (10:05 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Wed, 8 Feb 2006 10:05:30 +0000 (10:05 +0000)
2006-02-08  Richard Guenther  <rguenther@suse.de>

* dbl-64/mpa.c: Do not include sys/param.h.
* dbl-64/mpa.h (MIN): Define.

From-SVN: r110745

libgcc-math/ChangeLog
libgcc-math/dbl-64/mpa.c
libgcc-math/dbl-64/mpa.h

index cd7d0a8b5d9407b0039e8dd975af80318458cddb..8b93085fbec2c5a8c91e50274ba74f5ca7b2afe7 100644 (file)
@@ -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
index 68647ba335dabfc03c1ca0fe0e92d038a75667da..85d9647a8d2d30f73485bcb59f4030971505b032 100644 (file)
@@ -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     */
index 912b5e41121b99c4fdbf5675bb579d381edd1789..14a446baf9776de9e9383f8ee5eaad2dfef2ce84 100644 (file)
@@ -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);