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

Function leshort

win/share/tile2bmp.c:42–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40#endif
41
42static short
43leshort(short x)
44{
45#ifdef __BIG_ENDIAN__
46 return ((x & 0xff) << 8) | ((x >> 8) & 0xff);
47#else
48 return x;
49#endif
50}
51
52static int32_t
53lelong(int32_t x)

Callers 2

build_bmfhFunction · 0.85
build_bmihFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected