This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
A patch for libm
- To: GNU C Library <libc-alpha at sourceware dot cygnus dot com>
- Subject: A patch for libm
- From: "H . J . Lu" <hjl at valinux dot com>
- Date: Thu, 7 Dec 2000 09:55:40 -0800
Both libc and libm define the same functions. I don't think they are
necessary in libm. I did some tests. It seems safe to remove them
from libm. Here is a patch.
--
H.J. Lu (hjl@valinux.com)
---
2000-12-07 H.J. Lu <hjl@gnu.org>
* math/Makefile (libm-calls): Remove s_copysign, s_finite,
s_frexp, s_modf, s_scalbn and s_signbit.
* math/Versions (libm): Remove copysign*, finite*, frexp*,
ldexp*, modf*, scalbn*, __signbit* and __finite*.
(libc): Add __copysign, __copysignf and __copysignl to
GLIBC_2.2.1 for libm.
Index: math/Makefile
===================================================================
RCS file: /work/cvs/gnu/glibc/math/Makefile,v
retrieving revision 1.1.1.6
diff -u -p -r1.1.1.6 Makefile
--- math/Makefile 2000/09/29 15:53:41 1.1.1.6
+++ math/Makefile 2000/12/07 16:51:45
@@ -45,14 +45,14 @@ libm-calls = e_acos e_acosh e_asin e_ata
e_hypot e_j0 e_j1 e_jn e_lgamma_r e_log e_log10 e_pow \
e_rem_pio2 e_remainder e_scalb e_sinh e_sqrt e_gamma_r \
k_cos k_rem_pio2 k_sin k_tan s_asinh s_atan s_cbrt \
- s_ceil s_copysign s_cos s_erf s_expm1 s_fabs s_finite \
- s_floor s_frexp s_ilogb s_ldexp s_log1p s_logb \
- s_modf s_nextafter s_nexttoward s_rint s_scalbn s_scalbln \
+ s_ceil s_cos s_erf s_expm1 s_fabs \
+ s_floor s_ilogb s_log1p s_logb \
+ s_nextafter s_nexttoward s_rint s_scalbln \
s_significand s_sin s_tan s_tanh w_acos w_acosh w_asin \
w_atan2 w_atanh w_cosh w_drem w_exp w_exp2 w_exp10 w_fmod \
w_tgamma w_hypot w_j0 w_j1 w_jn w_lgamma w_lgamma_r \
w_log w_log10 w_pow w_remainder w_scalb w_sinh w_sqrt \
- s_signbit s_fpclassify s_fmax s_fmin s_fdim s_nan s_trunc \
+ s_fpclassify s_fmax s_fmin s_fdim s_nan s_trunc \
s_remquo s_log2 s_exp2 s_round s_nearbyint s_sincos \
conj cimag creal cabs carg s_cexp s_csinh s_ccosh s_clog \
s_catan s_casin s_ccos s_csin s_ctan s_ctanh s_cacos \
Index: math/Versions
===================================================================
RCS file: /work/cvs/gnu/glibc/math/Versions,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 Versions
--- math/Versions 2000/05/21 21:11:17 1.1.1.1
+++ math/Versions 2000/12/07 17:43:48
@@ -29,6 +29,10 @@ libc {
# s*
scalbln; scalblnf; scalblnl;
}
+ GLIBC_2.2.1 {
+ # functions used by libm
+ __copysign; __copysignf; __copysignl;
+ }
}
libm {
@@ -43,7 +47,6 @@ libm {
atanh; atanhf; atanhl;
cbrt; cbrtf; cbrtl;
ceil; ceilf; ceill;
- copysign; copysignf; copysignl;
cos; cosf; cosl;
coshf; cosh; coshl;
drem; dremf; dreml;
@@ -52,10 +55,8 @@ libm {
exp; expf; expl;
expm1; expm1f; expm1l;
fabs; fabsf; fabsl;
- finite; finitef; finitel;
floor; floorf; floorl;
fmod; fmodf; fmodl;
- frexp; frexpf; frexpl;
gamma; gammaf; gammal;
gamma_r; gammaf_r; gammal_r;
hypot; hypotf; hypotl;
@@ -63,7 +64,6 @@ libm {
j0; j0f; j0l;
j1; j1f; j1l;
jn; jnf; jnl;
- ldexp; ldexpf; ldexpl;
lgamma; lgammaf; lgammal;
lgamma_r; lgammaf_r; lgammal_r;
log10; log10f; log10l;
@@ -71,13 +71,11 @@ libm {
log; logf; logl;
logb; logbf; logbl;
matherr;
- modf; modff; modfl;
nextafter; nextafterf; nextafterl;
pow; powf; powl;
remainder; remainderf; remainderl;
rint; rintf; rintl;
scalb; scalbf; scalbl;
- scalbn; scalbnf; scalbnl;
significand; significandf; significandl;
sin; sinf; sinl;
sinh; sinhf; sinhl;
@@ -149,9 +147,7 @@ libm {
fetestexcept; feupdateenv;
# functions used in inline functions or macros
- __finite; __finitef; __finitel;
__fpclassify; __fpclassifyf; __fpclassifyl;
- __signbit; __signbitf; __signbitl;
}
GLIBC_2.2 {
# fp environment functions changes from ISO C99 TR1