diff options
| author | Steve Kargl <kargl@FreeBSD.org> | 2012-09-22 15:38:29 +0000 |
|---|---|---|
| committer | Steve Kargl <kargl@FreeBSD.org> | 2012-09-22 15:38:29 +0000 |
| commit | 340076f0f6f6de72daa67a321649f76963da6b85 (patch) | |
| tree | 6780aae6505dbdeb2817cd793fd54112edd58272 /lib/msun | |
| parent | e6f9129aa0d9c6e00518edaa1eda0d0db426634b (diff) | |
Notes
Diffstat (limited to 'lib/msun')
| -rw-r--r-- | lib/msun/src/s_cosl.c | 9 | ||||
| -rw-r--r-- | lib/msun/src/s_sinl.c | 9 | ||||
| -rw-r--r-- | lib/msun/src/s_tanl.c | 9 |
3 files changed, 21 insertions, 6 deletions
diff --git a/lib/msun/src/s_cosl.c b/lib/msun/src/s_cosl.c index 8d436264df169..22e74cf675a4a 100644 --- a/lib/msun/src/s_cosl.c +++ b/lib/msun/src/s_cosl.c @@ -33,6 +33,9 @@ __FBSDID("$FreeBSD$"); */ #include <float.h> +#ifdef __i386__ +#include <ieeefp.h> +#endif #include "math.h" #include "math_private.h" @@ -63,9 +66,11 @@ cosl(long double x) if (z.bits.exp == 32767) return ((x - x) / (x - x)); + ENTERI(); + /* Optimize the case where x is already within range. */ if (z.e < M_PI_4) - return (__kernel_cosl(z.e, 0)); + RETURNI(__kernel_cosl(z.e, 0)); e0 = __ieee754_rem_pio2l(x, y); hi = y[0]; @@ -86,5 +91,5 @@ cosl(long double x) break; } - return (hi); + RETURNI(hi); } diff --git a/lib/msun/src/s_sinl.c b/lib/msun/src/s_sinl.c index 919deb9227450..f454f8f9b5af7 100644 --- a/lib/msun/src/s_sinl.c +++ b/lib/msun/src/s_sinl.c @@ -28,6 +28,9 @@ __FBSDID("$FreeBSD$"); #include <float.h> +#ifdef __i386__ +#include <ieeefp.h> +#endif #include "math.h" #include "math_private.h" @@ -59,10 +62,12 @@ sinl(long double x) if (z.bits.exp == 32767) return ((x - x) / (x - x)); + ENTERI(); + /* Optimize the case where x is already within range. */ if (z.e < M_PI_4) { hi = __kernel_sinl(z.e, 0, 0); - return (s ? -hi : hi); + RETURNI(s ? -hi : hi); } e0 = __ieee754_rem_pio2l(x, y); @@ -84,5 +89,5 @@ sinl(long double x) break; } - return (hi); + RETURNI(hi); } diff --git a/lib/msun/src/s_tanl.c b/lib/msun/src/s_tanl.c index 9562cf88a227e..eadc8375dc743 100644 --- a/lib/msun/src/s_tanl.c +++ b/lib/msun/src/s_tanl.c @@ -34,6 +34,9 @@ __FBSDID("$FreeBSD$"); */ #include <float.h> +#ifdef __i386__ +#include <ieeefp.h> +#endif #include "math.h" #include "math_private.h" @@ -65,10 +68,12 @@ tanl(long double x) if (z.bits.exp == 32767) return ((x - x) / (x - x)); + ENTERI(); + /* Optimize the case where x is already within range. */ if (z.e < M_PI_4) { hi = __kernel_tanl(z.e, 0, 0); - return (s ? -hi : hi); + RETURNI(s ? -hi : hi); } e0 = __ieee754_rem_pio2l(x, y); @@ -86,5 +91,5 @@ tanl(long double x) break; } - return (hi); + RETURNI(hi); } |
