Add Altivec vec_cmple and vec_cmplt
This commit is contained in:
parent
8cec101751
commit
0b3ff21135
1 changed files with 17 additions and 0 deletions
|
|
@ -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")]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue