Use 256 bit addition and subtraction for 128-bit decimals to avoid loss of precision #1288
Codecov / codecov/project
succeeded
Jan 13, 2026 in 0s
98.9% (target 75.0%)
View this Pull Request on Codecov
98.9% (target 75.0%)
Details
Codecov Report
✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.9%. Comparing base (88a0966) to head (653aa3c).
Additional details and impacted files
@@ Coverage Diff @@
## develop #1288 +/- ##
=========================================
- Coverage 99.0% 98.9% -0.0%
=========================================
Files 269 270 +1
Lines 17856 17956 +100
Branches 1985 1998 +13
=========================================
+ Hits 17661 17742 +81
- Misses 195 214 +19 | Files with missing lines | Coverage Δ | |
|---|---|---|
| include/boost/decimal/decimal128_t.hpp | 96.8% <100.0%> (-0.1%) |
⬇️ |
| include/boost/decimal/decimal_fast128_t.hpp | 95.2% <100.0%> (-0.2%) |
⬇️ |
| include/boost/decimal/detail/add_impl.hpp | 85.6% <100.0%> (-12.5%) |
⬇️ |
| include/boost/decimal/detail/fenv_rounding.hpp | 96.7% <100.0%> (+0.4%) |
⬆️ |
| include/boost/decimal/detail/i256.hpp | 100.0% <100.0%> (ø) |
|
| include/boost/decimal/detail/normalize.hpp | 100.0% <100.0%> (ø) |
|
| include/boost/decimal/detail/power_tables.hpp | 100.0% <100.0%> (ø) |
|
| include/boost/decimal/detail/u256.hpp | 100.0% <100.0%> (+0.8%) |
⬆️ |
| test/github_issue_1260.cpp | 100.0% <100.0%> (ø) |
|
| test/test_big_uints.cpp | 100.0% <100.0%> (ø) |
... and 1 file with indirect coverage changes
Continue to review full report in Codecov by Sentry.
Legend - Click here to learn more
Δ = absolute <relative> (impact),ø = not affected,? = missing data
Powered by Codecov. Last update 88a0966...653aa3c. Read the comment docs.
🚀 New features to boost your workflow:
- ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
Loading