MCPcopy Create free account
hub / github.com/ElementsProject/elements / bswap_16

Function bswap_16

src/compat/byteswap.h:29–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27
28#if HAVE_DECL_BSWAP_16 == 0
29inline uint16_t bswap_16(uint16_t x)
30{
31 return (x >> 8) | (x << 8);
32}
33#endif // HAVE_DECL_BSWAP16 == 0
34
35#if HAVE_DECL_BSWAP_32 == 0

Callers 5

htole16Function · 0.85
le16tohFunction · 0.85
htobe16Function · 0.85
be16tohFunction · 0.85
BOOST_AUTO_TEST_CASEFunction · 0.85

Calls

no outgoing calls

Tested by 1

BOOST_AUTO_TEST_CASEFunction · 0.68