=================================================================== RCS file: /home/cvs/OpenXM_contrib2/asir2000/fft/polmul.c,v retrieving revision 1.4 retrieving revision 1.6 diff -u -p -r1.4 -r1.6 --- OpenXM_contrib2/asir2000/fft/polmul.c 2015/08/08 14:19:42 1.4 +++ OpenXM_contrib2/asir2000/fft/polmul.c 2018/03/29 01:32:53 1.6 @@ -45,7 +45,7 @@ * DEVELOPER SHALL HAVE NO LIABILITY IN CONNECTION WITH THE USE, * PERFORMANCE OR NON-PERFORMANCE OF THE SOFTWARE. * - * $OpenXM: OpenXM_contrib2/asir2000/fft/polmul.c,v 1.3 2000/08/22 05:04:13 noro Exp $ + * $OpenXM: OpenXM_contrib2/asir2000/fft/polmul.c,v 1.5 2015/08/14 13:51:55 fujimoto Exp $ */ #include "dft.h" extern struct PrimesS Primes[]; @@ -154,7 +154,7 @@ double Pinv; dft1 = wk, dft2 = &wk[n]; dftprod = &dft2[n]; powa = &dftprod[n]; - true_wk = &powa[halfn]; /* 2*n areas */ + true_wk = &powa[halfn]; /* 2*n areas */ /**/ C_PREP_ALPHA( a, low0s, log2n, halfn -1, powa, P, Pinv ); #ifdef TIMING @@ -204,7 +204,7 @@ double Pinv; dft1 = wk, dft2 = &wk[n]; dftprod = &dft2[n]; powa = &dftprod[n]; - true_wk = &powa[halfn]; /* 2*n areas */ + true_wk = &powa[halfn]; /* 2*n areas */ /**/ C_PREP_ALPHA( a, low0s, log2n, halfn -1, powa, P, Pinv ); #ifdef TIMING @@ -278,7 +278,7 @@ char **argv; d = (d1 = atoi( av[0] )) + (d2 = atoi( av[1] )); if ( d1 <= 0 || d2 <= 0 || d >= MaxNPnts ) { fprintf( stderr, "*** invalid degrees %s & %s. (sum < %d)\n", - av[0], av[1], MaxNPnts ); + av[0], av[1], MaxNPnts ); continue; } generate_pol( d1, Pol1 ); @@ -350,9 +350,6 @@ fprintf( stderr, "mul by classical alg. done ( %d time fprintf( stderr, "\nClassical mult: " ); Pr_timing( 10 ); fprintf( stderr, "\n" ); #endif /* TIMING */ -#if defined(__MINGW32__) || defined(__MINGW64__) - fflush(stderr); -#endif } } @@ -410,8 +407,8 @@ int *error; for ( j = 1; j < 5 && i + j < n; j++ ) printf( ",%10d", (int)v1[i+j] ); printf( "\n" ); if ( (int)v1[i] == (int)v2[i] && (int)v1[i+1] == (int)v2[i+1] - && (int)v1[i+2] == (int)v2[i+2] && (int)v1[i+3] == (int)v2[i+3] - && (int)v1[i+4] == (int)v2[i+4] ) continue; + && (int)v1[i+2] == (int)v2[i+2] && (int)v1[i+3] == (int)v2[i+3] + && (int)v1[i+4] == (int)v2[i+4] ) continue; printf( " " ); for ( j = 0; j < 5 && i + j < n; j++ ) if ( (int)v1[i+j] == (int)v2[i+j] ) printf( " " );