File tree Expand file tree Collapse file tree 3 files changed +6
-5
lines changed
branches/snap-stage3/src/librand Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 1
1
---
2
2
refs/heads/master: 9146a919b616e39e528e4d7100d16eef52f1f852
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
- refs/heads/snap-stage3: 5d7543b6baf511306ea91ac5f59ae8265ab0b6a3
4
+ refs/heads/snap-stage3: 533a47bd9bb4aebe61af8d7ff9327af8cffdb583
5
5
refs/heads/try: 20cbbffeefc1f35e2ea63afce7b42fbd79611d42
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
Original file line number Diff line number Diff line change @@ -208,14 +208,14 @@ mod ziggurat_tables;
208
208
// the perf improvement (25-50%) is definitely worth the extra code
209
209
// size from force-inlining.
210
210
#[ inline( always) ]
211
- fn ziggurat < R : Rng > (
211
+ fn ziggurat < R : Rng , P , Z > (
212
212
rng : & mut R ,
213
213
symmetric : bool ,
214
214
x_tab : ziggurat_tables:: ZigTable ,
215
215
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 {
219
219
static SCALE : f64 = ( 1u64 << 53 ) as f64 ;
220
220
loop {
221
221
// reimplement the f64 generation as an optimisation suggested
Original file line number Diff line number Diff line change 24
24
html_playground_url = "http://play.rust-lang.org/" ) ]
25
25
26
26
#![ feature( macro_rules, phase, globs) ]
27
+ #![ feature( unboxed_closures) ]
27
28
#![ no_std]
28
29
#![ experimental]
29
30
You can’t perform that action at this time.
0 commit comments