summaryrefslogtreecommitdiffstats
path: root/lib/msun
diff options
context:
space:
mode:
authordim <dim@FreeBSD.org>2012-11-10 21:22:10 +0000
committerdim <dim@FreeBSD.org>2012-11-10 21:22:10 +0000
commit464808b6f100795216849a2948e345eeaac23fec (patch)
tree1fa38f9b82a8ebc3a5099f560b9ce17922134e5a /lib/msun
parent0a289d546bde4f4a1b513aa568714d69732d3dc1 (diff)
downloadFreeBSD-src-464808b6f100795216849a2948e345eeaac23fec.zip
FreeBSD-src-464808b6f100795216849a2948e345eeaac23fec.tar.gz
Only define isnan, isnanf, __isnan and __isnanf in libc.so, not in
libc.a and libc_p.a. In addition, define isnan in libm.a and libm_p.a, but not in libm.so. This makes it possible to statically link executables using both isnan and isnanf with libc and libm. Tested by: kargl MFC after: 1 week
Diffstat (limited to 'lib/msun')
-rw-r--r--lib/msun/src/s_isnan.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/msun/src/s_isnan.c b/lib/msun/src/s_isnan.c
index 0f544db..a54ded3 100644
--- a/lib/msun/src/s_isnan.c
+++ b/lib/msun/src/s_isnan.c
@@ -30,8 +30,9 @@
#include "fpmath.h"
-/* Provided by libc */
-#if 0
+/* Provided by libc.so */
+#ifndef PIC
+#undef isnan
int
isnan(double d)
{
@@ -40,7 +41,7 @@ isnan(double d)
u.d = d;
return (u.bits.exp == 2047 && (u.bits.manl != 0 || u.bits.manh != 0));
}
-#endif
+#endif /* !PIC */
int
__isnanf(float f)
OpenPOWER on IntegriCloud