crc32: remove #[cfg(not(target_arch = "arm"))] from crc functions

They are defined in the aarch64 module, so this cfg is pointless.

Note that these instructions do exist for arm, but the aarch64 ones are
already stable, so this would need some additional work to implement
them for arm.
This commit is contained in:
Folkert de Vries 2025-10-09 19:17:55 +02:00
parent c1242fab74
commit 4fcf3f86c4
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C
2 changed files with 0 additions and 8 deletions

View file

@ -16,7 +16,6 @@ use super::*;
#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/__crc32cd)"]
#[inline]
#[target_feature(enable = "crc")]
#[cfg(not(target_arch = "arm"))]
#[cfg_attr(test, assert_instr(crc32cx))]
#[stable(feature = "stdarch_aarch64_crc32", since = "1.80.0")]
pub fn __crc32cd(crc: u32, data: u64) -> u32 {
@ -33,7 +32,6 @@ pub fn __crc32cd(crc: u32, data: u64) -> u32 {
#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/__crc32d)"]
#[inline]
#[target_feature(enable = "crc")]
#[cfg(not(target_arch = "arm"))]
#[cfg_attr(test, assert_instr(crc32x))]
#[stable(feature = "stdarch_aarch64_crc32", since = "1.80.0")]
pub fn __crc32d(crc: u32, data: u64) -> u32 {

View file

@ -13,10 +13,6 @@ auto_llvm_sign_conversion: false
neon-stable: &neon-stable
FnCall: [stable, ['feature = "neon_intrinsics"', 'since = "1.59.0"']]
# #[cfg(not(target_arch = "arm"))]
target-not-arm: &target-not-arm
FnCall: [cfg, [{ FnCall: [not, ['target_arch = "arm"']]}]]
# #[cfg(not(target_arch = "arm64ec"))]
target-not-arm64ec: &target-not-arm64ec
FnCall: [cfg, [{ FnCall: [not, ['target_arch = "arm64ec"']]}]]
@ -13082,7 +13078,6 @@ intrinsics:
return_type: "{type[0]}"
attr:
- FnCall: [target_feature, ['enable = "crc"']]
- *target-not-arm
- FnCall: [cfg_attr, [test, { FnCall: [assert_instr, ["crc32x"]] }]]
- *aarch64-crc-stable
safety: safe
@ -13104,7 +13099,6 @@ intrinsics:
return_type: "{type[0]}"
attr:
- FnCall: [target_feature, ['enable = "crc"']]
- *target-not-arm
- FnCall: [cfg_attr, [test, { FnCall: [assert_instr, ["crc32cx"]] }]]
- *aarch64-crc-stable
safety: safe