Fix arm I32x4 min/max operations that require on floating point values.

This commit is contained in:
Josh Matthews 2020-04-07 15:35:03 -04:00 committed by GitHub
parent e87b330123
commit 43adc9c24a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -559,12 +559,12 @@ impl I32x4 {
#[inline]
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]
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