Skip to content

Commit 327ccb1

Browse files
committed
deprecate read/write eflags
1 parent 3ddacbd commit 327ccb1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

coresimd/x86/eflags.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
#[cfg(target_arch = "x86")]
77
#[inline(always)]
88
#[stable(feature = "simd_x86", since = "1.27.0")]
9+
#[deprecated(since = "1.28.0", "use inline asm instead")]
910
pub unsafe fn __readeflags() -> u32 {
1011
let eflags: u32;
1112
asm!("pushfd; popl $0" : "=r"(eflags) : : : "volatile");
@@ -18,6 +19,7 @@ pub unsafe fn __readeflags() -> u32 {
1819
#[cfg(target_arch = "x86_64")]
1920
#[inline(always)]
2021
#[stable(feature = "simd_x86", since = "1.27.0")]
22+
#[deprecated(since = "1.28.0", "use inline asm instead")]
2123
pub unsafe fn __readeflags() -> u64 {
2224
let eflags: u64;
2325
asm!("pushfq; popq $0" : "=r"(eflags) : : : "volatile");
@@ -30,6 +32,7 @@ pub unsafe fn __readeflags() -> u64 {
3032
#[cfg(target_arch = "x86")]
3133
#[inline(always)]
3234
#[stable(feature = "simd_x86", since = "1.27.0")]
35+
#[deprecated(since = "1.28.0", "use inline asm instead")]
3336
pub unsafe fn __writeeflags(eflags: u32) {
3437
asm!("pushl $0; popfd" : : "r"(eflags) : "cc", "flags" : "volatile");
3538
}
@@ -40,6 +43,7 @@ pub unsafe fn __writeeflags(eflags: u32) {
4043
#[cfg(target_arch = "x86_64")]
4144
#[inline(always)]
4245
#[stable(feature = "simd_x86", since = "1.27.0")]
46+
#[deprecated(since = "1.28.0", "use inline asm instead")]
4347
pub unsafe fn __writeeflags(eflags: u64) {
4448
asm!("pushq $0; popfq" : : "r"(eflags) : "cc", "flags" : "volatile");
4549
}

0 commit comments

Comments
 (0)