cppalliance / decimal

A C++14 implementation of IEEE 754 decimal floating point numbers
https://cppalliance.org/decimal/decimal.html
Boost Software License 1.0
21 stars 2 forks source link

Implement basic arithmetic for decimal128_fast #635

Closed mborland closed 4 months ago

codecov[bot] commented 4 months ago

Codecov Report

Attention: Patch coverage is 98.88889% with 3 lines in your changes missing coverage. Please review.

Project coverage is 99.1%. Comparing base (026f3fa) to head (8e15a95).

Additional details and impacted files [![Impacted file tree graph](https://app.codecov.io/gh/cppalliance/decimal/pull/635/graphs/tree.svg?width=650&height=150&src=pr&token=drvY8nnV5S&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=cppalliance)](https://app.codecov.io/gh/cppalliance/decimal/pull/635?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=cppalliance) ```diff @@ Coverage Diff @@ ## develop #635 +/- ## ========================================= + Coverage 99.1% 99.1% +0.1% ========================================= Files 217 218 +1 Lines 15014 15212 +198 Branches 1648 1668 +20 ========================================= + Hits 14866 15064 +198 Misses 148 148 ``` | [Files](https://app.codecov.io/gh/cppalliance/decimal/pull/635?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=cppalliance) | Coverage Δ | | |---|---|---| | [include/boost/decimal/decimal128.hpp](https://app.codecov.io/gh/cppalliance/decimal/pull/635?src=pr&el=tree&filepath=include%2Fboost%2Fdecimal%2Fdecimal128.hpp&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=cppalliance#diff-aW5jbHVkZS9ib29zdC9kZWNpbWFsL2RlY2ltYWwxMjguaHBw) | `97.5% <100.0%> (-0.1%)` | :arrow_down: | | [include/boost/decimal/detail/add\_impl.hpp](https://app.codecov.io/gh/cppalliance/decimal/pull/635?src=pr&el=tree&filepath=include%2Fboost%2Fdecimal%2Fdetail%2Fadd_impl.hpp&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=cppalliance#diff-aW5jbHVkZS9ib29zdC9kZWNpbWFsL2RldGFpbC9hZGRfaW1wbC5ocHA=) | `100.0% <100.0%> (ø)` | | | [include/boost/decimal/detail/cmath/fma.hpp](https://app.codecov.io/gh/cppalliance/decimal/pull/635?src=pr&el=tree&filepath=include%2Fboost%2Fdecimal%2Fdetail%2Fcmath%2Ffma.hpp&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=cppalliance#diff-aW5jbHVkZS9ib29zdC9kZWNpbWFsL2RldGFpbC9jbWF0aC9mbWEuaHBw) | `100.0% <100.0%> (ø)` | | | [include/boost/decimal/detail/div\_impl.hpp](https://app.codecov.io/gh/cppalliance/decimal/pull/635?src=pr&el=tree&filepath=include%2Fboost%2Fdecimal%2Fdetail%2Fdiv_impl.hpp&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=cppalliance#diff-aW5jbHVkZS9ib29zdC9kZWNpbWFsL2RldGFpbC9kaXZfaW1wbC5ocHA=) | `100.0% <100.0%> (ø)` | | | [include/boost/decimal/detail/mul\_impl.hpp](https://app.codecov.io/gh/cppalliance/decimal/pull/635?src=pr&el=tree&filepath=include%2Fboost%2Fdecimal%2Fdetail%2Fmul_impl.hpp&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=cppalliance#diff-aW5jbHVkZS9ib29zdC9kZWNpbWFsL2RldGFpbC9tdWxfaW1wbC5ocHA=) | `100.0% <100.0%> (ø)` | | | [test/random\_decimal128\_fast\_math.cpp](https://app.codecov.io/gh/cppalliance/decimal/pull/635?src=pr&el=tree&filepath=test%2Frandom_decimal128_fast_math.cpp&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=cppalliance#diff-dGVzdC9yYW5kb21fZGVjaW1hbDEyOF9mYXN0X21hdGguY3Bw) | `100.0% <100.0%> (ø)` | | | [include/boost/decimal/decimal128\_fast.hpp](https://app.codecov.io/gh/cppalliance/decimal/pull/635?src=pr&el=tree&filepath=include%2Fboost%2Fdecimal%2Fdecimal128_fast.hpp&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=cppalliance#diff-aW5jbHVkZS9ib29zdC9kZWNpbWFsL2RlY2ltYWwxMjhfZmFzdC5ocHA=) | `96.8% <99.0%> (+9.8%)` | :arrow_up: | | [include/boost/decimal/detail/sub\_impl.hpp](https://app.codecov.io/gh/cppalliance/decimal/pull/635?src=pr&el=tree&filepath=include%2Fboost%2Fdecimal%2Fdetail%2Fsub_impl.hpp&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=cppalliance#diff-aW5jbHVkZS9ib29zdC9kZWNpbWFsL2RldGFpbC9zdWJfaW1wbC5ocHA=) | `96.6% <92.9%> (-1.7%)` | :arrow_down: | ... and [2 files with indirect coverage changes](https://app.codecov.io/gh/cppalliance/decimal/pull/635/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=cppalliance) ------ [Continue to review full report in Codecov by Sentry](https://app.codecov.io/gh/cppalliance/decimal/pull/635?dropdown=coverage&src=pr&el=continue&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=cppalliance). > **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=cppalliance) > `Δ = absolute (impact)`, `ø = not affected`, `? = missing data` > Powered by [Codecov](https://app.codecov.io/gh/cppalliance/decimal/pull/635?dropdown=coverage&src=pr&el=footer&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=cppalliance). Last update [026f3fa...8e15a95](https://app.codecov.io/gh/cppalliance/decimal/pull/635?dropdown=coverage&src=pr&el=lastupdated&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=cppalliance). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=cppalliance).