Skip to content

Commit 4859a31

Browse files
committed
Flag functions as unsafe
1 parent f066361 commit 4859a31

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/crc32/fusion/aarch64.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ unsafe fn clmul_scalar(a: u32, b: u32) -> uint64x2_t {
9393
#[inline]
9494
#[cfg(target_feature = "sha3")]
9595
#[target_feature(enable = "neon,aes")]
96-
fn xnmodp_crc32_iscsi(mut n: u64) -> u32 {
96+
unsafe fn xnmodp_crc32_iscsi(mut n: u64) -> u32 {
9797
let mut stack = !1u64;
9898
let mut acc: u32;
9999
let mut low: u32;
@@ -139,7 +139,7 @@ unsafe fn crc_shift_iscsi(crc: u32, nbytes: usize) -> uint64x2_t {
139139
#[inline]
140140
#[cfg(target_feature = "sha3")]
141141
#[target_feature(enable = "neon,aes")]
142-
fn xnmodp_iso_hdlc(mut n: u64) -> u32 {
142+
unsafe fn xnmodp_iso_hdlc(mut n: u64) -> u32 {
143143
let mut stack = !1u64;
144144
let mut acc: u32;
145145
let mut low: u32;

0 commit comments

Comments
 (0)