diff options
author | Jack Lloyd <[email protected]> | 2018-04-26 13:04:53 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2018-04-26 13:04:53 -0400 |
commit | b2b0ea31a5d3f8b697c3fcb19defbe0adc30aa80 (patch) | |
tree | ec270ad9abaab0ce2cef4bc626a1bb17bd8eb921 /src/lib/math | |
parent | 0ccee221ca464320f1458aef82c90b1bea163649 (diff) |
Inline this operator+ [ci skip]
Diffstat (limited to 'src/lib/math')
-rw-r--r-- | src/lib/math/bigint/big_ops3.cpp | 5 | ||||
-rw-r--r-- | src/lib/math/bigint/bigint.h | 2 |
2 files changed, 1 insertions, 6 deletions
diff --git a/src/lib/math/bigint/big_ops3.cpp b/src/lib/math/bigint/big_ops3.cpp index 4f0ba5364..492a69ad0 100644 --- a/src/lib/math/bigint/big_ops3.cpp +++ b/src/lib/math/bigint/big_ops3.cpp @@ -87,11 +87,6 @@ BigInt operator+(const BigInt& x, word y) return bigint_add(x, &y, 1, BigInt::Positive); } -BigInt operator+(word y, const BigInt& x) - { - return bigint_add(x, &y, 1, BigInt::Positive); - } - BigInt operator-(const BigInt& x, const BigInt& y) { return bigint_sub(x, y.data(), y.sig_words(), y.sign()); diff --git a/src/lib/math/bigint/bigint.h b/src/lib/math/bigint/bigint.h index 33a1252ab..d5bd4ad4f 100644 --- a/src/lib/math/bigint/bigint.h +++ b/src/lib/math/bigint/bigint.h @@ -733,7 +733,7 @@ class BOTAN_PUBLIC_API(2,0) BigInt final */ BigInt BOTAN_PUBLIC_API(2,0) operator+(const BigInt& x, const BigInt& y); BigInt BOTAN_PUBLIC_API(2,7) operator+(const BigInt& x, word y); -BigInt BOTAN_PUBLIC_API(2,7) operator+(word x, const BigInt& y); +inline BigInt operator+(word x, const BigInt& y) { return y + x; } BigInt BOTAN_PUBLIC_API(2,0) operator-(const BigInt& x, const BigInt& y); BigInt BOTAN_PUBLIC_API(2,7) operator-(const BigInt& x, word y); |