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

Diff for /OpenXM_contrib2/asir2000/engine/M.c between version 1.5 and 1.6

version 1.5, 2001/06/07 04:54:40 version 1.6, 2001/06/25 01:35:21
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/M.c,v 1.4 2000/12/05 01:24:52 noro Exp $   * $OpenXM: OpenXM_contrib2/asir2000/engine/M.c,v 1.5 2001/06/07 04:54:40 noro Exp $
 */  */
 #include "ca.h"  #include "ca.h"
 #include "base.h"  #include "base.h"
Line 388  int n,bound;
Line 388  int n,bound;
         for ( i = 0, c = (int **)COEF(p); i <= n; i++ ) {          for ( i = 0, c = (int **)COEF(p); i <= n; i++ ) {
                 c[i] = (int *)MALLOC_ATOMIC((bound+1)*sizeof(int));                  c[i] = (int *)MALLOC_ATOMIC((bound+1)*sizeof(int));
                 bzero((char *)c[i],(bound+1)*sizeof(int));                  bzero((char *)c[i],(bound+1)*sizeof(int));
           }
           return p;
   }
   
   BM BMALLOC(n,bound)
   int n,bound;
   {
           BM p;
           UM *c;
           int i;
   
           p = (BM)MALLOC(TRUESIZE(oBM,n,UM));
           DEG(p) = n;
           for ( i = 0, c = (UM *)COEF(p); i <= n; i++ ) {
                   c[i] = UMALLOC(bound);
                   DEG(c[i]) = -1;
                   bzero((char *)COEF(c[i]),(bound+1)*sizeof(int));
         }          }
         return p;          return p;
 }  }

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

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