Skip to content

Commit 7562533

Browse files
author
Jason Morrison
committed

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

rush/src/checksum.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ unsafe fn checksum(data: &[u8], length: usize, initial: u16) -> u16 {
6464
let ptr = data.as_ptr();
6565
let size = length;
6666
let mut acc = initial as u64;
67-
asm!("
67+
core::arch::asm!("
6868
# Accumulative sum.
6969
xchg {acc:l}, {acc:h} # Swap to convert to host-bytes order.
7070
1:
@@ -148,7 +148,7 @@ unsafe fn checksum(data: &[u8], length: usize, initial: u16) -> u16 {
148148
let size = length;
149149
let mut acc = initial as u64;
150150
// Accumulative sum
151-
asm!("
151+
core::arch::asm!("
152152
ands {mod32}, {size}, ~31
153153
rev16 {acc:w}, {acc:w} // Swap initial to convert to host-bytes order.
154154
b.eq 2f // Skip 32 bytes at once block, carry flag cleared (ands)

rush/src/main.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#![allow(dead_code)]
22
#![feature(test)]
3-
#![feature(asm)]
43

54
mod memory;
65
mod packet;

0 commit comments

Comments
 (0)