@@ -169,9 +169,9 @@ mod tests {
169169
170170 #[ simd_test( enable = "crypto" ) ]
171171 unsafe fn test_vaeseq_u8 ( ) {
172- let data = :: mem:: transmute ( u8x16:: new ( 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 ) ) ;
173- let key = :: mem:: transmute ( u8x16:: new ( 0 , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 0 , 1 , 2 , 3 , 4 , 5 , 6 , 7 ) ) ;
174- let r: u8x16 = :: mem:: transmute ( vaeseq_u8 ( data, key) ) ;
172+ let data = mem:: transmute ( u8x16:: new ( 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 ) ) ;
173+ let key = mem:: transmute ( u8x16:: new ( 0 , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 0 , 1 , 2 , 3 , 4 , 5 , 6 , 7 ) ) ;
174+ let r: u8x16 = mem:: transmute ( vaeseq_u8 ( data, key) ) ;
175175 assert_eq ! (
176176 r,
177177 u8x16:: new(
@@ -182,9 +182,9 @@ mod tests {
182182
183183 #[ simd_test( enable = "crypto" ) ]
184184 unsafe fn test_vaesdq_u8 ( ) {
185- let data = :: mem:: transmute ( u8x16:: new ( 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 ) ) ;
186- let key = :: mem:: transmute ( u8x16:: new ( 0 , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 0 , 1 , 2 , 3 , 4 , 5 , 6 , 7 ) ) ;
187- let r: u8x16 = :: mem:: transmute ( vaesdq_u8 ( data, key) ) ;
185+ let data = mem:: transmute ( u8x16:: new ( 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 ) ) ;
186+ let key = mem:: transmute ( u8x16:: new ( 0 , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 0 , 1 , 2 , 3 , 4 , 5 , 6 , 7 ) ) ;
187+ let r: u8x16 = mem:: transmute ( vaesdq_u8 ( data, key) ) ;
188188 assert_eq ! (
189189 r,
190190 u8x16:: new( 9 , 213 , 9 , 251 , 9 , 213 , 9 , 56 , 9 , 213 , 9 , 251 , 9 , 213 , 9 , 56 )
@@ -193,8 +193,8 @@ mod tests {
193193
194194 #[ simd_test( enable = "crypto" ) ]
195195 unsafe fn test_vaesmcq_u8 ( ) {
196- let data = :: mem:: transmute ( u8x16:: new ( 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 ) ) ;
197- let r: u8x16 = :: mem:: transmute ( vaesmcq_u8 ( data) ) ;
196+ let data = mem:: transmute ( u8x16:: new ( 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 ) ) ;
197+ let r: u8x16 = mem:: transmute ( vaesmcq_u8 ( data) ) ;
198198 assert_eq ! (
199199 r,
200200 u8x16:: new( 3 , 4 , 9 , 10 , 15 , 8 , 21 , 30 , 3 , 4 , 9 , 10 , 15 , 8 , 21 , 30 )
@@ -203,8 +203,8 @@ mod tests {
203203
204204 #[ simd_test( enable = "crypto" ) ]
205205 unsafe fn test_vaesimcq_u8 ( ) {
206- let data = :: mem:: transmute ( u8x16:: new ( 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 ) ) ;
207- let r: u8x16 = :: mem:: transmute ( vaesimcq_u8 ( data) ) ;
206+ let data = mem:: transmute ( u8x16:: new ( 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 ) ) ;
207+ let r: u8x16 = mem:: transmute ( vaesimcq_u8 ( data) ) ;
208208 assert_eq ! (
209209 r,
210210 u8x16:: new( 43 , 60 , 33 , 50 , 103 , 80 , 125 , 70 , 43 , 60 , 33 , 50 , 103 , 80 , 125 , 70 )
@@ -219,19 +219,19 @@ mod tests {
219219
220220 #[ simd_test( enable = "crypto" ) ]
221221 unsafe fn test_vsha1su0q_u32 ( ) {
222- let r: u32x4 = :: mem:: transmute ( vsha1su0q_u32 (
223- :: mem:: transmute ( u32x4:: new ( 0x1234_u32 , 0x5678_u32 , 0x9abc_u32 , 0xdef0_u32 ) ) ,
224- :: mem:: transmute ( u32x4:: new ( 0x1234_u32 , 0x5678_u32 , 0x9abc_u32 , 0xdef0_u32 ) ) ,
225- :: mem:: transmute ( u32x4:: new ( 0x1234_u32 , 0x5678_u32 , 0x9abc_u32 , 0xdef0_u32 ) ) ,
222+ let r: u32x4 = mem:: transmute ( vsha1su0q_u32 (
223+ mem:: transmute ( u32x4:: new ( 0x1234_u32 , 0x5678_u32 , 0x9abc_u32 , 0xdef0_u32 ) ) ,
224+ mem:: transmute ( u32x4:: new ( 0x1234_u32 , 0x5678_u32 , 0x9abc_u32 , 0xdef0_u32 ) ) ,
225+ mem:: transmute ( u32x4:: new ( 0x1234_u32 , 0x5678_u32 , 0x9abc_u32 , 0xdef0_u32 ) ) ,
226226 ) ) ;
227227 assert_eq ! ( r, u32x4:: new( 0x9abc , 0xdef0 , 0x1234 , 0x5678 ) ) ;
228228 }
229229
230230 #[ simd_test( enable = "crypto" ) ]
231231 unsafe fn test_vsha1su1q_u32 ( ) {
232- let r: u32x4 = :: mem:: transmute ( vsha1su1q_u32 (
233- :: mem:: transmute ( u32x4:: new ( 0x1234 , 0x5678 , 0x9abc , 0xdef0 ) ) ,
234- :: mem:: transmute ( u32x4:: new ( 0x1234 , 0x5678 , 0x9abc , 0xdef0 ) ) ,
232+ let r: u32x4 = mem:: transmute ( vsha1su1q_u32 (
233+ mem:: transmute ( u32x4:: new ( 0x1234 , 0x5678 , 0x9abc , 0xdef0 ) ) ,
234+ mem:: transmute ( u32x4:: new ( 0x1234 , 0x5678 , 0x9abc , 0xdef0 ) ) ,
235235 ) ) ;
236236 assert_eq ! (
237237 r,
@@ -241,10 +241,10 @@ mod tests {
241241
242242 #[ simd_test( enable = "crypto" ) ]
243243 unsafe fn test_vsha1cq_u32 ( ) {
244- let r: u32x4 = :: mem:: transmute ( vsha1cq_u32 (
245- :: mem:: transmute ( u32x4:: new ( 0x1234 , 0x5678 , 0x9abc , 0xdef0 ) ) ,
244+ let r: u32x4 = mem:: transmute ( vsha1cq_u32 (
245+ mem:: transmute ( u32x4:: new ( 0x1234 , 0x5678 , 0x9abc , 0xdef0 ) ) ,
246246 0x1234 ,
247- :: mem:: transmute ( u32x4:: new ( 0x1234 , 0x5678 , 0x9abc , 0xdef0 ) ) ,
247+ mem:: transmute ( u32x4:: new ( 0x1234 , 0x5678 , 0x9abc , 0xdef0 ) ) ,
248248 ) ) ;
249249 assert_eq ! (
250250 r,
@@ -254,10 +254,10 @@ mod tests {
254254
255255 #[ simd_test( enable = "crypto" ) ]
256256 unsafe fn test_vsha1pq_u32 ( ) {
257- let r: u32x4 = :: mem:: transmute ( vsha1pq_u32 (
258- :: mem:: transmute ( u32x4:: new ( 0x1234 , 0x5678 , 0x9abc , 0xdef0 ) ) ,
257+ let r: u32x4 = mem:: transmute ( vsha1pq_u32 (
258+ mem:: transmute ( u32x4:: new ( 0x1234 , 0x5678 , 0x9abc , 0xdef0 ) ) ,
259259 0x1234 ,
260- :: mem:: transmute ( u32x4:: new ( 0x1234 , 0x5678 , 0x9abc , 0xdef0 ) ) ,
260+ mem:: transmute ( u32x4:: new ( 0x1234 , 0x5678 , 0x9abc , 0xdef0 ) ) ,
261261 ) ) ;
262262 assert_eq ! (
263263 r,
@@ -267,10 +267,10 @@ mod tests {
267267
268268 #[ simd_test( enable = "crypto" ) ]
269269 unsafe fn test_vsha1mq_u32 ( ) {
270- let r: u32x4 = :: mem:: transmute ( vsha1mq_u32 (
271- :: mem:: transmute ( u32x4:: new ( 0x1234 , 0x5678 , 0x9abc , 0xdef0 ) ) ,
270+ let r: u32x4 = mem:: transmute ( vsha1mq_u32 (
271+ mem:: transmute ( u32x4:: new ( 0x1234 , 0x5678 , 0x9abc , 0xdef0 ) ) ,
272272 0x1234 ,
273- :: mem:: transmute ( u32x4:: new ( 0x1234 , 0x5678 , 0x9abc , 0xdef0 ) ) ,
273+ mem:: transmute ( u32x4:: new ( 0x1234 , 0x5678 , 0x9abc , 0xdef0 ) ) ,
274274 ) ) ;
275275 assert_eq ! (
276276 r,
@@ -280,10 +280,10 @@ mod tests {
280280
281281 #[ simd_test( enable = "crypto" ) ]
282282 unsafe fn test_vsha256hq_u32 ( ) {
283- let r: u32x4 = :: mem:: transmute ( vsha256hq_u32 (
284- :: mem:: transmute ( u32x4:: new ( 0x1234 , 0x5678 , 0x9abc , 0xdef0 ) ) ,
285- :: mem:: transmute ( u32x4:: new ( 0x1234 , 0x5678 , 0x9abc , 0xdef0 ) ) ,
286- :: mem:: transmute ( u32x4:: new ( 0x1234 , 0x5678 , 0x9abc , 0xdef0 ) ) ,
283+ let r: u32x4 = mem:: transmute ( vsha256hq_u32 (
284+ mem:: transmute ( u32x4:: new ( 0x1234 , 0x5678 , 0x9abc , 0xdef0 ) ) ,
285+ mem:: transmute ( u32x4:: new ( 0x1234 , 0x5678 , 0x9abc , 0xdef0 ) ) ,
286+ mem:: transmute ( u32x4:: new ( 0x1234 , 0x5678 , 0x9abc , 0xdef0 ) ) ,
287287 ) ) ;
288288 assert_eq ! (
289289 r,
@@ -293,10 +293,10 @@ mod tests {
293293
294294 #[ simd_test( enable = "crypto" ) ]
295295 unsafe fn test_vsha256h2q_u32 ( ) {
296- let r: u32x4 = :: mem:: transmute ( vsha256h2q_u32 (
297- :: mem:: transmute ( u32x4:: new ( 0x1234 , 0x5678 , 0x9abc , 0xdef0 ) ) ,
298- :: mem:: transmute ( u32x4:: new ( 0x1234 , 0x5678 , 0x9abc , 0xdef0 ) ) ,
299- :: mem:: transmute ( u32x4:: new ( 0x1234 , 0x5678 , 0x9abc , 0xdef0 ) ) ,
296+ let r: u32x4 = mem:: transmute ( vsha256h2q_u32 (
297+ mem:: transmute ( u32x4:: new ( 0x1234 , 0x5678 , 0x9abc , 0xdef0 ) ) ,
298+ mem:: transmute ( u32x4:: new ( 0x1234 , 0x5678 , 0x9abc , 0xdef0 ) ) ,
299+ mem:: transmute ( u32x4:: new ( 0x1234 , 0x5678 , 0x9abc , 0xdef0 ) ) ,
300300 ) ) ;
301301 assert_eq ! (
302302 r,
@@ -306,9 +306,9 @@ mod tests {
306306
307307 #[ simd_test( enable = "crypto" ) ]
308308 unsafe fn test_vsha256su0q_u32 ( ) {
309- let r: u32x4 = :: mem:: transmute ( vsha256su0q_u32 (
310- :: mem:: transmute ( u32x4:: new ( 0x1234 , 0x5678 , 0x9abc , 0xdef0 ) ) ,
311- :: mem:: transmute ( u32x4:: new ( 0x1234 , 0x5678 , 0x9abc , 0xdef0 ) ) ,
309+ let r: u32x4 = mem:: transmute ( vsha256su0q_u32 (
310+ mem:: transmute ( u32x4:: new ( 0x1234 , 0x5678 , 0x9abc , 0xdef0 ) ) ,
311+ mem:: transmute ( u32x4:: new ( 0x1234 , 0x5678 , 0x9abc , 0xdef0 ) ) ,
312312 ) ) ;
313313 assert_eq ! (
314314 r,
@@ -318,10 +318,10 @@ mod tests {
318318
319319 #[ simd_test( enable = "crypto" ) ]
320320 unsafe fn test_vsha256su1q_u32 ( ) {
321- let r: u32x4 = :: mem:: transmute ( vsha256su1q_u32 (
322- :: mem:: transmute ( u32x4:: new ( 0x1234 , 0x5678 , 0x9abc , 0xdef0 ) ) ,
323- :: mem:: transmute ( u32x4:: new ( 0x1234 , 0x5678 , 0x9abc , 0xdef0 ) ) ,
324- :: mem:: transmute ( u32x4:: new ( 0x1234 , 0x5678 , 0x9abc , 0xdef0 ) ) ,
321+ let r: u32x4 = mem:: transmute ( vsha256su1q_u32 (
322+ mem:: transmute ( u32x4:: new ( 0x1234 , 0x5678 , 0x9abc , 0xdef0 ) ) ,
323+ mem:: transmute ( u32x4:: new ( 0x1234 , 0x5678 , 0x9abc , 0xdef0 ) ) ,
324+ mem:: transmute ( u32x4:: new ( 0x1234 , 0x5678 , 0x9abc , 0xdef0 ) ) ,
325325 ) ) ;
326326 assert_eq ! (
327327 r,
0 commit comments