MCPcopy Create free account
hub / github.com/OpenNFS/OpenNFS / CanNegate

Function CanNegate

include/bmpread/bmpread.c:117–120  ·  view source on GitHub ↗

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). */

Source from the content-addressed store, hash-verified

115 * two's complement).
116 */
117static 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

Callers 1

ValidateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected