From 1089944bee3c4fe88d062d1c715a99906098710c Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Sun, 22 Jul 2018 19:40:42 -0400 Subject: [PATCH] libm: Fixed signature mismatches for __ieee754_rem_pio2 and __kernel_rem_pio2. Fixes Bugzilla #4201. --- src/libm/k_rem_pio2.c | 2 +- src/libm/math_private.h | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/libm/k_rem_pio2.c b/src/libm/k_rem_pio2.c index 7b04275c6..162b8e96e 100644 --- a/src/libm/k_rem_pio2.c +++ b/src/libm/k_rem_pio2.c @@ -147,7 +147,7 @@ one = 1.0, two24 = 1.67772160000000000000e+07, /* 0x41700000, 0x00000000 */ twon24 = 5.96046447753906250000e-08; /* 0x3E700000, 0x00000000 */ -int attribute_hidden __kernel_rem_pio2(double *x, double *y, int e0, int nx, int prec, const int32_t *ipio2) +int32_t attribute_hidden __kernel_rem_pio2(double *x, double *y, int e0, int nx, int prec, const int32_t *ipio2) { int32_t jz,jx,jv,jp,jk,carry,n,iq[20],i,j,k,m,q0,ih; double z,fw,f[20],fq[20],q[20]; diff --git a/src/libm/math_private.h b/src/libm/math_private.h index 1c0c8a4e9..57bb6bfd7 100644 --- a/src/libm/math_private.h +++ b/src/libm/math_private.h @@ -206,7 +206,7 @@ __ieee754_sqrt(double) extern double __ieee754_jn(int, double) attribute_hidden; extern double __ieee754_yn(int, double) attribute_hidden; extern double __ieee754_remainder(double, double) attribute_hidden; - extern int __ieee754_rem_pio2(double, double *) attribute_hidden; + extern int32_t __ieee754_rem_pio2(double, double *) attribute_hidden; #if defined(_SCALB_INT) extern double __ieee754_scalb(double, int) attribute_hidden; #else @@ -220,7 +220,7 @@ __ieee754_sqrt(double) extern double __kernel_sin(double, double, int) attribute_hidden; extern double __kernel_cos(double, double) attribute_hidden; extern double __kernel_tan(double, double, int) attribute_hidden; - extern int __kernel_rem_pio2(double *, double *, int, int, int, - const int *) attribute_hidden; + extern int32_t __kernel_rem_pio2(double *, double *, int, int, int, + const int32_t *) attribute_hidden; #endif /* _MATH_PRIVATE_H_ */