Skip to content

Commit c2a3224

Browse files
committed
---
yaml --- r: 116505 b: refs/heads/snap-stage3 c: 7589127 h: refs/heads/master i: 116503: 0a73b6a v: v3
1 parent db39fd4 commit c2a3224

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: bee4e6adac17f87b1cdc26ab69f8c0f5d82575a3
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: 7d07a1e74b1f0741777272e533b7eff452eb01e4
4+
refs/heads/snap-stage3: 75891274c461c8e097d8c0042df053dd01d3b43e
55
refs/heads/try: 009d898a9422ac04c1aa60c0e9aff3abc5fa4672
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/src/libnum/bigint.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -653,6 +653,8 @@ impl FromStrRadix for BigUint {
653653

654654
impl BigUint {
655655
/// Creates and initializes a `BigUint`.
656+
///
657+
/// The digits are be in base 2^32.
656658
#[inline]
657659
pub fn new(v: Vec<BigDigit>) -> BigUint {
658660
// omit trailing zeros
@@ -665,6 +667,8 @@ impl BigUint {
665667
}
666668

667669
/// Creates and initializes a `BigUint`.
670+
///
671+
/// The digits are be in base 2^32.
668672
#[inline]
669673
pub fn from_slice(slice: &[BigDigit]) -> BigUint {
670674
return BigUint::new(Vec::from_slice(slice));
@@ -1315,12 +1319,16 @@ impl<R: Rng> RandBigInt for R {
13151319

13161320
impl BigInt {
13171321
/// Creates and initializes a BigInt.
1322+
///
1323+
/// The digits are be in base 2^32.
13181324
#[inline]
13191325
pub fn new(sign: Sign, v: Vec<BigDigit>) -> BigInt {
13201326
BigInt::from_biguint(sign, BigUint::new(v))
13211327
}
13221328

13231329
/// Creates and initializes a `BigInt`.
1330+
///
1331+
/// The digits are be in base 2^32.
13241332
#[inline]
13251333
pub fn from_biguint(sign: Sign, data: BigUint) -> BigInt {
13261334
if sign == Zero || data.is_zero() {

0 commit comments

Comments
 (0)