summaryrefslogtreecommitdiffstats
path: root/lib/msun/src/s_floorl.c
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>2008-02-13 16:56:52 +0000
committerbde <bde@FreeBSD.org>2008-02-13 16:56:52 +0000
commit234b4ba1f790ab935917135503b97dbcd498be15 (patch)
tree7b48b9d5960e126db85b3634be4c08899795dfa3 /lib/msun/src/s_floorl.c
parentd212ebbda30867538fadac723d8c000c81f5ad4e (diff)
downloadFreeBSD-src-234b4ba1f790ab935917135503b97dbcd498be15.zip
FreeBSD-src-234b4ba1f790ab935917135503b97dbcd498be15.tar.gz
On arches where long double is the same as double, alias ceil(), floor()
and trunc() to the corresponding long double functions. This is not just an optimization for these arches. The full long double functions have a wrong value for `huge', and the arches without full long doubles depended on it being wrong.
Diffstat (limited to 'lib/msun/src/s_floorl.c')
-rw-r--r--lib/msun/src/s_floorl.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/msun/src/s_floorl.c b/lib/msun/src/s_floorl.c
index 9dd13b6..1e0439f 100644
--- a/lib/msun/src/s_floorl.c
+++ b/lib/msun/src/s_floorl.c
@@ -100,3 +100,7 @@ floorl(long double x)
}
return (u.e);
}
+
+#if LDBL_MANT_DIG == 53
+__weak_reference(floor, floorl);
+#endif
OpenPOWER on IntegriCloud