Skip to content

Commit 34cf17a

Browse files
committed
correct fmt
1 parent c2840ee commit 34cf17a

File tree

2 files changed

+1876
-469
lines changed

2 files changed

+1876
-469
lines changed

crates/core_arch/src/arm_shared/crc.rs

+24-6
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,10 @@ use stdarch_test::assert_instr;
2828
#[target_feature(enable = "crc")]
2929
#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))]
3030
#[cfg_attr(test, assert_instr(crc32b))]
31-
#[cfg_attr(target_arch = "aarch64", stable(feature = "neon_intrinsics", since = "1.59.0"))]
31+
#[cfg_attr(
32+
target_arch = "aarch64",
33+
stable(feature = "neon_intrinsics", since = "1.59.0")
34+
)]
3235
pub unsafe fn __crc32b(crc: u32, data: u8) -> u32 {
3336
crc32b_(crc, data as u32)
3437
}
@@ -38,7 +41,10 @@ pub unsafe fn __crc32b(crc: u32, data: u8) -> u32 {
3841
#[target_feature(enable = "crc")]
3942
#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))]
4043
#[cfg_attr(test, assert_instr(crc32h))]
41-
#[cfg_attr(target_arch = "aarch64", stable(feature = "neon_intrinsics", since = "1.59.0"))]
44+
#[cfg_attr(
45+
target_arch = "aarch64",
46+
stable(feature = "neon_intrinsics", since = "1.59.0")
47+
)]
4248
pub unsafe fn __crc32h(crc: u32, data: u16) -> u32 {
4349
crc32h_(crc, data as u32)
4450
}
@@ -48,7 +54,10 @@ pub unsafe fn __crc32h(crc: u32, data: u16) -> u32 {
4854
#[target_feature(enable = "crc")]
4955
#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))]
5056
#[cfg_attr(test, assert_instr(crc32w))]
51-
#[cfg_attr(target_arch = "aarch64", stable(feature = "neon_intrinsics", since = "1.59.0"))]
57+
#[cfg_attr(
58+
target_arch = "aarch64",
59+
stable(feature = "neon_intrinsics", since = "1.59.0")
60+
)]
5261
pub unsafe fn __crc32w(crc: u32, data: u32) -> u32 {
5362
crc32w_(crc, data)
5463
}
@@ -58,7 +67,10 @@ pub unsafe fn __crc32w(crc: u32, data: u32) -> u32 {
5867
#[target_feature(enable = "crc")]
5968
#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))]
6069
#[cfg_attr(test, assert_instr(crc32cb))]
61-
#[cfg_attr(target_arch = "aarch64", stable(feature = "neon_intrinsics", since = "1.59.0"))]
70+
#[cfg_attr(
71+
target_arch = "aarch64",
72+
stable(feature = "neon_intrinsics", since = "1.59.0")
73+
)]
6274
pub unsafe fn __crc32cb(crc: u32, data: u8) -> u32 {
6375
crc32cb_(crc, data as u32)
6476
}
@@ -68,7 +80,10 @@ pub unsafe fn __crc32cb(crc: u32, data: u8) -> u32 {
6880
#[target_feature(enable = "crc")]
6981
#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))]
7082
#[cfg_attr(test, assert_instr(crc32ch))]
71-
#[cfg_attr(target_arch = "aarch64", stable(feature = "neon_intrinsics", since = "1.59.0"))]
83+
#[cfg_attr(
84+
target_arch = "aarch64",
85+
stable(feature = "neon_intrinsics", since = "1.59.0")
86+
)]
7287
pub unsafe fn __crc32ch(crc: u32, data: u16) -> u32 {
7388
crc32ch_(crc, data as u32)
7489
}
@@ -78,7 +93,10 @@ pub unsafe fn __crc32ch(crc: u32, data: u16) -> u32 {
7893
#[target_feature(enable = "crc")]
7994
#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))]
8095
#[cfg_attr(test, assert_instr(crc32cw))]
81-
#[cfg_attr(target_arch = "aarch64", stable(feature = "neon_intrinsics", since = "1.59.0"))]
96+
#[cfg_attr(
97+
target_arch = "aarch64",
98+
stable(feature = "neon_intrinsics", since = "1.59.0")
99+
)]
82100
pub unsafe fn __crc32cw(crc: u32, data: u32) -> u32 {
83101
crc32cw_(crc, data)
84102
}

0 commit comments

Comments
 (0)