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

Function write_u64

Source/external/fast_float.h:724–739  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

722}
723
724fastfloat_really_inline FASTFLOAT_CONSTEXPR20
725void write_u64(uint8_t *chars, uint64_t val) {
726 if (cpp20_and_in_constexpr()) {
727 for(int i = 0; i < 8; ++i) {
728 *chars = uint8_t(val);
729 val >>= 8;
730 ++chars;
731 }
732 return;
733 }
734#if FASTFLOAT_IS_BIG_ENDIAN == 1
735 // Need to read as-if the number was in little-endian order.
736 val = byteswap(val);
737#endif
738 ::memcpy(chars, &val, sizeof(uint64_t));
739}
740
741// credit @aqrit
742fastfloat_really_inline FASTFLOAT_CONSTEXPR14

Callers

nothing calls this directly

Calls 2

cpp20_and_in_constexprFunction · 0.85
byteswapFunction · 0.85

Tested by

no test coverage detected