Skip to content

Commit 87291e9

Browse files
committed
Gate x86 SIMD test helpers
1 parent 7389dfe commit 87291e9

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

src/simd/tests.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
use super::*;
2-
use crate::{Alphabet, Engine, Standard, UrlSafe, decode_alphabet_byte};
2+
#[cfg(any(target_arch = "x86", target_arch = "x86_64"))]
3+
use crate::{Alphabet, decode_alphabet_byte};
4+
use crate::{Engine, Standard, UrlSafe};
35

6+
#[cfg(any(target_arch = "x86", target_arch = "x86_64"))]
47
struct AnchorMatchingCustom;
58

9+
#[cfg(any(target_arch = "x86", target_arch = "x86_64"))]
610
impl Alphabet for AnchorMatchingCustom {
711
const ENCODE: [u8; 64] = *b"ACBDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
812

@@ -18,6 +22,7 @@ fn fill_pattern(output: &mut [u8], seed: usize) {
1822
}
1923
}
2024

25+
#[cfg(any(target_arch = "x86", target_arch = "x86_64"))]
2126
fn fill_indices_pattern(output: &mut [u8; 12], seed: u8) {
2227
let mut write = 0;
2328
for group in 0..4 {

0 commit comments

Comments
 (0)