Running clang-format.

This commit is contained in:
RealTimeChris 2024-11-26 09:18:10 -05:00
parent c23929fc66
commit ee79fe6c7e
3 changed files with 9 additions and 9 deletions

View File

@ -224,9 +224,7 @@ bool simd_parse_if_eight_digits_unrolled(UC const *, uint64_t &) {
template <typename UC, FASTFLOAT_ENABLE_IF(!std::is_same<UC, char>::value) = 0>
fastfloat_really_inline FASTFLOAT_CONSTEXPR20 void
loop_parse_if_eight_digits(UC const *&p, UC const *const pend, uint64_t &i) {
FASTFLOAT_IF_CONSTEXPR(!has_simd_opt<UC>()) {
return;
}
FASTFLOAT_IF_CONSTEXPR(!has_simd_opt<UC>()) { return; }
while (((pend - p) >= 8) &&
simd_parse_if_eight_digits_unrolled(
p, i)) { // in rare cases, this will overflow, but that's ok
@ -249,9 +247,7 @@ loop_parse_if_eight_digits(char const *&p, char const *const pend,
template <typename UC, FASTFLOAT_ENABLE_IF(!std::is_same<UC, char>::value) = 0>
fastfloat_really_inline FASTFLOAT_CONSTEXPR20 void
loop_parse_if_digits(UC const *&p, UC const *const pend, uint64_t &i) {
FASTFLOAT_IF_CONSTEXPR(!has_simd_opt<UC>()) {
return;
}
FASTFLOAT_IF_CONSTEXPR(!has_simd_opt<UC>()) { return; }
while (((pend - p) >= 8) &&
simd_parse_if_eight_digits_unrolled(
p, i)) { // in rare cases, this will overflow, but that's ok

View File

@ -15,7 +15,7 @@
#endif
#if __cplusplus >= 201703L || (defined(_MSVC_LANG) && _MSVC_LANG >= 201703L)
#define FASTFLOAT_IF_CONSTEXPR if constexpr
#define FASTFLOAT_IF_CONSTEXPR if constexpr
#else
#define FASTFLOAT_IF_CONSTEXPR if
#endif

View File

@ -189,12 +189,16 @@ using parse_options = parse_options_t<char>;
#ifndef FASTFLOAT_ASSERT
#define FASTFLOAT_ASSERT(x) \
{ ((void)(x)); }
{ \
((void)(x)); \
}
#endif
#ifndef FASTFLOAT_DEBUG_ASSERT
#define FASTFLOAT_DEBUG_ASSERT(x) \
{ ((void)(x)); }
{ \
((void)(x)); \
}
#endif
// rust style `try!()` macro, or `?` operator