MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/Falcor / byteswap

Function byteswap

external/include/fast_float/fast_float.h:534–543  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

532fastfloat_really_inline bool is_integer(char c) noexcept { return c >= '0' && c <= '9'; }
533
534fastfloat_really_inline uint64_t byteswap(uint64_t val) {
535 return (val & 0xFF00000000000000) >> 56
536 | (val & 0x00FF000000000000) >> 40
537 | (val & 0x0000FF0000000000) >> 24
538 | (val & 0x000000FF00000000) >> 8
539 | (val & 0x00000000FF000000) << 8
540 | (val & 0x0000000000FF0000) << 24
541 | (val & 0x000000000000FF00) << 40
542 | (val & 0x00000000000000FF) << 56;
543}
544
545fastfloat_really_inline uint64_t read_u64(const char *chars) {
546 uint64_t val;

Callers 2

read_u64Function · 0.85
write_u64Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected