diff options
Diffstat (limited to 'lib/msun/src')
-rw-r--r-- | lib/msun/src/math.h | 2 | ||||
-rw-r--r-- | lib/msun/src/s_exp2.c | 6 |
2 files changed, 8 insertions, 0 deletions
diff --git a/lib/msun/src/math.h b/lib/msun/src/math.h index 07bbd57..41545eb 100644 --- a/lib/msun/src/math.h +++ b/lib/msun/src/math.h @@ -408,7 +408,9 @@ long double coshl(long double); long double cosl(long double); long double erfcl(long double); long double erfl(long double); +#endif long double exp2l(long double); +#if 0 long double expl(long double); long double expm1l(long double); #endif diff --git a/lib/msun/src/s_exp2.c b/lib/msun/src/s_exp2.c index 8dce338..6593a50 100644 --- a/lib/msun/src/s_exp2.c +++ b/lib/msun/src/s_exp2.c @@ -27,6 +27,8 @@ #include <sys/cdefs.h> __FBSDID("$FreeBSD$"); +#include <float.h> + #include "math.h" #include "math_private.h" @@ -387,3 +389,7 @@ exp2(double x) return (r * twom1000); } } + +#if (LDBL_MANT_DIG == 53) +__weak_reference(exp2, exp2l); +#endif |