MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / bswap_32

Function bswap_32

src/compat/byteswap.h:43–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41
42#if HAVE_DECL_BSWAP_32 == 0
43inline uint32_t bswap_32(uint32_t x)
44{
45 return (((x & 0xff000000U) >> 24) | ((x & 0x00ff0000U) >> 8) |
46 ((x & 0x0000ff00U) << 8) | ((x & 0x000000ffU) << 24));
47}
48#endif // HAVE_DECL_BSWAP32 == 0
49
50#if HAVE_DECL_BSWAP_64 == 0

Callers 7

htole32Function · 0.85
le32tohFunction · 0.85
htobe32Function · 0.85
be32tohFunction · 0.85
BOOST_AUTO_TEST_CASEFunction · 0.85
bswapTestsMethod · 0.85
decodepsbtFunction · 0.85

Calls

no outgoing calls

Tested by 2

BOOST_AUTO_TEST_CASEFunction · 0.68
bswapTestsMethod · 0.68