Skip to content

Commit

Permalink
Fix compilation with no_std on arm
Browse files Browse the repository at this point in the history
  • Loading branch information
cberner committed Sep 21, 2024
1 parent 2399eb9 commit 8448c81
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/octets.rs
Original file line number Diff line number Diff line change
Expand Up @@ -290,9 +290,8 @@ fn mulassign_scalar_fallback(octets: &mut [u8], scalar: &Octet) {
}
}

#[cfg(target_arch = "aarch64")]
// TODO: enable when stable
// #[cfg(any(target_arch = "arm", target_arch = "aarch64"))]
#[cfg(all(any(target_arch = "arm", target_arch = "aarch64"), feature = "std"))]
// #[target_feature(enable = "neon")]
unsafe fn mulassign_scalar_neon(octets: &mut [u8], scalar: &Octet) {
#[cfg(target_arch = "aarch64")]
Expand Down Expand Up @@ -458,9 +457,8 @@ fn fused_addassign_mul_scalar_fallback(octets: &mut [u8], other: &[u8], scalar:
}
}

#[cfg(target_arch = "aarch64")]
// TODO: enable when stable
// #[cfg(any(target_arch = "arm", target_arch = "aarch64"))]
#[cfg(all(any(target_arch = "arm", target_arch = "aarch64"), feature = "std"))]
// #[target_feature(enable = "neon")]
unsafe fn fused_addassign_mul_scalar_neon(octets: &mut [u8], other: &[u8], scalar: &Octet) {
#[cfg(target_arch = "aarch64")]
Expand Down

0 comments on commit 8448c81

Please sign in to comment.