Skip to content

Commit 96653de

Browse files
bjorn3gnzlbg
authored andcommitted
Use simd_* in x86/sse41.rs where possible
1 parent 59904b7 commit 96653de

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

crates/core_arch/src/x86/sse41.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -601,7 +601,7 @@ pub unsafe fn _mm_dp_ps(a: __m128, b: __m128, imm8: i32) -> __m128 {
601601
#[cfg_attr(test, assert_instr(roundpd))]
602602
#[stable(feature = "simd_x86", since = "1.27.0")]
603603
pub unsafe fn _mm_floor_pd(a: __m128d) -> __m128d {
604-
roundpd(a, _MM_FROUND_FLOOR)
604+
simd_floor(a)
605605
}
606606

607607
/// Round the packed single-precision (32-bit) floating-point elements in `a`
@@ -614,7 +614,7 @@ pub unsafe fn _mm_floor_pd(a: __m128d) -> __m128d {
614614
#[cfg_attr(test, assert_instr(roundps))]
615615
#[stable(feature = "simd_x86", since = "1.27.0")]
616616
pub unsafe fn _mm_floor_ps(a: __m128) -> __m128 {
617-
roundps(a, _MM_FROUND_FLOOR)
617+
simd_floor(a)
618618
}
619619

620620
/// Round the lower double-precision (64-bit) floating-point element in `b`
@@ -657,7 +657,7 @@ pub unsafe fn _mm_floor_ss(a: __m128, b: __m128) -> __m128 {
657657
#[cfg_attr(test, assert_instr(roundpd))]
658658
#[stable(feature = "simd_x86", since = "1.27.0")]
659659
pub unsafe fn _mm_ceil_pd(a: __m128d) -> __m128d {
660-
roundpd(a, _MM_FROUND_CEIL)
660+
simd_ceil(a)
661661
}
662662

663663
/// Round the packed single-precision (32-bit) floating-point elements in `a`
@@ -670,7 +670,7 @@ pub unsafe fn _mm_ceil_pd(a: __m128d) -> __m128d {
670670
#[cfg_attr(test, assert_instr(roundps))]
671671
#[stable(feature = "simd_x86", since = "1.27.0")]
672672
pub unsafe fn _mm_ceil_ps(a: __m128) -> __m128 {
673-
roundps(a, _MM_FROUND_CEIL)
673+
simd_ceil(a)
674674
}
675675

676676
/// Round the lower double-precision (64-bit) floating-point element in `b`

0 commit comments

Comments
 (0)