File tree 10 files changed +19
-69
lines changed
10 files changed +19
-69
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,6 @@ const ALLOWED_CFGS: &'static [&'static str] = &[
19
19
"libc_const_extern_fn_unstable" ,
20
20
"libc_core_cvoid" ,
21
21
"libc_deny_warnings" ,
22
- "libc_int128" ,
23
22
"libc_long_array" ,
24
23
"libc_non_exhaustive" ,
25
24
"libc_packedN" ,
@@ -87,11 +86,6 @@ fn main() {
87
86
set_cfg ( "libc_deny_warnings" ) ;
88
87
}
89
88
90
- // Rust >= 1.26 supports i128 and u128:
91
- if rustc_minor_ver >= 26 || rustc_dep_of_std {
92
- set_cfg ( "libc_int128" ) ;
93
- }
94
-
95
89
// Rust >= 1.30 supports `core::ffi::c_void`, so libc can just re-export it.
96
90
// Otherwise, it defines an incompatible type to retaining
97
91
// backwards-compatibility.
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ pub type uint32_t = u32;
20
20
pub type uint64_t = u64 ;
21
21
22
22
cfg_if ! {
23
- if #[ cfg( all( libc_int128 , target_arch = "aarch64" , not( target_os = "windows" ) ) ) ] {
23
+ if #[ cfg( all( target_arch = "aarch64" , not( target_os = "windows" ) ) ) ] {
24
24
// This introduces partial support for FFI with __int128 and
25
25
// equivalent types on platforms where Rust's definition is validated
26
26
// to match the standard C ABI of that platform.
Original file line number Diff line number Diff line change 37
37
pub __pad: u32 ,
38
38
}
39
39
40
- // This type natively uses a uint128, but for a while we hacked
41
- // it in with repr(align) and `[u64; 2]`. uint128 isn't available
42
- // all the way back to our earliest supported versions so we
43
- // preserver the old shim.
44
- #[ cfg_attr( not( libc_int128) , repr( align( 16 ) ) ) ]
45
40
pub struct __darwin_arm_neon_state64 {
46
- #[ cfg( libc_int128) ]
47
41
pub __v: [ :: __uint128_t; 32 ] ,
48
- #[ cfg( not( libc_int128) ) ]
49
- pub __v: [ [ u64 ; 2 ] ; 32 ] ,
50
42
pub __fpsr: u32 ,
51
43
pub __fpcr: u32 ,
52
44
}
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 75
75
// auto-derive traits like Debug
76
76
__reserved: [ [ u64 ; 32 ] ; 16 ] ,
77
77
}
78
+
79
+ pub struct user_fpsimd_struct {
80
+ pub vregs: [ :: __uint128_t; 32 ] ,
81
+ pub fpsr: u32 ,
82
+ pub fpcr: u32 ,
83
+ }
78
84
}
79
85
80
86
s_no_extra_traits ! {
@@ -447,11 +453,3 @@ pub const PROT_MTE: ::c_int = 0x20;
447
453
448
454
// From NDK's asm/auxvec.h
449
455
pub const AT_SYSINFO_EHDR : :: c_ulong = 33 ;
450
- pub const AT_VECTOR_SIZE_ARCH : :: c_ulong = 2 ;
451
-
452
- cfg_if ! {
453
- if #[ cfg( libc_int128) ] {
454
- mod int128;
455
- pub use self :: int128:: * ;
456
- }
457
- }
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -217,6 +217,12 @@ s! {
217
217
__reserved: [ [ u64 ; 32 ] ; 16 ] ,
218
218
}
219
219
220
+ pub struct user_fpsimd_struct {
221
+ pub vregs: [ :: __uint128_t; 32 ] ,
222
+ pub fpsr: :: c_uint,
223
+ pub fpcr: :: c_uint,
224
+ }
225
+
220
226
#[ repr( align( 8 ) ) ]
221
227
pub struct clone_args {
222
228
pub flags: :: c_ulonglong,
@@ -964,13 +970,3 @@ cfg_if! {
964
970
pub use self :: lp64:: * ;
965
971
}
966
972
}
967
-
968
- cfg_if ! {
969
- if #[ cfg( libc_int128) ] {
970
- mod int128;
971
- pub use self :: int128:: * ;
972
- } else {
973
- mod fallback;
974
- pub use self :: fallback:: * ;
975
- }
976
- }
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -101,6 +101,12 @@ s! {
101
101
pub set_tid_size: :: c_ulonglong,
102
102
pub cgroup: :: c_ulonglong,
103
103
}
104
+
105
+ pub struct user_fpsimd_struct {
106
+ pub vregs: [ :: __uint128_t; 32 ] ,
107
+ pub fpsr: u32 ,
108
+ pub fpcr: u32 ,
109
+ }
104
110
}
105
111
106
112
s_no_extra_traits ! {
@@ -684,10 +690,3 @@ pub const VMIN: usize = 6;
684
690
pub const IEXTEN : :: tcflag_t = 0x00008000 ;
685
691
pub const TOSTOP : :: tcflag_t = 0x00000100 ;
686
692
pub const FLUSHO : :: tcflag_t = 0x00001000 ;
687
-
688
- cfg_if ! {
689
- if #[ cfg( libc_int128) ] {
690
- mod int128;
691
- pub use self :: int128:: * ;
692
- }
693
- }
You can’t perform that action at this time.
0 commit comments