Skip to content

Commit 804c622

Browse files
fix unused warning
Signed-off-by: eternal-flame-AD <[email protected]>
1 parent c65ad4e commit 804c622

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

scrypt/src/romix.rs

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,16 @@
1-
#[cfg(any(target_arch = "x86", target_arch = "x86_64", target_arch = "wasm32"))]
1+
#[cfg(any(
2+
target_arch = "x86",
3+
target_arch = "x86_64",
4+
all(target_arch = "wasm32", target_feature = "simd128")
5+
))]
26
/// Permute Salsa20 block to column major order
37
const PIVOT_ABCD: [usize; 16] = [0, 5, 10, 15, 4, 9, 14, 3, 8, 13, 2, 7, 12, 1, 6, 11];
48

5-
#[cfg(any(target_arch = "x86", target_arch = "x86_64", target_arch = "wasm32"))]
9+
#[cfg(any(
10+
target_arch = "x86",
11+
target_arch = "x86_64",
12+
all(target_arch = "wasm32", target_feature = "simd128")
13+
))]
614
/// Inverse of PIVOT_ABCD
715
const INVERSE_PIVOT_ABCD: [usize; 16] = const {
816
let mut index = [0; 16];

0 commit comments

Comments
 (0)