Commit 6cd66610 authored by Daniela Engert's avatar Daniela Engert Committed by Victor Zverovich

remove trailing spaces.

Signed-off-by: default avatarDaniela Engert <dani@ngrt.de>
parent fe19c266
...@@ -158,7 +158,7 @@ ...@@ -158,7 +158,7 @@
// libc++ supports string_view in pre-c++17. // libc++ supports string_view in pre-c++17.
#if (FMT_HAS_INCLUDE(<string_view>) && \ #if (FMT_HAS_INCLUDE(<string_view>) && \
(__cplusplus > 201402L || _LIBCPP_VERSION)) || \ (__cplusplus > 201402L || _LIBCPP_VERSION)) || \
(defined(_MSVC_LANG) && _MSVC_LANG > 201402L && _MSC_VER >= 1910) (defined(_MSVC_LANG) && _MSVC_LANG > 201402L && _MSC_VER >= 1910)
# include <string_view> # include <string_view>
# define FMT_USE_STD_STRING_VIEW # define FMT_USE_STD_STRING_VIEW
#elif (FMT_HAS_INCLUDE(<experimental/string_view>) && \ #elif (FMT_HAS_INCLUDE(<experimental/string_view>) && \
......
...@@ -337,7 +337,7 @@ FMT_FUNC fp operator*(fp x, fp y) { ...@@ -337,7 +337,7 @@ FMT_FUNC fp operator*(fp x, fp y) {
uint64_t ac = a * c, bc = b * c, ad = a * d, bd = b * d; uint64_t ac = a * c, bc = b * c, ad = a * d, bd = b * d;
// Compute mid 64-bit of result and round. // Compute mid 64-bit of result and round.
uint64_t mid = (bd >> 32) + (ad & mask) + (bc & mask) + (1U << 31); uint64_t mid = (bd >> 32) + (ad & mask) + (bc & mask) + (1U << 31);
return fp(ac + (ad >> 32) + (bc >> 32) + (mid >> 32), x.e + y.e + 64); return fp(ac + (ad >> 32) + (bc >> 32) + (mid >> 32), x.e + y.e + 64);
} }
} // namespace internal } // namespace internal
......
...@@ -255,7 +255,7 @@ struct fp { ...@@ -255,7 +255,7 @@ struct fp {
// Returns an fp number representing x - y. Result may not be normalized. // Returns an fp number representing x - y. Result may not be normalized.
inline fp operator-(fp x, fp y) { inline fp operator-(fp x, fp y) {
FMT_ASSERT(x.f >= y.f && x.e == y.e, "invalid operands"); FMT_ASSERT(x.f >= y.f && x.e == y.e, "invalid operands");
return fp(x.f - y.f, x.e); return fp(x.f - y.f, x.e);
} }
// Computes an fp number r with r.f = x.f * y.f / pow(2, 32) rounded to nearest // Computes an fp number r with r.f = x.f * y.f / pow(2, 32) rounded to nearest
...@@ -1594,7 +1594,7 @@ class width_checker: public function<unsigned long long> { ...@@ -1594,7 +1594,7 @@ class width_checker: public function<unsigned long long> {
explicit FMT_CONSTEXPR width_checker(ErrorHandler &eh) : handler_(eh) {} explicit FMT_CONSTEXPR width_checker(ErrorHandler &eh) : handler_(eh) {}
template <typename T> template <typename T>
FMT_CONSTEXPR FMT_CONSTEXPR
typename std::enable_if< typename std::enable_if<
is_integer<T>::value, unsigned long long>::type operator()(T value) { is_integer<T>::value, unsigned long long>::type operator()(T value) {
if (is_negative(value)) if (is_negative(value))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment