File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ refs/heads/snap-stage3: 78a7676898d9f80ab540c6df5d4c9ce35bb50463
5
5
refs/heads/try: 519addf6277dbafccbb4159db4b710c37eaa2ec5
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8
- refs/heads/try2: 7d07a1e74b1f0741777272e533b7eff452eb01e4
8
+ refs/heads/try2: 75891274c461c8e097d8c0042df053dd01d3b43e
9
9
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
10
10
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
11
11
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
Original file line number Diff line number Diff line change @@ -653,6 +653,8 @@ impl FromStrRadix for BigUint {
653
653
654
654
impl BigUint {
655
655
/// Creates and initializes a `BigUint`.
656
+ ///
657
+ /// The digits are be in base 2^32.
656
658
#[ inline]
657
659
pub fn new ( v : Vec < BigDigit > ) -> BigUint {
658
660
// omit trailing zeros
@@ -665,6 +667,8 @@ impl BigUint {
665
667
}
666
668
667
669
/// Creates and initializes a `BigUint`.
670
+ ///
671
+ /// The digits are be in base 2^32.
668
672
#[ inline]
669
673
pub fn from_slice ( slice : & [ BigDigit ] ) -> BigUint {
670
674
return BigUint :: new ( Vec :: from_slice ( slice) ) ;
@@ -1315,12 +1319,16 @@ impl<R: Rng> RandBigInt for R {
1315
1319
1316
1320
impl BigInt {
1317
1321
/// Creates and initializes a BigInt.
1322
+ ///
1323
+ /// The digits are be in base 2^32.
1318
1324
#[ inline]
1319
1325
pub fn new ( sign : Sign , v : Vec < BigDigit > ) -> BigInt {
1320
1326
BigInt :: from_biguint ( sign, BigUint :: new ( v) )
1321
1327
}
1322
1328
1323
1329
/// Creates and initializes a `BigInt`.
1330
+ ///
1331
+ /// The digits are be in base 2^32.
1324
1332
#[ inline]
1325
1333
pub fn from_biguint ( sign : Sign , data : BigUint ) -> BigInt {
1326
1334
if sign == Zero || data. is_zero ( ) {
You can’t perform that action at this time.
0 commit comments