d_source d_state, change float --> double

This commit is contained in:
rlar 2010-11-21 15:41:38 +00:00
parent c575e60356
commit c57c3fe972
3 changed files with 15 additions and 10 deletions

View File

@ -1,3 +1,8 @@
2010-11-21 Robert Larice
* src/xspice/icm/digital/d_source/cfunc.mod ,
* src/xspice/icm/digital/d_state/cfunc.mod :
d_source d_state, change float --> double
2010-11-21 Robert Larice 2010-11-21 Robert Larice
* configure.ac , * configure.ac ,
* tests/Makefile.am , * tests/Makefile.am ,

View File

@ -335,7 +335,7 @@ deck and returns a floating point equivalent value.
static int cnv_get_spice_value( static int cnv_get_spice_value(
char *str, /* IN - The value text e.g. 1.2K */ char *str, /* IN - The value text e.g. 1.2K */
float *p_value ) /* OUT - The numerical value */ double *p_value ) /* OUT - The numerical value */
{ {
@ -350,8 +350,8 @@ float *p_value ) /* OUT - The numerical value */
char c = ' '; char c = ' ';
char c1; char c1;
float scale_factor; double scale_factor;
float value; double value;
/* Scan the input string looking for an alpha character that is not */ /* Scan the input string looking for an alpha character that is not */
@ -442,7 +442,7 @@ float *p_value ) /* OUT - The numerical value */
/* Convert the numeric portion to a float and multiply by the */ /* Convert the numeric portion to a float and multiply by the */
/* scale factor. */ /* scale factor. */
n_matched = sscanf(val_str,"%e",&value); n_matched = sscanf(val_str,"%le",&value);
if(n_matched < 1) { if(n_matched < 1) {
*p_value = 0.0; *p_value = 0.0;
@ -836,7 +836,7 @@ static int cm_read_source(FILE *source,short *bits,double *timepoints,
*token; /* a particular token from the string */ *token; /* a particular token from the string */
float number; /* holding variable for timepoint values */ double number; /* holding variable for timepoint values */
double double1, /* temporary holding variable */ double double1, /* temporary holding variable */
double2; /* temporary holding variable */ double2; /* temporary holding variable */

View File

@ -394,7 +394,7 @@ deck and returns a floating point equivalent value.
static int cnv_get_spice_value( static int cnv_get_spice_value(
char *str, /* IN - The value text e.g. 1.2K */ char *str, /* IN - The value text e.g. 1.2K */
float *p_value ) /* OUT - The numerical value */ double *p_value ) /* OUT - The numerical value */
{ {
@ -409,8 +409,8 @@ float *p_value ) /* OUT - The numerical value */
char c = ' '; char c = ' ';
char c1; char c1;
float scale_factor; double scale_factor;
float value; double value;
/* Scan the input string looking for an alpha character that is not */ /* Scan the input string looking for an alpha character that is not */
@ -501,7 +501,7 @@ float *p_value ) /* OUT - The numerical value */
/* Convert the numeric portion to a float and multiply by the */ /* Convert the numeric portion to a float and multiply by the */
/* scale factor. */ /* scale factor. */
n_matched = sscanf(val_str,"%e",&value); n_matched = sscanf(val_str,"%le",&value);
if(n_matched < 1) { if(n_matched < 1) {
*p_value = 0.0; *p_value = 0.0;
@ -1522,7 +1522,7 @@ static int cm_read_state_file(FILE *state_file,State_Table_t *states)
*token; /* a particular token from the string */ *token; /* a particular token from the string */
float number; /* holding variable for timepoint values */ double number; /* holding variable for timepoint values */
short bit_value=0; /* holding variable for value read from short bit_value=0; /* holding variable for value read from
state.in file which needs to be stored */ state.in file which needs to be stored */