Skip to content

Commit 1873543

Browse files
lu-zeroAmanieu
authored andcommitted
Add vec_all_nle and vec_all_nlt
1 parent 666e1e5 commit 1873543

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

crates/core_arch/src/powerpc/altivec.rs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2365,6 +2365,22 @@ pub unsafe fn vec_all_ngt(a: vector_float, b: vector_float) -> bool {
23652365
vcmpgtfp_p(0, a, b) != 0
23662366
}
23672367

2368+
/// All Elements Not Less Than or Equal
2369+
#[inline]
2370+
#[target_feature(enable = "altivec")]
2371+
#[cfg_attr(test, assert_instr("vcmpgefp."))]
2372+
pub unsafe fn vec_all_nle(a: vector_float, b: vector_float) -> bool {
2373+
vcmpgefp_p(0, b, a) != 0
2374+
}
2375+
2376+
/// All Elements Not Less Than
2377+
#[inline]
2378+
#[target_feature(enable = "altivec")]
2379+
#[cfg_attr(test, assert_instr("vcmpgtfp."))]
2380+
pub unsafe fn vec_all_nlt(a: vector_float, b: vector_float) -> bool {
2381+
vcmpgtfp_p(0, b, a) != 0
2382+
}
2383+
23682384
#[cfg(target_endian = "big")]
23692385
mod endian {
23702386
use super::*;

0 commit comments

Comments
 (0)