Skip to content

Commit

Permalink
Apply formatting to macro bodies
Browse files Browse the repository at this point in the history
Run `ci/style.sh` with the changes introduced in [1].

[1]: rust-lang#4107
  • Loading branch information
tgross35 committed Nov 19, 2024
1 parent 6ab46bb commit 49cb0ff
Show file tree
Hide file tree
Showing 105 changed files with 2,960 additions and 2,763 deletions.
21 changes: 19 additions & 2 deletions src/fixed_width_ints.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,16 @@ pub type uint32_t = u32;
pub type uint64_t = u64;

cfg_if! {
if #[cfg(all(target_arch = "aarch64", not(any(target_os = "windows", target_os = "macos", target_os = "ios", target_os = "tvos", target_os = "watchos"))))] {
if #[cfg(all(
target_arch = "aarch64",
not(any(
target_os = "windows",
target_os = "macos",
target_os = "ios",
target_os = "tvos",
target_os = "watchos"
))
))] {
// This introduces partial support for FFI with __int128 and
// equivalent types on platforms where Rust's definition is validated
// to match the standard C ABI of that platform.
Expand Down Expand Up @@ -93,7 +102,15 @@ cfg_if! {

// static_assert_eq!(core::mem::size_of::<__uint128_t>(), _SIZE_128);
// static_assert_eq!(core::mem::align_of::<__uint128_t>(), _ALIGN_128);
} else if #[cfg(all(target_arch = "aarch64", any(target_os = "macos", target_os = "ios", target_os = "tvos", target_os = "watchos")))] {
} else if #[cfg(all(
target_arch = "aarch64",
any(
target_os = "macos",
target_os = "ios",
target_os = "tvos",
target_os = "watchos"
)
))] {
/// C `__int128_t`
pub type __int128_t = i128;
/// C `__uint128_t`
Expand Down
Loading

0 comments on commit 49cb0ff

Please sign in to comment.