You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: secp256k1-sys/src/types.rs
+23-2Lines changed: 23 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
#![allow(non_camel_case_types)]
2
-
use core::fmt;
2
+
use core::{fmt, mem};
3
3
4
4
pubtypec_int = i32;
5
5
pubtypec_uchar = u8;
@@ -26,18 +26,39 @@ impl fmt::Debug for c_void {
26
26
}
27
27
}
28
28
29
+
/// A type that is as aligned as the biggest alignment for fundamental types in C
30
+
/// since C11 that means as aligned as `max_align_t` is.
31
+
/// the exact size/alignment is unspecified.
32
+
// 16 matches is as big as the biggest alignment in any arch that rust currently supports https://github.com/rust-lang/rust/blob/2c31b45ae878b821975c4ebd94cc1e49f6073fd0/library/std/src/sys_common/alloc.rs
0 commit comments