| 722 | } |
| 723 | |
| 724 | fastfloat_really_inline FASTFLOAT_CONSTEXPR20 |
| 725 | void 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 |
| 742 | fastfloat_really_inline FASTFLOAT_CONSTEXPR14 |
nothing calls this directly
no test coverage detected