diff options
author | Jack Lloyd <[email protected]> | 2018-12-07 11:45:48 -0500 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2018-12-07 11:45:48 -0500 |
commit | 63fefbcc6ea922bdd14909e025ded5322bdb9578 (patch) | |
tree | add4633ce989aa28a392b81e6c4120a4063e0dc7 /src/lib/math/bigint/bigint.h | |
parent | 6276f596482da34f5535bc94841e85798ba21139 (diff) |
Fix bug and avoid allocations in left shift
Diffstat (limited to 'src/lib/math/bigint/bigint.h')
-rw-r--r-- | src/lib/math/bigint/bigint.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/lib/math/bigint/bigint.h b/src/lib/math/bigint/bigint.h index 31eee4c3c..ade70ba68 100644 --- a/src/lib/math/bigint/bigint.h +++ b/src/lib/math/bigint/bigint.h @@ -592,6 +592,13 @@ class BOTAN_PUBLIC_API(2,0) BigInt final size_t bits() const; /** + * Get the number of high bits unset in the top (allocated) word + * of this integer. Returns BOTAN_MP_WORD_BITS only iff *this is + * zero. Ignores sign. + */ + size_t top_bits_free() const; + + /** * Return a mutable pointer to the register * @result a pointer to the start of the internal register */ |