Browse Source

hisimhv2, TMFx, globals need to be static or need an own namespace

Fixme, actually these should have block local scope.
  (local in the blocks of the macros where these variables are actually used)
Thats safer, much easier to understand, at least as fast,
  and won't defeat parallelisation.
pre-master-46
rlar 11 years ago
parent
commit
c5a3788f6b
  1. 3
      src/spicelib/devices/hisimhv2/hsmhveval.c
  2. 2
      src/spicelib/devices/hisimhv2/hsmhveval_rdrift.c

3
src/spicelib/devices/hisimhv2/hsmhveval.c

@ -135,8 +135,7 @@ June 2008 (revised October 2011)
#define C_gidl_delta 0.5
/* local variables used in macro functions */
double TMF0 , TMF1 , TMF2 , TMF3 , TMF4 , TMF5 , TMF6 ;
double TCF0 , TCF1 , TCF2 , TCF3 , TCF4 , TCF5 ;
static double TMF0 , TMF1 , TMF2 , TMF3 , TMF4 ;
/*===========================================================*
* Exp() for PGD.

2
src/spicelib/devices/hisimhv2/hsmhveval_rdrift.c

@ -75,7 +75,7 @@ June 2008 (revised October 2011)
#include "hsmhvevalenv.h"
/* local variables used in macro functions */
double TMF0 , TMF1 , TMF2 , TMF3 , TMF4 , TMF5 , TMF6 ;
static double TMF0 , TMF1 , TMF2 , TMF3 ;
/*===========================================================*
* pow

Loading…
Cancel
Save