Skip to content

Commit 22915e2

Browse files
lu-zeroAmanieu
authored andcommitted
Add vec_all_numeric
1 parent 1873543 commit 22915e2

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

crates/core_arch/src/powerpc/altivec.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2381,6 +2381,14 @@ pub unsafe fn vec_all_nlt(a: vector_float, b: vector_float) -> bool {
23812381
vcmpgtfp_p(0, b, a) != 0
23822382
}
23832383

2384+
/// All Elements Numeric
2385+
#[inline]
2386+
#[target_feature(enable = "altivec")]
2387+
#[cfg_attr(test, assert_instr("vcmpgefp."))]
2388+
pub unsafe fn vec_all_numeric(a: vector_float) -> bool {
2389+
vcmpgefp_p(2, a, a) != 0
2390+
}
2391+
23842392
#[cfg(target_endian = "big")]
23852393
mod endian {
23862394
use super::*;

0 commit comments

Comments
 (0)