Skip to content

Deprecate __int128, __uint128, __int128_t, __uint128 #4343

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/primitives.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,12 +129,16 @@ cfg_if! {
// [0]: https://github.com/rust-lang/rust/issues/54341

/// C `__int128` (a GCC extension that's part of many ABIs)
#[deprecated(since = "0.2.172", note = "Use i128 instead.")]
pub type __int128 = i128;
/// C `unsigned __int128` (a GCC extension that's part of many ABIs)
#[deprecated(since = "0.2.172", note = "Use u128 instead.")]
pub type __uint128 = u128;
/// C __int128_t (alternate name for [__int128][])
#[deprecated(since = "0.2.172", note = "Use i128 instead.")]
pub type __int128_t = i128;
/// C __uint128_t (alternate name for [__uint128][])
#[deprecated(since = "0.2.172", note = "Use u128 instead.")]
pub type __uint128_t = u128;

// NOTE: if you add more platforms to here, you may need to cfg
Expand Down Expand Up @@ -181,8 +185,10 @@ cfg_if! {
)
))] {
/// C `__int128_t`
#[deprecated(since = "1.0", note = "Use i128 instead.")]
pub type __int128_t = i128;
/// C `__uint128_t`
#[deprecated(since = "1.0", note = "Use ux128 instead.")]
pub type __uint128_t = u128;
}
}
2 changes: 1 addition & 1 deletion src/unix/bsd/apple/b64/aarch64/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ s! {
}

pub struct __darwin_arm_neon_state64 {
pub __v: [crate::__uint128_t; 32],
pub __v: [u128; 32],
pub __fpsr: u32,
pub __fpcr: u32,
}
Expand Down
2 changes: 1 addition & 1 deletion src/unix/linux_like/android/b64/aarch64/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ s! {
}

pub struct user_fpsimd_struct {
pub vregs: [crate::__uint128_t; 32],
pub vregs: [u128; 32],
pub fpsr: u32,
pub fpcr: u32,
}
Expand Down
2 changes: 1 addition & 1 deletion src/unix/linux_like/linux/gnu/b64/aarch64/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ s! {
}

pub struct user_fpsimd_struct {
pub vregs: [crate::__uint128_t; 32],
pub vregs: [u128; 32],
pub fpsr: c_uint,
pub fpcr: c_uint,
}
Expand Down
2 changes: 1 addition & 1 deletion src/unix/linux_like/linux/musl/b64/aarch64/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ s! {
}

pub struct user_fpsimd_struct {
pub vregs: [crate::__uint128_t; 32],
pub vregs: [u128; 32],
pub fpsr: u32,
pub fpcr: u32,
}
Expand Down
Loading