version 1.32, 2004/04/15 08:14:13 |
version 1.33, 2004/04/15 08:44:15 |
|
|
* 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/builtin/dp-supp.c,v 1.31 2004/03/09 09:40:46 noro Exp $ |
* $OpenXM: OpenXM_contrib2/asir2000/builtin/dp-supp.c,v 1.32 2004/04/15 08:14:13 noro Exp $ |
*/ |
*/ |
#include "ca.h" |
#include "ca.h" |
#include "base.h" |
#include "base.h" |
Line 2058 LIST dp_initial_term(LIST f,struct order_spec *ord) |
|
Line 2058 LIST dp_initial_term(LIST f,struct order_spec *ord) |
|
case IS_SPARSE_WEIGHT: |
case IS_SPARSE_WEIGHT: |
n = ord->nv; |
n = ord->nv; |
weight = (int *)ALLOCA(n*sizeof(int)); |
weight = (int *)ALLOCA(n*sizeof(int)); |
|
for ( i = 0; i < n; i++ ) weight[i] = 0; |
l = worb->length; |
l = worb->length; |
for ( i = 0; i < l; i++ ) |
for ( i = 0; i < l; i++ ) |
weight[worb->body.sparse_weight[i].pos] |
weight[worb->body.sparse_weight[i].pos] |
Line 2134 LIST dp_order(LIST f,struct order_spec *ord) |
|
Line 2135 LIST dp_order(LIST f,struct order_spec *ord) |
|
case IS_SPARSE_WEIGHT: |
case IS_SPARSE_WEIGHT: |
n = ord->nv; |
n = ord->nv; |
weight = (int *)ALLOCA(n*sizeof(int)); |
weight = (int *)ALLOCA(n*sizeof(int)); |
|
for ( i = 0; i < n; i++ ) weight[i] = 0; |
l = worb->length; |
l = worb->length; |
for ( i = 0; i < l; i++ ) |
for ( i = 0; i < l; i++ ) |
weight[worb->body.sparse_weight[i].pos] |
weight[worb->body.sparse_weight[i].pos] |