Skip to content

Commit 7b15b69

Browse files
authored
Merge pull request #950 from cppalliance/member_const
Improve `const` correctness, comments, and large parameter passing
2 parents b11a355 + 63863f9 commit 7b15b69

File tree

8 files changed

+549
-550
lines changed

8 files changed

+549
-550
lines changed

include/boost/decimal/decimal128.hpp

Lines changed: 121 additions & 123 deletions
Large diffs are not rendered by default.

include/boost/decimal/decimal128_fast.hpp

Lines changed: 87 additions & 87 deletions
Large diffs are not rendered by default.

include/boost/decimal/decimal32.hpp

Lines changed: 105 additions & 105 deletions
Large diffs are not rendered by default.

include/boost/decimal/decimal32_fast.hpp

Lines changed: 73 additions & 73 deletions
Large diffs are not rendered by default.

include/boost/decimal/decimal64.hpp

Lines changed: 98 additions & 100 deletions
Large diffs are not rendered by default.

include/boost/decimal/decimal64_fast.hpp

Lines changed: 63 additions & 61 deletions
Large diffs are not rendered by default.

include/boost/decimal/detail/mul_impl.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ BOOST_DECIMAL_FORCE_INLINE constexpr auto d64_mul_impl(T lhs_sig, U lhs_exp, boo
147147

148148
template <typename ReturnType, BOOST_DECIMAL_INTEGRAL T1, BOOST_DECIMAL_INTEGRAL U1,
149149
BOOST_DECIMAL_INTEGRAL T2, BOOST_DECIMAL_INTEGRAL U2>
150+
BOOST_DECIMAL_FORCE_INLINE
150151
constexpr auto d128_mul_impl(const T1& lhs_sig, const U1 lhs_exp, const bool lhs_sign,
151152
const T2& rhs_sig, const U2 rhs_exp, const bool rhs_sign) noexcept -> ReturnType
152153
{

include/boost/decimal/detail/to_float.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ BOOST_DECIMAL_CXX20_CONSTEXPR auto to_float(Decimal val) noexcept
5252
static_cast<void>(success);
5353
}
5454

55-
// The casts to result are redundant but in pre C++17 modes MSVC warns about implicit conversions
55+
// The casts to result are redundant, but in pre C++17 modes MSVC warns about implicit conversions
5656
TargetType result {};
5757

5858
auto sig {val.full_significand()};

0 commit comments

Comments
 (0)