diff --git a/rush/src/checksum.rs b/rush/src/checksum.rs index a3a7205..6572313 100644 --- a/rush/src/checksum.rs +++ b/rush/src/checksum.rs @@ -64,7 +64,7 @@ unsafe fn checksum(data: &[u8], length: usize, initial: u16) -> u16 { let ptr = data.as_ptr(); let size = length; let mut acc = initial as u64; - asm!(" + core::arch::asm!(" # Accumulative sum. xchg {acc:l}, {acc:h} # Swap to convert to host-bytes order. 1: @@ -148,7 +148,7 @@ unsafe fn checksum(data: &[u8], length: usize, initial: u16) -> u16 { let size = length; let mut acc = initial as u64; // Accumulative sum - asm!(" + core::arch::asm!(" ands {mod32}, {size}, ~31 rev16 {acc:w}, {acc:w} // Swap initial to convert to host-bytes order. b.eq 2f // Skip 32 bytes at once block, carry flag cleared (ands) diff --git a/rush/src/main.rs b/rush/src/main.rs index 664a27f..b557ca6 100644 --- a/rush/src/main.rs +++ b/rush/src/main.rs @@ -1,6 +1,5 @@ #![allow(dead_code)] #![feature(test)] -#![feature(asm)] mod memory; mod packet;