diff --git a/bigint/src/bigint.rs b/bigint/src/bigint.rs index 6cf7486..7a9b02d 100644 --- a/bigint/src/bigint.rs +++ b/bigint/src/bigint.rs @@ -1068,6 +1068,7 @@ impl BigInt { /// Determines the fewest bits necessary to express the `BigInt`, /// not including the sign. + #[inline] pub fn bits(&self) -> usize { self.data.bits() } diff --git a/bigint/src/biguint.rs b/bigint/src/biguint.rs index b9dfa19..5248115 100644 --- a/bigint/src/biguint.rs +++ b/bigint/src/biguint.rs @@ -1049,6 +1049,7 @@ impl BigUint { } /// Determines the fewest bits necessary to express the `BigUint`. + #[inline] pub fn bits(&self) -> usize { if self.is_zero() { return 0;