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

Diff for /OpenXM_contrib2/asir2018/builtin/dp-supp.c between version 1.17 and 1.18

version 1.17, 2020/12/15 07:40:09 version 1.18, 2022/09/10 04:04:50
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/dp-supp.c,v 1.16 2020/12/05 03:27:20 noro Exp $   * $OpenXM: OpenXM_contrib2/asir2018/builtin/dp-supp.c,v 1.17 2020/12/15 07:40:09 noro Exp $
 */  */
 #include "ca.h"  #include "ca.h"
 #include "base.h"  #include "base.h"
Line 96  LIST get_denomlist()
Line 96  LIST get_denomlist()
   return l;    return l;
 }  }
   
   int dp_iszp(DP p)
   {
     MP m;
   
     if ( !p ) return 1;
     for ( m = BDY(p); m; m = NEXT(m))
       if ( !INT(m->c) ) return 0;
     return 1;
   }
   
 void dp_ptozp(DP p,DP *rp)  void dp_ptozp(DP p,DP *rp)
 {  {
   MP m,mr,mr0;    MP m,mr,mr0;
Line 145  void dp_ptozp2(DP p0,DP p1,DP *hp,DP *rp)
Line 155  void dp_ptozp2(DP p0,DP p1,DP *hp,DP *rp)
   if ( r )    if ( r )
     r->sugar = p1->sugar;      r->sugar = p1->sugar;
   *hp = h; *rp = r;    *hp = h; *rp = r;
   }
   
   int dpm_iszp(DPM p)
   {
     DMM m;
   
     if ( !p ) return 1;
     for ( m = BDY(p); m; m = NEXT(m))
       if ( !INT(m->c) ) return 0;
     return 1;
 }  }
   
 void dpm_ptozp(DPM p,Z *cont,DPM *rp)  void dpm_ptozp(DPM p,Z *cont,DPM *rp)

Legend:
Removed from v.1.17  
changed lines
  Added in v.1.18

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