18 |
|
|
19 |
|
typedef struct { |
20 |
|
float vsum; /* DSF sum */ |
21 |
< |
unsigned short nval; /* number of values in sum */ |
21 |
> |
unsigned int nval; /* number of values in sum */ |
22 |
|
unsigned short crad; /* radius (coded angle) */ |
23 |
|
} GRIDVAL; /* grid value */ |
24 |
|
|
74 |
|
#define BSDF2BIG (1./M_PI) |
75 |
|
#define BSDF2SML 1e-8 |
76 |
|
#define HISTLNR 17.2759509 /* log(BSDF2BIG/BSDF2SML) */ |
77 |
< |
extern int bsdf_hist[HISTLEN]; |
77 |
> |
extern unsigned long bsdf_hist[HISTLEN]; |
78 |
|
#define histndx(v) (int)(log((v)*(1./BSDF2SML))*(HISTLEN/HISTLNR)) |
79 |
|
#define histval(i) (exp(((i)+.5)*(HISTLNR/HISTLEN))*BSDF2SML) |
80 |
|
|