MCPcopy Create free account
hub / github.com/HowardHinnant/date / reverse_bytes

Function reverse_bytes

src/tz.cpp:1925–1935  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1923};
1924
1925static
1926inline
1927std::uint32_t
1928reverse_bytes(std::uint32_t i)
1929{
1930 return
1931 (i & 0xff000000u) >> 24 |
1932 (i & 0x00ff0000u) >> 8 |
1933 (i & 0x0000ff00u) << 8 |
1934 (i & 0x000000ffu) << 24;
1935}
1936
1937static
1938inline

Callers 1

maybe_reverse_bytesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected