MCPcopy Create free account
hub / github.com/Open-GD/OpenGD / byteswap

Function byteswap

Source/external/fast_float.h:694–703  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

692}
693
694fastfloat_really_inline constexpr uint64_t byteswap(uint64_t val) {
695 return (val & 0xFF00000000000000) >> 56
696 | (val & 0x00FF000000000000) >> 40
697 | (val & 0x0000FF0000000000) >> 24
698 | (val & 0x000000FF00000000) >> 8
699 | (val & 0x00000000FF000000) << 8
700 | (val & 0x0000000000FF0000) << 24
701 | (val & 0x000000000000FF00) << 40
702 | (val & 0x00000000000000FF) << 56;
703}
704
705fastfloat_really_inline FASTFLOAT_CONSTEXPR20
706uint64_t read_u64(const char *chars) {

Callers 2

read_u64Function · 0.85
write_u64Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected