[BACK]Return to b.h CVS log [TXT][DIR] Up to [local] / OpenXM_contrib2 / asir2000 / include

Diff for /OpenXM_contrib2/asir2000/include/b.h between version 1.4 and 1.5

version 1.4, 2005/07/03 10:19:23 version 1.5, 2005/07/11 10:14:09
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/include/b.h,v 1.3 2000/08/22 05:04:14 noro Exp $   * $OpenXM: OpenXM_contrib2/asir2000/include/b.h,v 1.4 2005/07/03 10:19:23 ohara Exp $
 */  */
 #ifdef FBASE  #ifdef FBASE
 #define D_ADDP(x,y,z,u) addp(x,y,z,u)  #define D_ADDP(x,y,z,u) addp(x,y,z,u)
Line 82 
Line 82 
 #define PWRNUM(x,y,z) (*pwrnumt[NID((Q)x)])(x,y,z)  #define PWRNUM(x,y,z) (*pwrnumt[NID((Q)x)])(x,y,z)
 #define CHSGNNUM(x,y) { \  #define CHSGNNUM(x,y) { \
     if (NID((Q)x)==N_Q) { \      if (NID((Q)x)==N_Q) { \
         Q t; DUPQ((Q)(x),t); SGN((Q)t)= -SGN(t); (y)= t; } \          Q t__; DUPQ((Q)(x),t__); SGN((Q)t__)= -SGN(t__); (y)= t__; } \
     else if (NID((Q)x)==N_R) { \      else if (NID((Q)x)==N_R) { \
         Real t; NEWReal(t); BDY(t)= -BDY((Real)x); (y) = t; } \          Real t__; NEWReal(t__); BDY(t__)= -BDY((Real)x); (y) = t__; } \
     else {P t; (*chsgnnumt[NID((Q)x)])(x,&t); (y) = t; } }      else {P t__; (*chsgnnumt[NID((Q)x)])(x,&t__); (y) = t__; } }
 #define ADDQ(x,y,z) addq(x,y,z)  #define ADDQ(x,y,z) addq(x,y,z)
 #define SUBQ(x,y,z) subq(x,y,z)  #define SUBQ(x,y,z) subq(x,y,z)
 #define MULQ(x,y,z) mulq(x,y,z)  #define MULQ(x,y,z) mulq(x,y,z)
Line 136 
Line 136 
 #define MULNUM(x,y,z) mulmq(mod,(MQ)x,(MQ)y,(MQ *)z)  #define MULNUM(x,y,z) mulmq(mod,(MQ)x,(MQ)y,(MQ *)z)
 #define DIVNUM(x,y,z) divmq(mod,(MQ)x,(MQ)y,(MQ *)z)  #define DIVNUM(x,y,z) divmq(mod,(MQ)x,(MQ)y,(MQ *)z)
 #define PWRNUM(x,y,z) pwrmq(mod,(MQ)x,y,(MQ *)z)  #define PWRNUM(x,y,z) pwrmq(mod,(MQ)x,y,(MQ *)z)
 #define CHSGNNUM(x,y) {MQ t; NEWMQ(t),CONT(t)=mod-CONT((MQ)(x)); (y)=t; }  #define CHSGNNUM(x,y) {MQ t__; NEWMQ(t__),CONT(t__)=mod-CONT((MQ)(x)); (y)=t__; }
 #define ADDQ(x,y,z) addmq(mod,x,y,z)  #define ADDQ(x,y,z) addmq(mod,x,y,z)
 #define SUBQ(x,y,z) submq(mod,x,y,z)  #define SUBQ(x,y,z) submq(mod,x,y,z)
 #define MULQ(x,y,z) mulmq(mod,x,y,z)  #define MULQ(x,y,z) mulmq(mod,x,y,z)

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

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