OSDN Git Service

Guard matherr/__kernel_standard w/ _IEEE_LIBM, we do not use them, save 7,6k
authorPeter S. Mazinger <ps.m@gmx.net>
Wed, 22 Mar 2006 20:00:25 +0000 (20:00 -0000)
committerPeter S. Mazinger <ps.m@gmx.net>
Wed, 22 Mar 2006 20:00:25 +0000 (20:00 -0000)
libm/Makefile.in
libm/k_standard.c
libm/math_private.h
libm/s_matherr.c

index 6b07fe4..316b1ff 100644 (file)
@@ -21,7 +21,7 @@
 #
 
 CFLAGS-libm := -DNOT_IN_libc -DIS_IN_libm $(SSP_ALL_CFLAGS)
-CFLAGS-libm += -D_IEEE_LIBM -D_ISOC99_SOURCE -D_SVID_SOURCE
+CFLAGS-libm += -D_IEEE_LIBM
 
 LDFLAGS-libm.so := $(LDFLAGS)
 
index 30d83e3..4df1898 100644 (file)
@@ -18,6 +18,8 @@ static char rcsid[] = "$NetBSD: k_standard.c,v 1.6 1995/05/10 20:46:35 jtc Exp $
 #include "math_private.h"
 #include <errno.h>
 
+#ifndef _IEEE_LIBM
+
 libm_hidden_proto(copysign)
 libm_hidden_proto(matherr)
 libm_hidden_proto(rint)
@@ -784,3 +786,4 @@ static double zero = 0.0;   /* used as const */
        }
        return exc.retval;
 }
+#endif /* _IEEE_LIBM */
index 30af9ed..75ca03e 100644 (file)
@@ -186,7 +186,9 @@ extern double __ieee754_scalb (double,double) attribute_hidden;
 #endif
 
 /* fdlibm kernel function */
+#ifndef _IEEE_LIBM
 extern double __kernel_standard (double,double,int) attribute_hidden;
+#endif
 extern double __kernel_sin (double,double,int) attribute_hidden;
 extern double __kernel_cos (double,double) attribute_hidden;
 extern double __kernel_tan (double,double,int) attribute_hidden;
index 8c19f43..0c102e6 100644 (file)
@@ -17,6 +17,8 @@ static char rcsid[] = "$NetBSD: s_matherr.c,v 1.6 1995/05/10 20:47:53 jtc Exp $"
 #include "math.h"
 #include "math_private.h"
 
+#ifndef _IEEE_LIBM
+
 libm_hidden_proto(matherr)
 #ifdef __STDC__
        int matherr(struct exception *x)
@@ -30,3 +32,4 @@ libm_hidden_proto(matherr)
        return n;
 }
 libm_hidden_def(matherr)
+#endif