Skip to content

Commit 10debe5

Browse files
committed
fix target_feature-related errors
1 parent 7818f35 commit 10debe5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

aes/src/armv8/intrinsics.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
use core::arch::{aarch64::uint8x16_t, asm};
66

77
/// AES single round encryption.
8-
#[inline(always)]
8+
#[target_feature(enable = "aes")]
99
pub(super) unsafe fn vaeseq_u8(mut data: uint8x16_t, key: uint8x16_t) -> uint8x16_t {
1010
asm!(
1111
"AESE {d:v}.16B, {k:v}.16B",
@@ -41,7 +41,7 @@ pub(super) unsafe fn vaesmcq_u8(mut data: uint8x16_t) -> uint8x16_t {
4141
}
4242

4343
/// AES inverse mix columns.
44-
#[inline(always)]
44+
#[target_feature(enable = "aes")]
4545
pub(super) unsafe fn vaesimcq_u8(mut data: uint8x16_t) -> uint8x16_t {
4646
asm!(
4747
"AESIMC {d:v}.16B, {d:v}.16B",

0 commit comments

Comments
 (0)