mirror of
https://github.com/fastfloat/fast_float.git
synced 2025-12-07 09:16:50 +08:00
Running clang-format.
This commit is contained in:
parent
c23929fc66
commit
ee79fe6c7e
@ -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>
|
template <typename UC, FASTFLOAT_ENABLE_IF(!std::is_same<UC, char>::value) = 0>
|
||||||
fastfloat_really_inline FASTFLOAT_CONSTEXPR20 void
|
fastfloat_really_inline FASTFLOAT_CONSTEXPR20 void
|
||||||
loop_parse_if_eight_digits(UC const *&p, UC const *const pend, uint64_t &i) {
|
loop_parse_if_eight_digits(UC const *&p, UC const *const pend, uint64_t &i) {
|
||||||
FASTFLOAT_IF_CONSTEXPR(!has_simd_opt<UC>()) {
|
FASTFLOAT_IF_CONSTEXPR(!has_simd_opt<UC>()) { return; }
|
||||||
return;
|
|
||||||
}
|
|
||||||
while (((pend - p) >= 8) &&
|
while (((pend - p) >= 8) &&
|
||||||
simd_parse_if_eight_digits_unrolled(
|
simd_parse_if_eight_digits_unrolled(
|
||||||
p, i)) { // in rare cases, this will overflow, but that's ok
|
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>
|
template <typename UC, FASTFLOAT_ENABLE_IF(!std::is_same<UC, char>::value) = 0>
|
||||||
fastfloat_really_inline FASTFLOAT_CONSTEXPR20 void
|
fastfloat_really_inline FASTFLOAT_CONSTEXPR20 void
|
||||||
loop_parse_if_digits(UC const *&p, UC const *const pend, uint64_t &i) {
|
loop_parse_if_digits(UC const *&p, UC const *const pend, uint64_t &i) {
|
||||||
FASTFLOAT_IF_CONSTEXPR(!has_simd_opt<UC>()) {
|
FASTFLOAT_IF_CONSTEXPR(!has_simd_opt<UC>()) { return; }
|
||||||
return;
|
|
||||||
}
|
|
||||||
while (((pend - p) >= 8) &&
|
while (((pend - p) >= 8) &&
|
||||||
simd_parse_if_eight_digits_unrolled(
|
simd_parse_if_eight_digits_unrolled(
|
||||||
p, i)) { // in rare cases, this will overflow, but that's ok
|
p, i)) { // in rare cases, this will overflow, but that's ok
|
||||||
|
|||||||
@ -189,12 +189,16 @@ using parse_options = parse_options_t<char>;
|
|||||||
|
|
||||||
#ifndef FASTFLOAT_ASSERT
|
#ifndef FASTFLOAT_ASSERT
|
||||||
#define FASTFLOAT_ASSERT(x) \
|
#define FASTFLOAT_ASSERT(x) \
|
||||||
{ ((void)(x)); }
|
{ \
|
||||||
|
((void)(x)); \
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef FASTFLOAT_DEBUG_ASSERT
|
#ifndef FASTFLOAT_DEBUG_ASSERT
|
||||||
#define FASTFLOAT_DEBUG_ASSERT(x) \
|
#define FASTFLOAT_DEBUG_ASSERT(x) \
|
||||||
{ ((void)(x)); }
|
{ \
|
||||||
|
((void)(x)); \
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// rust style `try!()` macro, or `?` operator
|
// rust style `try!()` macro, or `?` operator
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user