Returns nonzero if the int32_t can be negated properly. INT32_MIN doesn't * work because its positive value isn't representable inside an int32_t (given * two's complement). */
| 115 | * two's complement). |
| 116 | */ |
| 117 | static int CanNegate(int32_t x) |
| 118 | { |
| 119 | return x != INT32_MIN; |
| 120 | } |
| 121 | |
| 122 | /* Reads up to 4 little-endian bytes from fp and stores the result in the |
| 123 | * uint32_t pointed to by dest in the host's byte order. Returns 0 on EOF or |