Skip to content

Commit 666e1e5

Browse files
lu-zeroAmanieu
authored andcommitted
Add vec_all_nge and vec_all_ngt
1 parent f8e7af9 commit 666e1e5

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
@@ -2349,6 +2349,22 @@ where
23492349
a.vec_any_ne(b)
23502350
}
23512351

2352+
/// All Elements Not Greater Than or Equal
2353+
#[inline]
2354+
#[target_feature(enable = "altivec")]
2355+
#[cfg_attr(test, assert_instr("vcmpgefp."))]
2356+
pub unsafe fn vec_all_nge(a: vector_float, b: vector_float) -> bool {
2357+
vcmpgefp_p(0, a, b) != 0
2358+
}
2359+
2360+
/// All Elements Not Greater Than
2361+
#[inline]
2362+
#[target_feature(enable = "altivec")]
2363+
#[cfg_attr(test, assert_instr("vcmpgtfp."))]
2364+
pub unsafe fn vec_all_ngt(a: vector_float, b: vector_float) -> bool {
2365+
vcmpgtfp_p(0, a, b) != 0
2366+
}
2367+
23522368
#[cfg(target_endian = "big")]
23532369
mod endian {
23542370
use super::*;

0 commit comments

Comments
 (0)