1 cfg_if! {
2     if #[cfg(all(
3         crc32fast_stdarchx86,
4         any(target_arch = "x86", target_arch = "x86_64")
5     ))] {
6         mod pclmulqdq;
7         pub use self::pclmulqdq::State;
8     } else if #[cfg(all(feature = "nightly", target_arch = "aarch64"))] {
9         mod aarch64;
10         pub use self::aarch64::State;
11     } else {
12         #[derive(Clone)]
13         pub enum State {}
14         impl State {
15             pub fn new(_: u32) -> Option<Self> {
16                 None
17             }
18 
19             pub fn update(&mut self, _buf: &[u8]) {
20                 match *self {}
21             }
22 
23             pub fn finalize(self) -> u32 {
24                 match self{}
25             }
26 
27             pub fn reset(&mut self) {
28                 match *self {}
29             }
30 
31             pub fn combine(&mut self, _other: u32, _amount: u64) {
32                 match *self {}
33             }
34         }
35     }
36 }
37