diff options
author | bde <bde@FreeBSD.org> | 2008-02-13 16:56:52 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 2008-02-13 16:56:52 +0000 |
commit | 234b4ba1f790ab935917135503b97dbcd498be15 (patch) | |
tree | 7b48b9d5960e126db85b3634be4c08899795dfa3 /lib/msun/src/s_floorl.c | |
parent | d212ebbda30867538fadac723d8c000c81f5ad4e (diff) | |
download | FreeBSD-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.c | 4 |
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 |