summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog16
-rw-r--r--math/math_private.h4
-rw-r--r--sysdeps/generic/e_rem_pio2l.c5
-rw-r--r--sysdeps/ieee754/dbl-64/e_asin.c1
-rw-r--r--sysdeps/ieee754/dbl-64/e_atan2.c2
-rw-r--r--sysdeps/ieee754/dbl-64/e_exp.c4
-rw-r--r--sysdeps/ieee754/dbl-64/e_log.c2
-rw-r--r--sysdeps/ieee754/dbl-64/e_pow.c3
-rw-r--r--sysdeps/ieee754/dbl-64/e_remainder.c1
-rw-r--r--sysdeps/ieee754/dbl-64/e_sqrt.c1
10 files changed, 35 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index 70af55c325..93adfdffc1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,19 @@
+2001-05-12  Andreas Jaeger  <aj@suse.de>
+
+	* sysdeps/ieee754/dbl-64/e_asin.c: Include "math_private.h" for
+	internal prototypes.
+	* sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
+	* sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
+	* sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
+	* sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
+	* sysdeps/ieee754/dbl-64/e_log.c: Likewise.
+	* sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
+	* sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
+	* sysdeps/generic/e_rem_pio2l.c: Likewise.
+	(__ieee754_rem_pio2l): Fix prototype.
+
+	* math/math_private.h (__copysign): Add internal prototype.
+
 2001-05-11  Andreas Jaeger  <aj@suse.de>
 
 	* sysdeps/unix/sysv/linux/configure.in: Move binutils check to...
diff --git a/math/math_private.h b/math/math_private.h
index f3d1f233cf..eea7e34cf7 100644
--- a/math/math_private.h
+++ b/math/math_private.h
@@ -188,6 +188,9 @@ extern double __kernel_cos (double,double);
 extern double __kernel_tan (double,double,int);
 extern int    __kernel_rem_pio2 (double*,double*,int,int,int, const int32_t*);
 
+/* internal functions.  */
+extern double __copysign (double x, double __y);
+
 
 /* ieee style elementary float functions */
 extern float __ieee754_sqrtf (float);
@@ -220,6 +223,7 @@ extern float __ieee754_remainderf (float,float);
 extern int32_t __ieee754_rem_pio2f (float,float*);
 extern float __ieee754_scalbf (float,float);
 
+
 /* float versions of fdlibm kernel functions */
 extern float __kernel_sinf (float,float,int);
 extern float __kernel_cosf (float,float);
diff --git a/sysdeps/generic/e_rem_pio2l.c b/sysdeps/generic/e_rem_pio2l.c
index 847f5f98c6..617215516b 100644
--- a/sysdeps/generic/e_rem_pio2l.c
+++ b/sysdeps/generic/e_rem_pio2l.c
@@ -1,13 +1,14 @@
 #include <math.h>
 #include <stdio.h>
 #include <errno.h>
+#include "math_private.h"
 
-long double
+int
 __ieee754_rem_pio2l (long double x, long double *y)
 {
   fputs ("__ieee754_rem_pio2l not implemented\n", stderr);
   __set_errno (ENOSYS);
-  return 0.0;
+  return 0;
 }
 
 stub_warning (__ieee754_rem_pio2l)
diff --git a/sysdeps/ieee754/dbl-64/e_asin.c b/sysdeps/ieee754/dbl-64/e_asin.c
index a2b309e4d5..4ad450face 100644
--- a/sysdeps/ieee754/dbl-64/e_asin.c
+++ b/sysdeps/ieee754/dbl-64/e_asin.c
@@ -39,6 +39,7 @@
 #include "powtwo.tbl"
 #include "MathLib.h"
 #include "uasncs.h"
+#include "math_private.h"
 
 void __doasin(double x, double dx, double w[]);
 void __dubsin(double x, double dx, double v[]);
