Skip to content

Commit 346c7ea

Browse files
committed
bash-f: STATE_WORDS is now pub
1 parent 927eb41 commit 346c7ea

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

bash-f/benches/mod.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
#![feature(test)]
22
extern crate test;
33

4-
use bash_f::bash_f;
4+
use bash_f::{bash_f, STATE_WORDS};
55
use test::Bencher;
66

7-
const STATE_WORDS: usize = 24;
8-
97
#[bench]
108
fn bench_bash_f(b: &mut Bencher) {
119
let mut state = [0u64; STATE_WORDS];

bash-f/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#![warn(missing_docs)]
99

1010
/// Number of 64-bit words in the state
11-
const STATE_WORDS: usize = 24;
11+
pub const STATE_WORDS: usize = 24;
1212

1313
/// Precalculated rotation params
1414
const ROTATION_PARAMS: [(u32, u32, u32, u32); 8] = {

0 commit comments

Comments
 (0)