@@ -24,6 +24,8 @@ extern "unadjusted" {
24
24
use stdarch_test:: assert_instr;
25
25
26
26
/// CRC32 single round checksum for bytes (8 bits).
27
+ ///
28
+ /// [Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/__crc32b)
27
29
#[ inline]
28
30
#[ target_feature( enable = "crc" ) ]
29
31
#[ cfg_attr( target_arch = "arm" , target_feature( enable = "v8" ) ) ]
@@ -33,6 +35,8 @@ pub unsafe fn __crc32b(crc: u32, data: u8) -> u32 {
33
35
}
34
36
35
37
/// CRC32 single round checksum for half words (16 bits).
38
+ ///
39
+ /// [Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/__crc32h)
36
40
#[ inline]
37
41
#[ target_feature( enable = "crc" ) ]
38
42
#[ cfg_attr( target_arch = "arm" , target_feature( enable = "v8" ) ) ]
@@ -42,6 +46,8 @@ pub unsafe fn __crc32h(crc: u32, data: u16) -> u32 {
42
46
}
43
47
44
48
/// CRC32 single round checksum for words (32 bits).
49
+ ///
50
+ /// [Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/__crc32w)
45
51
#[ inline]
46
52
#[ target_feature( enable = "crc" ) ]
47
53
#[ cfg_attr( target_arch = "arm" , target_feature( enable = "v8" ) ) ]
@@ -51,6 +57,8 @@ pub unsafe fn __crc32w(crc: u32, data: u32) -> u32 {
51
57
}
52
58
53
59
/// CRC32-C single round checksum for bytes (8 bits).
60
+ ///
61
+ /// [Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/__crc32cb)
54
62
#[ inline]
55
63
#[ target_feature( enable = "crc" ) ]
56
64
#[ cfg_attr( target_arch = "arm" , target_feature( enable = "v8" ) ) ]
@@ -60,6 +68,8 @@ pub unsafe fn __crc32cb(crc: u32, data: u8) -> u32 {
60
68
}
61
69
62
70
/// CRC32-C single round checksum for half words (16 bits).
71
+ ///
72
+ /// [Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/__crc32ch)
63
73
#[ inline]
64
74
#[ target_feature( enable = "crc" ) ]
65
75
#[ cfg_attr( target_arch = "arm" , target_feature( enable = "v8" ) ) ]
@@ -69,6 +79,8 @@ pub unsafe fn __crc32ch(crc: u32, data: u16) -> u32 {
69
79
}
70
80
71
81
/// CRC32-C single round checksum for words (32 bits).
82
+ ///
83
+ /// [Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/__crc32cw)
72
84
#[ inline]
73
85
#[ target_feature( enable = "crc" ) ]
74
86
#[ cfg_attr( target_arch = "arm" , target_feature( enable = "v8" ) ) ]
0 commit comments