# | Line 29 | Line 29 | typedef struct { | |
---|---|---|
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 * |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |