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

Function bswap_32

src/compat/byteswap.h:36–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34
35#if HAVE_DECL_BSWAP_32 == 0
36inline uint32_t bswap_32(uint32_t x)
37{
38 return (((x & 0xff000000U) >> 24) | ((x & 0x00ff0000U) >> 8) |
39 ((x & 0x0000ff00U) << 8) | ((x & 0x000000ffU) << 24));
40}
41#endif // HAVE_DECL_BSWAP32 == 0
42
43#if HAVE_DECL_BSWAP_64 == 0

Callers 5

htole32Function · 0.85
le32tohFunction · 0.85
htobe32Function · 0.85
be32tohFunction · 0.85
BOOST_AUTO_TEST_CASEFunction · 0.85

Calls

no outgoing calls

Tested by 1

BOOST_AUTO_TEST_CASEFunction · 0.68