Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reduce truncation in dec_float multiplication #585

Merged
merged 2 commits into from
Jan 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 0 additions & 24 deletions .codecov.yml

This file was deleted.

32 changes: 32 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
codecov:
require_ci_to_pass: yes

coverage:
precision: 1
round: up
range: '50...100'
status:
project:
default: # This can be anything, but it needs to exist as the name
# basic settings
target: 75%
threshold: 10%
if_ci_failed: error #success, failure, error, ignore
only_pulls: false
patch:
default:
target: 75%
threshold: 25%

parsers:
gcov:
branch_detection:
conditional: no
loop: no
method: no
macro: no

comment:
layout: 'reach,diff,flags,files,footer'
behavior: default
require_changes: no
12 changes: 6 additions & 6 deletions include/boost/multiprecision/cpp_dec_float.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -635,8 +635,8 @@ class cpp_dec_float
}
else
{
std::copy(result.cbegin() + 1,
result.cbegin() + (std::min)(static_cast<std::int32_t>(prec_elems_for_multiply + 1), cpp_dec_float_elem_number),
std::copy(result.cbegin() + static_cast<std::ptrdiff_t>(1),
result.cbegin() + static_cast<std::ptrdiff_t>(1 + (std::min)(prec_elems_for_multiply, cpp_dec_float_elem_number)),
data.begin());
}
}
Expand Down Expand Up @@ -673,8 +673,8 @@ class cpp_dec_float
}
else
{
std::copy(result.cbegin() + 1,
result.cbegin() + (std::min)(static_cast<std::int32_t>(prec_elems_for_multiply + 1), cpp_dec_float_elem_number),
std::copy(result.cbegin() + static_cast<std::ptrdiff_t>(1),
result.cbegin() + static_cast<std::ptrdiff_t>(1 + (std::min)(prec_elems_for_multiply, cpp_dec_float_elem_number)),
data.begin());
}
}
Expand Down Expand Up @@ -719,8 +719,8 @@ class cpp_dec_float
}
else
{
std::copy(result + 1,
result + (std::min)(static_cast<std::int32_t>(prec_elems_for_multiply + 1), cpp_dec_float_elem_number),
std::copy(result + static_cast<std::ptrdiff_t>(1),
result + static_cast<std::ptrdiff_t>(1 + (std::min)(prec_elems_for_multiply, cpp_dec_float_elem_number)),
data.begin());
}
}
Expand Down