mirror of
https://git.code.sf.net/p/ngspice/ngspice
synced 2026-08-22 13:57:32 +02:00
xspice/icm/digital/d_osc/cfunc.mod, swallow a warning
This commit is contained in:
@@ -180,8 +180,7 @@ void cm_d_osc(ARGS)
|
|||||||
|
|
||||||
int i, /* generic loop counter index */
|
int i, /* generic loop counter index */
|
||||||
cntl_size, /* control array size */
|
cntl_size, /* control array size */
|
||||||
freq_size, /* frequency array size */
|
freq_size; /* frequency array size */
|
||||||
int_cycle; /* integer number of cycles */
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -343,12 +342,9 @@ void cm_d_osc(ARGS)
|
|||||||
/* calculate the instantaneous phase */
|
/* calculate the instantaneous phase */
|
||||||
*phase = *phase_old + freq * (TIME - T(1));
|
*phase = *phase_old + freq * (TIME - T(1));
|
||||||
|
|
||||||
/* convert the phase to an integer */
|
|
||||||
int_cycle = *phase_old;
|
|
||||||
|
|
||||||
/* dphase is the percent into the cycle for
|
/* dphase is the percent into the cycle for
|
||||||
the period */
|
the period */
|
||||||
dphase = *phase_old - int_cycle;
|
dphase = *phase_old - floor(*phase_old);
|
||||||
|
|
||||||
|
|
||||||
/* Calculate the time variables and the output value
|
/* Calculate the time variables and the output value
|
||||||
|
|||||||
Reference in New Issue
Block a user