소스 검색

bigint: inline bits() methods

Josh Stone 8 년 전
부모
커밋
5c3d759d6c
2개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      bigint/src/bigint.rs
  2. 1 0
      bigint/src/biguint.rs

+ 1 - 0
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()
     }

+ 1 - 0
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;