Merge pull request #245 from fastfloat/removing_dead_function

removing unused function
This commit is contained in:
Daniel Lemire 2024-03-20 16:27:44 -04:00 committed by GitHub
commit 1fc3ac3932
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -123,24 +123,6 @@ uint64_t simd_read8_to_u64(UC const*) {
return 0;
}
fastfloat_really_inline FASTFLOAT_CONSTEXPR20
void write_u64(uint8_t *chars, uint64_t val) {
if (cpp20_and_in_constexpr()) {
for(int i = 0; i < 8; ++i) {
*chars = uint8_t(val);
val >>= 8;
++chars;
}
return;
}
#if FASTFLOAT_IS_BIG_ENDIAN == 1
// Need to read as-if the number was in little-endian order.
val = byteswap(val);
#endif
::memcpy(chars, &val, sizeof(uint64_t));
}
// credit @aqrit
fastfloat_really_inline FASTFLOAT_CONSTEXPR14
uint32_t parse_eight_digits_unrolled(uint64_t val) {