From 5c3d759d6c4c2e1cb4f55cf29db0300191650d07 Mon Sep 17 00:00:00 2001 From: Josh Stone Date: Wed, 10 Aug 2016 22:23:28 -0700 Subject: [PATCH] bigint: inline bits() methods --- bigint/src/bigint.rs | 1 + bigint/src/biguint.rs | 1 + 2 files changed, 2 insertions(+) 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;