=================================================================== RCS file: /home/cvs/OpenXM_contrib2/asir2000/engine/up_gfpn.c,v retrieving revision 1.2 retrieving revision 1.7 diff -u -p -r1.2 -r1.7 --- OpenXM_contrib2/asir2000/engine/up_gfpn.c 2000/08/21 08:31:28 1.2 +++ OpenXM_contrib2/asir2000/engine/up_gfpn.c 2015/08/08 14:19:41 1.7 @@ -23,7 +23,7 @@ * shall be made on your publication or presentation in any form of the * results obtained by use of the SOFTWARE. * (4) In the event that you modify the SOFTWARE, you shall notify FLL by - * e-mail at risa-admin@flab.fujitsu.co.jp of the detailed specification + * e-mail at risa-admin@sec.flab.fujitsu.co.jp of the detailed specification * for such modification or the source code of the modified part of the * SOFTWARE. * @@ -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/engine/up_gfpn.c,v 1.1.1.1 1999/12/03 07:39:08 noro Exp $ + * $OpenXM: OpenXM_contrib2/asir2000/engine/up_gfpn.c,v 1.6 2015/08/06 10:01:52 fujimoto Exp $ */ #include "ca.h" #include @@ -267,13 +267,13 @@ UP *r; k[j] += c2*f[i][j]; } uiarraytoup(sum,len,d,&s); - GC_free(sum_b); + GCFREE(sum_b); u = UPALLOC(d); for ( j = 0; j <= d; j++ ) { #if 1 a = (UL)floor(k[j]); -#if defined(i386) || defined(__alpha) || defined(VISUAL) +#if defined(i386) || defined(__alpha) || defined(VISUAL) || defined(__MINGW32__) || defined(__MINGW64__) || defined(__x86_64) au = ((unsigned int *)&a)[1]; al = ((unsigned int *)&a)[0]; #else @@ -512,10 +512,14 @@ UP *tab; invmodup(t,f->d,&invf); for ( i = 2; i < d; i++ ) { - if ( debug_up ) - fprintf(stderr,"."); - hybrid_mulup(FF_GFP,tab[i-1],xp,&t); - hybrid_rembymulup_special(FF_GFP,t,f,invf,&tab[i]); + if ( debug_up ){ + fprintf(stderr,"."); +#if defined(__MINGW32__) || defined(__MINGW64__) + fflush(stderr); +#endif + } + hybrid_mulup(FF_GFP,tab[i-1],xp,&t); + hybrid_rembymulup_special(FF_GFP,t,f,invf,&tab[i]); } } @@ -539,9 +543,13 @@ UP *tab; invmodup(t,f->d,&invf); for ( i = 2; i < d; i++ ) { - if ( debug_up ) - fprintf(stderr,"."); - kmulup(tab[i-1],xp,&t); - rembymulup_special(t,f,invf,&tab[i]); + if ( debug_up ){ + fprintf(stderr,"."); +#if defined(__MINGW32__) || defined(__MINGW64__) + fflush(stderr); +#endif + } + kmulup(tab[i-1],xp,&t); + rembymulup_special(t,f,invf,&tab[i]); } }