@@ -50,8 +50,7 @@ extern "unadjusted" {
50
50
///
51
51
/// This function is safe to use if the `zkne` target feature is present.
52
52
#[ target_feature( enable = "zkne" ) ]
53
- // See #1464
54
- // #[cfg_attr(test, assert_instr(aes64es))]
53
+ #[ cfg_attr( test, assert_instr( aes64es) ) ]
55
54
#[ inline]
56
55
pub unsafe fn aes64es ( rs1 : u64 , rs2 : u64 ) -> u64 {
57
56
_aes64es ( rs1 as i64 , rs2 as i64 ) as u64
@@ -74,8 +73,7 @@ pub unsafe fn aes64es(rs1: u64, rs2: u64) -> u64 {
74
73
///
75
74
/// This function is safe to use if the `zkne` target feature is present.
76
75
#[ target_feature( enable = "zkne" ) ]
77
- // See #1464
78
- // #[cfg_attr(test, assert_instr(aes64esm))]
76
+ #[ cfg_attr( test, assert_instr( aes64esm) ) ]
79
77
#[ inline]
80
78
pub unsafe fn aes64esm ( rs1 : u64 , rs2 : u64 ) -> u64 {
81
79
_aes64esm ( rs1 as i64 , rs2 as i64 ) as u64
@@ -98,8 +96,7 @@ pub unsafe fn aes64esm(rs1: u64, rs2: u64) -> u64 {
98
96
///
99
97
/// This function is safe to use if the `zknd` target feature is present.
100
98
#[ target_feature( enable = "zknd" ) ]
101
- // See #1464
102
- // #[cfg_attr(test, assert_instr(aes64ds))]
99
+ #[ cfg_attr( test, assert_instr( aes64ds) ) ]
103
100
#[ inline]
104
101
pub unsafe fn aes64ds ( rs1 : u64 , rs2 : u64 ) -> u64 {
105
102
_aes64ds ( rs1 as i64 , rs2 as i64 ) as u64
@@ -122,8 +119,7 @@ pub unsafe fn aes64ds(rs1: u64, rs2: u64) -> u64 {
122
119
///
123
120
/// This function is safe to use if the `zknd` target feature is present.
124
121
#[ target_feature( enable = "zknd" ) ]
125
- // See #1464
126
- // #[cfg_attr(test, assert_instr(aes64dsm))]
122
+ #[ cfg_attr( test, assert_instr( aes64dsm) ) ]
127
123
#[ inline]
128
124
pub unsafe fn aes64dsm ( rs1 : u64 , rs2 : u64 ) -> u64 {
129
125
_aes64dsm ( rs1 as i64 , rs2 as i64 ) as u64
@@ -152,8 +148,7 @@ pub unsafe fn aes64dsm(rs1: u64, rs2: u64) -> u64 {
152
148
/// This function is safe to use if the `zkne` or `zknd` target feature is present.
153
149
#[ target_feature( enable = "zkne" , enable = "zknd" ) ]
154
150
#[ rustc_legacy_const_generics( 1 ) ]
155
- // See #1464
156
- // #[cfg_attr(test, assert_instr(aes64ks1i, RNUM = 0))]
151
+ #[ cfg_attr( test, assert_instr( aes64ks1i, RNUM = 0 ) ) ]
157
152
#[ inline]
158
153
pub unsafe fn aes64ks1i < const RNUM : u8 > ( rs1 : u64 ) -> u64 {
159
154
static_assert ! ( RNUM <= 10 ) ;
@@ -177,8 +172,7 @@ pub unsafe fn aes64ks1i<const RNUM: u8>(rs1: u64) -> u64 {
177
172
///
178
173
/// This function is safe to use if the `zkne` or `zknd` target feature is present.
179
174
#[ target_feature( enable = "zkne" , enable = "zknd" ) ]
180
- // See #1464
181
- // #[cfg_attr(test, assert_instr(aes64ks2))]
175
+ #[ cfg_attr( test, assert_instr( aes64ks2) ) ]
182
176
#[ inline]
183
177
pub unsafe fn aes64ks2 ( rs1 : u64 , rs2 : u64 ) -> u64 {
184
178
_aes64ks2 ( rs1 as i64 , rs2 as i64 ) as u64
@@ -201,8 +195,7 @@ pub unsafe fn aes64ks2(rs1: u64, rs2: u64) -> u64 {
201
195
///
202
196
/// This function is safe to use if the `zknh` target feature is present.
203
197
#[ target_feature( enable = "zknh" ) ]
204
- // See #1464
205
- // #[cfg_attr(test, assert_instr(sha512sig0))]
198
+ #[ cfg_attr( test, assert_instr( sha512sig0) ) ]
206
199
#[ inline]
207
200
pub unsafe fn sha512sig0 ( rs1 : u64 ) -> u64 {
208
201
_sha512sig0 ( rs1 as i64 ) as u64
@@ -225,8 +218,7 @@ pub unsafe fn sha512sig0(rs1: u64) -> u64 {
225
218
///
226
219
/// This function is safe to use if the `zknh` target feature is present.
227
220
#[ target_feature( enable = "zknh" ) ]
228
- // See #1464
229
- // #[cfg_attr(test, assert_instr(sha512sig1))]
221
+ #[ cfg_attr( test, assert_instr( sha512sig1) ) ]
230
222
#[ inline]
231
223
pub unsafe fn sha512sig1 ( rs1 : u64 ) -> u64 {
232
224
_sha512sig1 ( rs1 as i64 ) as u64
@@ -249,8 +241,7 @@ pub unsafe fn sha512sig1(rs1: u64) -> u64 {
249
241
///
250
242
/// This function is safe to use if the `zknh` target feature is present.
251
243
#[ target_feature( enable = "zknh" ) ]
252
- // See #1464
253
- // #[cfg_attr(test, assert_instr(sha512sum0))]
244
+ #[ cfg_attr( test, assert_instr( sha512sum0) ) ]
254
245
#[ inline]
255
246
pub unsafe fn sha512sum0 ( rs1 : u64 ) -> u64 {
256
247
_sha512sum0 ( rs1 as i64 ) as u64
@@ -273,8 +264,7 @@ pub unsafe fn sha512sum0(rs1: u64) -> u64 {
273
264
///
274
265
/// This function is safe to use if the `zknh` target feature is present.
275
266
#[ target_feature( enable = "zknh" ) ]
276
- // See #1464
277
- // #[cfg_attr(test, assert_instr(sha512sum1))]
267
+ #[ cfg_attr( test, assert_instr( sha512sum1) ) ]
278
268
#[ inline]
279
269
pub unsafe fn sha512sum1 ( rs1 : u64 ) -> u64 {
280
270
_sha512sum1 ( rs1 as i64 ) as u64
0 commit comments