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" , note = "use inline asm instead" ) ]
9
+ #[ rustc_deprecated( since = "1.28.0" ) ]
10
+ #[ doc( hidden) ]
10
11
pub unsafe fn __readeflags ( ) -> u32 {
11
12
let eflags: u32 ;
12
13
asm ! ( "pushfd; popl $0" : "=r" ( eflags) : : : "volatile" ) ;
@@ -19,7 +20,8 @@ pub unsafe fn __readeflags() -> u32 {
19
20
#[ cfg( target_arch = "x86_64" ) ]
20
21
#[ inline( always) ]
21
22
#[ stable( feature = "simd_x86" , since = "1.27.0" ) ]
22
- #[ deprecated( since = "1.28.0" , note = "use inline asm instead" ) ]
23
+ #[ rustc_deprecated( since = "1.28.0" ) ]
24
+ #[ doc( hidden) ]
23
25
pub unsafe fn __readeflags ( ) -> u64 {
24
26
let eflags: u64 ;
25
27
asm ! ( "pushfq; popq $0" : "=r" ( eflags) : : : "volatile" ) ;
@@ -32,7 +34,8 @@ pub unsafe fn __readeflags() -> u64 {
32
34
#[ cfg( target_arch = "x86" ) ]
33
35
#[ inline( always) ]
34
36
#[ stable( feature = "simd_x86" , since = "1.27.0" ) ]
35
- #[ deprecated( since = "1.28.0" , note = "use inline asm instead" ) ]
37
+ #[ rustc_deprecated( since = "1.28.0" ) ]
38
+ #[ doc( hidden) ]
36
39
pub unsafe fn __writeeflags ( eflags : u32 ) {
37
40
asm ! ( "pushl $0; popfd" : : "r" ( eflags) : "cc" , "flags" : "volatile" ) ;
38
41
}
@@ -43,7 +46,8 @@ pub unsafe fn __writeeflags(eflags: u32) {
43
46
#[ cfg( target_arch = "x86_64" ) ]
44
47
#[ inline( always) ]
45
48
#[ stable( feature = "simd_x86" , since = "1.27.0" ) ]
46
- #[ deprecated( since = "1.28.0" , note = "use inline asm instead" ) ]
49
+ #[ rustc_deprecated( since = "1.28.0" ) ]
50
+ #[ doc( hidden) ]
47
51
pub unsafe fn __writeeflags ( eflags : u64 ) {
48
52
asm ! ( "pushq $0; popfq" : : "r" ( eflags) : "cc" , "flags" : "volatile" ) ;
49
53
}
0 commit comments