ngspiceMODULEdefs.h.xml, add min max for the sake of XXXguesstopology.c

This commit is contained in:
rlar 2017-05-14 10:28:42 +02:00
parent c768f71ea3
commit ae8c1b8e7d
1 changed files with 3 additions and 0 deletions

View File

@ -104,6 +104,9 @@ if(isinf((double) var)) \\
exit(1); /*__asm__ __volatile__ ("int \$03");*/ \\
}
static inline double max(double x,double y) { return ((x)>(y))?(x):(y); }
static inline double min(double x,double y) { return ((x)<(y))?(x):(y); }
/* ngspice \$simparam variables
gdev (1/Ohms): Additional conductance to be added to nonlinear branches for conductance homotopy convergence algorithm.
gmin (1/Ohms): Minimum conductance placed in parallel with nonlinear branches.