cleanup, remove superfluous casts
This commit is contained in:
parent
dcbee6659d
commit
fc9976e2fa
|
|
@ -54,7 +54,7 @@ void CKTemitlxt2(runDesc *run)
|
||||||
valData.v.vec.rVec = ckt->CKTrhsOld+1;
|
valData.v.vec.rVec = ckt->CKTrhsOld+1;
|
||||||
|
|
||||||
if(ckt->CKTtime <= 0.0) {
|
if(ckt->CKTtime <= 0.0) {
|
||||||
time_resolution=(double)pow(10.0,(double)LXT2_TIME_RESOLUTION_EXPONENT);
|
time_resolution = pow(10.0, LXT2_TIME_RESOLUTION_EXPONENT);
|
||||||
last_set_time = 0;
|
last_set_time = 0;
|
||||||
#ifdef LXT2_DEBUG
|
#ifdef LXT2_DEBUG
|
||||||
printf("LXT2 CKTemitlxt2 set time (%g) (%d)\n", ckt->CKTtime,last_set_time);
|
printf("LXT2 CKTemitlxt2 set time (%g) (%d)\n", ckt->CKTtime,last_set_time);
|
||||||
|
|
@ -71,7 +71,7 @@ void CKTemitlxt2(runDesc *run)
|
||||||
}
|
}
|
||||||
for(i = 0; i < trace_num; i++) {
|
for(i = 0; i < trace_num; i++) {
|
||||||
if(trace_index[i] > 0) {
|
if(trace_index[i] > 0) {
|
||||||
trace=(struct lxt2_wr_symbol *)(trace_table[i]);
|
trace = trace_table[i];
|
||||||
if(trace!=NULL) {
|
if(trace!=NULL) {
|
||||||
value = valData.v.vec.rVec[run->data[trace_index[i]].outIndex];
|
value = valData.v.vec.rVec[run->data[trace_index[i]].outIndex];
|
||||||
name = run->data[trace_index[i]].name;
|
name = run->data[trace_index[i]].name;
|
||||||
|
|
|
||||||
|
|
@ -44,7 +44,7 @@ void EVTemitlxt2(
|
||||||
name = node_table[node_index]->name;
|
name = node_table[node_index]->name;
|
||||||
|
|
||||||
if(time_resolution<0.0) {
|
if(time_resolution<0.0) {
|
||||||
time_resolution=(double)pow(10.0,(double)LXT2_TIME_RESOLUTION_EXPONENT);
|
time_resolution = pow(10.0, LXT2_TIME_RESOLUTION_EXPONENT);
|
||||||
last_set_time=0;
|
last_set_time=0;
|
||||||
#ifdef LXT2_DEBUG
|
#ifdef LXT2_DEBUG
|
||||||
printf("LXT2 time_resolution (%g) last_time(%d)\n", time_resolution,last_set_time);
|
printf("LXT2 time_resolution (%g) last_time(%d)\n", time_resolution,last_set_time);
|
||||||
|
|
@ -59,17 +59,17 @@ void EVTemitlxt2(
|
||||||
last_set_time = set_time;
|
last_set_time = set_time;
|
||||||
}
|
}
|
||||||
|
|
||||||
trace=(struct lxt2_wr_symbol *)(trace_table[node_index]);
|
trace = trace_table[node_index];
|
||||||
|
|
||||||
switch(type)
|
switch(type)
|
||||||
{
|
{
|
||||||
case 0: /* Bit */
|
case 0: /* Bit */
|
||||||
#ifdef LXT2_DEBUG
|
#ifdef LXT2_DEBUG
|
||||||
printf("LXT2 evtlxt2.c:trace(%p) emit bit (%s)->(%s)\n",trace,name,(char *)EVTbitmap(*((int *)(from->node_value))));
|
printf("LXT2 evtlxt2.c:trace(%p) emit bit (%s)->(%s)\n",trace,name,EVTbitmap(*((int *)(from->node_value))));
|
||||||
#endif
|
#endif
|
||||||
if(lxt2_wr_emit_value_bit_string(ckt->lxt2.file,trace,0,(char *)EVTbitmap(*((int *)(from->node_value))))==0) {
|
if(lxt2_wr_emit_value_bit_string(ckt->lxt2.file,trace,0,EVTbitmap(*((int *)(from->node_value))))==0) {
|
||||||
#ifdef LXT2_DEBUG
|
#ifdef LXT2_DEBUG
|
||||||
printf("LXT2 evtlxt2.c:trace(%p) emit bit (%s)->(%s) SUCCESS\n",&trace,name,(char *)EVTbitmap(*((int *)(from->node_value))));
|
printf("LXT2 evtlxt2.c:trace(%p) emit bit (%s)->(%s) SUCCESS\n",&trace,name,EVTbitmap(*((int *)(from->node_value))));
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
break;
|
break;
|
||||||
|
|
@ -87,9 +87,9 @@ void EVTemitlxt2(
|
||||||
break;
|
break;
|
||||||
default: /* Bit */
|
default: /* Bit */
|
||||||
#ifdef LXT2_DEBUG
|
#ifdef LXT2_DEBUG
|
||||||
printf("LXT2 evtlxt2.c:trace(%p) emit bit (%s)->(%s)\n",trace,name,(char *)EVTbitmap(*((int *)(from->node_value))));
|
printf("LXT2 evtlxt2.c:trace(%p) emit bit (%s)->(%s)\n",trace,name,EVTbitmap(*((int *)(from->node_value))));
|
||||||
#endif
|
#endif
|
||||||
lxt2_wr_emit_value_bit_string(ckt->lxt2.file,trace,0,(char *)EVTbitmap(*((int *)(from->node_value))));
|
lxt2_wr_emit_value_bit_string(ckt->lxt2.file,trace,0,EVTbitmap(*((int *)(from->node_value))));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
#ifdef LXT2_DEBUG
|
#ifdef LXT2_DEBUG
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue