Skip to content

Commit 86de9a8

Browse files
author
Jorge Aparicio
committed
---
yaml --- r: 163301 b: refs/heads/snap-stage3 c: 533a47b h: refs/heads/master i: 163299: 7e3053c v: v3
1 parent 352d455 commit 86de9a8

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
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: 9146a919b616e39e528e4d7100d16eef52f1f852
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: 5d7543b6baf511306ea91ac5f59ae8265ab0b6a3
4+
refs/heads/snap-stage3: 533a47bd9bb4aebe61af8d7ff9327af8cffdb583
55
refs/heads/try: 20cbbffeefc1f35e2ea63afce7b42fbd79611d42
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d

branches/snap-stage3/src/librand/distributions/mod.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -208,14 +208,14 @@ mod ziggurat_tables;
208208
// the perf improvement (25-50%) is definitely worth the extra code
209209
// size from force-inlining.
210210
#[inline(always)]
211-
fn ziggurat<R:Rng>(
211+
fn ziggurat<R: Rng, P, Z>(
212212
rng: &mut R,
213213
symmetric: bool,
214214
x_tab: ziggurat_tables::ZigTable,
215215
f_tab: ziggurat_tables::ZigTable,
216-
pdf: |f64|: 'static -> f64,
217-
zero_case: |&mut R, f64|: 'static -> f64)
218-
-> f64 {
216+
mut pdf: P,
217+
mut zero_case: Z)
218+
-> f64 where P: FnMut(f64) -> f64, Z: FnMut(&mut R, f64) -> f64 {
219219
static SCALE: f64 = (1u64 << 53) as f64;
220220
loop {
221221
// reimplement the f64 generation as an optimisation suggested

branches/snap-stage3/src/librand/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
html_playground_url = "http://play.rust-lang.org/")]
2525

2626
#![feature(macro_rules, phase, globs)]
27+
#![feature(unboxed_closures)]
2728
#![no_std]
2829
#![experimental]
2930

0 commit comments

Comments
 (0)