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.
This commit is contained in:
Siddhesh Poyarekar 2016-10-06 12:57:07 +05:30
parent ead1ef37d2
commit 9cb069308c
2 changed files with 7 additions and 4 deletions
ChangeLog
sysdeps/ieee754/dbl-64

View File

@ -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.

View File

@ -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;
}