@@ -411,20 +411,57 @@ pub unsafe fn _mm_mullo_epi32 (a: i32x4, b:i32x4) -> i32x4 {
411
411
a * b
412
412
}
413
413
414
+ /// Tests whether the specified bits in a 128-bit integer vector are all
415
+ /// zeros.
416
+ ///
417
+ /// Arguments:
418
+ ///
419
+ /// * `a` - A 128-bit integer vector containing the bits to be tested.
420
+ /// * `mask` - A 128-bit integer vector selecting which bits to test in operand `a`.
421
+ ///
422
+ /// Returns:
423
+ ///
424
+ /// * `1` - if the specified bits are all zeros,
425
+ /// * `0` - otherwise.
414
426
#[ inline( always) ]
415
427
#[ target_feature = "+sse4.1" ]
416
428
#[ cfg_attr( test, assert_instr( ptest) ) ]
417
429
pub unsafe fn _mm_testz_si128 ( a : i64x2 , mask : i64x2 ) -> i32 {
418
430
ptestz ( a, mask)
419
431
}
420
432
433
+
434
+ /// Tests whether the specified bits in a 128-bit integer vector are all
435
+ /// ones.
436
+ ///
437
+ /// Arguments:
438
+ ///
439
+ /// * `a` - A 128-bit integer vector containing the bits to be tested.
440
+ /// * `mask` - A 128-bit integer vector selecting which bits to test in operand `a`.
441
+ ///
442
+ /// Returns:
443
+ ///
444
+ /// * `1` - if the specified bits are all ones,
445
+ /// * `0` - otherwise.
421
446
#[ inline( always) ]
422
447
#[ target_feature = "+sse4.1" ]
423
448
#[ cfg_attr( test, assert_instr( ptest) ) ]
424
449
pub unsafe fn _mm_testc_si128 ( a : i64x2 , mask : i64x2 ) -> i32 {
425
450
ptestc ( a, mask)
426
451
}
427
452
453
+ /// Tests whether the specified bits in a 128-bit integer vector are
454
+ /// neither all zeros nor all ones.
455
+ ///
456
+ /// Arguments:
457
+ ///
458
+ /// * `a` - A 128-bit integer vector containing the bits to be tested.
459
+ /// * `mask` - A 128-bit integer vector selecting which bits to test in operand `a`.
460
+ ///
461
+ /// Returns:
462
+ ///
463
+ /// * `1` - if the specified bits are neither all zeros nor all ones,
464
+ /// * `0` - otherwise.
428
465
#[ inline( always) ]
429
466
#[ target_feature = "+sse4.1" ]
430
467
#[ cfg_attr( test, assert_instr( ptest) ) ]
0 commit comments