[BACK]Return to pari.c CVS log [TXT][DIR] Up to [local] / OpenXM_contrib2 / asir2000 / engine

Diff for /OpenXM_contrib2/asir2000/engine/pari.c between version 1.3 and 1.8

version 1.3, 2000/08/22 05:04:06 version 1.8, 2009/03/16 16:43:02
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/asir2000/engine/pari.c,v 1.2 2000/08/21 08:31:28 noro Exp $   * $OpenXM: OpenXM_contrib2/asir2000/engine/pari.c,v 1.7 2005/10/10 15:16:38 saito Exp $
 */  */
 #include "ca.h"  #include "ca.h"
 #if PARI  #if defined(PARI)
 #include "base.h"  #include "base.h"
 #include <math.h>  #include <math.h>
 #include "genpari.h"  #include "genpari.h"
   
 #if defined(THINK_C)  
 void patori(GEN,Obj *);  void patori(GEN,Obj *);
 void patori_i(GEN,N *);  void patori_i(GEN,N *);
 void ritopa(Obj,GEN *);  void ritopa(Obj,GEN *);
 void ritopa_i(N,int,GEN *);  void ritopa_i(N,int,GEN *);
 #else  
 void patori();  
 void patori_i();  
 void ritopa();  
 void ritopa_i();  
 #endif  
   
 extern long prec;  extern long prec;
 extern int paristack;  extern int paristack;
   
 void risa_pari_init() {  void risa_pari_init() {
         char buf[BUFSIZ];  
         int i;  
   
         pari_init(paristack,2);          pari_init(paristack,2);
         prec = 4;          prec = 4;
 }  }
Line 86  int index;
Line 76  int index;
         if ( index > max_varn ) {          if ( index > max_varn ) {
                 for ( i = max_varn+1; i <= index; i++ ) {                  for ( i = max_varn+1; i <= index; i++ ) {
                         sprintf(name,"x%d",i);                          sprintf(name,"x%d",i);
   #if (PARI_VERSION_CODE < 131594)
                         fetch_named_var(name,0);                          fetch_named_var(name,0);
   #else
                           fetch_named_var(name);
   #endif
                 }                  }
                 max_varn = index;                  max_varn = index;
         }          }
Line 256  Obj *rp;
Line 250  Obj *rp;
         }          }
 }  }
   
 #if defined(LONG_IS_32BIT)  #if SIZEOF_LONG == 4
 void ritopa_i(a,s,rp)  void ritopa_i(a,s,rp)
 N a;  N a;
 int s;  int s;
Line 291  N *rp;
Line 285  N *rp;
         for ( j = 0, b = (unsigned int *)BD(z); j < l; j++ )          for ( j = 0, b = (unsigned int *)BD(z); j < l; j++ )
                 b[l-j-1] = ((unsigned int *)g)[j+2];                  b[l-j-1] = ((unsigned int *)g)[j+2];
 }  }
 #endif  
   
 #if defined(LONG_IS_64BIT)  #elif SIZEOF_LONG == 8
 void ritopa_i(a,s,rp)  void ritopa_i(a,s,rp)
 N a;  N a;
 int s;  int s;

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.8

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