Skip to content

Commit 800a22a

Browse files
author
Robin Kruppe
committed
---
yaml --- r: 233333 b: refs/heads/beta c: 7ff1020 h: refs/heads/master i: 233331: a49f81f v: v3
1 parent b1e9777 commit 800a22a

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ refs/tags/0.9: 36870b185fc5f5486636d4515f0e22677493f225
2323
refs/tags/0.10: ac33f2b15782272ae348dbd7b14b8257b2148b5a
2424
refs/tags/0.11.0: e1247cb1d0d681be034adb4b558b5a0c0d5720f9
2525
refs/tags/0.12.0: f0c419429ef30723ceaf6b42f9b5a2aeb5d2e2d1
26-
refs/heads/beta: b55806ca8ff97ee89f77f9c784619ace3034c32c
26+
refs/heads/beta: 7ff10209aa9b8da6d6d4ceea0161757048126d2d
2727
refs/tags/1.0.0-alpha: e42bd6d93a1d3433c486200587f8f9e12590a4d7
2828
refs/heads/tmp: 370fe2786109360f7c35b8ba552b83b773dd71d6
2929
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f

branches/beta/src/libcore/num/flt2dec/bignum.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111
//! Custom arbitrary-precision number (bignum) implementation.
1212
//!
1313
//! This is designed to avoid the heap allocation at expense of stack memory.
14-
//! The most used bignum type, `Big32x36`, is limited by 32 × 36 = 1,152 bits
15-
//! and will take at most 152 bytes of stack memory. This is (barely) enough
16-
//! for handling all possible finite `f64` values.
14+
//! The most used bignum type, `Big32x40`, is limited by 32 × 40 = 1,280 bits
15+
//! and will take at most 160 bytes of stack memory. This is more than enough
16+
//! for formatting and parsing all possible finite `f64` values.
1717
//!
1818
//! In principle it is possible to have multiple bignum types for different
1919
//! inputs, but we don't do so to avoid the code bloat. Each bignum is still
@@ -344,10 +344,10 @@ macro_rules! define_bignum {
344344
)
345345
}
346346

347-
/// The digit type for `Big32x36`.
347+
/// The digit type for `Big32x40`.
348348
pub type Digit32 = u32;
349349

350-
define_bignum!(Big32x36: type=Digit32, n=36);
350+
define_bignum!(Big32x40: type=Digit32, n=40);
351351

352352
// this one is used for testing only.
353353
#[doc(hidden)]

branches/beta/src/libcore/num/flt2dec/strategy/dragon.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ use cmp::Ordering;
2323
use num::flt2dec::{Decoded, MAX_SIG_DIGITS, round_up};
2424
use num::flt2dec::estimator::estimate_scaling_factor;
2525
use num::flt2dec::bignum::Digit32 as Digit;
26-
use num::flt2dec::bignum::Big32x36 as Big;
26+
use num::flt2dec::bignum::Big32x40 as Big;
2727

2828
static POW10: [Digit; 10] = [1, 10, 100, 1000, 10000, 100000,
2929
1000000, 10000000, 100000000, 1000000000];

branches/beta/src/libcoretest/num/flt2dec/strategy/dragon.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ use std::prelude::v1::*;
1212
use std::{i16, f64};
1313
use super::super::*;
1414
use core::num::flt2dec::*;
15-
use core::num::flt2dec::bignum::Big32x36 as Big;
15+
use core::num::flt2dec::bignum::Big32x40 as Big;
1616
use core::num::flt2dec::strategy::dragon::*;
1717

1818
#[test]

0 commit comments

Comments
 (0)