version 1.4, 2001/10/09 01:36:13 |
version 1.5, 2017/01/08 03:05:39 |
|
|
* 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/lmi.c,v 1.3 2000/08/22 05:04:05 noro Exp $ |
* $OpenXM: OpenXM_contrib2/asir2000/engine/lmi.c,v 1.4 2001/10/09 01:36:13 noro Exp $ |
*/ |
*/ |
#include "ca.h" |
#include "ca.h" |
#include "base.h" |
#include "base.h" |
Line 101 void ntosparsen(N p,N *bits) |
|
Line 101 void ntosparsen(N p,N *bits) |
|
void setmod_lm(N p) |
void setmod_lm(N p) |
{ |
{ |
int i; |
int i; |
|
Q q; |
|
|
if ( !current_mod_lm ) |
if ( !current_mod_lm ) |
current_mod_lm = (GEN_LM)MALLOC(sizeof(struct oGEN_LM)); |
current_mod_lm = (GEN_LM)MALLOC(sizeof(struct oGEN_LM)); |
Line 118 void setmod_lm(N p) |
|
Line 119 void setmod_lm(N p) |
|
current_mod_lm->id = UP2_SPARSE; /* XXX */ |
current_mod_lm->id = UP2_SPARSE; /* XXX */ |
} |
} |
} |
} |
|
setmod_lf(p); |
} |
} |
|
|
void getmod_lm(N *p) |
void getmod_lm(N *p) |
Line 141 void simplm(LM n,LM *r) |
|
Line 143 void simplm(LM n,LM *r) |
|
MKLM(rem,*r); |
MKLM(rem,*r); |
} |
} |
} |
} |
|
|
|
void simplm_force(LM n,LM *r) |
|
{ |
|
N rem; |
|
|
|
if ( !n ) |
|
*r = 0; |
|
else if ( NID(n) != N_LM ) |
|
*r = n; |
|
else { |
|
gen_simpn_force(n->body,&rem); |
|
MKLM(rem,*r); |
|
} |
|
} |
|
|
|
|
void qtolm(Q q,LM *l) |
void qtolm(Q q,LM *l) |
{ |
{ |