| 479 | } |
| 480 | |
| 481 | static int_fast32_t detzcode(const char *const codep) { |
| 482 | int_fast32_t result = (codep[0] & 0x80) ? -1 : 0; |
| 483 | for (int i = 0; i < 4; ++i) |
| 484 | result = (result << 8) | (codep[i] & 0xff); |
| 485 | return result; |
| 486 | } |
| 487 | |
| 488 | static int_fast64_t detzcode64(const char *const codep) { |
| 489 | int_fast64_t result = (codep[0] & 0x80) ? -1 : 0; |