Skip to content

Commit 3a65ced

Browse files
committed
Rename simd_fmin/simd_fmax
This change follows the change made in rust-lang/rust#154043 by renaming simd_fmin to simd_minimum_number_nsz and simd_fmax to simd_maximum_number_nsz This will fix #584 that caused breaking builds on nightly-2026-03-31 and later
1 parent 3d0b936 commit 3a65ced

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

simd/src/arm/mod.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -79,12 +79,12 @@ impl F32x2 {
7979

8080
#[inline]
8181
pub fn min(self, other: F32x2) -> F32x2 {
82-
unsafe { F32x2(simd_fmin(self.0, other.0)) }
82+
unsafe { F32x2(simd_minimum_number_nsz(self.0, other.0)) }
8383
}
8484

8585
#[inline]
8686
pub fn max(self, other: F32x2) -> F32x2 {
87-
unsafe { F32x2(simd_fmax(self.0, other.0)) }
87+
unsafe { F32x2(simd_maximum_number_nsz(self.0, other.0)) }
8888
}
8989

9090
#[inline]
@@ -268,12 +268,12 @@ impl F32x4 {
268268

269269
#[inline]
270270
pub fn min(self, other: F32x4) -> F32x4 {
271-
unsafe { F32x4(simd_fmin(self.0, other.0)) }
271+
unsafe { F32x4(simd_minimum_number_nsz(self.0, other.0)) }
272272
}
273273

274274
#[inline]
275275
pub fn max(self, other: F32x4) -> F32x4 {
276-
unsafe { F32x4(simd_fmax(self.0, other.0)) }
276+
unsafe { F32x4(simd_maximum_number_nsz(self.0, other.0)) }
277277
}
278278

279279
#[inline]
@@ -604,12 +604,12 @@ impl I32x4 {
604604

605605
#[inline]
606606
pub fn max(self, other: I32x4) -> I32x4 {
607-
unsafe { I32x4(simd_cast(simd_fmax(self.to_f32x4().0, other.to_f32x4().0))) }
607+
unsafe { I32x4(simd_cast(simd_maximum_number_nsz(self.to_f32x4().0, other.to_f32x4().0))) }
608608
}
609609

610610
#[inline]
611611
pub fn min(self, other: I32x4) -> I32x4 {
612-
unsafe { I32x4(simd_cast(simd_fmin(self.to_f32x4().0, other.to_f32x4().0))) }
612+
unsafe { I32x4(simd_cast(simd_minimum_number_nsz(self.to_f32x4().0, other.to_f32x4().0))) }
613613
}
614614

615615
// Packed comparisons

0 commit comments

Comments
 (0)