libm: Fixed signature mismatches for __ieee754_rem_pio2 and __kernel_rem_pio2.
authorRyan C. Gordon <icculus@icculus.org>
Sun, 22 Jul 2018 19:40:42 -0400
changeset 12068ce88faaf8bd2
parent 12067 0e37a23d93cb
child 12069 317db3d3712c
libm: Fixed signature mismatches for __ieee754_rem_pio2 and __kernel_rem_pio2.

Fixes Bugzilla #4201.
src/libm/k_rem_pio2.c
src/libm/math_private.h
     1.1 --- a/src/libm/k_rem_pio2.c	Sun Jul 22 19:28:27 2018 -0400
     1.2 +++ b/src/libm/k_rem_pio2.c	Sun Jul 22 19:40:42 2018 -0400
     1.3 @@ -147,7 +147,7 @@
     1.4  two24   =  1.67772160000000000000e+07, /* 0x41700000, 0x00000000 */
     1.5  twon24  =  5.96046447753906250000e-08; /* 0x3E700000, 0x00000000 */
     1.6  
     1.7 -int attribute_hidden __kernel_rem_pio2(double *x, double *y, int e0, int nx, int prec, const int32_t *ipio2)
     1.8 +int32_t attribute_hidden __kernel_rem_pio2(double *x, double *y, int e0, int nx, int prec, const int32_t *ipio2)
     1.9  {
    1.10  	int32_t jz,jx,jv,jp,jk,carry,n,iq[20],i,j,k,m,q0,ih;
    1.11  	double z,fw,f[20],fq[20],q[20];
     2.1 --- a/src/libm/math_private.h	Sun Jul 22 19:28:27 2018 -0400
     2.2 +++ b/src/libm/math_private.h	Sun Jul 22 19:40:42 2018 -0400
     2.3 @@ -206,7 +206,7 @@
     2.4       extern double __ieee754_jn(int, double) attribute_hidden;
     2.5       extern double __ieee754_yn(int, double) attribute_hidden;
     2.6       extern double __ieee754_remainder(double, double) attribute_hidden;
     2.7 -     extern int __ieee754_rem_pio2(double, double *) attribute_hidden;
     2.8 +     extern int32_t __ieee754_rem_pio2(double, double *) attribute_hidden;
     2.9  #if defined(_SCALB_INT)
    2.10       extern double __ieee754_scalb(double, int) attribute_hidden;
    2.11  #else
    2.12 @@ -220,7 +220,7 @@
    2.13       extern double __kernel_sin(double, double, int) attribute_hidden;
    2.14       extern double __kernel_cos(double, double) attribute_hidden;
    2.15       extern double __kernel_tan(double, double, int) attribute_hidden;
    2.16 -     extern int __kernel_rem_pio2(double *, double *, int, int, int,
    2.17 -                                  const int *) attribute_hidden;
    2.18 +     extern int32_t __kernel_rem_pio2(double *, double *, int, int, int,
    2.19 +                                  const int32_t *) attribute_hidden;
    2.20  
    2.21  #endif /* _MATH_PRIVATE_H_ */