MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / loop_parse_if_eight_digits

Function loop_parse_if_eight_digits

app/src/ThirdParty/fast_float.h:1919–1929  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1917
1918template <typename UC, FASTFLOAT_ENABLE_IF(!std::is_same<UC, char>::value) = 0>
1919fastfloat_really_inline FASTFLOAT_CONSTEXPR20 void
1920loop_parse_if_eight_digits(UC const *&p, UC const *const pend, uint64_t &i) {
1921 if (!has_simd_opt<UC>()) {
1922 return;
1923 }
1924 while ((std::distance(p, pend) >= 8) &&
1925 simd_parse_if_eight_digits_unrolled(
1926 p, i)) { // in rare cases, this will overflow, but that's ok
1927 p += 8;
1928 }
1929}
1930
1931fastfloat_really_inline FASTFLOAT_CONSTEXPR20 void
1932loop_parse_if_eight_digits(char const *&p, char const *const pend,

Calls 7

read8_to_u64Function · 0.85
read4_to_u32Function · 0.85

Tested by

no test coverage detected