Fix arm I32x4 min/max operations that require on floating point values.
This commit is contained in:
parent
e87b330123
commit
43adc9c24a
|
@ -559,12 +559,12 @@ impl I32x4 {
|
||||||
|
|
||||||
#[inline]
|
#[inline]
|
||||||
pub fn max(self, other: I32x4) -> I32x4 {
|
pub fn max(self, other: I32x4) -> I32x4 {
|
||||||
unsafe { I32x4(simd_fmax(self.0, other.0)) }
|
unsafe { I32x4(simd_cast(simd_fmax(self.to_f32x4().0, other.to_f32x4().0))) }
|
||||||
}
|
}
|
||||||
|
|
||||||
#[inline]
|
#[inline]
|
||||||
pub fn min(self, other: I32x4) -> I32x4 {
|
pub fn min(self, other: I32x4) -> I32x4 {
|
||||||
unsafe { I32x4(simd_fmin(self.0, other.0)) }
|
unsafe { I32x4(simd_cast(simd_fmin(self.to_f32x4().0, other.to_f32x4().0))) }
|
||||||
}
|
}
|
||||||
|
|
||||||
// Packed comparisons
|
// Packed comparisons
|
||||||
|
|
Loading…
Reference in New Issue