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

Diff for /OpenXM_contrib2/asir2000/engine/nd.c between version 1.53 and 1.54

version 1.53, 2003/08/29 07:37:30 version 1.54, 2003/08/31 07:42:23
Line 1 
Line 1 
 /* $OpenXM: OpenXM_contrib2/asir2000/engine/nd.c,v 1.52 2003/08/27 02:21:16 noro Exp $ */  /* $OpenXM: OpenXM_contrib2/asir2000/engine/nd.c,v 1.53 2003/08/29 07:37:30 noro Exp $ */
   
 #include "ca.h"  #include "ca.h"
 #include "inline.h"  #include "inline.h"
Line 1605  NODE nd_reduceall(int m,NODE f)
Line 1605  NODE nd_reduceall(int m,NODE f)
         for ( n = 0, t = f; t; t = NEXT(t), n++ );          for ( n = 0, t = f; t; t = NEXT(t), n++ );
         ps = (NDV *)ALLOCA(n*sizeof(NDV));          ps = (NDV *)ALLOCA(n*sizeof(NDV));
         bound = (unsigned int **)ALLOCA(n*sizeof(unsigned int *));          bound = (unsigned int **)ALLOCA(n*sizeof(unsigned int *));
         for ( i = 0, t = f; i < n; i++, t = NEXT(t) ) {          for ( i = 0, t = f; i < n; i++, t = NEXT(t) ) ps[i] = (NDV)BDY(t);
                 ps[i] = (NDV)BDY(t);  
                 bound[i] = ndv_compute_bound(ps[i]);  
         }  
         qsort(ps,n,sizeof(NDV),(int (*)(const void *,const void *))ndv_compare);          qsort(ps,n,sizeof(NDV),(int (*)(const void *,const void *))ndv_compare);
           for ( i = 0; i < n; i++ ) bound[i] = ndv_compute_bound(ps[i]);
         base.ps = (NDV *)ALLOCA((n-1)*sizeof(NDV));          base.ps = (NDV *)ALLOCA((n-1)*sizeof(NDV));
         base.bound = (unsigned int **)ALLOCA((n-1)*sizeof(unsigned int *));          base.bound = (unsigned int **)ALLOCA((n-1)*sizeof(unsigned int *));
         base.len = n-1;          base.len = n-1;

Legend:
Removed from v.1.53  
changed lines
  Added in v.1.54

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