6
6
#[ cfg( target_arch = "x86" ) ]
7
7
#[ inline( always) ]
8
8
#[ stable( feature = "simd_x86" , since = "1.27.0" ) ]
9
+ #[ deprecated( since = "1.28.0" , "use inline asm instead" ) ]
9
10
pub unsafe fn __readeflags ( ) -> u32 {
10
11
let eflags: u32 ;
11
12
asm ! ( "pushfd; popl $0" : "=r" ( eflags) : : : "volatile" ) ;
@@ -18,6 +19,7 @@ pub unsafe fn __readeflags() -> u32 {
18
19
#[ cfg( target_arch = "x86_64" ) ]
19
20
#[ inline( always) ]
20
21
#[ stable( feature = "simd_x86" , since = "1.27.0" ) ]
22
+ #[ deprecated( since = "1.28.0" , "use inline asm instead" ) ]
21
23
pub unsafe fn __readeflags ( ) -> u64 {
22
24
let eflags: u64 ;
23
25
asm ! ( "pushfq; popq $0" : "=r" ( eflags) : : : "volatile" ) ;
@@ -30,6 +32,7 @@ pub unsafe fn __readeflags() -> u64 {
30
32
#[ cfg( target_arch = "x86" ) ]
31
33
#[ inline( always) ]
32
34
#[ stable( feature = "simd_x86" , since = "1.27.0" ) ]
35
+ #[ deprecated( since = "1.28.0" , "use inline asm instead" ) ]
33
36
pub unsafe fn __writeeflags ( eflags : u32 ) {
34
37
asm ! ( "pushl $0; popfd" : : "r" ( eflags) : "cc" , "flags" : "volatile" ) ;
35
38
}
@@ -40,6 +43,7 @@ pub unsafe fn __writeeflags(eflags: u32) {
40
43
#[ cfg( target_arch = "x86_64" ) ]
41
44
#[ inline( always) ]
42
45
#[ stable( feature = "simd_x86" , since = "1.27.0" ) ]
46
+ #[ deprecated( since = "1.28.0" , "use inline asm instead" ) ]
43
47
pub unsafe fn __writeeflags ( eflags : u64 ) {
44
48
asm ! ( "pushq $0; popfq" : : "r" ( eflags) : "cc" , "flags" : "volatile" ) ;
45
49
}
0 commit comments