MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / byteswap_32

Function byteswap_32

app/src/ThirdParty/fast_float.h:1718–1721  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1716}
1717
1718fastfloat_really_inline constexpr uint32_t byteswap_32(uint32_t val) {
1719 return (val >> 24) | ((val >> 8) & 0x0000FF00u) | ((val << 8) & 0x00FF0000u) |
1720 (val << 24);
1721}
1722
1723// Read 8 UC into a u64. Truncates UC if not char.
1724template <typename UC>

Calls

no outgoing calls

Tested by

no test coverage detected