Skip to content

Commit 872b743

Browse files
committed
Deprecate __uint128_t, __uint128, __int128_t, and __int128 in version 0.2.172
1 parent 4159080 commit 872b743

File tree

5 files changed

+10
-4
lines changed

5 files changed

+10
-4
lines changed

src/primitives.rs

+6
Original file line numberDiff line numberDiff line change
@@ -129,12 +129,16 @@ cfg_if! {
129129
// [0]: https://github.com/rust-lang/rust/issues/54341
130130

131131
/// C `__int128` (a GCC extension that's part of many ABIs)
132+
#[deprecated(since = "0.2.172", note = "Use i128 instead.")]
132133
pub type __int128 = i128;
133134
/// C `unsigned __int128` (a GCC extension that's part of many ABIs)
135+
#[deprecated(since = "0.2.172", note = "Use u128 instead.")]
134136
pub type __uint128 = u128;
135137
/// C __int128_t (alternate name for [__int128][])
138+
#[deprecated(since = "0.2.172", note = "Use i128 instead.")]
136139
pub type __int128_t = i128;
137140
/// C __uint128_t (alternate name for [__uint128][])
141+
#[deprecated(since = "0.2.172", note = "Use u128 instead.")]
138142
pub type __uint128_t = u128;
139143

140144
// NOTE: if you add more platforms to here, you may need to cfg
@@ -181,8 +185,10 @@ cfg_if! {
181185
)
182186
))] {
183187
/// C `__int128_t`
188+
#[deprecated(since = "1.0", note = "Use i128 instead.")]
184189
pub type __int128_t = i128;
185190
/// C `__uint128_t`
191+
#[deprecated(since = "1.0", note = "Use ux128 instead.")]
186192
pub type __uint128_t = u128;
187193
}
188194
}

src/unix/bsd/apple/b64/aarch64/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ s! {
4040
}
4141

4242
pub struct __darwin_arm_neon_state64 {
43-
pub __v: [crate::__uint128_t; 32],
43+
pub __v: [u128; 32],
4444
pub __fpsr: u32,
4545
pub __fpcr: u32,
4646
}

src/unix/linux_like/android/b64/aarch64/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ s! {
7878
}
7979

8080
pub struct user_fpsimd_struct {
81-
pub vregs: [crate::__uint128_t; 32],
81+
pub vregs: [u128; 32],
8282
pub fpsr: u32,
8383
pub fpcr: u32,
8484
}

src/unix/linux_like/linux/gnu/b64/aarch64/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ s! {
218218
}
219219

220220
pub struct user_fpsimd_struct {
221-
pub vregs: [crate::__uint128_t; 32],
221+
pub vregs: [u128; 32],
222222
pub fpsr: c_uint,
223223
pub fpcr: c_uint,
224224
}

src/unix/linux_like/linux/musl/b64/aarch64/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ s! {
105105
}
106106

107107
pub struct user_fpsimd_struct {
108-
pub vregs: [crate::__uint128_t; 32],
108+
pub vregs: [u128; 32],
109109
pub fpsr: u32,
110110
pub fpcr: u32,
111111
}

0 commit comments

Comments
 (0)