MCPcopy Create free account
hub / github.com/NetHack/NetHack / read_s32

Function read_s32

win/share/bmptiles.c:555–559  ·  view source on GitHub ↗

Decode a signed 32 bit quantity */

Source from the content-addressed store, hash-verified

553
554/* Decode a signed 32 bit quantity */
555static int32
556read_s32(const unsigned char buf[4])
557{
558 return (int32)((read_u32(buf) ^ 0x80000000) - 0x80000000);
559}
560
561/* Build a pixel structure, given the mask words in the second header and
562 * a packed 16 or 32 bit pixel */

Callers 1

read_info_headerFunction · 0.85

Calls 1

read_u32Function · 0.70

Tested by

no test coverage detected