[BACK]Return to poly.c CVS log [TXT][DIR] Up to [local] / OpenXM_contrib2 / asir2018 / builtin

Diff for /OpenXM_contrib2/asir2018/builtin/poly.c between version 1.2 and 1.4

version 1.2, 2018/09/28 08:20:27 version 1.4, 2020/10/06 06:31:19
Line 45 
Line 45 
  * DEVELOPER SHALL HAVE NO LIABILITY IN CONNECTION WITH THE USE,   * DEVELOPER SHALL HAVE NO LIABILITY IN CONNECTION WITH THE USE,
  * PERFORMANCE OR NON-PERFORMANCE OF THE SOFTWARE.   * PERFORMANCE OR NON-PERFORMANCE OF THE SOFTWARE.
  *   *
  * $OpenXM: OpenXM_contrib2/asir2018/builtin/poly.c,v 1.1 2018/09/19 05:45:06 noro Exp $   * $OpenXM: OpenXM_contrib2/asir2018/builtin/poly.c,v 1.3 2019/03/03 05:21:16 noro Exp $
 */  */
 #include "ca.h"  #include "ca.h"
 #include "parse.h"  #include "parse.h"
Line 382  void Pget_next_fft_prime(NODE arg,LIST *rp)
Line 382  void Pget_next_fft_prime(NODE arg,LIST *rp)
   start = ZTOS((Q)ARG0(arg));    start = ZTOS((Q)ARG0(arg));
   bits = ZTOS((Q)ARG1(arg));    bits = ZTOS((Q)ARG1(arg));
   for ( i = start; ; i++ ) {    for ( i = start; ; i++ ) {
     get_fft_prime(i,&mod,&d);      get_fft_prime(i,(int *)&mod,(int *)&d);
     if ( !mod ) {      if ( !mod ) {
       *rp = 0; return;        *rp = 0; return;
     }      }
Line 1377  void Ppwrmod_ff(NODE arg,P *rp)
Line 1377  void Ppwrmod_ff(NODE arg,P *rp)
   ptoup((P)ARG0(arg),&p1);    ptoup((P)ARG0(arg),&p1);
   switch ( current_ff ) {    switch ( current_ff ) {
     case FF_GFP:      case FF_GFP:
   /* XXX : hybrid version may not be useful ... */
   #if 1
       hybrid_powermodup(p1,&p2); break;        hybrid_powermodup(p1,&p2); break;
   #else
         powermodup(p1,&p2); break;
   #endif
     case FF_GF2N:      case FF_GF2N:
       powermodup_gf2n(p1,&p2); break;        powermodup_gf2n(p1,&p2); break;
     case FF_GFPN:      case FF_GFPN:

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.4

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>