diff options
| author | David Schultz <das@FreeBSD.org> | 2008-03-30 20:03:06 +0000 |
|---|---|---|
| committer | David Schultz <das@FreeBSD.org> | 2008-03-30 20:03:06 +0000 |
| commit | a641fc76eb92e28aa00bbd58cd3e47f1f1bf86b1 (patch) | |
| tree | 1931e76aa2475fd72b525cff10e157d7ac1172b3 /lib | |
| parent | 2264157a42d28b86c281337cfd84c3155ec14bc1 (diff) | |
Notes
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/msun/src/e_hypot.c | 6 | ||||
| -rw-r--r-- | lib/msun/src/w_cabs.c | 8 |
2 files changed, 12 insertions, 2 deletions
diff --git a/lib/msun/src/e_hypot.c b/lib/msun/src/e_hypot.c index 30177fbf3858..fb498c1c4029 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 diff --git a/lib/msun/src/w_cabs.c b/lib/msun/src/w_cabs.c index eae6dc00421c..543b8581044d 100644 --- a/lib/msun/src/w_cabs.c +++ b/lib/msun/src/w_cabs.c @@ -9,11 +9,15 @@ __FBSDID("$FreeBSD$"); #include <complex.h> +#include <float.h> #include <math.h> double -cabs(z) - double complex z; +cabs(double complex z) { return hypot(creal(z), cimag(z)); } + +#if LDBL_MANT_DIG == 53 +__weak_reference(cabs, cabsl); +#endif |
