Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
/* automatically generated by rust-bindgen */
#[repr(C)]
#[derive(Copy, Clone, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)]
pub struct __BindgenBitfieldUnit<Storage, Align>
where
Storage: AsRef<[u8]> + AsMut<[u8]>,
{
storage: Storage,
align: [Align; 0],
}
impl<Storage, Align> __BindgenBitfieldUnit<Storage, Align>
where
Storage: AsRef<[u8]> + AsMut<[u8]>,
{
#[inline]
pub fn new(storage: Storage) -> Self {
Self { storage, align: [] }
}
#[inline]
pub fn get_bit(&self, index: usize) -> bool {
debug_assert!(index / 8 < self.storage.as_ref().len());
let byte_index = index / 8;
let byte = self.storage.as_ref()[byte_index];
let bit_index = index % 8;
let mask = 1 << bit_index;
byte & mask == mask
}
#[inline]
pub fn set_bit(&mut self, index: usize, val: bool) {
debug_assert!(index / 8 < self.storage.as_ref().len());
let byte_index = index / 8;
let byte = &mut self.storage.as_mut()[byte_index];
let bit_index = index % 8;
let mask = 1 << bit_index;
if val {
*byte |= mask;
} else {
*byte &= !mask;
}
}
#[inline]
pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 {
debug_assert!(bit_width <= 64);
debug_assert!(bit_offset / 8 < self.storage.as_ref().len());
debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len());
let mut val = 0;
for i in 0..(bit_width as usize) {
if self.get_bit(i + bit_offset) {
val |= 1 << i;
}
}
val
}
#[inline]
pub fn set(&mut self, bit_offset: usize, bit_width: u8, val: u64) {
debug_assert!(bit_width <= 64);
debug_assert!(bit_offset / 8 < self.storage.as_ref().len());
debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len());
for i in 0..(bit_width as usize) {
let mask = 1 << i;
let val_bit_is_set = val & mask == mask;
self.set_bit(i + bit_offset, val_bit_is_set);
}
}
}
pub const __DARWIN_ONLY_64_BIT_INO_T: ::std::os::raw::c_uint = 0;
pub const __DARWIN_ONLY_VERS_1050: ::std::os::raw::c_uint = 0;
pub const __DARWIN_ONLY_UNIX_CONFORMANCE: ::std::os::raw::c_uint = 1;
pub const __DARWIN_UNIX03: ::std::os::raw::c_uint = 1;
pub const __DARWIN_64_BIT_INO_T: ::std::os::raw::c_uint = 0;
pub const __DARWIN_VERS_1050: ::std::os::raw::c_uint = 0;
pub const __DARWIN_NON_CANCELABLE: ::std::os::raw::c_uint = 0;
pub const __DARWIN_SUF_EXTSN: &'static [u8; 14usize] = b"$DARWIN_EXTSN\0";
pub const __DARWIN_C_ANSI: ::std::os::raw::c_uint = 4096;
pub const __DARWIN_C_FULL: ::std::os::raw::c_uint = 900000;
pub const __DARWIN_C_LEVEL: ::std::os::raw::c_uint = 900000;
pub const _DARWIN_FEATURE_ONLY_UNIX_CONFORMANCE: ::std::os::raw::c_uint = 1;
pub const _DARWIN_FEATURE_UNIX_CONFORMANCE: ::std::os::raw::c_uint = 3;
pub const __MAC_10_0: ::std::os::raw::c_uint = 1000;
pub const __MAC_10_1: ::std::os::raw::c_uint = 1010;
pub const __MAC_10_2: ::std::os::raw::c_uint = 1020;
pub const __MAC_10_3: ::std::os::raw::c_uint = 1030;
pub const __MAC_10_4: ::std::os::raw::c_uint = 1040;
pub const __MAC_10_5: ::std::os::raw::c_uint = 1050;
pub const __MAC_10_6: ::std::os::raw::c_uint = 1060;
pub const __MAC_10_7: ::std::os::raw::c_uint = 1070;
pub const __MAC_10_8: ::std::os::raw::c_uint = 1080;
pub const __MAC_10_9: ::std::os::raw::c_uint = 1090;
pub const __MAC_10_10: ::std::os::raw::c_uint = 101000;
pub const __MAC_10_10_2: ::std::os::raw::c_uint = 101002;
pub const __MAC_10_10_3: ::std::os::raw::c_uint = 101003;
pub const __MAC_10_11: ::std::os::raw::c_uint = 101100;
pub const __MAC_10_11_2: ::std::os::raw::c_uint = 101102;
pub const __MAC_10_11_3: ::std::os::raw::c_uint = 101103;
pub const __MAC_10_11_4: ::std::os::raw::c_uint = 101104;
pub const __IPHONE_2_0: ::std::os::raw::c_uint = 20000;
pub const __IPHONE_2_1: ::std::os::raw::c_uint = 20100;
pub const __IPHONE_2_2: ::std::os::raw::c_uint = 20200;
pub const __IPHONE_3_0: ::std::os::raw::c_uint = 30000;
pub const __IPHONE_3_1: ::std::os::raw::c_uint = 30100;
pub const __IPHONE_3_2: ::std::os::raw::c_uint = 30200;
pub const __IPHONE_4_0: ::std::os::raw::c_uint = 40000;
pub const __IPHONE_4_1: ::std::os::raw::c_uint = 40100;
pub const __IPHONE_4_2: ::std::os::raw::c_uint = 40200;
pub const __IPHONE_4_3: ::std::os::raw::c_uint = 40300;
pub const __IPHONE_5_0: ::std::os::raw::c_uint = 50000;
pub const __IPHONE_5_1: ::std::os::raw::c_uint = 50100;
pub const __IPHONE_6_0: ::std::os::raw::c_uint = 60000;
pub const __IPHONE_6_1: ::std::os::raw::c_uint = 60100;
pub const __IPHONE_7_0: ::std::os::raw::c_uint = 70000;
pub const __IPHONE_7_1: ::std::os::raw::c_uint = 70100;
pub const __IPHONE_8_0: ::std::os::raw::c_uint = 80000;
pub const __IPHONE_8_1: ::std::os::raw::c_uint = 80100;
pub const __IPHONE_8_2: ::std::os::raw::c_uint = 80200;
pub const __IPHONE_8_3: ::std::os::raw::c_uint = 80300;
pub const __IPHONE_8_4: ::std::os::raw::c_uint = 80400;
pub const __IPHONE_9_0: ::std::os::raw::c_uint = 90000;
pub const __IPHONE_9_1: ::std::os::raw::c_uint = 90100;
pub const __IPHONE_9_2: ::std::os::raw::c_uint = 90200;
pub const __IPHONE_9_3: ::std::os::raw::c_uint = 90300;
pub const __TVOS_9_0: ::std::os::raw::c_uint = 90000;
pub const __TVOS_9_1: ::std::os::raw::c_uint = 90100;
pub const __TVOS_9_2: ::std::os::raw::c_uint = 90200;
pub const __WATCHOS_1_0: ::std::os::raw::c_uint = 10000;
pub const __WATCHOS_2_0: ::std::os::raw::c_uint = 20000;
pub const __MAC_OS_X_VERSION_MAX_ALLOWED: ::std::os::raw::c_uint = 101104;
pub const __PTHREAD_SIZE__: ::std::os::raw::c_uint = 8176;
pub const __PTHREAD_ATTR_SIZE__: ::std::os::raw::c_uint = 56;
pub const __PTHREAD_MUTEXATTR_SIZE__: ::std::os::raw::c_uint = 8;
pub const __PTHREAD_MUTEX_SIZE__: ::std::os::raw::c_uint = 56;
pub const __PTHREAD_CONDATTR_SIZE__: ::std::os::raw::c_uint = 8;
pub const __PTHREAD_COND_SIZE__: ::std::os::raw::c_uint = 40;
pub const __PTHREAD_ONCE_SIZE__: ::std::os::raw::c_uint = 8;
pub const __PTHREAD_RWLOCK_SIZE__: ::std::os::raw::c_uint = 192;
pub const __PTHREAD_RWLOCKATTR_SIZE__: ::std::os::raw::c_uint = 16;
pub const __DARWIN_WCHAR_MIN: ::std::os::raw::c_int = -2147483648;
pub const _FORTIFY_SOURCE: ::std::os::raw::c_uint = 0;
pub const __DARWIN_NSIG: ::std::os::raw::c_uint = 32;
pub const NSIG: ::std::os::raw::c_uint = 32;
pub const _I386_SIGNAL_H_: ::std::os::raw::c_uint = 1;
pub const SIGHUP: ::std::os::raw::c_uint = 1;
pub const SIGINT: ::std::os::raw::c_uint = 2;
pub const SIGQUIT: ::std::os::raw::c_uint = 3;
pub const SIGILL: ::std::os::raw::c_uint = 4;
pub const SIGTRAP: ::std::os::raw::c_uint = 5;
pub const SIGABRT: ::std::os::raw::c_uint = 6;
pub const SIGIOT: ::std::os::raw::c_uint = 6;
pub const SIGEMT: ::std::os::raw::c_uint = 7;
pub const SIGFPE: ::std::os::raw::c_uint = 8;
pub const SIGKILL: ::std::os::raw::c_uint = 9;
pub const SIGBUS: ::std::os::raw::c_uint = 10;
pub const SIGSEGV: ::std::os::raw::c_uint = 11;
pub const SIGSYS: ::std::os::raw::c_uint = 12;
pub const SIGPIPE: ::std::os::raw::c_uint = 13;
pub const SIGALRM: ::std::os::raw::c_uint = 14;
pub const SIGTERM: ::std::os::raw::c_uint = 15;
pub const SIGURG: ::std::os::raw::c_uint = 16;
pub const SIGSTOP: ::std::os::raw::c_uint = 17;
pub const SIGTSTP: ::std::os::raw::c_uint = 18;
pub const SIGCONT: ::std::os::raw::c_uint = 19;
pub const SIGCHLD: ::std::os::raw::c_uint = 20;
pub const SIGTTIN: ::std::os::raw::c_uint = 21;
pub const SIGTTOU: ::std::os::raw::c_uint = 22;
pub const SIGIO: ::std::os::raw::c_uint = 23;
pub const SIGXCPU: ::std::os::raw::c_uint = 24;
pub const SIGXFSZ: ::std::os::raw::c_uint = 25;
pub const SIGVTALRM: ::std::os::raw::c_uint = 26;
pub const SIGPROF: ::std::os::raw::c_uint = 27;
pub const SIGWINCH: ::std::os::raw::c_uint = 28;
pub const SIGINFO: ::std::os::raw::c_uint = 29;
pub const SIGUSR1: ::std::os::raw::c_uint = 30;
pub const SIGUSR2: ::std::os::raw::c_uint = 31;
pub const FP_PREC_24B: ::std::os::raw::c_uint = 0;
pub const FP_PREC_53B: ::std::os::raw::c_uint = 2;
pub const FP_PREC_64B: ::std::os::raw::c_uint = 3;
pub const FP_RND_NEAR: ::std::os::raw::c_uint = 0;
pub const FP_RND_DOWN: ::std::os::raw::c_uint = 1;
pub const FP_RND_UP: ::std::os::raw::c_uint = 2;
pub const FP_CHOP: ::std::os::raw::c_uint = 3;
pub const FP_STATE_BYTES: ::std::os::raw::c_uint = 512;
pub const SIGEV_NONE: ::std::os::raw::c_uint = 0;
pub const SIGEV_SIGNAL: ::std::os::raw::c_uint = 1;
pub const SIGEV_THREAD: ::std::os::raw::c_uint = 3;
pub const ILL_NOOP: ::std::os::raw::c_uint = 0;
pub const ILL_ILLOPC: ::std::os::raw::c_uint = 1;
pub const ILL_ILLTRP: ::std::os::raw::c_uint = 2;
pub const ILL_PRVOPC: ::std::os::raw::c_uint = 3;
pub const ILL_ILLOPN: ::std::os::raw::c_uint = 4;
pub const ILL_ILLADR: ::std::os::raw::c_uint = 5;
pub const ILL_PRVREG: ::std::os::raw::c_uint = 6;
pub const ILL_COPROC: ::std::os::raw::c_uint = 7;
pub const ILL_BADSTK: ::std::os::raw::c_uint = 8;
pub const FPE_NOOP: ::std::os::raw::c_uint = 0;
pub const FPE_FLTDIV: ::std::os::raw::c_uint = 1;
pub const FPE_FLTOVF: ::std::os::raw::c_uint = 2;
pub const FPE_FLTUND: ::std::os::raw::c_uint = 3;
pub const FPE_FLTRES: ::std::os::raw::c_uint = 4;
pub const FPE_FLTINV: ::std::os::raw::c_uint = 5;
pub const FPE_FLTSUB: ::std::os::raw::c_uint = 6;
pub const FPE_INTDIV: ::std::os::raw::c_uint = 7;
pub const FPE_INTOVF: ::std::os::raw::c_uint = 8;
pub const SEGV_NOOP: ::std::os::raw::c_uint = 0;
pub const SEGV_MAPERR: ::std::os::raw::c_uint = 1;
pub const SEGV_ACCERR: ::std::os::raw::c_uint = 2;
pub const BUS_NOOP: ::std::os::raw::c_uint = 0;
pub const BUS_ADRALN: ::std::os::raw::c_uint = 1;
pub const BUS_ADRERR: ::std::os::raw::c_uint = 2;
pub const BUS_OBJERR: ::std::os::raw::c_uint = 3;
pub const TRAP_BRKPT: ::std::os::raw::c_uint = 1;
pub const TRAP_TRACE: ::std::os::raw::c_uint = 2;
pub const CLD_NOOP: ::std::os::raw::c_uint = 0;
pub const CLD_EXITED: ::std::os::raw::c_uint = 1;
pub const CLD_KILLED: ::std::os::raw::c_uint = 2;
pub const CLD_DUMPED: ::std::os::raw::c_uint = 3;
pub const CLD_TRAPPED: ::std::os::raw::c_uint = 4;
pub const CLD_STOPPED: ::std::os::raw::c_uint = 5;
pub const CLD_CONTINUED: ::std::os::raw::c_uint = 6;
pub const POLL_IN: ::std::os::raw::c_uint = 1;
pub const POLL_OUT: ::std::os::raw::c_uint = 2;
pub const POLL_MSG: ::std::os::raw::c_uint = 3;
pub const POLL_ERR: ::std::os::raw::c_uint = 4;
pub const POLL_PRI: ::std::os::raw::c_uint = 5;
pub const POLL_HUP: ::std::os::raw::c_uint = 6;
pub const SA_ONSTACK: ::std::os::raw::c_uint = 1;
pub const SA_RESTART: ::std::os::raw::c_uint = 2;
pub const SA_RESETHAND: ::std::os::raw::c_uint = 4;
pub const SA_NOCLDSTOP: ::std::os::raw::c_uint = 8;
pub const SA_NODEFER: ::std::os::raw::c_uint = 16;
pub const SA_NOCLDWAIT: ::std::os::raw::c_uint = 32;
pub const SA_SIGINFO: ::std::os::raw::c_uint = 64;
pub const SA_USERTRAMP: ::std::os::raw::c_uint = 256;
pub const SA_64REGSET: ::std::os::raw::c_uint = 512;
pub const SA_USERSPACE_MASK: ::std::os::raw::c_uint = 127;
pub const SIG_BLOCK: ::std::os::raw::c_uint = 1;
pub const SIG_UNBLOCK: ::std::os::raw::c_uint = 2;
pub const SIG_SETMASK: ::std::os::raw::c_uint = 3;
pub const SI_USER: ::std::os::raw::c_uint = 65537;
pub const SI_QUEUE: ::std::os::raw::c_uint = 65538;
pub const SI_TIMER: ::std::os::raw::c_uint = 65539;
pub const SI_ASYNCIO: ::std::os::raw::c_uint = 65540;
pub const SI_MESGQ: ::std::os::raw::c_uint = 65541;
pub const SS_ONSTACK: ::std::os::raw::c_uint = 1;
pub const SS_DISABLE: ::std::os::raw::c_uint = 4;
pub const MINSIGSTKSZ: ::std::os::raw::c_uint = 32768;
pub const SIGSTKSZ: ::std::os::raw::c_uint = 131072;
pub const SV_ONSTACK: ::std::os::raw::c_uint = 1;
pub const SV_INTERRUPT: ::std::os::raw::c_uint = 2;
pub const SV_RESETHAND: ::std::os::raw::c_uint = 4;
pub const SV_NODEFER: ::std::os::raw::c_uint = 16;
pub const SV_NOCLDSTOP: ::std::os::raw::c_uint = 8;
pub const SV_SIGINFO: ::std::os::raw::c_uint = 64;
pub const __WORDSIZE: ::std::os::raw::c_uint = 64;
pub const INT8_MAX: ::std::os::raw::c_uint = 127;
pub const INT16_MAX: ::std::os::raw::c_uint = 32767;
pub const INT32_MAX: ::std::os::raw::c_uint = 2147483647;
pub const INT64_MAX: ::std::os::raw::c_ulonglong = 9223372036854775807;
pub const INT8_MIN: ::std::os::raw::c_int = -128;
pub const INT16_MIN: ::std::os::raw::c_int = -32768;
pub const INT32_MIN: ::std::os::raw::c_int = -2147483648;
pub const INT64_MIN: ::std::os::raw::c_longlong = -9223372036854775808;
pub const UINT8_MAX: ::std::os::raw::c_uint = 255;
pub const UINT16_MAX: ::std::os::raw::c_uint = 65535;
pub const UINT32_MAX: ::std::os::raw::c_uint = 4294967295;
pub const UINT64_MAX: ::std::os::raw::c_int = -1;
pub const INT_LEAST8_MIN: ::std::os::raw::c_int = -128;
pub const INT_LEAST16_MIN: ::std::os::raw::c_int = -32768;
pub const INT_LEAST32_MIN: ::std::os::raw::c_int = -2147483648;
pub const INT_LEAST64_MIN: ::std::os::raw::c_longlong = -9223372036854775808;
pub const INT_LEAST8_MAX: ::std::os::raw::c_uint = 127;
pub const INT_LEAST16_MAX: ::std::os::raw::c_uint = 32767;
pub const INT_LEAST32_MAX: ::std::os::raw::c_uint = 2147483647;
pub const INT_LEAST64_MAX: ::std::os::raw::c_ulonglong = 9223372036854775807;
pub const UINT_LEAST8_MAX: ::std::os::raw::c_uint = 255;
pub const UINT_LEAST16_MAX: ::std::os::raw::c_uint = 65535;
pub const UINT_LEAST32_MAX: ::std::os::raw::c_uint = 4294967295;
pub const UINT_LEAST64_MAX: ::std::os::raw::c_int = -1;
pub const INT_FAST8_MIN: ::std::os::raw::c_int = -128;
pub const INT_FAST16_MIN: ::std::os::raw::c_int = -32768;
pub const INT_FAST32_MIN: ::std::os::raw::c_int = -2147483648;
pub const INT_FAST64_MIN: ::std::os::raw::c_longlong = -9223372036854775808;
pub const INT_FAST8_MAX: ::std::os::raw::c_uint = 127;
pub const INT_FAST16_MAX: ::std::os::raw::c_uint = 32767;
pub const INT_FAST32_MAX: ::std::os::raw::c_uint = 2147483647;
pub const INT_FAST64_MAX: ::std::os::raw::c_ulonglong = 9223372036854775807;
pub const UINT_FAST8_MAX: ::std::os::raw::c_uint = 255;
pub const UINT_FAST16_MAX: ::std::os::raw::c_uint = 65535;
pub const UINT_FAST32_MAX: ::std::os::raw::c_uint = 4294967295;
pub const UINT_FAST64_MAX: ::std::os::raw::c_int = -1;
pub const INTPTR_MIN: ::std::os::raw::c_longlong = -9223372036854775808;
pub const INTPTR_MAX: ::std::os::raw::c_ulonglong = 9223372036854775807;
pub const UINTPTR_MAX: ::std::os::raw::c_int = -1;
pub const INTMAX_MIN: ::std::os::raw::c_longlong = -9223372036854775808;
pub const INTMAX_MAX: ::std::os::raw::c_ulonglong = 9223372036854775807;
pub const UINTMAX_MAX: ::std::os::raw::c_int = -1;
pub const PTRDIFF_MIN: ::std::os::raw::c_longlong = -9223372036854775808;
pub const PTRDIFF_MAX: ::std::os::raw::c_ulonglong = 9223372036854775807;
pub const SIZE_MAX: ::std::os::raw::c_int = -1;
pub const WINT_MIN: ::std::os::raw::c_int = -2147483648;
pub const WINT_MAX: ::std::os::raw::c_uint = 2147483647;
pub const SIG_ATOMIC_MIN: ::std::os::raw::c_int = -2147483648;
pub const SIG_ATOMIC_MAX: ::std::os::raw::c_uint = 2147483647;
pub const PRIO_PROCESS: ::std::os::raw::c_uint = 0;
pub const PRIO_PGRP: ::std::os::raw::c_uint = 1;
pub const PRIO_USER: ::std::os::raw::c_uint = 2;
pub const PRIO_DARWIN_THREAD: ::std::os::raw::c_uint = 3;
pub const PRIO_DARWIN_PROCESS: ::std::os::raw::c_uint = 4;
pub const PRIO_MIN: ::std::os::raw::c_int = -20;
pub const PRIO_MAX: ::std::os::raw::c_uint = 20;
pub const PRIO_DARWIN_BG: ::std::os::raw::c_uint = 4096;
pub const PRIO_DARWIN_NONUI: ::std::os::raw::c_uint = 4097;
pub const RUSAGE_SELF: ::std::os::raw::c_uint = 0;
pub const RUSAGE_CHILDREN: ::std::os::raw::c_int = -1;
pub const RUSAGE_INFO_V0: ::std::os::raw::c_uint = 0;
pub const RUSAGE_INFO_V1: ::std::os::raw::c_uint = 1;
pub const RUSAGE_INFO_V2: ::std::os::raw::c_uint = 2;
pub const RUSAGE_INFO_V3: ::std::os::raw::c_uint = 3;
pub const RUSAGE_INFO_CURRENT: ::std::os::raw::c_uint = 3;
pub const RLIMIT_CPU: ::std::os::raw::c_uint = 0;
pub const RLIMIT_FSIZE: ::std::os::raw::c_uint = 1;
pub const RLIMIT_DATA: ::std::os::raw::c_uint = 2;
pub const RLIMIT_STACK: ::std::os::raw::c_uint = 3;
pub const RLIMIT_CORE: ::std::os::raw::c_uint = 4;
pub const RLIMIT_AS: ::std::os::raw::c_uint = 5;
pub const RLIMIT_RSS: ::std::os::raw::c_uint = 5;
pub const RLIMIT_MEMLOCK: ::std::os::raw::c_uint = 6;
pub const RLIMIT_NPROC: ::std::os::raw::c_uint = 7;
pub const RLIMIT_NOFILE: ::std::os::raw::c_uint = 8;
pub const RLIM_NLIMITS: ::std::os::raw::c_uint = 9;
pub const _RLIMIT_POSIX_FLAG: ::std::os::raw::c_uint = 4096;
pub const RLIMIT_WAKEUPS_MONITOR: ::std::os::raw::c_uint = 1;
pub const RLIMIT_CPU_USAGE_MONITOR: ::std::os::raw::c_uint = 2;
pub const RLIMIT_THREAD_CPULIMITS: ::std::os::raw::c_uint = 3;
pub const WAKEMON_ENABLE: ::std::os::raw::c_uint = 1;
pub const WAKEMON_DISABLE: ::std::os::raw::c_uint = 2;
pub const WAKEMON_GET_PARAMS: ::std::os::raw::c_uint = 4;
pub const WAKEMON_SET_DEFAULTS: ::std::os::raw::c_uint = 8;
pub const WAKEMON_MAKE_FATAL: ::std::os::raw::c_uint = 16;
pub const CPUMON_MAKE_FATAL: ::std::os::raw::c_uint = 4096;
pub const IOPOL_TYPE_DISK: ::std::os::raw::c_uint = 0;
pub const IOPOL_SCOPE_PROCESS: ::std::os::raw::c_uint = 0;
pub const IOPOL_SCOPE_THREAD: ::std::os::raw::c_uint = 1;
pub const IOPOL_SCOPE_DARWIN_BG: ::std::os::raw::c_uint = 2;
pub const IOPOL_DEFAULT: ::std::os::raw::c_uint = 0;
pub const IOPOL_IMPORTANT: ::std::os::raw::c_uint = 1;
pub const IOPOL_PASSIVE: ::std::os::raw::c_uint = 2;
pub const IOPOL_THROTTLE: ::std::os::raw::c_uint = 3;
pub const IOPOL_UTILITY: ::std::os::raw::c_uint = 4;
pub const IOPOL_STANDARD: ::std::os::raw::c_uint = 5;
pub const IOPOL_APPLICATION: ::std::os::raw::c_uint = 5;
pub const IOPOL_NORMAL: ::std::os::raw::c_uint = 1;
pub const WNOHANG: ::std::os::raw::c_uint = 1;
pub const WUNTRACED: ::std::os::raw::c_uint = 2;
pub const WCOREFLAG: ::std::os::raw::c_uint = 128;
pub const _WSTOPPED: ::std::os::raw::c_uint = 127;
pub const WEXITED: ::std::os::raw::c_uint = 4;
pub const WSTOPPED: ::std::os::raw::c_uint = 8;
pub const WCONTINUED: ::std::os::raw::c_uint = 16;
pub const WNOWAIT: ::std::os::raw::c_uint = 32;
pub const WAIT_ANY: ::std::os::raw::c_int = -1;
pub const WAIT_MYPGRP: ::std::os::raw::c_uint = 0;
pub const _QUAD_HIGHWORD: ::std::os::raw::c_uint = 1;
pub const _QUAD_LOWWORD: ::std::os::raw::c_uint = 0;
pub const __DARWIN_LITTLE_ENDIAN: ::std::os::raw::c_uint = 1234;
pub const __DARWIN_BIG_ENDIAN: ::std::os::raw::c_uint = 4321;
pub const __DARWIN_PDP_ENDIAN: ::std::os::raw::c_uint = 3412;
pub const __DARWIN_BYTE_ORDER: ::std::os::raw::c_uint = 1234;
pub const LITTLE_ENDIAN: ::std::os::raw::c_uint = 1234;
pub const BIG_ENDIAN: ::std::os::raw::c_uint = 4321;
pub const PDP_ENDIAN: ::std::os::raw::c_uint = 3412;
pub const BYTE_ORDER: ::std::os::raw::c_uint = 1234;
pub const EXIT_FAILURE: ::std::os::raw::c_uint = 1;
pub const EXIT_SUCCESS: ::std::os::raw::c_uint = 0;
pub const RAND_MAX: ::std::os::raw::c_uint = 2147483647;
pub const _LIBCPP_VERSION: ::std::os::raw::c_uint = 3700;
pub const _LIBCPP_ABI_VERSION: ::std::os::raw::c_uint = 1;
pub const _LIBCPP_LITTLE_ENDIAN: ::std::os::raw::c_uint = 1;
pub const _LIBCPP_BIG_ENDIAN: ::std::os::raw::c_uint = 0;
pub const _LIBCPP_LOCALE__L_EXTENSIONS: ::std::os::raw::c_uint = 1;
pub const _LIBCPP_HAS_CATOPEN: ::std::os::raw::c_uint = 1;
pub const _LIBCPP_TRIVIAL_PAIR_COPY_CTOR: ::std::os::raw::c_uint = 1;
pub const _LIBCPP_STD_VER: ::std::os::raw::c_uint = 14;
pub const __GNUC_VA_LIST: ::std::os::raw::c_uint = 1;
pub const __SLBF: ::std::os::raw::c_uint = 1;
pub const __SNBF: ::std::os::raw::c_uint = 2;
pub const __SRD: ::std::os::raw::c_uint = 4;
pub const __SWR: ::std::os::raw::c_uint = 8;
pub const __SRW: ::std::os::raw::c_uint = 16;
pub const __SEOF: ::std::os::raw::c_uint = 32;
pub const __SERR: ::std::os::raw::c_uint = 64;
pub const __SMBF: ::std::os::raw::c_uint = 128;
pub const __SAPP: ::std::os::raw::c_uint = 256;
pub const __SSTR: ::std::os::raw::c_uint = 512;
pub const __SOPT: ::std::os::raw::c_uint = 1024;
pub const __SNPT: ::std::os::raw::c_uint = 2048;
pub const __SOFF: ::std::os::raw::c_uint = 4096;
pub const __SMOD: ::std::os::raw::c_uint = 8192;
pub const __SALC: ::std::os::raw::c_uint = 16384;
pub const __SIGN: ::std::os::raw::c_uint = 32768;
pub const _IOFBF: ::std::os::raw::c_uint = 0;
pub const _IOLBF: ::std::os::raw::c_uint = 1;
pub const _IONBF: ::std::os::raw::c_uint = 2;
pub const BUFSIZ: ::std::os::raw::c_uint = 1024;
pub const EOF: ::std::os::raw::c_int = -1;
pub const FOPEN_MAX: ::std::os::raw::c_uint = 20;
pub const FILENAME_MAX: ::std::os::raw::c_uint = 1024;
pub const P_tmpdir: &'static [u8; 10usize] = b"/var/tmp/\0";
pub const L_tmpnam: ::std::os::raw::c_uint = 1024;
pub const TMP_MAX: ::std::os::raw::c_uint = 308915776;
pub const SEEK_SET: ::std::os::raw::c_uint = 0;
pub const SEEK_CUR: ::std::os::raw::c_uint = 1;
pub const SEEK_END: ::std::os::raw::c_uint = 2;
pub const L_ctermid: ::std::os::raw::c_uint = 1024;
pub const __CTERMID_DEFINED: ::std::os::raw::c_uint = 1;
pub const CLOCKS_PER_SEC: ::std::os::raw::c_uint = 1000000;
pub const _CACHED_RUNES: ::std::os::raw::c_uint = 256;
pub const _CRMASK: ::std::os::raw::c_int = -256;
pub const _RUNE_MAGIC_A: &'static [u8; 9usize] = b"RuneMagA\0";
pub const _CTYPE_A: ::std::os::raw::c_uint = 256;
pub const _CTYPE_C: ::std::os::raw::c_uint = 512;
pub const _CTYPE_D: ::std::os::raw::c_uint = 1024;
pub const _CTYPE_G: ::std::os::raw::c_uint = 2048;
pub const _CTYPE_L: ::std::os::raw::c_uint = 4096;
pub const _CTYPE_P: ::std::os::raw::c_uint = 8192;
pub const _CTYPE_S: ::std::os::raw::c_uint = 16384;
pub const _CTYPE_U: ::std::os::raw::c_uint = 32768;
pub const _CTYPE_X: ::std::os::raw::c_uint = 65536;
pub const _CTYPE_B: ::std::os::raw::c_uint = 131072;
pub const _CTYPE_R: ::std::os::raw::c_uint = 262144;
pub const _CTYPE_I: ::std::os::raw::c_uint = 524288;
pub const _CTYPE_T: ::std::os::raw::c_uint = 1048576;
pub const _CTYPE_Q: ::std::os::raw::c_uint = 2097152;
pub const _CTYPE_SW0: ::std::os::raw::c_uint = 536870912;
pub const _CTYPE_SW1: ::std::os::raw::c_uint = 1073741824;
pub const _CTYPE_SW2: ::std::os::raw::c_uint = 2147483648;
pub const _CTYPE_SW3: ::std::os::raw::c_uint = 3221225472;
pub const _CTYPE_SWM: ::std::os::raw::c_uint = 3758096384;
pub const _CTYPE_SWS: ::std::os::raw::c_uint = 30;
pub const __DARWIN_CLK_TCK: ::std::os::raw::c_uint = 100;
pub const CHAR_BIT: ::std::os::raw::c_uint = 8;
pub const MB_LEN_MAX: ::std::os::raw::c_uint = 6;
pub const CLK_TCK: ::std::os::raw::c_uint = 100;
pub const SCHAR_MAX: ::std::os::raw::c_uint = 127;
pub const SCHAR_MIN: ::std::os::raw::c_int = -128;
pub const UCHAR_MAX: ::std::os::raw::c_uint = 255;
pub const CHAR_MAX: ::std::os::raw::c_uint = 127;
pub const CHAR_MIN: ::std::os::raw::c_int = -128;
pub const USHRT_MAX: ::std::os::raw::c_uint = 65535;
pub const SHRT_MAX: ::std::os::raw::c_uint = 32767;
pub const SHRT_MIN: ::std::os::raw::c_int = -32768;
pub const UINT_MAX: ::std::os::raw::c_uint = 4294967295;
pub const INT_MAX: ::std::os::raw::c_uint = 2147483647;
pub const INT_MIN: ::std::os::raw::c_int = -2147483648;
pub const ULONG_MAX: ::std::os::raw::c_int = -1;
pub const LONG_MAX: ::std::os::raw::c_ulonglong = 9223372036854775807;
pub const LONG_MIN: ::std::os::raw::c_longlong = -9223372036854775808;
pub const ULLONG_MAX: ::std::os::raw::c_int = -1;
pub const LLONG_MAX: ::std::os::raw::c_ulonglong = 9223372036854775807;
pub const LLONG_MIN: ::std::os::raw::c_longlong = -9223372036854775808;
pub const LONG_BIT: ::std::os::raw::c_uint = 64;
pub const SSIZE_MAX: ::std::os::raw::c_ulonglong = 9223372036854775807;
pub const WORD_BIT: ::std::os::raw::c_uint = 32;
pub const SIZE_T_MAX: ::std::os::raw::c_int = -1;
pub const UQUAD_MAX: ::std::os::raw::c_int = -1;
pub const QUAD_MAX: ::std::os::raw::c_ulonglong = 9223372036854775807;
pub const QUAD_MIN: ::std::os::raw::c_longlong = -9223372036854775808;
pub const ARG_MAX: ::std::os::raw::c_uint = 262144;
pub const CHILD_MAX: ::std::os::raw::c_uint = 266;
pub const GID_MAX: ::std::os::raw::c_uint = 2147483647;
pub const LINK_MAX: ::std::os::raw::c_uint = 32767;
pub const MAX_CANON: ::std::os::raw::c_uint = 1024;
pub const MAX_INPUT: ::std::os::raw::c_uint = 1024;
pub const NAME_MAX: ::std::os::raw::c_uint = 255;
pub const NGROUPS_MAX: ::std::os::raw::c_uint = 16;
pub const UID_MAX: ::std::os::raw::c_uint = 2147483647;
pub const OPEN_MAX: ::std::os::raw::c_uint = 10240;
pub const PATH_MAX: ::std::os::raw::c_uint = 1024;
pub const PIPE_BUF: ::std::os::raw::c_uint = 512;
pub const BC_BASE_MAX: ::std::os::raw::c_uint = 99;
pub const BC_DIM_MAX: ::std::os::raw::c_uint = 2048;
pub const BC_SCALE_MAX: ::std::os::raw::c_uint = 99;
pub const BC_STRING_MAX: ::std::os::raw::c_uint = 1000;
pub const CHARCLASS_NAME_MAX: ::std::os::raw::c_uint = 14;
pub const COLL_WEIGHTS_MAX: ::std::os::raw::c_uint = 2;
pub const EQUIV_CLASS_MAX: ::std::os::raw::c_uint = 2;
pub const EXPR_NEST_MAX: ::std::os::raw::c_uint = 32;
pub const LINE_MAX: ::std::os::raw::c_uint = 2048;
pub const RE_DUP_MAX: ::std::os::raw::c_uint = 255;
pub const NZERO: ::std::os::raw::c_uint = 20;
pub const _POSIX_ARG_MAX: ::std::os::raw::c_uint = 4096;
pub const _POSIX_CHILD_MAX: ::std::os::raw::c_uint = 25;
pub const _POSIX_LINK_MAX: ::std::os::raw::c_uint = 8;
pub const _POSIX_MAX_CANON: ::std::os::raw::c_uint = 255;
pub const _POSIX_MAX_INPUT: ::std::os::raw::c_uint = 255;
pub const _POSIX_NAME_MAX: ::std::os::raw::c_uint = 14;
pub const _POSIX_NGROUPS_MAX: ::std::os::raw::c_uint = 8;
pub const _POSIX_OPEN_MAX: ::std::os::raw::c_uint = 20;
pub const _POSIX_PATH_MAX: ::std::os::raw::c_uint = 256;
pub const _POSIX_PIPE_BUF: ::std::os::raw::c_uint = 512;
pub const _POSIX_SSIZE_MAX: ::std::os::raw::c_uint = 32767;
pub const _POSIX_STREAM_MAX: ::std::os::raw::c_uint = 8;
pub const _POSIX_TZNAME_MAX: ::std::os::raw::c_uint = 6;
pub const _POSIX2_BC_BASE_MAX: ::std::os::raw::c_uint = 99;
pub const _POSIX2_BC_DIM_MAX: ::std::os::raw::c_uint = 2048;
pub const _POSIX2_BC_SCALE_MAX: ::std::os::raw::c_uint = 99;
pub const _POSIX2_BC_STRING_MAX: ::std::os::raw::c_uint = 1000;
pub const _POSIX2_EQUIV_CLASS_MAX: ::std::os::raw::c_uint = 2;
pub const _POSIX2_EXPR_NEST_MAX: ::std::os::raw::c_uint = 32;
pub const _POSIX2_LINE_MAX: ::std::os::raw::c_uint = 2048;
pub const _POSIX2_RE_DUP_MAX: ::std::os::raw::c_uint = 255;
pub const _POSIX_AIO_LISTIO_MAX: ::std::os::raw::c_uint = 2;
pub const _POSIX_AIO_MAX: ::std::os::raw::c_uint = 1;
pub const _POSIX_DELAYTIMER_MAX: ::std::os::raw::c_uint = 32;
pub const _POSIX_MQ_OPEN_MAX: ::std::os::raw::c_uint = 8;
pub const _POSIX_MQ_PRIO_MAX: ::std::os::raw::c_uint = 32;
pub const _POSIX_RTSIG_MAX: ::std::os::raw::c_uint = 8;
pub const _POSIX_SEM_NSEMS_MAX: ::std::os::raw::c_uint = 256;
pub const _POSIX_SEM_VALUE_MAX: ::std::os::raw::c_uint = 32767;
pub const _POSIX_SIGQUEUE_MAX: ::std::os::raw::c_uint = 32;
pub const _POSIX_TIMER_MAX: ::std::os::raw::c_uint = 32;
pub const _POSIX_THREAD_DESTRUCTOR_ITERATIONS: ::std::os::raw::c_uint = 4;
pub const _POSIX_THREAD_KEYS_MAX: ::std::os::raw::c_uint = 128;
pub const _POSIX_THREAD_THREADS_MAX: ::std::os::raw::c_uint = 64;
pub const PTHREAD_DESTRUCTOR_ITERATIONS: ::std::os::raw::c_uint = 4;
pub const PTHREAD_KEYS_MAX: ::std::os::raw::c_uint = 512;
pub const PTHREAD_STACK_MIN: ::std::os::raw::c_uint = 8192;
pub const _POSIX_HOST_NAME_MAX: ::std::os::raw::c_uint = 255;
pub const _POSIX_LOGIN_NAME_MAX: ::std::os::raw::c_uint = 9;
pub const _POSIX_SS_REPL_MAX: ::std::os::raw::c_uint = 4;
pub const _POSIX_SYMLINK_MAX: ::std::os::raw::c_uint = 255;
pub const _POSIX_SYMLOOP_MAX: ::std::os::raw::c_uint = 8;
pub const _POSIX_TRACE_EVENT_NAME_MAX: ::std::os::raw::c_uint = 30;
pub const _POSIX_TRACE_NAME_MAX: ::std::os::raw::c_uint = 8;
pub const _POSIX_TRACE_SYS_MAX: ::std::os::raw::c_uint = 8;
pub const _POSIX_TRACE_USER_EVENT_MAX: ::std::os::raw::c_uint = 32;
pub const _POSIX_TTY_NAME_MAX: ::std::os::raw::c_uint = 9;
pub const _POSIX2_CHARCLASS_NAME_MAX: ::std::os::raw::c_uint = 14;
pub const _POSIX2_COLL_WEIGHTS_MAX: ::std::os::raw::c_uint = 2;
pub const _POSIX_RE_DUP_MAX: ::std::os::raw::c_uint = 255;
pub const OFF_MIN: ::std::os::raw::c_longlong = -9223372036854775808;
pub const OFF_MAX: ::std::os::raw::c_ulonglong = 9223372036854775807;
pub const PASS_MAX: ::std::os::raw::c_uint = 128;
pub const NL_ARGMAX: ::std::os::raw::c_uint = 9;
pub const NL_LANGMAX: ::std::os::raw::c_uint = 14;
pub const NL_MSGMAX: ::std::os::raw::c_uint = 32767;
pub const NL_NMAX: ::std::os::raw::c_uint = 1;
pub const NL_SETMAX: ::std::os::raw::c_uint = 255;
pub const NL_TEXTMAX: ::std::os::raw::c_uint = 2048;
pub const _XOPEN_IOV_MAX: ::std::os::raw::c_uint = 16;
pub const IOV_MAX: ::std::os::raw::c_uint = 1024;
pub const _XOPEN_NAME_MAX: ::std::os::raw::c_uint = 255;
pub const _XOPEN_PATH_MAX: ::std::os::raw::c_uint = 1024;
pub const FLATBUFFERS_LITTLEENDIAN: ::std::os::raw::c_uint = 1;
pub const FLATBUFFERS_VERSION_MAJOR: ::std::os::raw::c_uint = 1;
pub const FLATBUFFERS_VERSION_MINOR: ::std::os::raw::c_uint = 8;
pub const FLATBUFFERS_VERSION_REVISION: ::std::os::raw::c_uint = 0;
pub const FLATBUFFERS_MAX_ALIGNMENT: ::std::os::raw::c_uint = 16;
pub type __int8_t = ::std::os::raw::c_schar;
pub type __uint8_t = ::std::os::raw::c_uchar;
pub type __int16_t = ::std::os::raw::c_short;
pub type __uint16_t = ::std::os::raw::c_ushort;
pub type __int32_t = ::std::os::raw::c_int;
pub type __uint32_t = ::std::os::raw::c_uint;
pub type __int64_t = ::std::os::raw::c_longlong;
pub type __uint64_t = ::std::os::raw::c_ulonglong;
pub type __darwin_intptr_t = ::std::os::raw::c_long;
pub type __darwin_natural_t = ::std::os::raw::c_uint;
pub type __darwin_ct_rune_t = ::std::os::raw::c_int;
#[repr(C)]
#[derive(Copy, Clone)]
pub union __mbstate_t {
pub __mbstate8: [::std::os::raw::c_char; 128usize],
pub _mbstateL: ::std::os::raw::c_longlong,
_bindgen_union_align: [u64; 16usize],
}
#[test]
fn bindgen_test_layout___mbstate_t() {
assert_eq!(
::std::mem::size_of::<__mbstate_t>(),
128usize,
concat!("Size of: ", stringify!(__mbstate_t))
);
assert_eq!(
::std::mem::align_of::<__mbstate_t>(),
8usize,
concat!("Alignment of ", stringify!(__mbstate_t))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<__mbstate_t>())).__mbstate8 as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(__mbstate_t),
"::",
stringify!(__mbstate8)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<__mbstate_t>()))._mbstateL as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(__mbstate_t),
"::",
stringify!(_mbstateL)
)
);
}
pub type __darwin_mbstate_t = __mbstate_t;
pub type __darwin_ptrdiff_t = ::std::os::raw::c_long;
pub type __darwin_size_t = ::std::os::raw::c_ulong;
pub type __darwin_va_list = __builtin_va_list;
pub type __darwin_wchar_t = ::std::os::raw::c_int;
pub type __darwin_rune_t = __darwin_wchar_t;
pub type __darwin_wint_t = ::std::os::raw::c_int;
pub type __darwin_clock_t = ::std::os::raw::c_ulong;
pub type __darwin_socklen_t = __uint32_t;
pub type __darwin_ssize_t = ::std::os::raw::c_long;
pub type __darwin_time_t = ::std::os::raw::c_long;
pub type __darwin_blkcnt_t = __int64_t;
pub type __darwin_blksize_t = __int32_t;
pub type __darwin_dev_t = __int32_t;
pub type __darwin_fsblkcnt_t = ::std::os::raw::c_uint;
pub type __darwin_fsfilcnt_t = ::std::os::raw::c_uint;
pub type __darwin_gid_t = __uint32_t;
pub type __darwin_id_t = __uint32_t;
pub type __darwin_ino64_t = __uint64_t;
pub type __darwin_ino_t = __uint32_t;
pub type __darwin_mach_port_name_t = __darwin_natural_t;
pub type __darwin_mach_port_t = __darwin_mach_port_name_t;
pub type __darwin_mode_t = __uint16_t;
pub type __darwin_off_t = __int64_t;
pub type __darwin_pid_t = __int32_t;
pub type __darwin_sigset_t = __uint32_t;
pub type __darwin_suseconds_t = __int32_t;
pub type __darwin_uid_t = __uint32_t;
pub type __darwin_useconds_t = __uint32_t;
pub type __darwin_uuid_t = [::std::os::raw::c_uchar; 16usize];
pub type __darwin_uuid_string_t = [::std::os::raw::c_char; 37usize];
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __darwin_pthread_handler_rec {
pub __routine: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>,
pub __arg: *mut ::std::os::raw::c_void,
pub __next: *mut __darwin_pthread_handler_rec,
}
#[test]
fn bindgen_test_layout___darwin_pthread_handler_rec() {
assert_eq!(
::std::mem::size_of::<__darwin_pthread_handler_rec>(),
24usize,
concat!("Size of: ", stringify!(__darwin_pthread_handler_rec))
);
assert_eq!(
::std::mem::align_of::<__darwin_pthread_handler_rec>(),
8usize,
concat!("Alignment of ", stringify!(__darwin_pthread_handler_rec))
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<__darwin_pthread_handler_rec>())).__routine as *const _ as usize
},
0usize,
concat!(
"Offset of field: ",
stringify!(__darwin_pthread_handler_rec),
"::",
stringify!(__routine)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<__darwin_pthread_handler_rec>())).__arg as *const _ as usize
},
8usize,
concat!(
"Offset of field: ",
stringify!(__darwin_pthread_handler_rec),
"::",
stringify!(__arg)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<__darwin_pthread_handler_rec>())).__next as *const _ as usize
},
16usize,
concat!(
"Offset of field: ",
stringify!(__darwin_pthread_handler_rec),
"::",
stringify!(__next)
)
);
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct _opaque_pthread_attr_t {
pub __sig: ::std::os::raw::c_long,
pub __opaque: [::std::os::raw::c_char; 56usize],
}
#[test]
fn bindgen_test_layout__opaque_pthread_attr_t() {
assert_eq!(
::std::mem::size_of::<_opaque_pthread_attr_t>(),
64usize,
concat!("Size of: ", stringify!(_opaque_pthread_attr_t))
);
assert_eq!(
::std::mem::align_of::<_opaque_pthread_attr_t>(),
8usize,
concat!("Alignment of ", stringify!(_opaque_pthread_attr_t))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_opaque_pthread_attr_t>())).__sig as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(_opaque_pthread_attr_t),
"::",
stringify!(__sig)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_opaque_pthread_attr_t>())).__opaque as *const _ as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(_opaque_pthread_attr_t),
"::",
stringify!(__opaque)
)
);
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct _opaque_pthread_cond_t {
pub __sig: ::std::os::raw::c_long,
pub __opaque: [::std::os::raw::c_char; 40usize],
}
#[test]
fn bindgen_test_layout__opaque_pthread_cond_t() {
assert_eq!(
::std::mem::size_of::<_opaque_pthread_cond_t>(),
48usize,
concat!("Size of: ", stringify!(_opaque_pthread_cond_t))
);
assert_eq!(
::std::mem::align_of::<_opaque_pthread_cond_t>(),
8usize,
concat!("Alignment of ", stringify!(_opaque_pthread_cond_t))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_opaque_pthread_cond_t>())).__sig as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(_opaque_pthread_cond_t),
"::",
stringify!(__sig)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_opaque_pthread_cond_t>())).__opaque as *const _ as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(_opaque_pthread_cond_t),
"::",
stringify!(__opaque)
)
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _opaque_pthread_condattr_t {
pub __sig: ::std::os::raw::c_long,
pub __opaque: [::std::os::raw::c_char; 8usize],
}
#[test]
fn bindgen_test_layout__opaque_pthread_condattr_t() {
assert_eq!(
::std::mem::size_of::<_opaque_pthread_condattr_t>(),
16usize,
concat!("Size of: ", stringify!(_opaque_pthread_condattr_t))
);
assert_eq!(
::std::mem::align_of::<_opaque_pthread_condattr_t>(),
8usize,
concat!("Alignment of ", stringify!(_opaque_pthread_condattr_t))
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<_opaque_pthread_condattr_t>())).__sig as *const _ as usize
},
0usize,
concat!(
"Offset of field: ",
stringify!(_opaque_pthread_condattr_t),
"::",
stringify!(__sig)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<_opaque_pthread_condattr_t>())).__opaque as *const _ as usize
},
8usize,
concat!(
"Offset of field: ",
stringify!(_opaque_pthread_condattr_t),
"::",
stringify!(__opaque)
)
);
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct _opaque_pthread_mutex_t {
pub __sig: ::std::os::raw::c_long,
pub __opaque: [::std::os::raw::c_char; 56usize],
}
#[test]
fn bindgen_test_layout__opaque_pthread_mutex_t() {
assert_eq!(
::std::mem::size_of::<_opaque_pthread_mutex_t>(),
64usize,
concat!("Size of: ", stringify!(_opaque_pthread_mutex_t))
);
assert_eq!(
::std::mem::align_of::<_opaque_pthread_mutex_t>(),
8usize,
concat!("Alignment of ", stringify!(_opaque_pthread_mutex_t))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_opaque_pthread_mutex_t>())).__sig as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(_opaque_pthread_mutex_t),
"::",
stringify!(__sig)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<_opaque_pthread_mutex_t>())).__opaque as *const _ as usize
},
8usize,
concat!(
"Offset of field: ",
stringify!(_opaque_pthread_mutex_t),
"::",
stringify!(__opaque)
)
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _opaque_pthread_mutexattr_t {
pub __sig: ::std::os::raw::c_long,
pub __opaque: [::std::os::raw::c_char; 8usize],
}
#[test]
fn bindgen_test_layout__opaque_pthread_mutexattr_t() {
assert_eq!(
::std::mem::size_of::<_opaque_pthread_mutexattr_t>(),
16usize,
concat!("Size of: ", stringify!(_opaque_pthread_mutexattr_t))
);
assert_eq!(
::std::mem::align_of::<_opaque_pthread_mutexattr_t>(),
8usize,
concat!("Alignment of ", stringify!(_opaque_pthread_mutexattr_t))
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<_opaque_pthread_mutexattr_t>())).__sig as *const _ as usize
},
0usize,
concat!(
"Offset of field: ",
stringify!(_opaque_pthread_mutexattr_t),
"::",
stringify!(__sig)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<_opaque_pthread_mutexattr_t>())).__opaque as *const _ as usize
},
8usize,
concat!(
"Offset of field: ",
stringify!(_opaque_pthread_mutexattr_t),
"::",
stringify!(__opaque)
)
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _opaque_pthread_once_t {
pub __sig: ::std::os::raw::c_long,
pub __opaque: [::std::os::raw::c_char; 8usize],
}
#[test]
fn bindgen_test_layout__opaque_pthread_once_t() {
assert_eq!(
::std::mem::size_of::<_opaque_pthread_once_t>(),
16usize,
concat!("Size of: ", stringify!(_opaque_pthread_once_t))
);
assert_eq!(
::std::mem::align_of::<_opaque_pthread_once_t>(),
8usize,
concat!("Alignment of ", stringify!(_opaque_pthread_once_t))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_opaque_pthread_once_t>())).__sig as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(_opaque_pthread_once_t),
"::",
stringify!(__sig)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_opaque_pthread_once_t>())).__opaque as *const _ as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(_opaque_pthread_once_t),
"::",
stringify!(__opaque)
)
);
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct _opaque_pthread_rwlock_t {
pub __sig: ::std::os::raw::c_long,
pub __opaque: [::std::os::raw::c_char; 192usize],
}
#[test]
fn bindgen_test_layout__opaque_pthread_rwlock_t() {
assert_eq!(
::std::mem::size_of::<_opaque_pthread_rwlock_t>(),
200usize,
concat!("Size of: ", stringify!(_opaque_pthread_rwlock_t))
);
assert_eq!(
::std::mem::align_of::<_opaque_pthread_rwlock_t>(),
8usize,
concat!("Alignment of ", stringify!(_opaque_pthread_rwlock_t))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_opaque_pthread_rwlock_t>())).__sig as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(_opaque_pthread_rwlock_t),
"::",
stringify!(__sig)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<_opaque_pthread_rwlock_t>())).__opaque as *const _ as usize
},
8usize,
concat!(
"Offset of field: ",
stringify!(_opaque_pthread_rwlock_t),
"::",
stringify!(__opaque)
)
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _opaque_pthread_rwlockattr_t {
pub __sig: ::std::os::raw::c_long,
pub __opaque: [::std::os::raw::c_char; 16usize],
}
#[test]
fn bindgen_test_layout__opaque_pthread_rwlockattr_t() {
assert_eq!(
::std::mem::size_of::<_opaque_pthread_rwlockattr_t>(),
24usize,
concat!("Size of: ", stringify!(_opaque_pthread_rwlockattr_t))
);
assert_eq!(
::std::mem::align_of::<_opaque_pthread_rwlockattr_t>(),
8usize,
concat!("Alignment of ", stringify!(_opaque_pthread_rwlockattr_t))
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<_opaque_pthread_rwlockattr_t>())).__sig as *const _ as usize
},
0usize,
concat!(
"Offset of field: ",
stringify!(_opaque_pthread_rwlockattr_t),
"::",
stringify!(__sig)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<_opaque_pthread_rwlockattr_t>())).__opaque as *const _ as usize
},
8usize,
concat!(
"Offset of field: ",
stringify!(_opaque_pthread_rwlockattr_t),
"::",
stringify!(__opaque)
)
);
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct _opaque_pthread_t {
pub __sig: ::std::os::raw::c_long,
pub __cleanup_stack: *mut __darwin_pthread_handler_rec,
pub __opaque: [::std::os::raw::c_char; 8176usize],
}
#[test]
fn bindgen_test_layout__opaque_pthread_t() {
assert_eq!(
::std::mem::size_of::<_opaque_pthread_t>(),
8192usize,
concat!("Size of: ", stringify!(_opaque_pthread_t))
);
assert_eq!(
::std::mem::align_of::<_opaque_pthread_t>(),
8usize,
concat!("Alignment of ", stringify!(_opaque_pthread_t))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_opaque_pthread_t>())).__sig as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(_opaque_pthread_t),
"::",
stringify!(__sig)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<_opaque_pthread_t>())).__cleanup_stack as *const _ as usize
},
8usize,
concat!(
"Offset of field: ",
stringify!(_opaque_pthread_t),
"::",
stringify!(__cleanup_stack)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_opaque_pthread_t>())).__opaque as *const _ as usize },
16usize,
concat!(
"Offset of field: ",
stringify!(_opaque_pthread_t),
"::",
stringify!(__opaque)
)
);
}
pub type __darwin_pthread_attr_t = _opaque_pthread_attr_t;
pub type __darwin_pthread_cond_t = _opaque_pthread_cond_t;
pub type __darwin_pthread_condattr_t = _opaque_pthread_condattr_t;
pub type __darwin_pthread_key_t = ::std::os::raw::c_ulong;
pub type __darwin_pthread_mutex_t = _opaque_pthread_mutex_t;
pub type __darwin_pthread_mutexattr_t = _opaque_pthread_mutexattr_t;
pub type __darwin_pthread_once_t = _opaque_pthread_once_t;
pub type __darwin_pthread_rwlock_t = _opaque_pthread_rwlock_t;
pub type __darwin_pthread_rwlockattr_t = _opaque_pthread_rwlockattr_t;
pub type __darwin_pthread_t = *mut _opaque_pthread_t;
pub type __darwin_nl_item = ::std::os::raw::c_int;
pub type __darwin_wctrans_t = ::std::os::raw::c_int;
pub type __darwin_wctype_t = __uint32_t;
pub const idtype_t_P_ALL: idtype_t = 0;
pub const idtype_t_P_PID: idtype_t = 1;
pub const idtype_t_P_PGID: idtype_t = 2;
pub type idtype_t = u32;
pub type pid_t = __darwin_pid_t;
pub type id_t = __darwin_id_t;
pub type sig_atomic_t = ::std::os::raw::c_int;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __darwin_i386_thread_state {
pub __eax: ::std::os::raw::c_uint,
pub __ebx: ::std::os::raw::c_uint,
pub __ecx: ::std::os::raw::c_uint,
pub __edx: ::std::os::raw::c_uint,
pub __edi: ::std::os::raw::c_uint,
pub __esi: ::std::os::raw::c_uint,
pub __ebp: ::std::os::raw::c_uint,
pub __esp: ::std::os::raw::c_uint,
pub __ss: ::std::os::raw::c_uint,
pub __eflags: ::std::os::raw::c_uint,
pub __eip: ::std::os::raw::c_uint,
pub __cs: ::std::os::raw::c_uint,
pub __ds: ::std::os::raw::c_uint,
pub __es: ::std::os::raw::c_uint,
pub __fs: ::std::os::raw::c_uint,
pub __gs: ::std::os::raw::c_uint,
}
#[test]
fn bindgen_test_layout___darwin_i386_thread_state() {
assert_eq!(
::std::mem::size_of::<__darwin_i386_thread_state>(),
64usize,
concat!("Size of: ", stringify!(__darwin_i386_thread_state))
);
assert_eq!(
::std::mem::align_of::<__darwin_i386_thread_state>(),
4usize,
concat!("Alignment of ", stringify!(__darwin_i386_thread_state))
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<__darwin_i386_thread_state>())).__eax as *const _ as usize
},
0usize,
concat!(
"Offset of field: ",
stringify!(__darwin_i386_thread_state),
"::",
stringify!(__eax)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<__darwin_i386_thread_state>())).__ebx as *const _ as usize
},
4usize,
concat!(
"Offset of field: ",
stringify!(__darwin_i386_thread_state),
"::",
stringify!(__ebx)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<__darwin_i386_thread_state>())).__ecx as *const _ as usize
},
8usize,
concat!(
"Offset of field: ",
stringify!(__darwin_i386_thread_state),
"::",
stringify!(__ecx)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<__darwin_i386_thread_state>())).__edx as *const _ as usize
},
12usize,
concat!(
"Offset of field: ",
stringify!(__darwin_i386_thread_state),
"::",
stringify!(__edx)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<__darwin_i386_thread_state>())).__edi as *const _ as usize
},
16usize,
concat!(
"Offset of field: ",
stringify!(__darwin_i386_thread_state),
"::",
stringify!(__edi)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<__darwin_i386_thread_state>())).__esi as *const _ as usize
},
20usize,
concat!(
"Offset of field: ",
stringify!(__darwin_i386_thread_state),
"::",
stringify!(__esi)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<__darwin_i386_thread_state>())).__ebp as *const _ as usize
},
24usize,
concat!(
"Offset of field: ",
stringify!(__darwin_i386_thread_state),
"::",
stringify!(__ebp)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<__darwin_i386_thread_state>())).__esp as *const _ as usize
},
28usize,
concat!(
"Offset of field: ",
stringify!(__darwin_i386_thread_state),
"::",
stringify!(__esp)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<__darwin_i386_thread_state>())).__ss as *const _ as usize },
32usize,
concat!(
"Offset of field: ",
stringify!(__darwin_i386_thread_state),
"::",
stringify!(__ss)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<__darwin_i386_thread_state>())).__eflags as *const _ as usize
},
36usize,
concat!(
"Offset of field: ",
stringify!(__darwin_i386_thread_state),
"::",
stringify!(__eflags)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<__darwin_i386_thread_state>())).__eip as *const _ as usize
},
40usize,
concat!(
"Offset of field: ",
stringify!(__darwin_i386_thread_state),
"::",
stringify!(__eip)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<__darwin_i386_thread_state>())).__cs as *const _ as usize },
44usize,
concat!(
"Offset of field: ",
stringify!(__darwin_i386_thread_state),
"::",
stringify!(__cs)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<__darwin_i386_thread_state>())).__ds as *const _ as usize },
48usize,
concat!(
"Offset of field: ",
stringify!(__darwin_i386_thread_state),
"::",
stringify!(__ds)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<__darwin_i386_thread_state>())).__es as *const _ as usize },
52usize,
concat!(
"Offset of field: ",
stringify!(__darwin_i386_thread_state),
"::",
stringify!(__es)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<__darwin_i386_thread_state>())).__fs as *const _ as usize },
56usize,
concat!(
"Offset of field: ",
stringify!(__darwin_i386_thread_state),
"::",
stringify!(__fs)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<__darwin_i386_thread_state>())).__gs as *const _ as usize },
60usize,
concat!(
"Offset of field: ",
stringify!(__darwin_i386_thread_state),
"::",
stringify!(__gs)
)
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __darwin_fp_control {
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize], u8>,
pub __bindgen_align: [u16; 0usize],
}
#[test]
fn bindgen_test_layout___darwin_fp_control() {
assert_eq!(
::std::mem::size_of::<__darwin_fp_control>(),
2usize,
concat!("Size of: ", stringify!(__darwin_fp_control))
);
assert_eq!(
::std::mem::align_of::<__darwin_fp_control>(),
2usize,
concat!("Alignment of ", stringify!(__darwin_fp_control))
);
}
impl __darwin_fp_control {
#[inline]
pub fn __invalid(&self) -> ::std::os::raw::c_ushort {
unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u16) }
}
#[inline]
pub fn set___invalid(&mut self, val: ::std::os::raw::c_ushort) {
unsafe {
let val: u16 = ::std::mem::transmute(val);
self._bitfield_1.set(0usize, 1u8, val as u64)
}
}
#[inline]
pub fn __denorm(&self) -> ::std::os::raw::c_ushort {
unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u16) }
}
#[inline]
pub fn set___denorm(&mut self, val: ::std::os::raw::c_ushort) {
unsafe {
let val: u16 = ::std::mem::transmute(val);
self._bitfield_1.set(1usize, 1u8, val as u64)
}
}
#[inline]
pub fn __zdiv(&self) -> ::std::os::raw::c_ushort {
unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u16) }
}
#[inline]
pub fn set___zdiv(&mut self, val: ::std::os::raw::c_ushort) {
unsafe {
let val: u16 = ::std::mem::transmute(val);
self._bitfield_1.set(2usize, 1u8, val as u64)
}
}
#[inline]
pub fn __ovrfl(&self) -> ::std::os::raw::c_ushort {
unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u16) }
}
#[inline]
pub fn set___ovrfl(&mut self, val: ::std::os::raw::c_ushort) {
unsafe {
let val: u16 = ::std::mem::transmute(val);
self._bitfield_1.set(3usize, 1u8, val as u64)
}
}
#[inline]
pub fn __undfl(&self) -> ::std::os::raw::c_ushort {
unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u16) }
}
#[inline]
pub fn set___undfl(&mut self, val: ::std::os::raw::c_ushort) {
unsafe {
let val: u16 = ::std::mem::transmute(val);
self._bitfield_1.set(4usize, 1u8, val as u64)
}
}
#[inline]
pub fn __precis(&self) -> ::std::os::raw::c_ushort {
unsafe { ::std::mem::transmute(self._bitfield_1.get(5usize, 1u8) as u16) }
}
#[inline]
pub fn set___precis(&mut self, val: ::std::os::raw::c_ushort) {
unsafe {
let val: u16 = ::std::mem::transmute(val);
self._bitfield_1.set(5usize, 1u8, val as u64)
}
}
#[inline]
pub fn __pc(&self) -> ::std::os::raw::c_ushort {
unsafe { ::std::mem::transmute(self._bitfield_1.get(8usize, 2u8) as u16) }
}
#[inline]
pub fn set___pc(&mut self, val: ::std::os::raw::c_ushort) {
unsafe {
let val: u16 = ::std::mem::transmute(val);
self._bitfield_1.set(8usize, 2u8, val as u64)
}
}
#[inline]
pub fn __rc(&self) -> ::std::os::raw::c_ushort {
unsafe { ::std::mem::transmute(self._bitfield_1.get(10usize, 2u8) as u16) }
}
#[inline]
pub fn set___rc(&mut self, val: ::std::os::raw::c_ushort) {
unsafe {
let val: u16 = ::std::mem::transmute(val);
self._bitfield_1.set(10usize, 2u8, val as u64)
}
}
#[inline]
pub fn new_bitfield_1(
__invalid: ::std::os::raw::c_ushort,
__denorm: ::std::os::raw::c_ushort,
__zdiv: ::std::os::raw::c_ushort,
__ovrfl: ::std::os::raw::c_ushort,
__undfl: ::std::os::raw::c_ushort,
__precis: ::std::os::raw::c_ushort,
__pc: ::std::os::raw::c_ushort,
__rc: ::std::os::raw::c_ushort,
) -> __BindgenBitfieldUnit<[u8; 2usize], u8> {
let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize], u8> =
Default::default();
__bindgen_bitfield_unit.set(0usize, 1u8, {
let __invalid: u16 = unsafe { ::std::mem::transmute(__invalid) };
__invalid as u64
});
__bindgen_bitfield_unit.set(1usize, 1u8, {
let __denorm: u16 = unsafe { ::std::mem::transmute(__denorm) };
__denorm as u64
});
__bindgen_bitfield_unit.set(2usize, 1u8, {
let __zdiv: u16 = unsafe { ::std::mem::transmute(__zdiv) };
__zdiv as u64
});
__bindgen_bitfield_unit.set(3usize, 1u8, {
let __ovrfl: u16 = unsafe { ::std::mem::transmute(__ovrfl) };
__ovrfl as u64
});
__bindgen_bitfield_unit.set(4usize, 1u8, {
let __undfl: u16 = unsafe { ::std::mem::transmute(__undfl) };
__undfl as u64
});
__bindgen_bitfield_unit.set(5usize, 1u8, {
let __precis: u16 = unsafe { ::std::mem::transmute(__precis) };
__precis as u64
});
__bindgen_bitfield_unit.set(8usize, 2u8, {
let __pc: u16 = unsafe { ::std::mem::transmute(__pc) };
__pc as u64
});
__bindgen_bitfield_unit.set(10usize, 2u8, {
let __rc: u16 = unsafe { ::std::mem::transmute(__rc) };
__rc as u64
});
__bindgen_bitfield_unit
}
}
pub type __darwin_fp_control_t = __darwin_fp_control;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __darwin_fp_status {
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize], u8>,
pub __bindgen_align: [u16; 0usize],
}
#[test]
fn bindgen_test_layout___darwin_fp_status() {
assert_eq!(
::std::mem::size_of::<__darwin_fp_status>(),
2usize,
concat!("Size of: ", stringify!(__darwin_fp_status))
);
assert_eq!(
::std::mem::align_of::<__darwin_fp_status>(),
2usize,
concat!("Alignment of ", stringify!(__darwin_fp_status))
);
}
impl __darwin_fp_status {
#[inline]
pub fn __invalid(&self) -> ::std::os::raw::c_ushort {
unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u16) }
}
#[inline]
pub fn set___invalid(&mut self, val: ::std::os::raw::c_ushort) {
unsafe {
let val: u16 = ::std::mem::transmute(val);
self._bitfield_1.set(0usize, 1u8, val as u64)
}
}
#[inline]
pub fn __denorm(&self) -> ::std::os::raw::c_ushort {
unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u16) }
}
#[inline]
pub fn set___denorm(&mut self, val: ::std::os::raw::c_ushort) {
unsafe {
let val: u16 = ::std::mem::transmute(val);
self._bitfield_1.set(1usize, 1u8, val as u64)
}
}
#[inline]
pub fn __zdiv(&self) -> ::std::os::raw::c_ushort {
unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u16) }
}
#[inline]
pub fn set___zdiv(&mut self, val: ::std::os::raw::c_ushort) {
unsafe {
let val: u16 = ::std::mem::transmute(val);
self._bitfield_1.set(2usize, 1u8, val as u64)
}
}
#[inline]
pub fn __ovrfl(&self) -> ::std::os::raw::c_ushort {
unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u16) }
}
#[inline]
pub fn set___ovrfl(&mut self, val: ::std::os::raw::c_ushort) {
unsafe {
let val: u16 = ::std::mem::transmute(val);
self._bitfield_1.set(3usize, 1u8, val as u64)
}
}
#[inline]
pub fn __undfl(&self) -> ::std::os::raw::c_ushort {
unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u16) }
}
#[inline]
pub fn set___undfl(&mut self, val: ::std::os::raw::c_ushort) {
unsafe {
let val: u16 = ::std::mem::transmute(val);
self._bitfield_1.set(4usize, 1u8, val as u64)
}
}
#[inline]
pub fn __precis(&self) -> ::std::os::raw::c_ushort {
unsafe { ::std::mem::transmute(self._bitfield_1.get(5usize, 1u8) as u16) }
}
#[inline]
pub fn set___precis(&mut self, val: ::std::os::raw::c_ushort) {
unsafe {
let val: u16 = ::std::mem::transmute(val);
self._bitfield_1.set(5usize, 1u8, val as u64)
}
}
#[inline]
pub fn __stkflt(&self) -> ::std::os::raw::c_ushort {
unsafe { ::std::mem::transmute(self._bitfield_1.get(6usize, 1u8) as u16) }
}
#[inline]
pub fn set___stkflt(&mut self, val: ::std::os::raw::c_ushort) {
unsafe {
let val: u16 = ::std::mem::transmute(val);
self._bitfield_1.set(6usize, 1u8, val as u64)
}
}
#[inline]
pub fn __errsumm(&self) -> ::std::os::raw::c_ushort {
unsafe { ::std::mem::transmute(self._bitfield_1.get(7usize, 1u8) as u16) }
}
#[inline]
pub fn set___errsumm(&mut self, val: ::std::os::raw::c_ushort) {
unsafe {
let val: u16 = ::std::mem::transmute(val);
self._bitfield_1.set(7usize, 1u8, val as u64)
}
}
#[inline]
pub fn __c0(&self) -> ::std::os::raw::c_ushort {
unsafe { ::std::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u16) }
}
#[inline]
pub fn set___c0(&mut self, val: ::std::os::raw::c_ushort) {
unsafe {
let val: u16 = ::std::mem::transmute(val);
self._bitfield_1.set(8usize, 1u8, val as u64)
}
}
#[inline]
pub fn __c1(&self) -> ::std::os::raw::c_ushort {
unsafe { ::std::mem::transmute(self._bitfield_1.get(9usize, 1u8) as u16) }
}
#[inline]
pub fn set___c1(&mut self, val: ::std::os::raw::c_ushort) {
unsafe {
let val: u16 = ::std::mem::transmute(val);
self._bitfield_1.set(9usize, 1u8, val as u64)
}
}
#[inline]
pub fn __c2(&self) -> ::std::os::raw::c_ushort {
unsafe { ::std::mem::transmute(self._bitfield_1.get(10usize, 1u8) as u16) }
}
#[inline]
pub fn set___c2(&mut self, val: ::std::os::raw::c_ushort) {
unsafe {
let val: u16 = ::std::mem::transmute(val);
self._bitfield_1.set(10usize, 1u8, val as u64)
}
}
#[inline]
pub fn __tos(&self) -> ::std::os::raw::c_ushort {
unsafe { ::std::mem::transmute(self._bitfield_1.get(11usize, 3u8) as u16) }
}
#[inline]
pub fn set___tos(&mut self, val: ::std::os::raw::c_ushort) {
unsafe {
let val: u16 = ::std::mem::transmute(val);
self._bitfield_1.set(11usize, 3u8, val as u64)
}
}
#[inline]
pub fn __c3(&self) -> ::std::os::raw::c_ushort {
unsafe { ::std::mem::transmute(self._bitfield_1.get(14usize, 1u8) as u16) }
}
#[inline]
pub fn set___c3(&mut self, val: ::std::os::raw::c_ushort) {
unsafe {
let val: u16 = ::std::mem::transmute(val);
self._bitfield_1.set(14usize, 1u8, val as u64)
}
}
#[inline]
pub fn __busy(&self) -> ::std::os::raw::c_ushort {
unsafe { ::std::mem::transmute(self._bitfield_1.get(15usize, 1u8) as u16) }
}
#[inline]
pub fn set___busy(&mut self, val: ::std::os::raw::c_ushort) {
unsafe {
let val: u16 = ::std::mem::transmute(val);
self._bitfield_1.set(15usize, 1u8, val as u64)
}
}
#[inline]
pub fn new_bitfield_1(
__invalid: ::std::os::raw::c_ushort,
__denorm: ::std::os::raw::c_ushort,
__zdiv: ::std::os::raw::c_ushort,
__ovrfl: ::std::os::raw::c_ushort,
__undfl: ::std::os::raw::c_ushort,
__precis: ::std::os::raw::c_ushort,
__stkflt: ::std::os::raw::c_ushort,
__errsumm: ::std::os::raw::c_ushort,
__c0: ::std::os::raw::c_ushort,
__c1: ::std::os::raw::c_ushort,
__c2: ::std::os::raw::c_ushort,
__tos: ::std::os::raw::c_ushort,
__c3: ::std::os::raw::c_ushort,
__busy: ::std::os::raw::c_ushort,
) -> __BindgenBitfieldUnit<[u8; 2usize], u8> {
let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize], u8> =
Default::default();
__bindgen_bitfield_unit.set(0usize, 1u8, {
let __invalid: u16 = unsafe { ::std::mem::transmute(__invalid) };
__invalid as u64
});
__bindgen_bitfield_unit.set(1usize, 1u8, {
let __denorm: u16 = unsafe { ::std::mem::transmute(__denorm) };
__denorm as u64
});
__bindgen_bitfield_unit.set(2usize, 1u8, {
let __zdiv: u16 = unsafe { ::std::mem::transmute(__zdiv) };
__zdiv as u64
});
__bindgen_bitfield_unit.set(3usize, 1u8, {
let __ovrfl: u16 = unsafe { ::std::mem::transmute(__ovrfl) };
__ovrfl as u64
});
__bindgen_bitfield_unit.set(4usize, 1u8, {
let __undfl: u16 = unsafe { ::std::mem::transmute(__undfl) };
__undfl as u64
});
__bindgen_bitfield_unit.set(5usize, 1u8, {
let __precis: u16 = unsafe { ::std::mem::transmute(__precis) };
__precis as u64
});
__bindgen_bitfield_unit.set(6usize, 1u8, {
let __stkflt: u16 = unsafe { ::std::mem::transmute(__stkflt) };
__stkflt as u64
});
__bindgen_bitfield_unit.set(7usize, 1u8, {
let __errsumm: u16 = unsafe { ::std::mem::transmute(__errsumm) };
__errsumm as u64
});
__bindgen_bitfield_unit.set(8usize, 1u8, {
let __c0: u16 = unsafe { ::std::mem::transmute(__c0) };
__c0 as u64
});
__bindgen_bitfield_unit.set(9usize, 1u8, {
let __c1: u16 = unsafe { ::std::mem::transmute(__c1) };
__c1 as u64
});
__bindgen_bitfield_unit.set(10usize, 1u8, {
let __c2: u16 = unsafe { ::std::mem::transmute(__c2) };
__c2 as u64
});
__bindgen_bitfield_unit.set(11usize, 3u8, {
let __tos: u16 = unsafe { ::std::mem::transmute(__tos) };
__tos as u64
});
__bindgen_bitfield_unit.set(14usize, 1u8, {
let __c3: u16 = unsafe { ::std::mem::transmute(__c3) };
__c3 as u64
});
__bindgen_bitfield_unit.set(15usize, 1u8, {
let __busy: u16 = unsafe { ::std::mem::transmute(__busy) };
__busy as u64
});
__bindgen_bitfield_unit
}
}
pub type __darwin_fp_status_t = __darwin_fp_status;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __darwin_mmst_reg {
pub __mmst_reg: [::std::os::raw::c_char; 10usize],
pub __mmst_rsrv: [::std::os::raw::c_char; 6usize],
}
#[test]
fn bindgen_test_layout___darwin_mmst_reg() {
assert_eq!(
::std::mem::size_of::<__darwin_mmst_reg>(),
16usize,
concat!("Size of: ", stringify!(__darwin_mmst_reg))
);
assert_eq!(
::std::mem::align_of::<__darwin_mmst_reg>(),
1usize,
concat!("Alignment of ", stringify!(__darwin_mmst_reg))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<__darwin_mmst_reg>())).__mmst_reg as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(__darwin_mmst_reg),
"::",
stringify!(__mmst_reg)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<__darwin_mmst_reg>())).__mmst_rsrv as *const _ as usize },
10usize,
concat!(
"Offset of field: ",
stringify!(__darwin_mmst_reg),
"::",
stringify!(__mmst_rsrv)
)
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __darwin_xmm_reg {
pub __xmm_reg: [::std::os::raw::c_char; 16usize],
}
#[test]
fn bindgen_test_layout___darwin_xmm_reg() {
assert_eq!(
::std::mem::size_of::<__darwin_xmm_reg>(),
16usize,
concat!("Size of: ", stringify!(__darwin_xmm_reg))
);
assert_eq!(
::std::mem::align_of::<__darwin_xmm_reg>(),
1usize,
concat!("Alignment of ", stringify!(__darwin_xmm_reg))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<__darwin_xmm_reg>())).__xmm_reg as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(__darwin_xmm_reg),
"::",
stringify!(__xmm_reg)
)
);
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct __darwin_i386_float_state {
pub __fpu_reserved: [::std::os::raw::c_int; 2usize],
pub __fpu_fcw: __darwin_fp_control,
pub __fpu_fsw: __darwin_fp_status,
pub __fpu_ftw: __uint8_t,
pub __fpu_rsrv1: __uint8_t,
pub __fpu_fop: __uint16_t,
pub __fpu_ip: __uint32_t,
pub __fpu_cs: __uint16_t,
pub __fpu_rsrv2: __uint16_t,
pub __fpu_dp: __uint32_t,
pub __fpu_ds: __uint16_t,
pub __fpu_rsrv3: __uint16_t,
pub __fpu_mxcsr: __uint32_t,
pub __fpu_mxcsrmask: __uint32_t,
pub __fpu_stmm0: __darwin_mmst_reg,
pub __fpu_stmm1: __darwin_mmst_reg,
pub __fpu_stmm2: __darwin_mmst_reg,
pub __fpu_stmm3: __darwin_mmst_reg,
pub __fpu_stmm4: __darwin_mmst_reg,
pub __fpu_stmm5: __darwin_mmst_reg,
pub __fpu_stmm6: __darwin_mmst_reg,
pub __fpu_stmm7: __darwin_mmst_reg,
pub __fpu_xmm0: __darwin_xmm_reg,
pub __fpu_xmm1: __darwin_xmm_reg,
pub __fpu_xmm2: __darwin_xmm_reg,
pub __fpu_xmm3: __darwin_xmm_reg,
pub __fpu_xmm4: __darwin_xmm_reg,
pub __fpu_xmm5: __darwin_xmm_reg,
pub __fpu_xmm6: __darwin_xmm_reg,
pub __fpu_xmm7: __darwin_xmm_reg,
pub __fpu_rsrv4: [::std::os::raw::c_char; 224usize],
pub __fpu_reserved1: ::std::os::raw::c_int,
}
#[test]
fn bindgen_test_layout___darwin_i386_float_state() {
assert_eq!(
::std::mem::size_of::<__darwin_i386_float_state>(),
524usize,
concat!("Size of: ", stringify!(__darwin_i386_float_state))
);
assert_eq!(
::std::mem::align_of::<__darwin_i386_float_state>(),
4usize,
concat!("Alignment of ", stringify!(__darwin_i386_float_state))
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_reserved as *const _
as usize
},
0usize,
concat!(
"Offset of field: ",
stringify!(__darwin_i386_float_state),
"::",
stringify!(__fpu_reserved)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_fcw as *const _ as usize
},
8usize,
concat!(
"Offset of field: ",
stringify!(__darwin_i386_float_state),
"::",
stringify!(__fpu_fcw)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_fsw as *const _ as usize
},
10usize,
concat!(
"Offset of field: ",
stringify!(__darwin_i386_float_state),
"::",
stringify!(__fpu_fsw)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_ftw as *const _ as usize
},
12usize,
concat!(
"Offset of field: ",
stringify!(__darwin_i386_float_state),
"::",
stringify!(__fpu_ftw)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_rsrv1 as *const _ as usize
},
13usize,
concat!(
"Offset of field: ",
stringify!(__darwin_i386_float_state),
"::",
stringify!(__fpu_rsrv1)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_fop as *const _ as usize
},
14usize,
concat!(
"Offset of field: ",
stringify!(__darwin_i386_float_state),
"::",
stringify!(__fpu_fop)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_ip as *const _ as usize
},
16usize,
concat!(
"Offset of field: ",
stringify!(__darwin_i386_float_state),
"::",
stringify!(__fpu_ip)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_cs as *const _ as usize
},
20usize,
concat!(
"Offset of field: ",
stringify!(__darwin_i386_float_state),
"::",
stringify!(__fpu_cs)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_rsrv2 as *const _ as usize
},
22usize,
concat!(
"Offset of field: ",
stringify!(__darwin_i386_float_state),
"::",
stringify!(__fpu_rsrv2)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_dp as *const _ as usize
},
24usize,
concat!(
"Offset of field: ",
stringify!(__darwin_i386_float_state),
"::",
stringify!(__fpu_dp)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_ds as *const _ as usize
},
28usize,
concat!(
"Offset of field: ",
stringify!(__darwin_i386_float_state),
"::",
stringify!(__fpu_ds)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_rsrv3 as *const _ as usize
},
30usize,
concat!(
"Offset of field: ",
stringify!(__darwin_i386_float_state),
"::",
stringify!(__fpu_rsrv3)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_mxcsr as *const _ as usize
},
32usize,
concat!(
"Offset of field: ",
stringify!(__darwin_i386_float_state),
"::",
stringify!(__fpu_mxcsr)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_mxcsrmask as *const _
as usize
},
36usize,
concat!(
"Offset of field: ",
stringify!(__darwin_i386_float_state),
"::",
stringify!(__fpu_mxcsrmask)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_stmm0 as *const _ as usize
},
40usize,
concat!(
"Offset of field: ",
stringify!(__darwin_i386_float_state),
"::",
stringify!(__fpu_stmm0)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_stmm1 as *const _ as usize
},
56usize,
concat!(
"Offset of field: ",
stringify!(__darwin_i386_float_state),
"::",
stringify!(__fpu_stmm1)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_stmm2 as *const _ as usize
},
72usize,
concat!(
"Offset of field: ",
stringify!(__darwin_i386_float_state),
"::",
stringify!(__fpu_stmm2)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_stmm3 as *const _ as usize
},
88usize,
concat!(
"Offset of field: ",
stringify!(__darwin_i386_float_state),
"::",
stringify!(__fpu_stmm3)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_stmm4 as *const _ as usize
},
104usize,
concat!(
"Offset of field: ",
stringify!(__darwin_i386_float_state),
"::",
stringify!(__fpu_stmm4)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_stmm5 as *const _ as usize
},
120usize,
concat!(
"Offset of field: ",
stringify!(__darwin_i386_float_state),
"::",
stringify!(__fpu_stmm5)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_stmm6 as *const _ as usize
},
136usize,
concat!(
"Offset of field: ",
stringify!(__darwin_i386_float_state),
"::",
stringify!(__fpu_stmm6)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_stmm7 as *const _ as usize
},
152usize,
concat!(
"Offset of field: ",
stringify!(__darwin_i386_float_state),
"::",
stringify!(__fpu_stmm7)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_xmm0 as *const _ as usize
},
168usize,
concat!(
"Offset of field: ",
stringify!(__darwin_i386_float_state),
"::",
stringify!(__fpu_xmm0)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_xmm1 as *const _ as usize
},
184usize,
concat!(
"Offset of field: ",
stringify!(__darwin_i386_float_state),
"::",
stringify!(__fpu_xmm1)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_xmm2 as *const _ as usize
},
200usize,
concat!(
"Offset of field: ",
stringify!(__darwin_i386_float_state),
"::",
stringify!(__fpu_xmm2)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_xmm3 as *const _ as usize
},
216usize,
concat!(
"Offset of field: ",
stringify!(__darwin_i386_float_state),
"::",
stringify!(__fpu_xmm3)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_xmm4 as *const _ as usize
},
232usize,
concat!(
"Offset of field: ",
stringify!(__darwin_i386_float_state),
"::",
stringify!(__fpu_xmm4)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_xmm5 as *const _ as usize
},
248usize,
concat!(
"Offset of field: ",
stringify!(__darwin_i386_float_state),
"::",
stringify!(__fpu_xmm5)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_xmm6 as *const _ as usize
},
264usize,
concat!(
"Offset of field: ",
stringify!(__darwin_i386_float_state),
"::",
stringify!(__fpu_xmm6)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_xmm7 as *const _ as usize
},
280usize,
concat!(
"Offset of field: ",
stringify!(__darwin_i386_float_state),
"::",
stringify!(__fpu_xmm7)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_rsrv4 as *const _ as usize
},
296usize,
concat!(
"Offset of field: ",
stringify!(__darwin_i386_float_state),
"::",
stringify!(__fpu_rsrv4)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_reserved1 as *const _
as usize
},
520usize,
concat!(
"Offset of field: ",
stringify!(__darwin_i386_float_state),
"::",
stringify!(__fpu_reserved1)
)
);
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct __darwin_i386_avx_state {
pub __fpu_reserved: [::std::os::raw::c_int; 2usize],
pub __fpu_fcw: __darwin_fp_control,
pub __fpu_fsw: __darwin_fp_status,
pub __fpu_ftw: __uint8_t,
pub __fpu_rsrv1: __uint8_t,
pub __fpu_fop: __uint16_t,
pub __fpu_ip: __uint32_t,
pub __fpu_cs: __uint16_t,
pub __fpu_rsrv2: __uint16_t,
pub __fpu_dp: __uint32_t,
pub __fpu_ds: __uint16_t,
pub __fpu_rsrv3: __uint16_t,
pub __fpu_mxcsr: __uint32_t,
pub __fpu_mxcsrmask: __uint32_t,
pub __fpu_stmm0: __darwin_mmst_reg,
pub __fpu_stmm1: __darwin_mmst_reg,
pub __fpu_stmm2: __darwin_mmst_reg,
pub __fpu_stmm3: __darwin_mmst_reg,
pub __fpu_stmm4: __darwin_mmst_reg,
pub __fpu_stmm5: __darwin_mmst_reg,
pub __fpu_stmm6: __darwin_mmst_reg,
pub __fpu_stmm7: __darwin_mmst_reg,
pub __fpu_xmm0: __darwin_xmm_reg,
pub __fpu_xmm1: __darwin_xmm_reg,
pub __fpu_xmm2: __darwin_xmm_reg,
pub __fpu_xmm3: __darwin_xmm_reg,
pub __fpu_xmm4: __darwin_xmm_reg,
pub __fpu_xmm5: __darwin_xmm_reg,
pub __fpu_xmm6: __darwin_xmm_reg,
pub __fpu_xmm7: __darwin_xmm_reg,
pub __fpu_rsrv4: [::std::os::raw::c_char; 224usize],
pub __fpu_reserved1: ::std::os::raw::c_int,
pub __avx_reserved1: [::std::os::raw::c_char; 64usize],
pub __fpu_ymmh0: __darwin_xmm_reg,
pub __fpu_ymmh1: __darwin_xmm_reg,
pub __fpu_ymmh2: __darwin_xmm_reg,
pub __fpu_ymmh3: __darwin_xmm_reg,
pub __fpu_ymmh4: __darwin_xmm_reg,
pub __fpu_ymmh5: __darwin_xmm_reg,
pub __fpu_ymmh6: __darwin_xmm_reg,
pub __fpu_ymmh7: __darwin_xmm_reg,
}
#[test]
fn bindgen_test_layout___darwin_i386_avx_state() {
assert_eq!(
::std::mem::size_of::<__darwin_i386_avx_state>(),
716usize,
concat!("Size of: ", stringify!(__darwin_i386_avx_state))
);
assert_eq!(
::std::mem::align_of::<__darwin_i386_avx_state>(),
4usize,
concat!("Alignment of ", stringify!(__darwin_i386_avx_state))
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_reserved as *const _ as usize
},
0usize,
concat!(
"Offset of field: ",
stringify!(__darwin_i386_avx_state),
"::",
stringify!(__fpu_reserved)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_fcw as *const _ as usize
},
8usize,
concat!(
"Offset of field: ",
stringify!(__darwin_i386_avx_state),
"::",
stringify!(__fpu_fcw)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_fsw as *const _ as usize
},
10usize,
concat!(
"Offset of field: ",
stringify!(__darwin_i386_avx_state),
"::",
stringify!(__fpu_fsw)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_ftw as *const _ as usize
},
12usize,
concat!(
"Offset of field: ",
stringify!(__darwin_i386_avx_state),
"::",
stringify!(__fpu_ftw)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_rsrv1 as *const _ as usize
},
13usize,
concat!(
"Offset of field: ",
stringify!(__darwin_i386_avx_state),
"::",
stringify!(__fpu_rsrv1)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_fop as *const _ as usize
},
14usize,
concat!(
"Offset of field: ",
stringify!(__darwin_i386_avx_state),
"::",
stringify!(__fpu_fop)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_ip as *const _ as usize
},
16usize,
concat!(
"Offset of field: ",
stringify!(__darwin_i386_avx_state),
"::",
stringify!(__fpu_ip)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_cs as *const _ as usize
},
20usize,
concat!(
"Offset of field: ",
stringify!(__darwin_i386_avx_state),
"::",
stringify!(__fpu_cs)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_rsrv2 as *const _ as usize
},
22usize,
concat!(
"Offset of field: ",
stringify!(__darwin_i386_avx_state),
"::",
stringify!(__fpu_rsrv2)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_dp as *const _ as usize
},
24usize,
concat!(
"Offset of field: ",
stringify!(__darwin_i386_avx_state),
"::",
stringify!(__fpu_dp)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_ds as *const _ as usize
},
28usize,
concat!(
"Offset of field: ",
stringify!(__darwin_i386_avx_state),
"::",
stringify!(__fpu_ds)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_rsrv3 as *const _ as usize
},
30usize,
concat!(
"Offset of field: ",
stringify!(__darwin_i386_avx_state),
"::",
stringify!(__fpu_rsrv3)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_mxcsr as *const _ as usize
},
32usize,
concat!(
"Offset of field: ",
stringify!(__darwin_i386_avx_state),
"::",
stringify!(__fpu_mxcsr)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_mxcsrmask as *const _ as usize
},
36usize,
concat!(
"Offset of field: ",
stringify!(__darwin_i386_avx_state),
"::",
stringify!(__fpu_mxcsrmask)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_stmm0 as *const _ as usize
},
40usize,
concat!(
"Offset of field: ",
stringify!(__darwin_i386_avx_state),
"::",
stringify!(__fpu_stmm0)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_stmm1 as *const _ as usize
},
56usize,
concat!(
"Offset of field: ",
stringify!(__darwin_i386_avx_state),
"::",
stringify!(__fpu_stmm1)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_stmm2 as *const _ as usize
},
72usize,
concat!(
"Offset of field: ",
stringify!(__darwin_i386_avx_state),
"::",
stringify!(__fpu_stmm2)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_stmm3 as *const _ as usize
},
88usize,
concat!(
"Offset of field: ",
stringify!(__darwin_i386_avx_state),
"::",
stringify!(__fpu_stmm3)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_stmm4 as *const _ as usize
},
104usize,
concat!(
"Offset of field: ",
stringify!(__darwin_i386_avx_state),
"::",
stringify!(__fpu_stmm4)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_stmm5 as *const _ as usize
},
120usize,
concat!(
"Offset of field: ",
stringify!(__darwin_i386_avx_state),
"::",
stringify!(__fpu_stmm5)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_stmm6 as *const _ as usize
},
136usize,
concat!(
"Offset of field: ",
stringify!(__darwin_i386_avx_state),
"::",
stringify!(__fpu_stmm6)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_stmm7 as *const _ as usize
},
152usize,
concat!(
"Offset of field: ",
stringify!(__darwin_i386_avx_state),
"::",
stringify!(__fpu_stmm7)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_xmm0 as *const _ as usize
},
168usize,
concat!(
"Offset of field: ",
stringify!(__darwin_i386_avx_state),
"::",
stringify!(__fpu_xmm0)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_xmm1 as *const _ as usize
},
184usize,
concat!(
"Offset of field: ",
stringify!(__darwin_i386_avx_state),
"::",
stringify!(__fpu_xmm1)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_xmm2 as *const _ as usize
},
200usize,
concat!(
"Offset of field: ",
stringify!(__darwin_i386_avx_state),
"::",
stringify!(__fpu_xmm2)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_xmm3 as *const _ as usize
},
216usize,
concat!(
"Offset of field: ",
stringify!(__darwin_i386_avx_state),
"::",
stringify!(__fpu_xmm3)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_xmm4 as *const _ as usize
},
232usize,
concat!(
"Offset of field: ",
stringify!(__darwin_i386_avx_state),
"::",
stringify!(__fpu_xmm4)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_xmm5 as *const _ as usize
},
248usize,
concat!(
"Offset of field: ",
stringify!(__darwin_i386_avx_state),
"::",
stringify!(__fpu_xmm5)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_xmm6 as *const _ as usize
},
264usize,
concat!(
"Offset of field: ",
stringify!(__darwin_i386_avx_state),
"::",
stringify!(__fpu_xmm6)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_xmm7 as *const _ as usize
},
280usize,
concat!(
"Offset of field: ",
stringify!(__darwin_i386_avx_state),
"::",
stringify!(__fpu_xmm7)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_rsrv4 as *const _ as usize
},
296usize,
concat!(
"Offset of field: ",
stringify!(__darwin_i386_avx_state),
"::",
stringify!(__fpu_rsrv4)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_reserved1 as *const _ as usize
},
520usize,
concat!(
"Offset of field: ",
stringify!(__darwin_i386_avx_state),
"::",
stringify!(__fpu_reserved1)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<__darwin_i386_avx_state>())).__avx_reserved1 as *const _ as usize
},
524usize,
concat!(
"Offset of field: ",
stringify!(__darwin_i386_avx_state),
"::",
stringify!(__avx_reserved1)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_ymmh0 as *const _ as usize
},
588usize,
concat!(
"Offset of field: ",
stringify!(__darwin_i386_avx_state),
"::",
stringify!(__fpu_ymmh0)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_ymmh1 as *const _ as usize
},
604usize,
concat!(
"Offset of field: ",
stringify!(__darwin_i386_avx_state),
"::",
stringify!(__fpu_ymmh1)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_ymmh2 as *const _ as usize
},
620usize,
concat!(
"Offset of field: ",
stringify!(__darwin_i386_avx_state),
"::",
stringify!(__fpu_ymmh2)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_ymmh3 as *const _ as usize
},
636usize,
concat!(
"Offset of field: ",
stringify!(__darwin_i386_avx_state),
"::",
stringify!(__fpu_ymmh3)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_ymmh4 as *const _ as usize
},
652usize,
concat!(
"Offset of field: ",
stringify!(__darwin_i386_avx_state),
"::",
stringify!(__fpu_ymmh4)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_ymmh5 as *const _ as usize
},
668usize,
concat!(
"Offset of field: ",
stringify!(__darwin_i386_avx_state),
"::",
stringify!(__fpu_ymmh5)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_ymmh6 as *const _ as usize
},
684usize,
concat!(
"Offset of field: ",
stringify!(__darwin_i386_avx_state),
"::",
stringify!(__fpu_ymmh6)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_ymmh7 as *const _ as usize
},
700usize,
concat!(
"Offset of field: ",
stringify!(__darwin_i386_avx_state),
"::",
stringify!(__fpu_ymmh7)
)
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __darwin_i386_exception_state {
pub __trapno: __uint16_t,
pub __cpu: __uint16_t,
pub __err: __uint32_t,
pub __faultvaddr: __uint32_t,
}
#[test]
fn bindgen_test_layout___darwin_i386_exception_state() {
assert_eq!(
::std::mem::size_of::<__darwin_i386_exception_state>(),
12usize,
concat!("Size of: ", stringify!(__darwin_i386_exception_state))
);
assert_eq!(
::std::mem::align_of::<__darwin_i386_exception_state>(),
4usize,
concat!("Alignment of ", stringify!(__darwin_i386_exception_state))
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<__darwin_i386_exception_state>())).__trapno as *const _ as usize
},
0usize,
concat!(
"Offset of field: ",
stringify!(__darwin_i386_exception_state),
"::",
stringify!(__trapno)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<__darwin_i386_exception_state>())).__cpu as *const _ as usize
},
2usize,
concat!(
"Offset of field: ",
stringify!(__darwin_i386_exception_state),
"::",
stringify!(__cpu)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<__darwin_i386_exception_state>())).__err as *const _ as usize
},
4usize,
concat!(
"Offset of field: ",
stringify!(__darwin_i386_exception_state),
"::",
stringify!(__err)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<__darwin_i386_exception_state>())).__faultvaddr as *const _
as usize
},
8usize,
concat!(
"Offset of field: ",
stringify!(__darwin_i386_exception_state),
"::",
stringify!(__faultvaddr)