Unified · Split
| @@ -25,7 +25,7 @@ · 24 unmodified lines | |||
| 25 | 25 | ||
| 26 | #define SCALEBITS 8 | 26 | #define SCALEBITS 8 |
| 27 | #define ONE_HALF (1 << (SCALEBITS - 1)) | 27 | #define ONE_HALF (1 << (SCALEBITS - 1)) |
| 28 | #define FIX(x) ((int) ((x) * (1L << SCALEBITS) + 0.5)) | 28 | #define FIX(x) ((int) ((x) * (1 << SCALEBITS) + 0.5)) |
| 29 | 29 | ||
| 30 | #define err_if(expr) do { \ | 30 | #define err_if(expr) do { \ |
| 31 | if (expr) { \ | 31 | if (expr) { \ |