Add Altivec vec_cmple and vec_cmplt

This commit is contained in:
Luca Barbato 2019-05-24 18:09:45 +00:00 committed by Luca Barbato
parent 8cec101751
commit 0b3ff21135

View file

@ -1355,6 +1355,23 @@ mod sealed {
vector_mladd! { vector_signed_short, vector_signed_short, vector_signed_short }
}
/// Vector cmplt.
#[inline]
#[target_feature(enable = "altivec")]
pub unsafe fn vec_cmplt<T, U>(a: U, b: T) -> <T as sealed::VectorCmpGt<U>>::Result
where
T: sealed::VectorCmpGt<U>,
{
vec_cmpgt(b, a)
}
/// Vector cmple.
#[inline]
#[target_feature(enable = "altivec")]
pub unsafe fn vec_cmple(a: vector_float, b: vector_float) -> vector_bool_int {
vec_cmpge(b, a)
}
/// Vector cmpgt.
#[inline]
#[target_feature(enable = "altivec")]