Commit 297e0bad authored by Victor Zverovich's avatar Victor Zverovich

Apply clang-format

parent e3b4c22e
...@@ -1626,8 +1626,10 @@ struct fixed_handler { ...@@ -1626,8 +1626,10 @@ struct fixed_handler {
} }
if (buf[0] > '9') { if (buf[0] > '9') {
buf[0] = '1'; buf[0] = '1';
if (fixed) buf[size++] = '0'; if (fixed)
else ++exp10; buf[size++] = '0';
else
++exp10;
} }
return digits::done; return digits::done;
} }
...@@ -2173,8 +2175,8 @@ FMT_SAFEBUFFERS decimal_fp<T> to_decimal(T x) FMT_NOEXCEPT { ...@@ -2173,8 +2175,8 @@ FMT_SAFEBUFFERS decimal_fp<T> to_decimal(T x) FMT_NOEXCEPT {
const carrier_uint significand_mask = const carrier_uint significand_mask =
(static_cast<carrier_uint>(1) << float_info<T>::significand_bits) - 1; (static_cast<carrier_uint>(1) << float_info<T>::significand_bits) - 1;
carrier_uint significand = (br & significand_mask); carrier_uint significand = (br & significand_mask);
int exponent = int exponent = static_cast<int>((br & exponent_mask<T>()) >>
static_cast<int>((br & exponent_mask<T>()) >> float_info<T>::significand_bits); float_info<T>::significand_bits);
if (exponent != 0) { // Check if normal. if (exponent != 0) { // Check if normal.
exponent += float_info<T>::exponent_bias - float_info<T>::significand_bits; exponent += float_info<T>::exponent_bias - float_info<T>::significand_bits;
......
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