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