From ba90412cda5dd8a3c07030fce4c22fd78b206d3c Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Wed, 8 Aug 2018 15:39:20 -0400 Subject: [PATCH] libm: Don't let Visual Studio generate an implicit memset() call. --- src/libm/k_rem_pio2.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/libm/k_rem_pio2.c b/src/libm/k_rem_pio2.c index 6cf68a91c..d49d78830 100644 --- a/src/libm/k_rem_pio2.c +++ b/src/libm/k_rem_pio2.c @@ -172,7 +172,9 @@ int32_t attribute_hidden __kernel_rem_pio2(double *x, double *y, int e0, int nx, /* set up f[0] to f[jx+jk] where f[jx+jk] = ipio2[jv+jk] */ j = jv-jx; m = jx+jk; for(i=0;i<=m;i++,j++) f[i] = (j<0)? zero : (double) ipio2[j]; - for(i=m+1;i