Skip to content

Commit 5bad92a

Browse files
RalfJungAmanieu
authored andcommitted
deprecate _mm_getcsr and _mm_setcsr
1 parent 2832065 commit 5bad92a

File tree

1 file changed

+8
-0
lines changed
  • crates/core_arch/src/x86

1 file changed

+8
-0
lines changed

crates/core_arch/src/x86/sse.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1381,6 +1381,10 @@ pub unsafe fn _mm_sfence() {
13811381
#[target_feature(enable = "sse")]
13821382
#[cfg_attr(test, assert_instr(stmxcsr))]
13831383
#[stable(feature = "simd_x86", since = "1.27.0")]
1384+
#[deprecated(
1385+
since = "1.73.0",
1386+
note = "see `_mm_getcsr` documentation - use inline assembly instead"
1387+
)]
13841388
pub unsafe fn _mm_getcsr() -> u32 {
13851389
let mut result = 0_i32;
13861390
stmxcsr(&mut result as *mut _ as *mut i8);
@@ -1528,6 +1532,10 @@ pub unsafe fn _mm_getcsr() -> u32 {
15281532
#[target_feature(enable = "sse")]
15291533
#[cfg_attr(test, assert_instr(ldmxcsr))]
15301534
#[stable(feature = "simd_x86", since = "1.27.0")]
1535+
#[deprecated(
1536+
since = "1.73.0",
1537+
note = "see `_mm_setcsr` documentation - use inline assembly instead"
1538+
)]
15311539
pub unsafe fn _mm_setcsr(val: u32) {
15321540
ldmxcsr(&val as *const _ as *const i8);
15331541
}

0 commit comments

Comments
 (0)