diff options
author | Siddhesh Poyarekar <siddhesh@sourceware.org> | 2016-10-06 12:57:07 +0530 |
---|---|---|
committer | Siddhesh Poyarekar <siddhesh@sourceware.org> | 2016-10-06 12:57:07 +0530 |
commit | 9cb069308c833d98b1ba9c78cb41cff0e90f323d (patch) | |
tree | 3f7d9a19b2f647e997421da260019c304dcd433e | |
parent | ead1ef37d2c3cd998dffb803c43a4fc2d08537ff (diff) | |
download | glibc-9cb069308c833d98b1ba9c78cb41cff0e90f323d.zip glibc-9cb069308c833d98b1ba9c78cb41cff0e90f323d.tar.gz glibc-9cb069308c833d98b1ba9c78cb41cff0e90f323d.tar.bz2 |
Adjust calls to do_sincos_1 and do_sincos_2 in s_sincos.c
Adjust calls to do_sincos_1 and do_sincos_2 to pass a boolean
shift_quadrant instead of the numeric 0 and 1.
This does not affect codegen.
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | sysdeps/ieee754/dbl-64/s_sincos.c | 8 |
2 files changed, 7 insertions, 4 deletions
@@ -1,5 +1,8 @@ 2016-10-06 Siddhesh Poyarekar <siddhesh@sourceware.org> + * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Adjust calls to + do_sincos_1 and do_sincos_2 to pass a boolean shift_quadrant. + * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): Make K boolean and rename it. (__sin): Adjust. diff --git a/sysdeps/ieee754/dbl-64/s_sincos.c b/sysdeps/ieee754/dbl-64/s_sincos.c index c389226..ca44b90 100644 --- a/sysdeps/ieee754/dbl-64/s_sincos.c +++ b/sysdeps/ieee754/dbl-64/s_sincos.c @@ -80,8 +80,8 @@ __sincos (double x, double *sinx, double *cosx) double a, da; int4 n = reduce_sincos_1 (x, &a, &da); - *sinx = do_sincos_1 (a, da, x, n, 0); - *cosx = do_sincos_1 (a, da, x, n, 1); + *sinx = do_sincos_1 (a, da, x, n, false); + *cosx = do_sincos_1 (a, da, x, n, true); return; } @@ -90,8 +90,8 @@ __sincos (double x, double *sinx, double *cosx) double a, da; int4 n = reduce_sincos_2 (x, &a, &da); - *sinx = do_sincos_2 (a, da, x, n, 0); - *cosx = do_sincos_2 (a, da, x, n, 1); + *sinx = do_sincos_2 (a, da, x, n, false); + *cosx = do_sincos_2 (a, da, x, n, true); return; } |