| # | Line 59 | Line 59 | extern int depth2code(double d, double dref); | |
|---|---|---|
| 59 | #if 1 | |
| 60 | #define code2depth(c, dref) \ | |
| 61 | ( (c) <= -32768 ? .0 : (c) >= 32767 ? FHUGE : \ | |
| 62 | < | (c) < 0 ? (dref)*(32767.5 + (c))*(1./32767.) : \ |
| 62 | > | (c) < -1 ? (dref)*(32768.5 + (c))*(1./32767.) : \ |
| 63 | (dref)*32768./(32766.5 - (c)) ) | |
| 64 | #else | |
| 65 | extern double code2depth(int c, double dref); | |
| – | Removed lines |
| + | Added lines |
| < | Changed lines (old) |
| > | Changed lines (new) |