mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Add, subtract, multiply, and divide with specified rounding direction.
CAUTION: This is still untested and undebugged code. Only divRound has been even slightly tested.
This commit is contained in:
@@ -7,6 +7,12 @@ static int BN_add_word64(BIGNUM *a, uint64 w)
|
||||
return BN_add(a, &bn, a);
|
||||
}
|
||||
|
||||
static int BN_sub_word64(BIGNUM *a, uint64 w)
|
||||
{
|
||||
CBigNum bn(w);
|
||||
return BN_sub(a, &bn, a);
|
||||
}
|
||||
|
||||
static int BN_mul_word64(BIGNUM *a, uint64 w)
|
||||
{
|
||||
CBigNum bn(w);
|
||||
|
||||
Reference in New Issue
Block a user