29 |
|
const SimpleStats SSinit = {FHUGE, -FHUGE, .0, 0}; |
30 |
|
|
31 |
|
/* relative difference formula */ |
32 |
< |
#define rdiff(a,b) ((a)>(b) ? ((a)-(b))/(a) : ((b)-(a))/(b)) |
32 |
> |
#define rdiff(a,b) ((a)>(b) ? ((a)-(b))/((a)+FTINY) : ((b)-(a))/((b)+FTINY)) |
33 |
|
|
34 |
|
/* Figure out BSDF type (and optionally determine if in color) */ |
35 |
|
const char * |
236 |
|
puts("====================================================="); |
237 |
|
printf("File: '%s'\n", fname); |
238 |
|
SDclearBSDF(&myBSDF, fname); |
239 |
< |
pth = getpath(fname, getrlibpath(), R_OK); |
239 |
> |
pth = getpath(fname, getrlibpath(), 0); |
240 |
|
if (!pth) { |
241 |
|
fprintf(stderr, "Cannot find file '%s'\n", fname); |
242 |
|
return 0; |