mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-20 02:55:50 +00:00
reduce diff more
This commit is contained in:
@@ -149,12 +149,11 @@ mulRatio(
|
|||||||
bool roundUp)
|
bool roundUp)
|
||||||
{
|
{
|
||||||
using namespace boost::multiprecision;
|
using namespace boost::multiprecision;
|
||||||
using int128 = boost::multiprecision::int128_t;
|
|
||||||
|
|
||||||
if (!den)
|
if (!den)
|
||||||
Throw<std::runtime_error>("division by zero");
|
Throw<std::runtime_error>("division by zero");
|
||||||
|
|
||||||
int128 const amt128(amt.value());
|
int128_t const amt128(amt.value());
|
||||||
auto const neg = amt.value() < 0;
|
auto const neg = amt.value() < 0;
|
||||||
auto const m = amt128 * num;
|
auto const m = amt128 * num;
|
||||||
auto r = m / den;
|
auto r = m / den;
|
||||||
|
|||||||
@@ -286,12 +286,11 @@ mulRatio(
|
|||||||
bool roundUp)
|
bool roundUp)
|
||||||
{
|
{
|
||||||
using namespace boost::multiprecision;
|
using namespace boost::multiprecision;
|
||||||
using int128 = boost::multiprecision::int128_t;
|
|
||||||
|
|
||||||
if (!den)
|
if (!den)
|
||||||
Throw<std::runtime_error>("division by zero");
|
Throw<std::runtime_error>("division by zero");
|
||||||
|
|
||||||
int128 const amt128(amt.drops());
|
int128_t const amt128(amt.drops());
|
||||||
auto const neg = amt.drops() < 0;
|
auto const neg = amt.drops() < 0;
|
||||||
auto const m = amt128 * num;
|
auto const m = amt128 * num;
|
||||||
auto r = m / den;
|
auto r = m / den;
|
||||||
|
|||||||
Reference in New Issue
Block a user