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.
This commit is contained in:
rlar 2015-03-28 12:09:44 +01:00
parent 6ac641e906
commit c5a3788f6b
2 changed files with 2 additions and 3 deletions

View File

@ -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.

View File

@ -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