summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2007-04-12 03:41:16 +0000
committerMike Frysinger <vapier@gentoo.org>2007-04-12 03:41:16 +0000
commit60dfbf13d6953f00b54bf6135aaad74de5b8e7b1 (patch)
treed7d9d34197bee7ed883c87851c175a958c77f6d1
parent8cb3c9dee2f9762f7b9e9b193c9ffa01f9d25eb3 (diff)
remove __* symbols and enable llrintf()
-rw-r--r--libm/Makefile.in2
-rw-r--r--libm/float_wrappers.c1
-rw-r--r--libm/s_llrint.c9
3 files changed, 4 insertions, 8 deletions
diff --git a/libm/Makefile.in b/libm/Makefile.in
index d4fa790f9..10869a88e 100644
--- a/libm/Makefile.in
+++ b/libm/Makefile.in
@@ -81,7 +81,7 @@ FL_MOBJ := \
log1pf.o log2f.o logbf.o logf.o lrintf.o lroundf.o modff.o nearbyintf.o \
nextafterf.o powf.o remainderf.o remquof.o rintf.o roundf.o \
scalblnf.o scalbnf.o sinf.o sinhf.o sqrtf.o tanf.o tanhf.o \
- tgammaf.o truncf.o cargf.o
+ tgammaf.o truncf.o cargf.o llrintf.o
else
# This list of math functions was taken from POSIX/IEEE 1003.1b-1993
libm_CSRC := \
diff --git a/libm/float_wrappers.c b/libm/float_wrappers.c
index ffcf252ee..cd841e661 100644
--- a/libm/float_wrappers.c
+++ b/libm/float_wrappers.c
@@ -20,7 +20,6 @@
#undef L_fmaf /*float fmaf(float, float, float);*/
#undef L_fmaxf /*float fmaxf(float, float);*/
#undef L_fminf /*float fminf(float, float);*/
-#undef L_llrintf /*long long llrintf(float);*/
#undef L_log2f /*float log2f(float);*/
#undef L_nearbyintf /*float nearbyintf(float);*/
#undef L_nexttowardf /*float nexttowardf(float, long double);*/
diff --git a/libm/s_llrint.c b/libm/s_llrint.c
index 64c870eaa..047290ab8 100644
--- a/libm/s_llrint.c
+++ b/libm/s_llrint.c
@@ -29,9 +29,10 @@ static const double two52[2] =
-4.50359962737049600000e+15, /* 0xC3300000, 0x00000000 */
};
+libm_hidden_proto(llrint)
long long int
-__llrint (double x)
+llrint (double x)
{
int32_t j0;
u_int32_t i1, i0;
@@ -86,8 +87,4 @@ __llrint (double x)
return sx ? -result : result;
}
-weak_alias (__llrint, llrint)
-#ifdef NO_LONG_DOUBLE
-strong_alias (__llrint, __llrintl)
-weak_alias (__llrint, llrintl)
-#endif
+libm_hidden_def(llrint)