diff --git a/sysdeps/ieee754/dbl-64/e_atan2.c b/sysdeps/ieee754/dbl-64/e_atan2.c
index adf7a0d11b..c72d25a8ad 100644
--- a/sysdeps/ieee754/dbl-64/e_atan2.c
+++ b/sysdeps/ieee754/dbl-64/e_atan2.c
@@ -41,6 +41,8 @@
 #include "MathLib.h"
 #include "uatan.tbl"
 #include "atnat2.h"
+#include "math_private.h"
+
 /************************************************************************/
 /* An ultimate atan2 routine. Given two IEEE double machine numbers y,x */
 /* it computes the correctly rounded (to nearest) value of atan2(y,x).  */
diff --git a/sysdeps/ieee754/dbl-64/e_exp.c b/sysdeps/ieee754/dbl-64/e_exp.c
index 190c5667d6..f1c014b34c 100644
--- a/sysdeps/ieee754/dbl-64/e_exp.c
+++ b/sysdeps/ieee754/dbl-64/e_exp.c
@@ -33,10 +33,12 @@
 /***************************************************************************/
 
 #include "endian.h"
-#include  "uexp.h"
+#include "uexp.h"
 #include "mydefs.h"
 #include "MathLib.h"
 #include "uexp.tbl"
+#include "math_private.h"
+
 double __slowexp(double);
 
 /***************************************************************************/
diff --git a/sysdeps/ieee754/dbl-64/e_log.c b/sysdeps/ieee754/dbl-64/e_log.c
index 1a099726d5..650a9fffab 100644
--- a/sysdeps/ieee754/dbl-64/e_log.c
+++ b/sysdeps/ieee754/dbl-64/e_log.c
@@ -38,6 +38,8 @@
 #include "dla.h"
 #include "mpa.h"
 #include "MathLib.h"
+#include "math_private.h"
+
 void __mplog(mp_no *, mp_no *, int);
 
 /*********************************************************************/
diff --git a/sysdeps/ieee754/dbl-64/e_pow.c b/sysdeps/ieee754/dbl-64/e_pow.c
index dc92922d18..b6cab78e03 100644
--- a/sysdeps/ieee754/dbl-64/e_pow.c
+++ b/sysdeps/ieee754/dbl-64/e_pow.c
@@ -26,7 +26,7 @@
 /*             checkint                                                    */
 /* FILES NEEDED: dla.h endian.h mpa.h mydefs.h                             */
 /*               halfulp.c mpexp.c mplog.c slowexp.c slowpow.c mpa.c       */
-/*                          uexp.c  upow.c  			           */
+/*                          uexp.c  upow.c			           */
 /*               root.tbl uexp.tbl upow.tbl                                */
 /* An ultimate power routine. Given two IEEE double machine numbers y,x    */
 /* it computes the correctly rounded (to nearest) value of x^y.            */
@@ -40,6 +40,7 @@
 #include "mydefs.h"
 #include "MathLib.h"
 #include "upow.tbl"
+#include "math_private.h"
 
 
 double __exp1(double x, double xx, double error);
diff --git a/sysdeps/ieee754/dbl-64/e_remainder.c b/sysdeps/ieee754/dbl-64/e_remainder.c
index c59e5895d8..9c82ae7dfc 100644
--- a/sysdeps/ieee754/dbl-64/e_remainder.c
+++ b/sysdeps/ieee754/dbl-64/e_remainder.c
@@ -33,6 +33,7 @@
 #include "mydefs.h"
 #include "urem.h"
 #include "MathLib.h"
+#include "math_private.h"
 
 /**************************************************************************/
 /* An ultimate remainder routine. Given two IEEE double machine numbers x */
diff --git a/sysdeps/ieee754/dbl-64/e_sqrt.c b/sysdeps/ieee754/dbl-64/e_sqrt.c
index 570cc0e059..fefe586f84 100644
--- a/sysdeps/ieee754/dbl-64/e_sqrt.c
+++ b/sysdeps/ieee754/dbl-64/e_sqrt.c
@@ -37,6 +37,7 @@
 #include "dla.h"
 #include "MathLib.h"
 #include "root.tbl"
+#include "math_private.h"
 
 /*********************************************************************/
 /* An ultimate aqrt routine. Given an IEEE double machine number x   */