66#[ cfg( target_arch = "x86" ) ]
77#[ inline( always) ]
88#[ 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) ]
1011pub unsafe fn __readeflags ( ) -> u32 {
1112 let eflags: u32 ;
1213 asm ! ( "pushfd; popl $0" : "=r" ( eflags) : : : "volatile" ) ;
@@ -19,7 +20,8 @@ pub unsafe fn __readeflags() -> u32 {
1920#[ cfg( target_arch = "x86_64" ) ]
2021#[ inline( always) ]
2122#[ 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) ]
2325pub unsafe fn __readeflags ( ) -> u64 {
2426 let eflags: u64 ;
2527 asm ! ( "pushfq; popq $0" : "=r" ( eflags) : : : "volatile" ) ;
@@ -32,7 +34,8 @@ pub unsafe fn __readeflags() -> u64 {
3234#[ cfg( target_arch = "x86" ) ]
3335#[ inline( always) ]
3436#[ 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) ]
3639pub unsafe fn __writeeflags ( eflags : u32 ) {
3740 asm ! ( "pushl $0; popfd" : : "r" ( eflags) : "cc" , "flags" : "volatile" ) ;
3841}
@@ -43,7 +46,8 @@ pub unsafe fn __writeeflags(eflags: u32) {
4346#[ cfg( target_arch = "x86_64" ) ]
4447#[ inline( always) ]
4548#[ 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) ]
4751pub unsafe fn __writeeflags ( eflags : u64 ) {
4852 asm ! ( "pushq $0; popfq" : : "r" ( eflags) : "cc" , "flags" : "volatile" ) ;
4953}
0 commit comments