Skip to content

Commit 2211a6b

Browse files
committed
---
yaml --- r: 152297 b: refs/heads/try2 c: 7589127 h: refs/heads/master i: 152295: 06ac97e v: v3
1 parent 77c6b4d commit 2211a6b

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
@@ -5,7 +5,7 @@ refs/heads/snap-stage3: 78a7676898d9f80ab540c6df5d4c9ce35bb50463
55
refs/heads/try: 519addf6277dbafccbb4159db4b710c37eaa2ec5
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8-
refs/heads/try2: 7d07a1e74b1f0741777272e533b7eff452eb01e4
8+
refs/heads/try2: 75891274c461c8e097d8c0042df053dd01d3b43e
99
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try2/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)