diff options
author | das <das@FreeBSD.org> | 2008-03-30 20:03:06 +0000 |
---|---|---|
committer | das <das@FreeBSD.org> | 2008-03-30 20:03:06 +0000 |
commit | ca69e4f334b0df27038c3c874e1a60fac5050b43 (patch) | |
tree | 1931e76aa2475fd72b525cff10e157d7ac1172b3 /lib/msun/src/e_hypot.c | |
parent | b48d845e623ac1c3e470a91dec2dac88b0c57578 (diff) | |
download | FreeBSD-src-ca69e4f334b0df27038c3c874e1a60fac5050b43.zip FreeBSD-src-ca69e4f334b0df27038c3c874e1a60fac5050b43.tar.gz |
Alias hypotl() and cabsl() for platforms where long double is the same
as double.
Diffstat (limited to 'lib/msun/src/e_hypot.c')
-rw-r--r-- | lib/msun/src/e_hypot.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/msun/src/e_hypot.c b/lib/msun/src/e_hypot.c index 30177fb..fb498c1 100644 --- a/lib/msun/src/e_hypot.c +++ b/lib/msun/src/e_hypot.c @@ -46,6 +46,8 @@ __FBSDID("$FreeBSD$"); * than 1 ulps (units in the last place) */ +#include <float.h> + #include "math.h" #include "math_private.h" @@ -123,3 +125,7 @@ __ieee754_hypot(double x, double y) return t1*w; } else return w; } + +#if LDBL_MANT_DIG == 53 +__weak_reference(hypot, hypotl); +#endif |