[INFO] cloning repository https://github.com/He-RT/seed-finder
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/He-RT/seed-finder" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FHe-RT%2Fseed-finder", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FHe-RT%2Fseed-finder'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 84c0b464b014032c22d7cf4e4991bfbe6b1aaee5
[INFO] checking He-RT/seed-finder against 4a9d5368df6450bbd2fc8dde4508c3e5d83bb19d for pr-159598
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FHe-RT%2Fseed-finder" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/He-RT/seed-finder
[INFO] finished tweaking git repo https://github.com/He-RT/seed-finder
[INFO] tweaked toml for git repo https://github.com/He-RT/seed-finder written to /workspace/builds/worker-2-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/He-RT/seed-finder on toolchain 4a9d5368df6450bbd2fc8dde4508c3e5d83bb19d
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4a9d5368df6450bbd2fc8dde4508c3e5d83bb19d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/He-RT/seed-finder already has a lockfile, it will not be regenerated
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4a9d5368df6450bbd2fc8dde4508c3e5d83bb19d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:00c5645b54fe3ce5dae1417175e3c7fb6a6646c021d554ecd63a097b8b9f3602" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] 681db6919db744c68899f0fcf7f6dc08bfd504983ae687a7de59b98bb786b396
[INFO] running `Command { std: "docker" "start" "681db6919db744c68899f0fcf7f6dc08bfd504983ae687a7de59b98bb786b396", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "681db6919db744c68899f0fcf7f6dc08bfd504983ae687a7de59b98bb786b396", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "681db6919db744c68899f0fcf7f6dc08bfd504983ae687a7de59b98bb786b396" "/opt/rustwide/cargo-home/bin/cargo" "+4a9d5368df6450bbd2fc8dde4508c3e5d83bb19d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "681db6919db744c68899f0fcf7f6dc08bfd504983ae687a7de59b98bb786b396", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-w" "/opt/rustwide/workdir" "--user" "0:0" "681db6919db744c68899f0fcf7f6dc08bfd504983ae687a7de59b98bb786b396" "/opt/rustwide/cargo-home/bin/cargo" "+4a9d5368df6450bbd2fc8dde4508c3e5d83bb19d" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stderr]     Checking smallvec v1.15.1
[INFO] [stderr]    Compiling libc v0.2.183
[INFO] [stderr]    Compiling pkg-config v0.3.32
[INFO] [stderr]    Compiling crossbeam-utils v0.8.21
[INFO] [stderr]    Compiling winnow v1.0.0
[INFO] [stderr]     Checking rustix v1.1.4
[INFO] [stderr]    Compiling cc v1.2.57
[INFO] [stderr]    Compiling hashbrown v0.16.1
[INFO] [stderr]    Compiling toml_datetime v1.1.0+spec-1.1.0
[INFO] [stderr]     Checking writeable v0.6.2
[INFO] [stderr]    Compiling winnow v0.7.15
[INFO] [stderr]     Checking litemap v0.8.1
[INFO] [stderr]    Compiling icu_normalizer_data v2.1.1
[INFO] [stderr]    Compiling icu_properties_data v2.1.2
[INFO] [stderr]    Compiling zerofrom-derive v0.1.6
[INFO] [stderr]    Compiling yoke-derive v0.8.1
[INFO] [stderr]    Compiling zerovec-derive v0.11.2
[INFO] [stderr]    Compiling serde v1.0.228
[INFO] [stderr]    Compiling quick-xml v0.39.2
[INFO] [stderr]     Checking fastrand v2.3.0
[INFO] [stderr]    Compiling wayland-client v0.31.13
[INFO] [stderr]     Checking tracing v0.1.44
[INFO] [stderr]     Checking futures-lite v2.6.1
[INFO] [stderr]    Compiling indexmap v2.13.0
[INFO] [stderr]    Compiling wayland-sys v0.31.10
[INFO] [stderr]     Checking form_urlencoded v1.2.2
[INFO] [stderr]    Compiling async-io v2.6.0
[INFO] [stderr]     Checking concurrent-queue v2.5.0
[INFO] [stderr]     Checking enumflags2 v0.7.12
[INFO] [stderr]    Compiling zerocopy v0.8.47
[INFO] [stderr]     Checking piper v0.2.5
[INFO] [stderr]     Checking bytemuck v1.25.0
[INFO] [stderr]     Checking event-listener v5.4.1
[INFO] [stderr]    Compiling quick-xml v0.38.4
[INFO] [stderr]     Checking uuid v1.22.0
[INFO] [stderr]     Checking event-listener-strategy v0.5.4
[INFO] [stderr]    Compiling thiserror-impl v1.0.69
[INFO] [stderr]     Checking async-channel v2.5.0
[INFO] [stderr]     Checking async-lock v3.4.2
[INFO] [stderr]     Checking async-broadcast v0.7.2
[INFO] [stderr]    Compiling toml_parser v1.1.0+spec-1.1.0
[INFO] [stderr]    Compiling wayland-scanner v0.31.9
[INFO] [stderr]     Checking rustix v0.38.44
[INFO] [stderr]    Compiling gl_generator v0.14.0
[INFO] [stderr]     Checking blocking v1.6.2
[INFO] [stderr]     Checking zerofrom v0.1.6
[INFO] [stderr]     Checking errno v0.3.14
[INFO] [stderr]     Checking yoke v0.8.1
[INFO] [stderr]    Compiling toml_edit v0.25.8+spec-1.1.0
[INFO] [stderr]    Compiling wayland-backend v0.3.14
[INFO] [stderr]     Checking signal-hook-registry v1.4.8
[INFO] [stderr]     Checking getrandom v0.3.4
[INFO] [stderr]     Checking async-executor v1.14.0
[INFO] [stderr]     Checking memmap2 v0.9.10
[INFO] [stderr]    Compiling x11-dl v2.21.0
[INFO] [stderr]    Compiling glob v0.3.3
[INFO] [stderr]     Checking zerovec v0.11.5
[INFO] [stderr]     Checking zerotrie v0.2.3
[INFO] [stderr]     Checking accesskit v0.21.1
[INFO] [stderr]     Checking simd-adler32 v0.3.8
[INFO] [stderr]     Checking tiny-skia-path v0.11.4
[INFO] [stderr]     Checking zvariant_utils v3.3.0
[INFO] [stderr]     Checking thiserror v1.0.69
[INFO] [stderr]     Checking parking_lot_core v0.9.12
[INFO] [stderr]    Compiling proc-macro-crate v3.5.0
[INFO] [stderr]    Compiling clang-sys v1.8.1
[INFO] [stderr]    Compiling regex-syntax v0.8.10
[INFO] [stderr]    Compiling minimal-lexical v0.2.1
[INFO] [stderr]     Checking futures-util v0.3.32
[INFO] [stderr]    Compiling nom v7.1.3
[INFO] [stderr]     Checking miniz_oxide v0.8.9
[INFO] [stderr]    Compiling libloading v0.8.9
[INFO] [stderr]     Checking tinystr v0.8.2
[INFO] [stderr]     Checking potential_utf v0.1.4
[INFO] [stderr]     Checking tiny-skia v0.11.4
[INFO] [stderr]     Checking parking_lot v0.12.5
[INFO] [stderr]     Checking icu_collections v2.1.1
[INFO] [stderr]     Checking icu_locale_core v2.1.1
[INFO] [stderr]    Compiling zvariant_derive v5.10.0
[INFO] [stderr]     Checking emath v0.33.3
[INFO] [stderr]    Compiling bindgen v0.71.1
[INFO] [stderr]    Compiling either v1.15.0
[INFO] [stderr]     Checking ecolor v0.33.3
[INFO] [stderr]     Checking polling v3.11.0
[INFO] [stderr]     Checking gethostname v1.1.0
[INFO] [stderr]    Compiling itertools v0.13.0
[INFO] [stderr]     Checking calloop v0.14.4
[INFO] [stderr]     Checking x11rb v0.13.2
[INFO] [stderr]    Compiling regex-automata v0.4.14
[INFO] [stderr]     Checking icu_provider v2.1.1
[INFO] [stderr]     Checking calloop v0.13.0
[INFO] [stderr]     Checking flate2 v1.1.9
[INFO] [stderr]     Checking async-signal v0.2.13
[INFO] [stderr]     Checking icu_properties v2.1.2
[INFO] [stderr]     Checking icu_normalizer v2.1.1
[INFO] [stderr]     Checking async-process v2.5.0
[INFO] [stderr]     Checking accesskit_consumer v0.31.0
[INFO] [stderr]     Checking wayland-csd-frame v0.3.0
[INFO] [stderr]     Checking fdeflate v0.3.7
[INFO] [stderr]    Compiling zvariant v5.10.0
[INFO] [stderr]    Compiling glutin_egl_sys v0.7.1
[INFO] [stderr]    Compiling cexpr v0.6.0
[INFO] [stderr]    Compiling glutin_glx_sys v0.6.1
[INFO] [stderr]     Checking xkbcommon-dl v0.4.2
[INFO] [stderr]     Checking epaint_default_fonts v0.33.3
[INFO] [stderr]     Checking smol_str v0.2.2
[INFO] [stderr]    Compiling smithay-client-toolkit v0.20.0
[INFO] [stderr]     Checking dpi v0.1.2
[INFO] [stderr]    Compiling bitflags v2.11.0
[INFO] [stderr]    Compiling rustc-hash v2.1.1
[INFO] [stderr]     Checking pxfm v0.1.28
[INFO] [stderr]     Checking profiling v1.0.17
[INFO] [stderr]     Checking png v0.18.1
[INFO] [stderr]     Checking rand_core v0.9.5
[INFO] [stderr]    Compiling glutin v0.32.3
[INFO] [stderr]     Checking idna_adapter v1.2.1
[INFO] [stderr]    Compiling memoffset v0.9.1
[INFO] [stderr]     Checking idna v1.1.0
[INFO] [stderr]     Checking unicode-segmentation v1.13.1
[INFO] [stderr]     Checking byteorder-lite v0.1.0
[INFO] [stderr]     Checking url v2.5.8
[INFO] [stderr]    Compiling glutin-winit v0.5.0
[INFO] [stderr]     Checking async-net v2.0.0
[INFO] [stderr]     Checking async-fs v2.2.0
[INFO] [stderr]    Compiling regex v1.12.3
[INFO] [stderr]    Compiling num-derive v0.4.2
[INFO] [stderr]     Checking futures-channel v0.3.32
[INFO] [stderr]     Checking web-time v1.1.0
[INFO] [stderr]    Compiling rfd v0.15.4
[INFO] [stderr]     Checking pollster v0.4.0
[INFO] [stderr]     Checking webbrowser v1.2.0
[INFO] [stderr]     Checking wayland-protocols v0.32.11
[INFO] [stderr]     Checking wayland-cursor v0.31.13
[INFO] [stderr]     Checking calloop-wayland-source v0.3.0
[INFO] [stderr]     Checking calloop-wayland-source v0.4.1
[INFO] [stderr]     Checking ahash v0.8.12
[INFO] [stderr]     Checking ppv-lite86 v0.2.21
[INFO] [stderr]     Checking epaint v0.33.3
[INFO] [stderr]     Checking rand_chacha v0.9.0
[INFO] [stderr]     Checking rand v0.9.2
[INFO] [stderr]    Compiling zbus_names v4.3.1
[INFO] [stderr]     Checking egui v0.33.3
[INFO] [stderr]    Compiling zbus_xml v5.1.0
[INFO] [stderr]    Compiling zbus_macros v5.14.0
[INFO] [stderr]     Checking moxcms v0.8.1
[INFO] [stderr]    Compiling zbus-lockstep v0.5.2
[INFO] [stderr]    Compiling zbus-lockstep-macros v0.5.2
[INFO] [stderr]     Checking zbus v5.14.0
[INFO] [stderr]     Checking egui_glow v0.33.3
[INFO] [stderr]     Checking image v0.25.10
[INFO] [stderr]     Checking wayland-protocols-wlr v0.3.11
[INFO] [stderr]     Checking wayland-protocols-plasma v0.3.11
[INFO] [stderr]     Checking wayland-protocols-misc v0.3.11
[INFO] [stderr]     Checking wayland-protocols-experimental v20250721.0.1
[INFO] [stderr]     Checking smithay-client-toolkit v0.19.2
[INFO] [stderr]     Checking arboard v3.6.1
[INFO] [stderr]     Checking sctk-adwaita v0.10.1
[INFO] [stderr]    Compiling cubiomes-sys v0.1.3 (/opt/rustwide/workdir/vendor/cubiomes-sys)
[INFO] [stderr]     Checking smithay-clipboard v0.7.3
[INFO] [stderr]     Checking winit v0.30.13
[INFO] [stderr]     Checking atspi-common v0.9.0
[INFO] [stderr]     Checking ashpd v0.11.1
[INFO] [stderr]     Checking atspi-proxies v0.9.0
[INFO] [stderr]     Checking accesskit_atspi_common v0.14.2
[INFO] [stderr]     Checking atspi-connection v0.9.0
[INFO] [stderr]     Checking atspi v0.25.0
[INFO] [stderr]     Checking accesskit_unix v0.17.2
[INFO] [stdout] warning: suspicious definition of the runtime `malloc` symbol used by the standard library
[INFO] [stdout]  --> /opt/rustwide/target/debug/build/cubiomes-sys-067509f04bd29817/out/bindings.rs:3:55883
[INFO] [stdout]   |
[INFO] [stdout] 3 | ...afe extern "C" { pub fn malloc (__size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } unsafe extern ...
[INFO] [stdout]   |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: expected `unsafe extern "C" fn(usize) -> *mut c_void`
[INFO] [stdout]           found    `unsafe extern "C" fn(u64) -> *mut c_void`
[INFO] [stdout]   = help: either fix the signature or remove any attributes like `#[unsafe(no_mangle)]`, `#[unsafe(export_name = "malloc")]`, or `#[link_name = "malloc"]`
[INFO] [stdout]   = help: allow this lint if the signature is compatible
[INFO] [stdout]   = note: `#[warn(suspicious_runtime_symbol_definitions)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: suspicious definition of the runtime `realloc` symbol used by the standard library
[INFO] [stdout]  --> /opt/rustwide/target/debug/build/cubiomes-sys-067509f04bd29817/out/bindings.rs:3:56164
[INFO] [stdout]   |
[INFO] [stdout] 3 | ... { pub fn realloc (__ptr : * mut :: std :: os :: raw :: c_void , __size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } ...
[INFO] [stdout]   |       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: expected `unsafe extern "C" fn(*mut c_void, usize) -> *mut c_void`
[INFO] [stdout]           found    `unsafe extern "C" fn(*mut c_void, u64) -> *mut c_void`
[INFO] [stdout]   = help: either fix the signature or remove any attributes like `#[unsafe(no_mangle)]`, `#[unsafe(export_name = "realloc")]`, or `#[link_name = "realloc"]`
[INFO] [stdout]   = help: allow this lint if the signature is compatible
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary transmute
[INFO] [stdout]  --> /opt/rustwide/target/debug/build/cubiomes-sys-067509f04bd29817/out/bindings.rs:3:215212
[INFO] [stdout]   |
[INFO] [stdout] 3 | ...:: raw :: c_int { unsafe { :: std :: mem :: transmute (self . _bitfield_1 . get (0usize , 24u8) as u32) } } # [inline] pub fn set_...
[INFO] [stdout]   |                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unnecessary_transmutes)]` on by default
[INFO] [stdout] help: replace this with
[INFO] [stdout]   |
[INFO] [stdout] 3 - # [repr (C)] # [derive (Copy , Clone , Debug , Default , Eq , Hash , Ord , PartialEq , PartialOrd)] pub struct __BindgenBitfieldUnit < Storage > { storage : Storage , } impl < Storage > __BindgenBitfieldUnit < Storage > { # [inline] pub const fn new (storage : Storage) -> Self { Self { storage } } } impl < Storage > __BindgenBitfieldUnit < Storage > where Storage : AsRef < [u8] > + AsMut < [u8] >, { # [inline] fn extract_bit (byte : u8 , index : usize) -> bool { let bit_index = if cfg ! (target_endian = "big") { 7 - (index % 8) } else { index % 8 } ; let mask = 1 << bit_index ; byte & mask == mask } # [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] ; Self :: extract_bit (byte , index) } # [inline] pub unsafe fn raw_get_bit (this : * const Self , index : usize) -> bool { debug_assert ! (index / 8 < core :: mem :: size_of ::< Storage > ()) ; let byte_index = index / 8 ; let byte = * (core :: ptr :: addr_of ! ((* this) . storage) as * const u8) . offset (byte_index as isize) ; Self :: extract_bit (byte , index) } # [inline] fn change_bit (byte : u8 , index : usize , val : bool) -> u8 { let bit_index = if cfg ! (target_endian = "big") { 7 - (index % 8) } else { index % 8 } ; let mask = 1 << bit_index ; if val { byte | mask } else { byte & ! 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] ; * byte = Self :: change_bit (* byte , index , val) ; } # [inline] pub unsafe fn raw_set_bit (this : * mut Self , index : usize , val : bool) { debug_assert ! (index / 8 < core :: mem :: size_of ::< Storage > ()) ; let byte_index = index / 8 ; let byte = (core :: ptr :: addr_of_mut ! ((* this) . storage) as * mut u8) . offset (byte_index as isize) ; * byte = Self :: change_bit (* byte , index , val) ; } # [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) { let index = if cfg ! (target_endian = "big") { bit_width as usize - 1 - i } else { i } ; val |= 1 << index ; } } val } # [inline] pub unsafe fn raw_get (this : * const Self , bit_offset : usize , bit_width : u8 ,) -> u64 { debug_assert ! (bit_width <= 64) ; debug_assert ! (bit_offset / 8 < core :: mem :: size_of ::< Storage > ()) ; debug_assert ! ((bit_offset + (bit_width as usize)) / 8 <= core :: mem :: size_of ::< Storage > ()) ; let mut val = 0 ; for i in 0 .. (bit_width as usize) { if Self :: raw_get_bit (this , i + bit_offset) { let index = if cfg ! (target_endian = "big") { bit_width as usize - 1 - i } else { i } ; val |= 1 << index ; } } 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 ; let index = if cfg ! (target_endian = "big") { bit_width as usize - 1 - i } else { i } ; self . set_bit (index + bit_offset , val_bit_is_set) ; } } # [inline] pub unsafe fn raw_set (this : * mut Self , bit_offset : usize , bit_width : u8 , val : u64 ,) { debug_assert ! (bit_width <= 64) ; debug_assert ! (bit_offset / 8 < core :: mem :: size_of ::< Storage > ()) ; debug_assert ! ((bit_offset + (bit_width as usize)) / 8 <= core :: mem :: size_of ::< Storage > ()) ; for i in 0 .. (bit_width as usize) { let mask = 1 << i ; let val_bit_is_set = val & mask == mask ; let index = if cfg ! (target_endian = "big") { bit_width as usize - 1 - i } else { i } ; Self :: raw_set_bit (this , index + bit_offset , val_bit_is_set) ; } } } # [derive (PartialEq , Copy , Clone , Hash , Debug , Default)] # [repr (C)] pub struct __BindgenComplex < T > { pub re : T , pub im : T } pub const __STDC_FORMAT_MACROS : u32 = 1 ; pub const _FEATURES_H : u32 = 1 ; pub const _DEFAULT_SOURCE : u32 = 1 ; pub const __GLIBC_USE_ISOC2Y : u32 = 0 ; pub const __GLIBC_USE_ISOC23 : u32 = 0 ; pub const __USE_ISOC11 : u32 = 1 ; pub const __USE_ISOC99 : u32 = 1 ; pub const __USE_ISOC95 : u32 = 1 ; pub const __USE_POSIX_IMPLICITLY : u32 = 1 ; pub const _POSIX_SOURCE : u32 = 1 ; pub const _POSIX_C_SOURCE : u32 = 202405 ; pub const __USE_POSIX : u32 = 1 ; pub const __USE_POSIX2 : u32 = 1 ; pub const __USE_POSIX199309 : u32 = 1 ; pub const __USE_POSIX199506 : u32 = 1 ; pub const __USE_XOPEN2K : u32 = 1 ; pub const __USE_XOPEN2K8 : u32 = 1 ; pub const _ATFILE_SOURCE : u32 = 1 ; pub const __USE_XOPEN2K24 : u32 = 1 ; pub const __WORDSIZE : u32 = 64 ; pub const __WORDSIZE_TIME64_COMPAT32 : u32 = 1 ; pub const __SYSCALL_WORDSIZE : u32 = 64 ; pub const __TIMESIZE : u32 = 64 ; pub const __USE_TIME_BITS64 : u32 = 1 ; pub const __USE_MISC : u32 = 1 ; pub const __USE_ATFILE : u32 = 1 ; pub const __USE_FORTIFY_LEVEL : u32 = 0 ; pub const __GLIBC_USE_DEPRECATED_GETS : u32 = 0 ; pub const __GLIBC_USE_DEPRECATED_SCANF : u32 = 0 ; pub const __GLIBC_USE_C23_STRTOL : u32 = 0 ; pub const _STDC_PREDEF_H : u32 = 1 ; pub const __STDC_IEC_559__ : u32 = 1 ; pub const __STDC_IEC_60559_BFP__ : u32 = 201404 ; pub const __STDC_IEC_559_COMPLEX__ : u32 = 1 ; pub const __STDC_IEC_60559_COMPLEX__ : u32 = 201404 ; pub const __STDC_ISO_10646__ : u32 = 201706 ; pub const __GNU_LIBRARY__ : u32 = 6 ; pub const __GLIBC__ : u32 = 2 ; pub const __GLIBC_MINOR__ : u32 = 43 ; pub const _SYS_CDEFS_H : u32 = 1 ; pub const __glibc_c99_flexarr_available : u32 = 1 ; pub const __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI : u32 = 0 ; pub const __HAVE_GENERIC_SELECTION : u32 = 1 ; pub const __GLIBC_USE_LIB_EXT2 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_BFP_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_BFP_EXT_C23 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_FUNCS_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_FUNCS_EXT_C23 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_TYPES_EXT : u32 = 0 ; pub const _STDLIB_H : u32 = 1 ; pub const WNOHANG : u32 = 1 ; pub const WUNTRACED : u32 = 2 ; pub const WSTOPPED : u32 = 2 ; pub const WEXITED : u32 = 4 ; pub const WCONTINUED : u32 = 8 ; pub const WNOWAIT : u32 = 16777216 ; pub const __WNOTHREAD : u32 = 536870912 ; pub const __WALL : u32 = 1073741824 ; pub const __WCLONE : u32 = 2147483648 ; pub const __W_CONTINUED : u32 = 65535 ; pub const __WCOREFLAG : u32 = 128 ; pub const __HAVE_FLOAT128 : u32 = 1 ; pub const __HAVE_DISTINCT_FLOAT128 : u32 = 1 ; pub const __HAVE_FLOAT64X : u32 = 1 ; pub const __HAVE_FLOAT64X_LONG_DOUBLE : u32 = 1 ; pub const __HAVE_FLOAT16 : u32 = 0 ; pub const __HAVE_FLOAT32 : u32 = 1 ; pub const __HAVE_FLOAT64 : u32 = 1 ; pub const __HAVE_FLOAT32X : u32 = 1 ; pub const __HAVE_FLOAT128X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT16 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT32 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT64 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT32X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT64X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT128X : u32 = 0 ; pub const __HAVE_FLOATN_NOT_TYPEDEF : u32 = 0 ; pub const __ldiv_t_defined : u32 = 1 ; pub const __lldiv_t_defined : u32 = 1 ; pub const RAND_MAX : u32 = 2147483647 ; pub const EXIT_FAILURE : u32 = 1 ; pub const EXIT_SUCCESS : u32 = 0 ; pub const _SYS_TYPES_H : u32 = 1 ; pub const _BITS_TYPES_H : u32 = 1 ; pub const _BITS_TYPESIZES_H : u32 = 1 ; pub const __OFF_T_MATCHES_OFF64_T : u32 = 1 ; pub const __INO_T_MATCHES_INO64_T : u32 = 1 ; pub const __RLIM_T_MATCHES_RLIM64_T : u32 = 1 ; pub const __STATFS_MATCHES_STATFS64 : u32 = 1 ; pub const __KERNEL_OLD_TIMEVAL_MATCHES_TIMEVAL64 : u32 = 1 ; pub const __FD_SETSIZE : u32 = 1024 ; pub const _BITS_TIME64_H : u32 = 1 ; pub const __clock_t_defined : u32 = 1 ; pub const __clockid_t_defined : u32 = 1 ; pub const __time_t_defined : u32 = 1 ; pub const __timer_t_defined : u32 = 1 ; pub const _BITS_STDINT_INTN_H : u32 = 1 ; pub const __BIT_TYPES_DEFINED__ : u32 = 1 ; pub const _ENDIAN_H : u32 = 1 ; pub const _BITS_ENDIAN_H : u32 = 1 ; pub const __LITTLE_ENDIAN : u32 = 1234 ; pub const __BIG_ENDIAN : u32 = 4321 ; pub const __PDP_ENDIAN : u32 = 3412 ; pub const _BITS_ENDIANNESS_H : u32 = 1 ; pub const __BYTE_ORDER : u32 = 1234 ; pub const __FLOAT_WORD_ORDER : u32 = 1234 ; pub const LITTLE_ENDIAN : u32 = 1234 ; pub const BIG_ENDIAN : u32 = 4321 ; pub const PDP_ENDIAN : u32 = 3412 ; pub const BYTE_ORDER : u32 = 1234 ; pub const _BITS_BYTESWAP_H : u32 = 1 ; pub const _BITS_UINTN_IDENTITY_H : u32 = 1 ; pub const _SYS_SELECT_H : u32 = 1 ; pub const __sigset_t_defined : u32 = 1 ; pub const __timeval_defined : u32 = 1 ; pub const _STRUCT_TIMESPEC : u32 = 1 ; pub const FD_SETSIZE : u32 = 1024 ; pub const _BITS_PTHREADTYPES_COMMON_H : u32 = 1 ; pub const _THREAD_SHARED_TYPES_H : u32 = 1 ; pub const _BITS_PTHREADTYPES_ARCH_H : u32 = 1 ; pub const __SIZEOF_PTHREAD_MUTEX_T : u32 = 40 ; pub const __SIZEOF_PTHREAD_ATTR_T : u32 = 56 ; pub const __SIZEOF_PTHREAD_RWLOCK_T : u32 = 56 ; pub const __SIZEOF_PTHREAD_BARRIER_T : u32 = 32 ; pub const __SIZEOF_PTHREAD_MUTEXATTR_T : u32 = 4 ; pub const __SIZEOF_PTHREAD_COND_T : u32 = 48 ; pub const __SIZEOF_PTHREAD_CONDATTR_T : u32 = 4 ; pub const __SIZEOF_PTHREAD_RWLOCKATTR_T : u32 = 8 ; pub const __SIZEOF_PTHREAD_BARRIERATTR_T : u32 = 4 ; pub const _THREAD_MUTEX_INTERNAL_H : u32 = 1 ; pub const __PTHREAD_MUTEX_HAVE_PREV : u32 = 1 ; pub const __have_pthread_attr_t : u32 = 1 ; pub const _ALLOCA_H : u32 = 1 ; pub const _INTTYPES_H : u32 = 1 ; pub const _STDINT_H : u32 = 1 ; pub const _BITS_WCHAR_H : u32 = 1 ; pub const _BITS_STDINT_UINTN_H : u32 = 1 ; pub const _BITS_STDINT_LEAST_H : u32 = 1 ; pub const INT8_MIN : i32 = - 128 ; pub const INT16_MIN : i32 = - 32768 ; pub const INT32_MIN : i32 = - 2147483648 ; pub const INT8_MAX : u32 = 127 ; pub const INT16_MAX : u32 = 32767 ; pub const INT32_MAX : u32 = 2147483647 ; pub const UINT8_MAX : u32 = 255 ; pub const UINT16_MAX : u32 = 65535 ; pub const UINT32_MAX : u32 = 4294967295 ; pub const INT_LEAST8_MIN : i32 = - 128 ; pub const INT_LEAST16_MIN : i32 = - 32768 ; pub const INT_LEAST32_MIN : i32 = - 2147483648 ; pub const INT_LEAST8_MAX : u32 = 127 ; pub const INT_LEAST16_MAX : u32 = 32767 ; pub const INT_LEAST32_MAX : u32 = 2147483647 ; pub const UINT_LEAST8_MAX : u32 = 255 ; pub const UINT_LEAST16_MAX : u32 = 65535 ; pub const UINT_LEAST32_MAX : u32 = 4294967295 ; pub const INT_FAST8_MIN : i32 = - 128 ; pub const INT_FAST16_MIN : i64 = - 9223372036854775808 ; pub const INT_FAST32_MIN : i64 = - 9223372036854775808 ; pub const INT_FAST8_MAX : u32 = 127 ; pub const INT_FAST16_MAX : u64 = 9223372036854775807 ; pub const INT_FAST32_MAX : u64 = 9223372036854775807 ; pub const UINT_FAST8_MAX : u32 = 255 ; pub const UINT_FAST16_MAX : i32 = - 1 ; pub const UINT_FAST32_MAX : i32 = - 1 ; pub const INTPTR_MIN : i64 = - 9223372036854775808 ; pub const INTPTR_MAX : u64 = 9223372036854775807 ; pub const UINTPTR_MAX : i32 = - 1 ; pub const PTRDIFF_MIN : i64 = - 9223372036854775808 ; pub const PTRDIFF_MAX : u64 = 9223372036854775807 ; pub const SIG_ATOMIC_MIN : i32 = - 2147483648 ; pub const SIG_ATOMIC_MAX : u32 = 2147483647 ; pub const SIZE_MAX : i32 = - 1 ; pub const WINT_MIN : u32 = 0 ; pub const WINT_MAX : u32 = 4294967295 ; pub const ____gwchar_t_defined : u32 = 1 ; pub const __PRI64_PREFIX : & [u8 ; 2] = b"l\0" ; pub const __PRIPTR_PREFIX : & [u8 ; 2] = b"l\0" ; pub const PRId8 : & [u8 ; 4] = b"hhd\0" ; pub const PRId16 : & [u8 ; 3] = b"hd\0" ; pub const PRId32 : & [u8 ; 2] = b"d\0" ; pub const PRId64 : & [u8 ; 3] = b"ld\0" ; pub const PRIdLEAST8 : & [u8 ; 4] = b"hhd\0" ; pub const PRIdLEAST16 : & [u8 ; 3] = b"hd\0" ; pub const PRIdLEAST32 : & [u8 ; 2] = b"d\0" ; pub const PRIdLEAST64 : & [u8 ; 3] = b"ld\0" ; pub const PRIdFAST8 : & [u8 ; 4] = b"hhd\0" ; pub const PRIdFAST16 : & [u8 ; 3] = b"ld\0" ; pub const PRIdFAST32 : & [u8 ; 3] = b"ld\0" ; pub const PRIdFAST64 : & [u8 ; 3] = b"ld\0" ; pub const PRIi8 : & [u8 ; 4] = b"hhi\0" ; pub const PRIi16 : & [u8 ; 3] = b"hi\0" ; pub const PRIi32 : & [u8 ; 2] = b"i\0" ; pub const PRIi64 : & [u8 ; 3] = b"li\0" ; pub const PRIiLEAST8 : & [u8 ; 4] = b"hhi\0" ; pub const PRIiLEAST16 : & [u8 ; 3] = b"hi\0" ; pub const PRIiLEAST32 : & [u8 ; 2] = b"i\0" ; pub const PRIiLEAST64 : & [u8 ; 3] = b"li\0" ; pub const PRIiFAST8 : & [u8 ; 4] = b"hhi\0" ; pub const PRIiFAST16 : & [u8 ; 3] = b"li\0" ; pub const PRIiFAST32 : & [u8 ; 3] = b"li\0" ; pub const PRIiFAST64 : & [u8 ; 3] = b"li\0" ; pub const PRIo8 : & [u8 ; 4] = b"hho\0" ; pub const PRIo16 : & [u8 ; 3] = b"ho\0" ; pub const PRIo32 : & [u8 ; 2] = b"o\0" ; pub const PRIo64 : & [u8 ; 3] = b"lo\0" ; pub const PRIoLEAST8 : & [u8 ; 4] = b"hho\0" ; pub const PRIoLEAST16 : & [u8 ; 3] = b"ho\0" ; pub const PRIoLEAST32 : & [u8 ; 2] = b"o\0" ; pub const PRIoLEAST64 : & [u8 ; 3] = b"lo\0" ; pub const PRIoFAST8 : & [u8 ; 4] = b"hho\0" ; pub const PRIoFAST16 : & [u8 ; 3] = b"lo\0" ; pub const PRIoFAST32 : & [u8 ; 3] = b"lo\0" ; pub const PRIoFAST64 : & [u8 ; 3] = b"lo\0" ; pub const PRIu8 : & [u8 ; 4] = b"hhu\0" ; pub const PRIu16 : & [u8 ; 3] = b"hu\0" ; pub const PRIu32 : & [u8 ; 2] = b"u\0" ; pub const PRIu64 : & [u8 ; 3] = b"lu\0" ; pub const PRIuLEAST8 : & [u8 ; 4] = b"hhu\0" ; pub const PRIuLEAST16 : & [u8 ; 3] = b"hu\0" ; pub const PRIuLEAST32 : & [u8 ; 2] = b"u\0" ; pub const PRIuLEAST64 : & [u8 ; 3] = b"lu\0" ; pub const PRIuFAST8 : & [u8 ; 4] = b"hhu\0" ; pub const PRIuFAST16 : & [u8 ; 3] = b"lu\0" ; pub const PRIuFAST32 : & [u8 ; 3] = b"lu\0" ; pub const PRIuFAST64 : & [u8 ; 3] = b"lu\0" ; pub const PRIx8 : & [u8 ; 4] = b"hhx\0" ; pub const PRIx16 : & [u8 ; 3] = b"hx\0" ; pub const PRIx32 : & [u8 ; 2] = b"x\0" ; pub const PRIx64 : & [u8 ; 3] = b"lx\0" ; pub const PRIxLEAST8 : & [u8 ; 4] = b"hhx\0" ; pub const PRIxLEAST16 : & [u8 ; 3] = b"hx\0" ; pub const PRIxLEAST32 : & [u8 ; 2] = b"x\0" ; pub const PRIxLEAST64 : & [u8 ; 3] = b"lx\0" ; pub const PRIxFAST8 : & [u8 ; 4] = b"hhx\0" ; pub const PRIxFAST16 : & [u8 ; 3] = b"lx\0" ; pub const PRIxFAST32 : & [u8 ; 3] = b"lx\0" ; pub const PRIxFAST64 : & [u8 ; 3] = b"lx\0" ; pub const PRIX8 : & [u8 ; 4] = b"hhX\0" ; pub const PRIX16 : & [u8 ; 3] = b"hX\0" ; pub const PRIX32 : & [u8 ; 2] = b"X\0" ; pub const PRIX64 : & [u8 ; 3] = b"lX\0" ; pub const PRIXLEAST8 : & [u8 ; 4] = b"hhX\0" ; pub const PRIXLEAST16 : & [u8 ; 3] = b"hX\0" ; pub const PRIXLEAST32 : & [u8 ; 2] = b"X\0" ; pub const PRIXLEAST64 : & [u8 ; 3] = b"lX\0" ; pub const PRIXFAST8 : & [u8 ; 4] = b"hhX\0" ; pub const PRIXFAST16 : & [u8 ; 3] = b"lX\0" ; pub const PRIXFAST32 : & [u8 ; 3] = b"lX\0" ; pub const PRIXFAST64 : & [u8 ; 3] = b"lX\0" ; pub const PRIdMAX : & [u8 ; 3] = b"ld\0" ; pub const PRIiMAX : & [u8 ; 3] = b"li\0" ; pub const PRIoMAX : & [u8 ; 3] = b"lo\0" ; pub const PRIuMAX : & [u8 ; 3] = b"lu\0" ; pub const PRIxMAX : & [u8 ; 3] = b"lx\0" ; pub const PRIXMAX : & [u8 ; 3] = b"lX\0" ; pub const PRIdPTR : & [u8 ; 3] = b"ld\0" ; pub const PRIiPTR : & [u8 ; 3] = b"li\0" ; pub const PRIoPTR : & [u8 ; 3] = b"lo\0" ; pub const PRIuPTR : & [u8 ; 3] = b"lu\0" ; pub const PRIxPTR : & [u8 ; 3] = b"lx\0" ; pub const PRIXPTR : & [u8 ; 3] = b"lX\0" ; pub const SCNd8 : & [u8 ; 4] = b"hhd\0" ; pub const SCNd16 : & [u8 ; 3] = b"hd\0" ; pub const SCNd32 : & [u8 ; 2] = b"d\0" ; pub const SCNd64 : & [u8 ; 3] = b"ld\0" ; pub const SCNdLEAST8 : & [u8 ; 4] = b"hhd\0" ; pub const SCNdLEAST16 : & [u8 ; 3] = b"hd\0" ; pub const SCNdLEAST32 : & [u8 ; 2] = b"d\0" ; pub const SCNdLEAST64 : & [u8 ; 3] = b"ld\0" ; pub const SCNdFAST8 : & [u8 ; 4] = b"hhd\0" ; pub const SCNdFAST16 : & [u8 ; 3] = b"ld\0" ; pub const SCNdFAST32 : & [u8 ; 3] = b"ld\0" ; pub const SCNdFAST64 : & [u8 ; 3] = b"ld\0" ; pub const SCNi8 : & [u8 ; 4] = b"hhi\0" ; pub const SCNi16 : & [u8 ; 3] = b"hi\0" ; pub const SCNi32 : & [u8 ; 2] = b"i\0" ; pub const SCNi64 : & [u8 ; 3] = b"li\0" ; pub const SCNiLEAST8 : & [u8 ; 4] = b"hhi\0" ; pub const SCNiLEAST16 : & [u8 ; 3] = b"hi\0" ; pub const SCNiLEAST32 : & [u8 ; 2] = b"i\0" ; pub const SCNiLEAST64 : & [u8 ; 3] = b"li\0" ; pub const SCNiFAST8 : & [u8 ; 4] = b"hhi\0" ; pub const SCNiFAST16 : & [u8 ; 3] = b"li\0" ; pub const SCNiFAST32 : & [u8 ; 3] = b"li\0" ; pub const SCNiFAST64 : & [u8 ; 3] = b"li\0" ; pub const SCNu8 : & [u8 ; 4] = b"hhu\0" ; pub const SCNu16 : & [u8 ; 3] = b"hu\0" ; pub const SCNu32 : & [u8 ; 2] = b"u\0" ; pub const SCNu64 : & [u8 ; 3] = b"lu\0" ; pub const SCNuLEAST8 : & [u8 ; 4] = b"hhu\0" ; pub const SCNuLEAST16 : & [u8 ; 3] = b"hu\0" ; pub const SCNuLEAST32 : & [u8 ; 2] = b"u\0" ; pub const SCNuLEAST64 : & [u8 ; 3] = b"lu\0" ; pub const SCNuFAST8 : & [u8 ; 4] = b"hhu\0" ; pub const SCNuFAST16 : & [u8 ; 3] = b"lu\0" ; pub const SCNuFAST32 : & [u8 ; 3] = b"lu\0" ; pub const SCNuFAST64 : & [u8 ; 3] = b"lu\0" ; pub const SCNo8 : & [u8 ; 4] = b"hho\0" ; pub const SCNo16 : & [u8 ; 3] = b"ho\0" ; pub const SCNo32 : & [u8 ; 2] = b"o\0" ; pub const SCNo64 : & [u8 ; 3] = b"lo\0" ; pub const SCNoLEAST8 : & [u8 ; 4] = b"hho\0" ; pub const SCNoLEAST16 : & [u8 ; 3] = b"ho\0" ; pub const SCNoLEAST32 : & [u8 ; 2] = b"o\0" ; pub const SCNoLEAST64 : & [u8 ; 3] = b"lo\0" ; pub const SCNoFAST8 : & [u8 ; 4] = b"hho\0" ; pub const SCNoFAST16 : & [u8 ; 3] = b"lo\0" ; pub const SCNoFAST32 : & [u8 ; 3] = b"lo\0" ; pub const SCNoFAST64 : & [u8 ; 3] = b"lo\0" ; pub const SCNx8 : & [u8 ; 4] = b"hhx\0" ; pub const SCNx16 : & [u8 ; 3] = b"hx\0" ; pub const SCNx32 : & [u8 ; 2] = b"x\0" ; pub const SCNx64 : & [u8 ; 3] = b"lx\0" ; pub const SCNxLEAST8 : & [u8 ; 4] = b"hhx\0" ; pub const SCNxLEAST16 : & [u8 ; 3] = b"hx\0" ; pub const SCNxLEAST32 : & [u8 ; 2] = b"x\0" ; pub const SCNxLEAST64 : & [u8 ; 3] = b"lx\0" ; pub const SCNxFAST8 : & [u8 ; 4] = b"hhx\0" ; pub const SCNxFAST16 : & [u8 ; 3] = b"lx\0" ; pub const SCNxFAST32 : & [u8 ; 3] = b"lx\0" ; pub const SCNxFAST64 : & [u8 ; 3] = b"lx\0" ; pub const SCNdMAX : & [u8 ; 3] = b"ld\0" ; pub const SCNiMAX : & [u8 ; 3] = b"li\0" ; pub const SCNoMAX : & [u8 ; 3] = b"lo\0" ; pub const SCNuMAX : & [u8 ; 3] = b"lu\0" ; pub const SCNxMAX : & [u8 ; 3] = b"lx\0" ; pub const SCNdPTR : & [u8 ; 3] = b"ld\0" ; pub const SCNiPTR : & [u8 ; 3] = b"li\0" ; pub const SCNoPTR : & [u8 ; 3] = b"lo\0" ; pub const SCNuPTR : & [u8 ; 3] = b"lu\0" ; pub const SCNxPTR : & [u8 ; 3] = b"lx\0" ; pub const _MATH_H : u32 = 1 ; pub const _BITS_LIBM_SIMD_DECL_STUBS_H : u32 = 1 ; pub const __FP_LOGB0_IS_MIN : u32 = 1 ; pub const __FP_LOGBNAN_IS_MIN : u32 = 1 ; pub const FP_ILOGB0 : i32 = - 2147483648 ; pub const FP_ILOGBNAN : i32 = - 2147483648 ; pub const __MATH_DECLARING_DOUBLE : u32 = 1 ; pub const __MATH_DECLARING_FLOATN : u32 = 0 ; pub const __MATH_DECLARE_LDOUBLE : u32 = 1 ; pub const MATH_ERRNO : u32 = 1 ; pub const MATH_ERREXCEPT : u32 = 2 ; pub const math_errhandling : u32 = 3 ; pub const M_E : f64 = 2.718281828459045 ; pub const M_LOG2E : f64 = 1.4426950408889634 ; pub const M_LOG10E : f64 = 0.4342944819032518 ; pub const M_LN2 : f64 = 0.6931471805599453 ; pub const M_LN10 : f64 = 2.302585092994046 ; pub const M_PI : f64 = 3.141592653589793 ; pub const M_PI_2 : f64 = 1.5707963267948966 ; pub const M_PI_4 : f64 = 0.7853981633974483 ; pub const M_1_PI : f64 = 0.3183098861837907 ; pub const M_2_PI : f64 = 0.6366197723675814 ; pub const M_2_SQRTPI : f64 = 1.1283791670955126 ; pub const M_SQRT2 : f64 = 1.4142135623730951 ; pub const M_SQRT1_2 : f64 = 0.7071067811865476 ; pub const LAYER_INIT_SHA : i32 = - 1 ; pub const _STDIO_H : u32 = 1 ; pub const _____fpos_t_defined : u32 = 1 ; pub const ____mbstate_t_defined : u32 = 1 ; pub const _____fpos64_t_defined : u32 = 1 ; pub const ____FILE_defined : u32 = 1 ; pub const __FILE_defined : u32 = 1 ; pub const __struct_FILE_defined : u32 = 1 ; pub const _IO_EOF_SEEN : u32 = 16 ; pub const _IO_ERR_SEEN : u32 = 32 ; pub const _IO_USER_LOCK : u32 = 32768 ; pub const __cookie_io_functions_t_defined : u32 = 1 ; pub const _IOFBF : u32 = 0 ; pub const _IOLBF : u32 = 1 ; pub const _IONBF : u32 = 2 ; pub const BUFSIZ : u32 = 8192 ; pub const EOF : i32 = - 1 ; pub const SEEK_SET : u32 = 0 ; pub const SEEK_CUR : u32 = 1 ; pub const SEEK_END : u32 = 2 ; pub const P_tmpdir : & [u8 ; 5] = b"/tmp\0" ; pub const L_tmpnam : u32 = 20 ; pub const TMP_MAX : u32 = 238328 ; pub const _BITS_STDIO_LIM_H : u32 = 1 ; pub const FILENAME_MAX : u32 = 4096 ; pub const L_ctermid : u32 = 9 ; pub const FOPEN_MAX : u32 = 16 ; pub type wchar_t = :: std :: os :: raw :: c_int ; pub type __cfloat128 = __BindgenComplex < u128 > ; pub type _Float128 = u128 ; pub type _Float32 = f32 ; pub type _Float64 = f64 ; pub type _Float32x = f64 ; pub type _Float64x = u128 ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct div_t { pub quot : :: std :: os :: raw :: c_int , pub rem : :: std :: os :: raw :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of div_t"] [:: std :: mem :: size_of :: < div_t > () - 8usize] ; ["Alignment of div_t"] [:: std :: mem :: align_of :: < div_t > () - 4usize] ; ["Offset of field: div_t::quot"] [:: std :: mem :: offset_of ! (div_t , quot) - 0usize] ; ["Offset of field: div_t::rem"] [:: std :: mem :: offset_of ! (div_t , rem) - 4usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ldiv_t { pub quot : :: std :: os :: raw :: c_long , pub rem : :: std :: os :: raw :: c_long , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ldiv_t"] [:: std :: mem :: size_of :: < ldiv_t > () - 16usize] ; ["Alignment of ldiv_t"] [:: std :: mem :: align_of :: < ldiv_t > () - 8usize] ; ["Offset of field: ldiv_t::quot"] [:: std :: mem :: offset_of ! (ldiv_t , quot) - 0usize] ; ["Offset of field: ldiv_t::rem"] [:: std :: mem :: offset_of ! (ldiv_t , rem) - 8usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct lldiv_t { pub quot : :: std :: os :: raw :: c_longlong , pub rem : :: std :: os :: raw :: c_longlong , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of lldiv_t"] [:: std :: mem :: size_of :: < lldiv_t > () - 16usize] ; ["Alignment of lldiv_t"] [:: std :: mem :: align_of :: < lldiv_t > () - 8usize] ; ["Offset of field: lldiv_t::quot"] [:: std :: mem :: offset_of ! (lldiv_t , quot) - 0usize] ; ["Offset of field: lldiv_t::rem"] [:: std :: mem :: offset_of ! (lldiv_t , rem) - 8usize] ; } ; unsafe extern "C" { pub fn __ctype_get_mb_cur_max () -> usize ; } unsafe extern "C" { pub fn atof (__nptr : * const :: std :: os :: raw :: c_char) -> f64 ; } unsafe extern "C" { pub fn atoi (__nptr : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn atol (__nptr : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn atoll (__nptr : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn strtod (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char) -> f64 ; } unsafe extern "C" { pub fn strtof (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char) -> f32 ; } unsafe extern "C" { pub fn strtold (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char) -> u128 ; } unsafe extern "C" { pub fn strtol (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn strtoul (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_ulong ; } unsafe extern "C" { pub fn strtoq (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn strtouq (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_ulonglong ; } unsafe extern "C" { pub fn strtoll (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn strtoull (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_ulonglong ; } unsafe extern "C" { pub fn l64a (__n : :: std :: os :: raw :: c_long) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn a64l (__s : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_long ; } pub type __u_char = :: std :: os :: raw :: c_uchar ; pub type __u_short = :: std :: os :: raw :: c_ushort ; pub type __u_int = :: std :: os :: raw :: c_uint ; pub type __u_long = :: std :: os :: raw :: c_ulong ; 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_long ; pub type __uint64_t = :: std :: os :: raw :: c_ulong ; pub type __int_least8_t = __int8_t ; pub type __uint_least8_t = __uint8_t ; pub type __int_least16_t = __int16_t ; pub type __uint_least16_t = __uint16_t ; pub type __int_least32_t = __int32_t ; pub type __uint_least32_t = __uint32_t ; pub type __int_least64_t = __int64_t ; pub type __uint_least64_t = __uint64_t ; pub type __quad_t = :: std :: os :: raw :: c_long ; pub type __u_quad_t = :: std :: os :: raw :: c_ulong ; pub type __intmax_t = :: std :: os :: raw :: c_long ; pub type __uintmax_t = :: std :: os :: raw :: c_ulong ; pub type __dev_t = :: std :: os :: raw :: c_ulong ; pub type __uid_t = :: std :: os :: raw :: c_uint ; pub type __gid_t = :: std :: os :: raw :: c_uint ; pub type __ino_t = :: std :: os :: raw :: c_ulong ; pub type __ino64_t = :: std :: os :: raw :: c_ulong ; pub type __mode_t = :: std :: os :: raw :: c_uint ; pub type __nlink_t = :: std :: os :: raw :: c_ulong ; pub type __off_t = :: std :: os :: raw :: c_long ; pub type __off64_t = :: std :: os :: raw :: c_long ; pub type __pid_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [:: std :: os :: raw :: c_int ; 2usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __fsid_t"] [:: std :: mem :: size_of :: < __fsid_t > () - 8usize] ; ["Alignment of __fsid_t"] [:: std :: mem :: align_of :: < __fsid_t > () - 4usize] ; ["Offset of field: __fsid_t::__val"] [:: std :: mem :: offset_of ! (__fsid_t , __val) - 0usize] ; } ; pub type __clock_t = :: std :: os :: raw :: c_long ; pub type __rlim_t = :: std :: os :: raw :: c_ulong ; pub type __rlim64_t = :: std :: os :: raw :: c_ulong ; pub type __id_t = :: std :: os :: raw :: c_uint ; pub type __time_t = :: std :: os :: raw :: c_long ; pub type __useconds_t = :: std :: os :: raw :: c_uint ; pub type __suseconds_t = :: std :: os :: raw :: c_long ; pub type __suseconds64_t = :: std :: os :: raw :: c_long ; pub type __daddr_t = :: std :: os :: raw :: c_int ; pub type __key_t = :: std :: os :: raw :: c_int ; pub type __clockid_t = :: std :: os :: raw :: c_int ; pub type __timer_t = * mut :: std :: os :: raw :: c_void ; pub type __blksize_t = :: std :: os :: raw :: c_long ; pub type __blkcnt_t = :: std :: os :: raw :: c_long ; pub type __blkcnt64_t = :: std :: os :: raw :: c_long ; pub type __fsblkcnt_t = :: std :: os :: raw :: c_ulong ; pub type __fsblkcnt64_t = :: std :: os :: raw :: c_ulong ; pub type __fsfilcnt_t = :: std :: os :: raw :: c_ulong ; pub type __fsfilcnt64_t = :: std :: os :: raw :: c_ulong ; pub type __fsword_t = :: std :: os :: raw :: c_long ; pub type __ssize_t = :: std :: os :: raw :: c_long ; pub type __syscall_slong_t = :: std :: os :: raw :: c_long ; pub type __syscall_ulong_t = :: std :: os :: raw :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut :: std :: os :: raw :: c_char ; pub type __intptr_t = :: std :: os :: raw :: c_long ; pub type __socklen_t = :: std :: os :: raw :: c_uint ; pub type __sig_atomic_t = :: std :: os :: raw :: c_int ; pub type u_char = __u_char ; pub type u_short = __u_short ; pub type u_int = __u_int ; pub type u_long = __u_long ; pub type quad_t = __quad_t ; pub type u_quad_t = __u_quad_t ; pub type fsid_t = __fsid_t ; pub type loff_t = __loff_t ; pub type ino_t = __ino_t ; pub type dev_t = __dev_t ; pub type gid_t = __gid_t ; pub type mode_t = __mode_t ; pub type nlink_t = __nlink_t ; pub type uid_t = __uid_t ; pub type off_t = __off_t ; pub type pid_t = __pid_t ; pub type id_t = __id_t ; pub type daddr_t = __daddr_t ; pub type caddr_t = __caddr_t ; pub type key_t = __key_t ; pub type clock_t = __clock_t ; pub type clockid_t = __clockid_t ; pub type time_t = __time_t ; pub type timer_t = __timer_t ; pub type ulong = :: std :: os :: raw :: c_ulong ; pub type ushort = :: std :: os :: raw :: c_ushort ; pub type uint = :: std :: os :: raw :: c_uint ; pub type u_int8_t = __uint8_t ; pub type u_int16_t = __uint16_t ; pub type u_int32_t = __uint32_t ; pub type u_int64_t = __uint64_t ; pub type register_t = :: std :: os :: raw :: c_long ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __sigset_t { pub __val : [:: std :: os :: raw :: c_ulong ; 16usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __sigset_t"] [:: std :: mem :: size_of :: < __sigset_t > () - 128usize] ; ["Alignment of __sigset_t"] [:: std :: mem :: align_of :: < __sigset_t > () - 8usize] ; ["Offset of field: __sigset_t::__val"] [:: std :: mem :: offset_of ! (__sigset_t , __val) - 0usize] ; } ; pub type sigset_t = __sigset_t ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct timeval { pub tv_sec : __time_t , pub tv_usec : __suseconds_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of timeval"] [:: std :: mem :: size_of :: < timeval > () - 16usize] ; ["Alignment of timeval"] [:: std :: mem :: align_of :: < timeval > () - 8usize] ; ["Offset of field: timeval::tv_sec"] [:: std :: mem :: offset_of ! (timeval , tv_sec) - 0usize] ; ["Offset of field: timeval::tv_usec"] [:: std :: mem :: offset_of ! (timeval , tv_usec) - 8usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct timespec { pub tv_sec : __time_t , pub tv_nsec : __syscall_slong_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of timespec"] [:: std :: mem :: size_of :: < timespec > () - 16usize] ; ["Alignment of timespec"] [:: std :: mem :: align_of :: < timespec > () - 8usize] ; ["Offset of field: timespec::tv_sec"] [:: std :: mem :: offset_of ! (timespec , tv_sec) - 0usize] ; ["Offset of field: timespec::tv_nsec"] [:: std :: mem :: offset_of ! (timespec , tv_nsec) - 8usize] ; } ; pub type suseconds_t = __suseconds_t ; pub type __fd_mask = :: std :: os :: raw :: c_long ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct fd_set { pub __fds_bits : [__fd_mask ; 16usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of fd_set"] [:: std :: mem :: size_of :: < fd_set > () - 128usize] ; ["Alignment of fd_set"] [:: std :: mem :: align_of :: < fd_set > () - 8usize] ; ["Offset of field: fd_set::__fds_bits"] [:: std :: mem :: offset_of ! (fd_set , __fds_bits) - 0usize] ; } ; pub type fd_mask = __fd_mask ; unsafe extern "C" { pub fn select (__nfds : :: std :: os :: raw :: c_int , __readfds : * mut fd_set , __writefds : * mut fd_set , __exceptfds : * mut fd_set , __timeout : * mut timeval) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn pselect (__nfds : :: std :: os :: raw :: c_int , __readfds : * mut fd_set , __writefds : * mut fd_set , __exceptfds : * mut fd_set , __timeout : * const timespec , __sigmask : * const __sigset_t) -> :: std :: os :: raw :: c_int ; } pub type blksize_t = __blksize_t ; pub type blkcnt_t = __blkcnt_t ; pub type fsblkcnt_t = __fsblkcnt_t ; pub type fsfilcnt_t = __fsfilcnt_t ; # [repr (C)] # [derive (Copy , Clone)] pub union __atomic_wide_counter { pub __value64 : :: std :: os :: raw :: c_ulonglong , pub __value32 : __atomic_wide_counter__bindgen_ty_1 , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __atomic_wide_counter__bindgen_ty_1 { pub __low : :: std :: os :: raw :: c_uint , pub __high : :: std :: os :: raw :: c_uint , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __atomic_wide_counter__bindgen_ty_1"] [:: std :: mem :: size_of :: < __atomic_wide_counter__bindgen_ty_1 > () - 8usize] ; ["Alignment of __atomic_wide_counter__bindgen_ty_1"] [:: std :: mem :: align_of :: < __atomic_wide_counter__bindgen_ty_1 > () - 4usize] ; ["Offset of field: __atomic_wide_counter__bindgen_ty_1::__low"] [:: std :: mem :: offset_of ! (__atomic_wide_counter__bindgen_ty_1 , __low) - 0usize] ; ["Offset of field: __atomic_wide_counter__bindgen_ty_1::__high"] [:: std :: mem :: offset_of ! (__atomic_wide_counter__bindgen_ty_1 , __high) - 4usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __atomic_wide_counter"] [:: std :: mem :: size_of :: < __atomic_wide_counter > () - 8usize] ; ["Alignment of __atomic_wide_counter"] [:: std :: mem :: align_of :: < __atomic_wide_counter > () - 8usize] ; ["Offset of field: __atomic_wide_counter::__value64"] [:: std :: mem :: offset_of ! (__atomic_wide_counter , __value64) - 0usize] ; ["Offset of field: __atomic_wide_counter::__value32"] [:: std :: mem :: offset_of ! (__atomic_wide_counter , __value32) - 0usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_internal_list { pub __prev : * mut __pthread_internal_list , pub __next : * mut __pthread_internal_list , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __pthread_internal_list"] [:: std :: mem :: size_of :: < __pthread_internal_list > () - 16usize] ; ["Alignment of __pthread_internal_list"] [:: std :: mem :: align_of :: < __pthread_internal_list > () - 8usize] ; ["Offset of field: __pthread_internal_list::__prev"] [:: std :: mem :: offset_of ! (__pthread_internal_list , __prev) - 0usize] ; ["Offset of field: __pthread_internal_list::__next"] [:: std :: mem :: offset_of ! (__pthread_internal_list , __next) - 8usize] ; } ; pub type __pthread_list_t = __pthread_internal_list ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_internal_slist { pub __next : * mut __pthread_internal_slist , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __pthread_internal_slist"] [:: std :: mem :: size_of :: < __pthread_internal_slist > () - 8usize] ; ["Alignment of __pthread_internal_slist"] [:: std :: mem :: align_of :: < __pthread_internal_slist > () - 8usize] ; ["Offset of field: __pthread_internal_slist::__next"] [:: std :: mem :: offset_of ! (__pthread_internal_slist , __next) - 0usize] ; } ; pub type __pthread_slist_t = __pthread_internal_slist ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_mutex_s { pub __lock : :: std :: os :: raw :: c_int , pub __count : :: std :: os :: raw :: c_uint , pub __owner : :: std :: os :: raw :: c_int , pub __nusers : :: std :: os :: raw :: c_uint , pub __kind : :: std :: os :: raw :: c_int , pub __spins : :: std :: os :: raw :: c_short , pub __unused : :: std :: os :: raw :: c_short , pub __list : __pthread_list_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __pthread_mutex_s"] [:: std :: mem :: size_of :: < __pthread_mutex_s > () - 40usize] ; ["Alignment of __pthread_mutex_s"] [:: std :: mem :: align_of :: < __pthread_mutex_s > () - 8usize] ; ["Offset of field: __pthread_mutex_s::__lock"] [:: std :: mem :: offset_of ! (__pthread_mutex_s , __lock) - 0usize] ; ["Offset of field: __pthread_mutex_s::__count"] [:: std :: mem :: offset_of ! (__pthread_mutex_s , __count) - 4usize] ; ["Offset of field: __pthread_mutex_s::__owner"] [:: std :: mem :: offset_of ! (__pthread_mutex_s , __owner) - 8usize] ; ["Offset of field: __pthread_mutex_s::__nusers"] [:: std :: mem :: offset_of ! (__pthread_mutex_s , __nusers) - 12usize] ; ["Offset of field: __pthread_mutex_s::__kind"] [:: std :: mem :: offset_of ! (__pthread_mutex_s , __kind) - 16usize] ; ["Offset of field: __pthread_mutex_s::__spins"] [:: std :: mem :: offset_of ! (__pthread_mutex_s , __spins) - 20usize] ; ["Offset of field: __pthread_mutex_s::__unused"] [:: std :: mem :: offset_of ! (__pthread_mutex_s , __unused) - 22usize] ; ["Offset of field: __pthread_mutex_s::__list"] [:: std :: mem :: offset_of ! (__pthread_mutex_s , __list) - 24usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_rwlock_arch_t { pub __readers : :: std :: os :: raw :: c_uint , pub __writers : :: std :: os :: raw :: c_uint , pub __wrphase_futex : :: std :: os :: raw :: c_uint , pub __writers_futex : :: std :: os :: raw :: c_uint , pub __pad3 : :: std :: os :: raw :: c_uint , pub __pad4 : :: std :: os :: raw :: c_uint , pub __cur_writer : :: std :: os :: raw :: c_int , pub __shared : :: std :: os :: raw :: c_int , pub __pad1 : :: std :: os :: raw :: c_ulong , pub __pad2 : :: std :: os :: raw :: c_ulong , pub __flags : :: std :: os :: raw :: c_uint , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __pthread_rwlock_arch_t"] [:: std :: mem :: size_of :: < __pthread_rwlock_arch_t > () - 56usize] ; ["Alignment of __pthread_rwlock_arch_t"] [:: std :: mem :: align_of :: < __pthread_rwlock_arch_t > () - 8usize] ; ["Offset of field: __pthread_rwlock_arch_t::__readers"] [:: std :: mem :: offset_of ! (__pthread_rwlock_arch_t , __readers) - 0usize] ; ["Offset of field: __pthread_rwlock_arch_t::__writers"] [:: std :: mem :: offset_of ! (__pthread_rwlock_arch_t , __writers) - 4usize] ; ["Offset of field: __pthread_rwlock_arch_t::__wrphase_futex"] [:: std :: mem :: offset_of ! (__pthread_rwlock_arch_t , __wrphase_futex) - 8usize] ; ["Offset of field: __pthread_rwlock_arch_t::__writers_futex"] [:: std :: mem :: offset_of ! (__pthread_rwlock_arch_t , __writers_futex) - 12usize] ; ["Offset of field: __pthread_rwlock_arch_t::__pad3"] [:: std :: mem :: offset_of ! (__pthread_rwlock_arch_t , __pad3) - 16usize] ; ["Offset of field: __pthread_rwlock_arch_t::__pad4"] [:: std :: mem :: offset_of ! (__pthread_rwlock_arch_t , __pad4) - 20usize] ; ["Offset of field: __pthread_rwlock_arch_t::__cur_writer"] [:: std :: mem :: offset_of ! (__pthread_rwlock_arch_t , __cur_writer) - 24usize] ; ["Offset of field: __pthread_rwlock_arch_t::__shared"] [:: std :: mem :: offset_of ! (__pthread_rwlock_arch_t , __shared) - 28usize] ; ["Offset of field: __pthread_rwlock_arch_t::__pad1"] [:: std :: mem :: offset_of ! (__pthread_rwlock_arch_t , __pad1) - 32usize] ; ["Offset of field: __pthread_rwlock_arch_t::__pad2"] [:: std :: mem :: offset_of ! (__pthread_rwlock_arch_t , __pad2) - 40usize] ; ["Offset of field: __pthread_rwlock_arch_t::__flags"] [:: std :: mem :: offset_of ! (__pthread_rwlock_arch_t , __flags) - 48usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub struct __pthread_cond_s { pub __wseq : __atomic_wide_counter , pub __g1_start : __atomic_wide_counter , pub __g_size : [:: std :: os :: raw :: c_uint ; 2usize] , pub __g1_orig_size : :: std :: os :: raw :: c_uint , pub __wrefs : :: std :: os :: raw :: c_uint , pub __g_signals : [:: std :: os :: raw :: c_uint ; 2usize] , pub __unused_initialized_1 : :: std :: os :: raw :: c_uint , pub __unused_initialized_2 : :: std :: os :: raw :: c_uint , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __pthread_cond_s"] [:: std :: mem :: size_of :: < __pthread_cond_s > () - 48usize] ; ["Alignment of __pthread_cond_s"] [:: std :: mem :: align_of :: < __pthread_cond_s > () - 8usize] ; ["Offset of field: __pthread_cond_s::__wseq"] [:: std :: mem :: offset_of ! (__pthread_cond_s , __wseq) - 0usize] ; ["Offset of field: __pthread_cond_s::__g1_start"] [:: std :: mem :: offset_of ! (__pthread_cond_s , __g1_start) - 8usize] ; ["Offset of field: __pthread_cond_s::__g_size"] [:: std :: mem :: offset_of ! (__pthread_cond_s , __g_size) - 16usize] ; ["Offset of field: __pthread_cond_s::__g1_orig_size"] [:: std :: mem :: offset_of ! (__pthread_cond_s , __g1_orig_size) - 24usize] ; ["Offset of field: __pthread_cond_s::__wrefs"] [:: std :: mem :: offset_of ! (__pthread_cond_s , __wrefs) - 28usize] ; ["Offset of field: __pthread_cond_s::__g_signals"] [:: std :: mem :: offset_of ! (__pthread_cond_s , __g_signals) - 32usize] ; ["Offset of field: __pthread_cond_s::__unused_initialized_1"] [:: std :: mem :: offset_of ! (__pthread_cond_s , __unused_initialized_1) - 40usize] ; ["Offset of field: __pthread_cond_s::__unused_initialized_2"] [:: std :: mem :: offset_of ! (__pthread_cond_s , __unused_initialized_2) - 44usize] ; } ; pub type __tss_t = :: std :: os :: raw :: c_uint ; pub type __thrd_t = :: std :: os :: raw :: c_ulong ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __once_flag { pub __data : :: std :: os :: raw :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __once_flag"] [:: std :: mem :: size_of :: < __once_flag > () - 4usize] ; ["Alignment of __once_flag"] [:: std :: mem :: align_of :: < __once_flag > () - 4usize] ; ["Offset of field: __once_flag::__data"] [:: std :: mem :: offset_of ! (__once_flag , __data) - 0usize] ; } ; pub type pthread_t = :: std :: os :: raw :: c_ulong ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_mutexattr_t { pub __size : [:: std :: os :: raw :: c_char ; 4usize] , pub __align : :: std :: os :: raw :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_mutexattr_t"] [:: std :: mem :: size_of :: < pthread_mutexattr_t > () - 4usize] ; ["Alignment of pthread_mutexattr_t"] [:: std :: mem :: align_of :: < pthread_mutexattr_t > () - 4usize] ; ["Offset of field: pthread_mutexattr_t::__size"] [:: std :: mem :: offset_of ! (pthread_mutexattr_t , __size) - 0usize] ; ["Offset of field: pthread_mutexattr_t::__align"] [:: std :: mem :: offset_of ! (pthread_mutexattr_t , __align) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_condattr_t { pub __size : [:: std :: os :: raw :: c_char ; 4usize] , pub __align : :: std :: os :: raw :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_condattr_t"] [:: std :: mem :: size_of :: < pthread_condattr_t > () - 4usize] ; ["Alignment of pthread_condattr_t"] [:: std :: mem :: align_of :: < pthread_condattr_t > () - 4usize] ; ["Offset of field: pthread_condattr_t::__size"] [:: std :: mem :: offset_of ! (pthread_condattr_t , __size) - 0usize] ; ["Offset of field: pthread_condattr_t::__align"] [:: std :: mem :: offset_of ! (pthread_condattr_t , __align) - 0usize] ; } ; pub type pthread_key_t = :: std :: os :: raw :: c_uint ; pub type pthread_once_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_attr_t { pub __size : [:: std :: os :: raw :: c_char ; 56usize] , pub __align : :: std :: os :: raw :: c_long , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_attr_t"] [:: std :: mem :: size_of :: < pthread_attr_t > () - 56usize] ; ["Alignment of pthread_attr_t"] [:: std :: mem :: align_of :: < pthread_attr_t > () - 8usize] ; ["Offset of field: pthread_attr_t::__size"] [:: std :: mem :: offset_of ! (pthread_attr_t , __size) - 0usize] ; ["Offset of field: pthread_attr_t::__align"] [:: std :: mem :: offset_of ! (pthread_attr_t , __align) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_mutex_t { pub __data : __pthread_mutex_s , pub __size : [:: std :: os :: raw :: c_char ; 40usize] , pub __align : :: std :: os :: raw :: c_long , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_mutex_t"] [:: std :: mem :: size_of :: < pthread_mutex_t > () - 40usize] ; ["Alignment of pthread_mutex_t"] [:: std :: mem :: align_of :: < pthread_mutex_t > () - 8usize] ; ["Offset of field: pthread_mutex_t::__data"] [:: std :: mem :: offset_of ! (pthread_mutex_t , __data) - 0usize] ; ["Offset of field: pthread_mutex_t::__size"] [:: std :: mem :: offset_of ! (pthread_mutex_t , __size) - 0usize] ; ["Offset of field: pthread_mutex_t::__align"] [:: std :: mem :: offset_of ! (pthread_mutex_t , __align) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_cond_t { pub __data : __pthread_cond_s , pub __size : [:: std :: os :: raw :: c_char ; 48usize] , pub __align : :: std :: os :: raw :: c_longlong , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_cond_t"] [:: std :: mem :: size_of :: < pthread_cond_t > () - 48usize] ; ["Alignment of pthread_cond_t"] [:: std :: mem :: align_of :: < pthread_cond_t > () - 8usize] ; ["Offset of field: pthread_cond_t::__data"] [:: std :: mem :: offset_of ! (pthread_cond_t , __data) - 0usize] ; ["Offset of field: pthread_cond_t::__size"] [:: std :: mem :: offset_of ! (pthread_cond_t , __size) - 0usize] ; ["Offset of field: pthread_cond_t::__align"] [:: std :: mem :: offset_of ! (pthread_cond_t , __align) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_rwlock_t { pub __data : __pthread_rwlock_arch_t , pub __size : [:: std :: os :: raw :: c_char ; 56usize] , pub __align : :: std :: os :: raw :: c_long , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_rwlock_t"] [:: std :: mem :: size_of :: < pthread_rwlock_t > () - 56usize] ; ["Alignment of pthread_rwlock_t"] [:: std :: mem :: align_of :: < pthread_rwlock_t > () - 8usize] ; ["Offset of field: pthread_rwlock_t::__data"] [:: std :: mem :: offset_of ! (pthread_rwlock_t , __data) - 0usize] ; ["Offset of field: pthread_rwlock_t::__size"] [:: std :: mem :: offset_of ! (pthread_rwlock_t , __size) - 0usize] ; ["Offset of field: pthread_rwlock_t::__align"] [:: std :: mem :: offset_of ! (pthread_rwlock_t , __align) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_rwlockattr_t { pub __size : [:: std :: os :: raw :: c_char ; 8usize] , pub __align : :: std :: os :: raw :: c_long , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_rwlockattr_t"] [:: std :: mem :: size_of :: < pthread_rwlockattr_t > () - 8usize] ; ["Alignment of pthread_rwlockattr_t"] [:: std :: mem :: align_of :: < pthread_rwlockattr_t > () - 8usize] ; ["Offset of field: pthread_rwlockattr_t::__size"] [:: std :: mem :: offset_of ! (pthread_rwlockattr_t , __size) - 0usize] ; ["Offset of field: pthread_rwlockattr_t::__align"] [:: std :: mem :: offset_of ! (pthread_rwlockattr_t , __align) - 0usize] ; } ; pub type pthread_spinlock_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_barrier_t { pub __size : [:: std :: os :: raw :: c_char ; 32usize] , pub __align : :: std :: os :: raw :: c_long , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_barrier_t"] [:: std :: mem :: size_of :: < pthread_barrier_t > () - 32usize] ; ["Alignment of pthread_barrier_t"] [:: std :: mem :: align_of :: < pthread_barrier_t > () - 8usize] ; ["Offset of field: pthread_barrier_t::__size"] [:: std :: mem :: offset_of ! (pthread_barrier_t , __size) - 0usize] ; ["Offset of field: pthread_barrier_t::__align"] [:: std :: mem :: offset_of ! (pthread_barrier_t , __align) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_barrierattr_t { pub __size : [:: std :: os :: raw :: c_char ; 4usize] , pub __align : :: std :: os :: raw :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_barrierattr_t"] [:: std :: mem :: size_of :: < pthread_barrierattr_t > () - 4usize] ; ["Alignment of pthread_barrierattr_t"] [:: std :: mem :: align_of :: < pthread_barrierattr_t > () - 4usize] ; ["Offset of field: pthread_barrierattr_t::__size"] [:: std :: mem :: offset_of ! (pthread_barrierattr_t , __size) - 0usize] ; ["Offset of field: pthread_barrierattr_t::__align"] [:: std :: mem :: offset_of ! (pthread_barrierattr_t , __align) - 0usize] ; } ; unsafe extern "C" { pub fn random () -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn srandom (__seed : :: std :: os :: raw :: c_uint) ; } unsafe extern "C" { pub fn initstate (__seed : :: std :: os :: raw :: c_uint , __statebuf : * mut :: std :: os :: raw :: c_char , __statelen : usize) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn setstate (__statebuf : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct random_data { pub fptr : * mut i32 , pub rptr : * mut i32 , pub state : * mut i32 , pub rand_type : :: std :: os :: raw :: c_int , pub rand_deg : :: std :: os :: raw :: c_int , pub rand_sep : :: std :: os :: raw :: c_int , pub end_ptr : * mut i32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of random_data"] [:: std :: mem :: size_of :: < random_data > () - 48usize] ; ["Alignment of random_data"] [:: std :: mem :: align_of :: < random_data > () - 8usize] ; ["Offset of field: random_data::fptr"] [:: std :: mem :: offset_of ! (random_data , fptr) - 0usize] ; ["Offset of field: random_data::rptr"] [:: std :: mem :: offset_of ! (random_data , rptr) - 8usize] ; ["Offset of field: random_data::state"] [:: std :: mem :: offset_of ! (random_data , state) - 16usize] ; ["Offset of field: random_data::rand_type"] [:: std :: mem :: offset_of ! (random_data , rand_type) - 24usize] ; ["Offset of field: random_data::rand_deg"] [:: std :: mem :: offset_of ! (random_data , rand_deg) - 28usize] ; ["Offset of field: random_data::rand_sep"] [:: std :: mem :: offset_of ! (random_data , rand_sep) - 32usize] ; ["Offset of field: random_data::end_ptr"] [:: std :: mem :: offset_of ! (random_data , end_ptr) - 40usize] ; } ; unsafe extern "C" { pub fn random_r (__buf : * mut random_data , __result : * mut i32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn srandom_r (__seed : :: std :: os :: raw :: c_uint , __buf : * mut random_data) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn initstate_r (__seed : :: std :: os :: raw :: c_uint , __statebuf : * mut :: std :: os :: raw :: c_char , __statelen : usize , __buf : * mut random_data) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn setstate_r (__statebuf : * mut :: std :: os :: raw :: c_char , __buf : * mut random_data) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn rand () -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn srand (__seed : :: std :: os :: raw :: c_uint) ; } unsafe extern "C" { pub fn rand_r (__seed : * mut :: std :: os :: raw :: c_uint) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn drand48 () -> f64 ; } unsafe extern "C" { pub fn erand48 (__xsubi : * mut :: std :: os :: raw :: c_ushort) -> f64 ; } unsafe extern "C" { pub fn lrand48 () -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn nrand48 (__xsubi : * mut :: std :: os :: raw :: c_ushort) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn mrand48 () -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn jrand48 (__xsubi : * mut :: std :: os :: raw :: c_ushort) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn srand48 (__seedval : :: std :: os :: raw :: c_long) ; } unsafe extern "C" { pub fn seed48 (__seed16v : * mut :: std :: os :: raw :: c_ushort) -> * mut :: std :: os :: raw :: c_ushort ; } unsafe extern "C" { pub fn lcong48 (__param : * mut :: std :: os :: raw :: c_ushort) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct drand48_data { pub __x : [:: std :: os :: raw :: c_ushort ; 3usize] , pub __old_x : [:: std :: os :: raw :: c_ushort ; 3usize] , pub __c : :: std :: os :: raw :: c_ushort , pub __init : :: std :: os :: raw :: c_ushort , pub __a : :: std :: os :: raw :: c_ulonglong , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of drand48_data"] [:: std :: mem :: size_of :: < drand48_data > () - 24usize] ; ["Alignment of drand48_data"] [:: std :: mem :: align_of :: < drand48_data > () - 8usize] ; ["Offset of field: drand48_data::__x"] [:: std :: mem :: offset_of ! (drand48_data , __x) - 0usize] ; ["Offset of field: drand48_data::__old_x"] [:: std :: mem :: offset_of ! (drand48_data , __old_x) - 6usize] ; ["Offset of field: drand48_data::__c"] [:: std :: mem :: offset_of ! (drand48_data , __c) - 12usize] ; ["Offset of field: drand48_data::__init"] [:: std :: mem :: offset_of ! (drand48_data , __init) - 14usize] ; ["Offset of field: drand48_data::__a"] [:: std :: mem :: offset_of ! (drand48_data , __a) - 16usize] ; } ; unsafe extern "C" { pub fn drand48_r (__buffer : * mut drand48_data , __result : * mut f64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn erand48_r (__xsubi : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data , __result : * mut f64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn lrand48_r (__buffer : * mut drand48_data , __result : * mut :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn nrand48_r (__xsubi : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data , __result : * mut :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mrand48_r (__buffer : * mut drand48_data , __result : * mut :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn jrand48_r (__xsubi : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data , __result : * mut :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn srand48_r (__seedval : :: std :: os :: raw :: c_long , __buffer : * mut drand48_data) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn seed48_r (__seed16v : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn lcong48_r (__param : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn arc4random () -> __uint32_t ; } unsafe extern "C" { pub fn arc4random_buf (__buf : * mut :: std :: os :: raw :: c_void , __size : usize) ; } unsafe extern "C" { pub fn arc4random_uniform (__upper_bound : __uint32_t) -> __uint32_t ; } unsafe extern "C" { pub fn malloc (__size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } unsafe extern "C" { pub fn calloc (__nmemb : :: std :: os :: raw :: c_ulong , __size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } unsafe extern "C" { pub fn realloc (__ptr : * mut :: std :: os :: raw :: c_void , __size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } unsafe extern "C" { pub fn free (__ptr : * mut :: std :: os :: raw :: c_void) ; } unsafe extern "C" { pub fn reallocarray (__ptr : * mut :: std :: os :: raw :: c_void , __nmemb : usize , __size : usize) -> * mut :: std :: os :: raw :: c_void ; } unsafe extern "C" { pub fn alloca (__size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } unsafe extern "C" { pub fn valloc (__size : usize) -> * mut :: std :: os :: raw :: c_void ; } unsafe extern "C" { pub fn posix_memalign (__memptr : * mut * mut :: std :: os :: raw :: c_void , __alignment : usize , __size : usize) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn aligned_alloc (__alignment : :: std :: os :: raw :: c_ulong , __size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } unsafe extern "C" { pub fn abort () -> ! ; } unsafe extern "C" { pub fn atexit (__func : :: std :: option :: Option < unsafe extern "C" fn () >) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn at_quick_exit (__func : :: std :: option :: Option < unsafe extern "C" fn () >) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn on_exit (__func : :: std :: option :: Option < unsafe extern "C" fn (__status : :: std :: os :: raw :: c_int , __arg : * mut :: std :: os :: raw :: c_void) > , __arg : * mut :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn exit (__status : :: std :: os :: raw :: c_int) -> ! ; } unsafe extern "C" { pub fn quick_exit (__status : :: std :: os :: raw :: c_int) -> ! ; } unsafe extern "C" { pub fn _Exit (__status : :: std :: os :: raw :: c_int) -> ! ; } unsafe extern "C" { pub fn getenv (__name : * const :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn putenv (__string : * mut :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn setenv (__name : * const :: std :: os :: raw :: c_char , __value : * const :: std :: os :: raw :: c_char , __replace : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn unsetenv (__name : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn clearenv () -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mktemp (__template : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn mkstemp (__template : * mut :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mkstemps (__template : * mut :: std :: os :: raw :: c_char , __suffixlen : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mkdtemp (__template : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn system (__command : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn realpath (__name : * const :: std :: os :: raw :: c_char , __resolved : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } pub type __compar_fn_t = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * const :: std :: os :: raw :: c_void , arg2 : * const :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int > ; unsafe extern "C" { pub fn bsearch (__key : * const :: std :: os :: raw :: c_void , __base : * const :: std :: os :: raw :: c_void , __nmemb : usize , __size : usize , __compar : __compar_fn_t) -> * mut :: std :: os :: raw :: c_void ; } unsafe extern "C" { pub fn qsort (__base : * mut :: std :: os :: raw :: c_void , __nmemb : usize , __size : usize , __compar : __compar_fn_t) ; } unsafe extern "C" { pub fn abs (__x : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn labs (__x : :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn llabs (__x : :: std :: os :: raw :: c_longlong) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn div (__numer : :: std :: os :: raw :: c_int , __denom : :: std :: os :: raw :: c_int) -> div_t ; } unsafe extern "C" { pub fn ldiv (__numer : :: std :: os :: raw :: c_long , __denom : :: std :: os :: raw :: c_long) -> ldiv_t ; } unsafe extern "C" { pub fn lldiv (__numer : :: std :: os :: raw :: c_longlong , __denom : :: std :: os :: raw :: c_longlong) -> lldiv_t ; } unsafe extern "C" { pub fn ecvt (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn fcvt (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn gcvt (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn qecvt (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn qfcvt (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn qgcvt (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn ecvt_r (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char , __len : usize) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn fcvt_r (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char , __len : usize) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn qecvt_r (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char , __len : usize) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn qfcvt_r (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char , __len : usize) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mblen (__s : * const :: std :: os :: raw :: c_char , __n : usize) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mbtowc (__pwc : * mut wchar_t , __s : * const :: std :: os :: raw :: c_char , __n : usize) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn wctomb (__s : * mut :: std :: os :: raw :: c_char , __wchar : wchar_t) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mbstowcs (__pwcs : * mut wchar_t , __s : * const :: std :: os :: raw :: c_char , __n : usize) -> usize ; } unsafe extern "C" { pub fn wcstombs (__s : * mut :: std :: os :: raw :: c_char , __pwcs : * const wchar_t , __n : usize) -> usize ; } unsafe extern "C" { pub fn rpmatch (__response : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getsubopt (__optionp : * mut * mut :: std :: os :: raw :: c_char , __tokens : * const * mut :: std :: os :: raw :: c_char , __valuep : * mut * mut :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getloadavg (__loadavg : * mut f64 , __nelem : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } # [repr (C)] # [repr (align (16))] # [derive (Debug , Copy , Clone)] pub struct max_align_t { pub __clang_max_align_nonce1 : :: std :: os :: raw :: c_longlong , pub __bindgen_padding_0 : u64 , pub __clang_max_align_nonce2 : u128 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of max_align_t"] [:: std :: mem :: size_of :: < max_align_t > () - 32usize] ; ["Alignment of max_align_t"] [:: std :: mem :: align_of :: < max_align_t > () - 16usize] ; ["Offset of field: max_align_t::__clang_max_align_nonce1"] [:: std :: mem :: offset_of ! (max_align_t , __clang_max_align_nonce1) - 0usize] ; ["Offset of field: max_align_t::__clang_max_align_nonce2"] [:: std :: mem :: offset_of ! (max_align_t , __clang_max_align_nonce2) - 16usize] ; } ; pub type int_least8_t = __int_least8_t ; pub type int_least16_t = __int_least16_t ; pub type int_least32_t = __int_least32_t ; pub type int_least64_t = __int_least64_t ; pub type uint_least8_t = __uint_least8_t ; pub type uint_least16_t = __uint_least16_t ; pub type uint_least32_t = __uint_least32_t ; pub type uint_least64_t = __uint_least64_t ; pub type int_fast8_t = :: std :: os :: raw :: c_schar ; pub type int_fast16_t = :: std :: os :: raw :: c_long ; pub type int_fast32_t = :: std :: os :: raw :: c_long ; pub type int_fast64_t = :: std :: os :: raw :: c_long ; pub type uint_fast8_t = :: std :: os :: raw :: c_uchar ; pub type uint_fast16_t = :: std :: os :: raw :: c_ulong ; pub type uint_fast32_t = :: std :: os :: raw :: c_ulong ; pub type uint_fast64_t = :: std :: os :: raw :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub type __gwchar_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct imaxdiv_t { pub quot : :: std :: os :: raw :: c_long , pub rem : :: std :: os :: raw :: c_long , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of imaxdiv_t"] [:: std :: mem :: size_of :: < imaxdiv_t > () - 16usize] ; ["Alignment of imaxdiv_t"] [:: std :: mem :: align_of :: < imaxdiv_t > () - 8usize] ; ["Offset of field: imaxdiv_t::quot"] [:: std :: mem :: offset_of ! (imaxdiv_t , quot) - 0usize] ; ["Offset of field: imaxdiv_t::rem"] [:: std :: mem :: offset_of ! (imaxdiv_t , rem) - 8usize] ; } ; unsafe extern "C" { pub fn imaxabs (__n : intmax_t) -> intmax_t ; } unsafe extern "C" { pub fn imaxdiv (__numer : intmax_t , __denom : intmax_t) -> imaxdiv_t ; } unsafe extern "C" { pub fn strtoimax (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> intmax_t ; } unsafe extern "C" { pub fn strtoumax (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> uintmax_t ; } unsafe extern "C" { pub fn wcstoimax (__nptr : * const __gwchar_t , __endptr : * mut * mut __gwchar_t , __base : :: std :: os :: raw :: c_int) -> intmax_t ; } unsafe extern "C" { pub fn wcstoumax (__nptr : * const __gwchar_t , __endptr : * mut * mut __gwchar_t , __base : :: std :: os :: raw :: c_int) -> uintmax_t ; } # [doc = "=============================================================================\n                      Compiler and Platform Features\n============================================================================="] pub type i8_ = i8 ; pub type u8_ = u8 ; pub type i16_ = i16 ; pub type u16_ = u16 ; pub type i32_ = i32 ; pub type u32_ = u32 ; pub type i64_ = i64 ; pub type u64_ = u64 ; pub type f32_ = f32 ; pub type f64_ = f64 ; # [doc = "=============================================================================\n                               Xoroshiro 128\n============================================================================="] # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Xoroshiro { pub lo : u64 , pub hi : u64 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Xoroshiro"] [:: std :: mem :: size_of :: < Xoroshiro > () - 16usize] ; ["Alignment of Xoroshiro"] [:: std :: mem :: align_of :: < Xoroshiro > () - 8usize] ; ["Offset of field: Xoroshiro::lo"] [:: std :: mem :: offset_of ! (Xoroshiro , lo) - 0usize] ; ["Offset of field: Xoroshiro::hi"] [:: std :: mem :: offset_of ! (Xoroshiro , hi) - 8usize] ; } ; pub type float_t = f32 ; pub type double_t = f64 ; unsafe extern "C" { pub fn __fpclassify (__value : f64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __signbit (__value : f64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __isinf (__value : f64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __finite (__value : f64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __isnan (__value : f64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __iseqsig (__x : f64 , __y : f64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __issignaling (__value : f64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn acos (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __acos (__x : f64) -> f64 ; } unsafe extern "C" { pub fn asin (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __asin (__x : f64) -> f64 ; } unsafe extern "C" { pub fn atan (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __atan (__x : f64) -> f64 ; } unsafe extern "C" { pub fn atan2 (__y : f64 , __x : f64) -> f64 ; } unsafe extern "C" { pub fn __atan2 (__y : f64 , __x : f64) -> f64 ; } unsafe extern "C" { pub fn cos (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __cos (__x : f64) -> f64 ; } unsafe extern "C" { pub fn sin (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __sin (__x : f64) -> f64 ; } unsafe extern "C" { pub fn tan (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __tan (__x : f64) -> f64 ; } unsafe extern "C" { pub fn cosh (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __cosh (__x : f64) -> f64 ; } unsafe extern "C" { pub fn sinh (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __sinh (__x : f64) -> f64 ; } unsafe extern "C" { pub fn tanh (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __tanh (__x : f64) -> f64 ; } unsafe extern "C" { pub fn acosh (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __acosh (__x : f64) -> f64 ; } unsafe extern "C" { pub fn asinh (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __asinh (__x : f64) -> f64 ; } unsafe extern "C" { pub fn atanh (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __atanh (__x : f64) -> f64 ; } unsafe extern "C" { pub fn exp (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __exp (__x : f64) -> f64 ; } unsafe extern "C" { pub fn frexp (__x : f64 , __exponent : * mut :: std :: os :: raw :: c_int) -> f64 ; } unsafe extern "C" { pub fn __frexp (__x : f64 , __exponent : * mut :: std :: os :: raw :: c_int) -> f64 ; } unsafe extern "C" { pub fn ldexp (__x : f64 , __exponent : :: std :: os :: raw :: c_int) -> f64 ; } unsafe extern "C" { pub fn __ldexp (__x : f64 , __exponent : :: std :: os :: raw :: c_int) -> f64 ; } unsafe extern "C" { pub fn log (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __log (__x : f64) -> f64 ; } unsafe extern "C" { pub fn log10 (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __log10 (__x : f64) -> f64 ; } unsafe extern "C" { pub fn modf (__x : f64 , __iptr : * mut f64) -> f64 ; } unsafe extern "C" { pub fn __modf (__x : f64 , __iptr : * mut f64) -> f64 ; } unsafe extern "C" { pub fn expm1 (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __expm1 (__x : f64) -> f64 ; } unsafe extern "C" { pub fn log1p (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __log1p (__x : f64) -> f64 ; } unsafe extern "C" { pub fn logb (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __logb (__x : f64) -> f64 ; } unsafe extern "C" { pub fn exp2 (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __exp2 (__x : f64) -> f64 ; } unsafe extern "C" { pub fn log2 (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __log2 (__x : f64) -> f64 ; } unsafe extern "C" { pub fn pow (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn __pow (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn sqrt (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __sqrt (__x : f64) -> f64 ; } unsafe extern "C" { pub fn hypot (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn __hypot (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn cbrt (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __cbrt (__x : f64) -> f64 ; } unsafe extern "C" { pub fn ceil (__x : f64) -> f64 ; } unsafe extern "C" { pub fn fabs (__x : f64) -> f64 ; } unsafe extern "C" { pub fn floor (__x : f64) -> f64 ; } unsafe extern "C" { pub fn fmod (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn __fmod (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn isinf (__value : f64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn finite (__value : f64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn drem (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn __drem (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn significand (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __significand (__x : f64) -> f64 ; } unsafe extern "C" { pub fn copysign (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn nan (__tagb : * const :: std :: os :: raw :: c_char) -> f64 ; } unsafe extern "C" { pub fn __nan (__tagb : * const :: std :: os :: raw :: c_char) -> f64 ; } unsafe extern "C" { pub fn isnan (__value : f64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn j0 (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn __j0 (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn j1 (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn __j1 (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn jn (arg1 : :: std :: os :: raw :: c_int , arg2 : f64) -> f64 ; } unsafe extern "C" { pub fn __jn (arg1 : :: std :: os :: raw :: c_int , arg2 : f64) -> f64 ; } unsafe extern "C" { pub fn y0 (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn __y0 (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn y1 (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn __y1 (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn yn (arg1 : :: std :: os :: raw :: c_int , arg2 : f64) -> f64 ; } unsafe extern "C" { pub fn __yn (arg1 : :: std :: os :: raw :: c_int , arg2 : f64) -> f64 ; } unsafe extern "C" { pub fn erf (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn __erf (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn erfc (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn __erfc (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn lgamma (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn __lgamma (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn tgamma (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn __tgamma (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn gamma (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn __gamma (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn lgamma_r (arg1 : f64 , __signgamp : * mut :: std :: os :: raw :: c_int) -> f64 ; } unsafe extern "C" { pub fn __lgamma_r (arg1 : f64 , __signgamp : * mut :: std :: os :: raw :: c_int) -> f64 ; } unsafe extern "C" { pub fn rint (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __rint (__x : f64) -> f64 ; } unsafe extern "C" { pub fn nextafter (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn __nextafter (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn nexttoward (__x : f64 , __y : u128) -> f64 ; } unsafe extern "C" { pub fn __nexttoward (__x : f64 , __y : u128) -> f64 ; } unsafe extern "C" { pub fn remainder (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn __remainder (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn scalbn (__x : f64 , __n : :: std :: os :: raw :: c_int) -> f64 ; } unsafe extern "C" { pub fn __scalbn (__x : f64 , __n : :: std :: os :: raw :: c_int) -> f64 ; } unsafe extern "C" { pub fn ilogb (__x : f64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __ilogb (__x : f64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn scalbln (__x : f64 , __n : :: std :: os :: raw :: c_long) -> f64 ; } unsafe extern "C" { pub fn __scalbln (__x : f64 , __n : :: std :: os :: raw :: c_long) -> f64 ; } unsafe extern "C" { pub fn nearbyint (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __nearbyint (__x : f64) -> f64 ; } unsafe extern "C" { pub fn round (__x : f64) -> f64 ; } unsafe extern "C" { pub fn trunc (__x : f64) -> f64 ; } unsafe extern "C" { pub fn remquo (__x : f64 , __y : f64 , __quo : * mut :: std :: os :: raw :: c_int) -> f64 ; } unsafe extern "C" { pub fn __remquo (__x : f64 , __y : f64 , __quo : * mut :: std :: os :: raw :: c_int) -> f64 ; } unsafe extern "C" { pub fn lrint (__x : f64) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn __lrint (__x : f64) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn llrint (__x : f64) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn __llrint (__x : f64) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn lround (__x : f64) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn __lround (__x : f64) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn llround (__x : f64) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn __llround (__x : f64) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn fdim (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn __fdim (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn fmax (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn fmin (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn fma (__x : f64 , __y : f64 , __z : f64) -> f64 ; } unsafe extern "C" { pub fn __fma (__x : f64 , __y : f64 , __z : f64) -> f64 ; } unsafe extern "C" { pub fn scalb (__x : f64 , __n : f64) -> f64 ; } unsafe extern "C" { pub fn __scalb (__x : f64 , __n : f64) -> f64 ; } unsafe extern "C" { pub fn __fpclassifyf (__value : f32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __signbitf (__value : f32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __isinff (__value : f32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __finitef (__value : f32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __isnanf (__value : f32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __iseqsigf (__x : f32 , __y : f32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __issignalingf (__value : f32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn acosf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __acosf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn asinf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __asinf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn atanf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __atanf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn atan2f (__y : f32 , __x : f32) -> f32 ; } unsafe extern "C" { pub fn __atan2f (__y : f32 , __x : f32) -> f32 ; } unsafe extern "C" { pub fn cosf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __cosf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn sinf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __sinf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn tanf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __tanf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn coshf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __coshf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn sinhf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __sinhf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn tanhf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __tanhf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn acoshf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __acoshf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn asinhf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __asinhf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn atanhf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __atanhf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn expf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __expf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn frexpf (__x : f32 , __exponent : * mut :: std :: os :: raw :: c_int) -> f32 ; } unsafe extern "C" { pub fn __frexpf (__x : f32 , __exponent : * mut :: std :: os :: raw :: c_int) -> f32 ; } unsafe extern "C" { pub fn ldexpf (__x : f32 , __exponent : :: std :: os :: raw :: c_int) -> f32 ; } unsafe extern "C" { pub fn __ldexpf (__x : f32 , __exponent : :: std :: os :: raw :: c_int) -> f32 ; } unsafe extern "C" { pub fn logf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __logf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn log10f (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __log10f (__x : f32) -> f32 ; } unsafe extern "C" { pub fn modff (__x : f32 , __iptr : * mut f32) -> f32 ; } unsafe extern "C" { pub fn __modff (__x : f32 , __iptr : * mut f32) -> f32 ; } unsafe extern "C" { pub fn expm1f (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __expm1f (__x : f32) -> f32 ; } unsafe extern "C" { pub fn log1pf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __log1pf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn logbf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __logbf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn exp2f (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __exp2f (__x : f32) -> f32 ; } unsafe extern "C" { pub fn log2f (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __log2f (__x : f32) -> f32 ; } unsafe extern "C" { pub fn powf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn __powf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn sqrtf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __sqrtf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn hypotf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn __hypotf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn cbrtf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __cbrtf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn ceilf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn fabsf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn floorf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn fmodf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn __fmodf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn isinff (__value : f32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn finitef (__value : f32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn dremf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn __dremf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn significandf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __significandf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn copysignf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn nanf (__tagb : * const :: std :: os :: raw :: c_char) -> f32 ; } unsafe extern "C" { pub fn __nanf (__tagb : * const :: std :: os :: raw :: c_char) -> f32 ; } unsafe extern "C" { pub fn isnanf (__value : f32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn j0f (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn __j0f (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn j1f (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn __j1f (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn jnf (arg1 : :: std :: os :: raw :: c_int , arg2 : f32) -> f32 ; } unsafe extern "C" { pub fn __jnf (arg1 : :: std :: os :: raw :: c_int , arg2 : f32) -> f32 ; } unsafe extern "C" { pub fn y0f (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn __y0f (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn y1f (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn __y1f (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn ynf (arg1 : :: std :: os :: raw :: c_int , arg2 : f32) -> f32 ; } unsafe extern "C" { pub fn __ynf (arg1 : :: std :: os :: raw :: c_int , arg2 : f32) -> f32 ; } unsafe extern "C" { pub fn erff (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn __erff (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn erfcf (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn __erfcf (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn lgammaf (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn __lgammaf (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn tgammaf (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn __tgammaf (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn gammaf (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn __gammaf (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn lgammaf_r (arg1 : f32 , __signgamp : * mut :: std :: os :: raw :: c_int) -> f32 ; } unsafe extern "C" { pub fn __lgammaf_r (arg1 : f32 , __signgamp : * mut :: std :: os :: raw :: c_int) -> f32 ; } unsafe extern "C" { pub fn rintf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __rintf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn nextafterf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn __nextafterf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn nexttowardf (__x : f32 , __y : u128) -> f32 ; } unsafe extern "C" { pub fn __nexttowardf (__x : f32 , __y : u128) -> f32 ; } unsafe extern "C" { pub fn remainderf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn __remainderf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn scalbnf (__x : f32 , __n : :: std :: os :: raw :: c_int) -> f32 ; } unsafe extern "C" { pub fn __scalbnf (__x : f32 , __n : :: std :: os :: raw :: c_int) -> f32 ; } unsafe extern "C" { pub fn ilogbf (__x : f32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __ilogbf (__x : f32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn scalblnf (__x : f32 , __n : :: std :: os :: raw :: c_long) -> f32 ; } unsafe extern "C" { pub fn __scalblnf (__x : f32 , __n : :: std :: os :: raw :: c_long) -> f32 ; } unsafe extern "C" { pub fn nearbyintf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __nearbyintf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn roundf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn truncf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn remquof (__x : f32 , __y : f32 , __quo : * mut :: std :: os :: raw :: c_int) -> f32 ; } unsafe extern "C" { pub fn __remquof (__x : f32 , __y : f32 , __quo : * mut :: std :: os :: raw :: c_int) -> f32 ; } unsafe extern "C" { pub fn lrintf (__x : f32) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn __lrintf (__x : f32) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn llrintf (__x : f32) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn __llrintf (__x : f32) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn lroundf (__x : f32) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn __lroundf (__x : f32) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn llroundf (__x : f32) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn __llroundf (__x : f32) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn fdimf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn __fdimf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn fmaxf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn fminf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn fmaf (__x : f32 , __y : f32 , __z : f32) -> f32 ; } unsafe extern "C" { pub fn __fmaf (__x : f32 , __y : f32 , __z : f32) -> f32 ; } unsafe extern "C" { pub fn scalbf (__x : f32 , __n : f32) -> f32 ; } unsafe extern "C" { pub fn __scalbf (__x : f32 , __n : f32) -> f32 ; } unsafe extern "C" { pub fn __fpclassifyl (__value : u128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __signbitl (__value : u128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __isinfl (__value : u128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __finitel (__value : u128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __isnanl (__value : u128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __iseqsigl (__x : u128 , __y : u128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __issignalingl (__value : u128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn acosl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __acosl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn asinl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __asinl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn atanl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __atanl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn atan2l (__y : u128 , __x : u128) -> u128 ; } unsafe extern "C" { pub fn __atan2l (__y : u128 , __x : u128) -> u128 ; } unsafe extern "C" { pub fn cosl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __cosl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn sinl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __sinl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn tanl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __tanl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn coshl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __coshl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn sinhl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __sinhl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn tanhl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __tanhl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn acoshl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __acoshl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn asinhl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __asinhl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn atanhl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __atanhl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn expl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __expl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn frexpl (__x : u128 , __exponent : * mut :: std :: os :: raw :: c_int) -> u128 ; } unsafe extern "C" { pub fn __frexpl (__x : u128 , __exponent : * mut :: std :: os :: raw :: c_int) -> u128 ; } unsafe extern "C" { pub fn ldexpl (__x : u128 , __exponent : :: std :: os :: raw :: c_int) -> u128 ; } unsafe extern "C" { pub fn __ldexpl (__x : u128 , __exponent : :: std :: os :: raw :: c_int) -> u128 ; } unsafe extern "C" { pub fn logl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __logl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn log10l (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __log10l (__x : u128) -> u128 ; } unsafe extern "C" { pub fn modfl (__x : u128 , __iptr : * mut u128) -> u128 ; } unsafe extern "C" { pub fn __modfl (__x : u128 , __iptr : * mut u128) -> u128 ; } unsafe extern "C" { pub fn expm1l (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __expm1l (__x : u128) -> u128 ; } unsafe extern "C" { pub fn log1pl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __log1pl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn logbl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __logbl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn exp2l (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __exp2l (__x : u128) -> u128 ; } unsafe extern "C" { pub fn log2l (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __log2l (__x : u128) -> u128 ; } unsafe extern "C" { pub fn powl (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn __powl (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn sqrtl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __sqrtl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn hypotl (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn __hypotl (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn cbrtl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __cbrtl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn ceill (__x : u128) -> u128 ; } unsafe extern "C" { pub fn fabsl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn floorl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn fmodl (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn __fmodl (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn isinfl (__value : u128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn finitel (__value : u128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn dreml (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn __dreml (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn significandl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __significandl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn copysignl (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn nanl (__tagb : * const :: std :: os :: raw :: c_char) -> u128 ; } unsafe extern "C" { pub fn __nanl (__tagb : * const :: std :: os :: raw :: c_char) -> u128 ; } unsafe extern "C" { pub fn isnanl (__value : u128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn j0l (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn __j0l (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn j1l (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn __j1l (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn jnl (arg1 : :: std :: os :: raw :: c_int , arg2 : u128) -> u128 ; } unsafe extern "C" { pub fn __jnl (arg1 : :: std :: os :: raw :: c_int , arg2 : u128) -> u128 ; } unsafe extern "C" { pub fn y0l (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn __y0l (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn y1l (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn __y1l (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn ynl (arg1 : :: std :: os :: raw :: c_int , arg2 : u128) -> u128 ; } unsafe extern "C" { pub fn __ynl (arg1 : :: std :: os :: raw :: c_int , arg2 : u128) -> u128 ; } unsafe extern "C" { pub fn erfl (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn __erfl (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn erfcl (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn __erfcl (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn lgammal (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn __lgammal (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn tgammal (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn __tgammal (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn gammal (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn __gammal (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn lgammal_r (arg1 : u128 , __signgamp : * mut :: std :: os :: raw :: c_int) -> u128 ; } unsafe extern "C" { pub fn __lgammal_r (arg1 : u128 , __signgamp : * mut :: std :: os :: raw :: c_int) -> u128 ; } unsafe extern "C" { pub fn rintl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __rintl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn nextafterl (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn __nextafterl (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn nexttowardl (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn __nexttowardl (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn remainderl (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn __remainderl (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn scalbnl (__x : u128 , __n : :: std :: os :: raw :: c_int) -> u128 ; } unsafe extern "C" { pub fn __scalbnl (__x : u128 , __n : :: std :: os :: raw :: c_int) -> u128 ; } unsafe extern "C" { pub fn ilogbl (__x : u128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __ilogbl (__x : u128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn scalblnl (__x : u128 , __n : :: std :: os :: raw :: c_long) -> u128 ; } unsafe extern "C" { pub fn __scalblnl (__x : u128 , __n : :: std :: os :: raw :: c_long) -> u128 ; } unsafe extern "C" { pub fn nearbyintl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __nearbyintl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn roundl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn truncl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn remquol (__x : u128 , __y : u128 , __quo : * mut :: std :: os :: raw :: c_int) -> u128 ; } unsafe extern "C" { pub fn __remquol (__x : u128 , __y : u128 , __quo : * mut :: std :: os :: raw :: c_int) -> u128 ; } unsafe extern "C" { pub fn lrintl (__x : u128) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn __lrintl (__x : u128) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn llrintl (__x : u128) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn __llrintl (__x : u128) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn lroundl (__x : u128) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn __lroundl (__x : u128) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn llroundl (__x : u128) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn __llroundl (__x : u128) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn fdiml (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn __fdiml (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn fmaxl (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn fminl (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn fmal (__x : u128 , __y : u128 , __z : u128) -> u128 ; } unsafe extern "C" { pub fn __fmal (__x : u128 , __y : u128 , __z : u128) -> u128 ; } unsafe extern "C" { pub fn scalbl (__x : u128 , __n : u128) -> u128 ; } unsafe extern "C" { pub fn __scalbl (__x : u128 , __n : u128) -> u128 ; } unsafe extern "C" { pub fn __fpclassifyf128 (__value : _Float128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __signbitf128 (__value : _Float128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __isinff128 (__value : _Float128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __finitef128 (__value : _Float128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __isnanf128 (__value : _Float128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __iseqsigf128 (__x : _Float128 , __y : _Float128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __issignalingf128 (__value : _Float128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub static mut signgam : :: std :: os :: raw :: c_int ; } pub const FP_NAN : _bindgen_ty_1 = _bindgen_ty_1 (0) ; pub const FP_INFINITE : _bindgen_ty_1 = _bindgen_ty_1 (1) ; pub const FP_ZERO : _bindgen_ty_1 = _bindgen_ty_1 (2) ; pub const FP_SUBNORMAL : _bindgen_ty_1 = _bindgen_ty_1 (3) ; pub const FP_NORMAL : _bindgen_ty_1 = _bindgen_ty_1 (4) ; # [repr (transparent)] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct _bindgen_ty_1 (pub :: std :: os :: raw :: c_uint) ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct PerlinNoise { pub d : [u8 ; 257usize] , pub h2 : u8 , pub a : f64 , pub b : f64 , pub c : f64 , pub amplitude : f64 , pub lacunarity : f64 , pub d2 : f64 , pub t2 : f64 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of PerlinNoise"] [:: std :: mem :: size_of :: < PerlinNoise > () - 320usize] ; ["Alignment of PerlinNoise"] [:: std :: mem :: align_of :: < PerlinNoise > () - 8usize] ; ["Offset of field: PerlinNoise::d"] [:: std :: mem :: offset_of ! (PerlinNoise , d) - 0usize] ; ["Offset of field: PerlinNoise::h2"] [:: std :: mem :: offset_of ! (PerlinNoise , h2) - 257usize] ; ["Offset of field: PerlinNoise::a"] [:: std :: mem :: offset_of ! (PerlinNoise , a) - 264usize] ; ["Offset of field: PerlinNoise::b"] [:: std :: mem :: offset_of ! (PerlinNoise , b) - 272usize] ; ["Offset of field: PerlinNoise::c"] [:: std :: mem :: offset_of ! (PerlinNoise , c) - 280usize] ; ["Offset of field: PerlinNoise::amplitude"] [:: std :: mem :: offset_of ! (PerlinNoise , amplitude) - 288usize] ; ["Offset of field: PerlinNoise::lacunarity"] [:: std :: mem :: offset_of ! (PerlinNoise , lacunarity) - 296usize] ; ["Offset of field: PerlinNoise::d2"] [:: std :: mem :: offset_of ! (PerlinNoise , d2) - 304usize] ; ["Offset of field: PerlinNoise::t2"] [:: std :: mem :: offset_of ! (PerlinNoise , t2) - 312usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct OctaveNoise { pub octcnt : :: std :: os :: raw :: c_int , pub octaves : * mut PerlinNoise , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of OctaveNoise"] [:: std :: mem :: size_of :: < OctaveNoise > () - 16usize] ; ["Alignment of OctaveNoise"] [:: std :: mem :: align_of :: < OctaveNoise > () - 8usize] ; ["Offset of field: OctaveNoise::octcnt"] [:: std :: mem :: offset_of ! (OctaveNoise , octcnt) - 0usize] ; ["Offset of field: OctaveNoise::octaves"] [:: std :: mem :: offset_of ! (OctaveNoise , octaves) - 8usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct DoublePerlinNoise { pub amplitude : f64 , pub octA : OctaveNoise , pub octB : OctaveNoise , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of DoublePerlinNoise"] [:: std :: mem :: size_of :: < DoublePerlinNoise > () - 40usize] ; ["Alignment of DoublePerlinNoise"] [:: std :: mem :: align_of :: < DoublePerlinNoise > () - 8usize] ; ["Offset of field: DoublePerlinNoise::amplitude"] [:: std :: mem :: offset_of ! (DoublePerlinNoise , amplitude) - 0usize] ; ["Offset of field: DoublePerlinNoise::octA"] [:: std :: mem :: offset_of ! (DoublePerlinNoise , octA) - 8usize] ; ["Offset of field: DoublePerlinNoise::octB"] [:: std :: mem :: offset_of ! (DoublePerlinNoise , octB) - 24usize] ; } ; unsafe extern "C" { # [doc = " Perlin noise"] pub fn perlinInit (noise : * mut PerlinNoise , seed : * mut u64) ; } unsafe extern "C" { pub fn xPerlinInit (noise : * mut PerlinNoise , xr : * mut Xoroshiro) ; } unsafe extern "C" { pub fn samplePerlin (noise : * const PerlinNoise , x : f64 , y : f64 , z : f64 , yamp : f64 , ymin : f64) -> f64 ; } unsafe extern "C" { pub fn sampleSimplex2D (noise : * const PerlinNoise , x : f64 , y : f64) -> f64 ; } unsafe extern "C" { # [doc = " Perlin Octaves"] pub fn octaveInit (noise : * mut OctaveNoise , seed : * mut u64 , octaves : * mut PerlinNoise , omin : :: std :: os :: raw :: c_int , len : :: std :: os :: raw :: c_int) ; } unsafe extern "C" { pub fn octaveInitBeta (noise : * mut OctaveNoise , seed : * mut u64 , octaves : * mut PerlinNoise , octcnt : :: std :: os :: raw :: c_int , lac : f64 , lacMul : f64 , persist : f64 , persistMul : f64) ; } unsafe extern "C" { pub fn xOctaveInit (noise : * mut OctaveNoise , xr : * mut Xoroshiro , octaves : * mut PerlinNoise , amplitudes : * const f64 , omin : :: std :: os :: raw :: c_int , len : :: std :: os :: raw :: c_int , nmax : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn sampleOctave (noise : * const OctaveNoise , x : f64 , y : f64 , z : f64) -> f64 ; } unsafe extern "C" { pub fn sampleOctaveAmp (noise : * const OctaveNoise , x : f64 , y : f64 , z : f64 , yamp : f64 , ymin : f64 , ydefault : :: std :: os :: raw :: c_int) -> f64 ; } unsafe extern "C" { pub fn sampleOctave2D (noise : * const OctaveNoise , x : f64 , z : f64) -> f64 ; } unsafe extern "C" { pub fn sampleOctaveBeta17Biome (noise : * const OctaveNoise , x : f64 , z : f64) -> f64 ; } unsafe extern "C" { pub fn sampleOctaveBeta17Terrain (noise : * const OctaveNoise , v : * mut f64 , x : f64 , z : f64 , yLacFlag : :: std :: os :: raw :: c_int , lacmin : f64) ; } unsafe extern "C" { # [doc = " Double Perlin"] pub fn doublePerlinInit (noise : * mut DoublePerlinNoise , seed : * mut u64 , octavesA : * mut PerlinNoise , octavesB : * mut PerlinNoise , omin : :: std :: os :: raw :: c_int , len : :: std :: os :: raw :: c_int) ; } unsafe extern "C" { pub fn xDoublePerlinInit (noise : * mut DoublePerlinNoise , xr : * mut Xoroshiro , octaves : * mut PerlinNoise , amplitudes : * const f64 , omin : :: std :: os :: raw :: c_int , len : :: std :: os :: raw :: c_int , nmax : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn sampleDoublePerlin (noise : * const DoublePerlinNoise , x : f64 , y : f64 , z : f64) -> f64 ; } impl MCVersion { pub const MC_UNDEF : MCVersion = MCVersion (0) ; } impl MCVersion { pub const MC_B1_7 : MCVersion = MCVersion (1) ; } impl MCVersion { pub const MC_B1_8 : MCVersion = MCVersion (2) ; } impl MCVersion { pub const MC_1_0_0 : MCVersion = MCVersion (3) ; } impl MCVersion { pub const MC_1_0 : MCVersion = MCVersion (3) ; } impl MCVersion { pub const MC_1_1_0 : MCVersion = MCVersion (4) ; } impl MCVersion { pub const MC_1_1 : MCVersion = MCVersion (4) ; } impl MCVersion { pub const MC_1_2_5 : MCVersion = MCVersion (5) ; } impl MCVersion { pub const MC_1_2 : MCVersion = MCVersion (5) ; } impl MCVersion { pub const MC_1_3_2 : MCVersion = MCVersion (6) ; } impl MCVersion { pub const MC_1_3 : MCVersion = MCVersion (6) ; } impl MCVersion { pub const MC_1_4_7 : MCVersion = MCVersion (7) ; } impl MCVersion { pub const MC_1_4 : MCVersion = MCVersion (7) ; } impl MCVersion { pub const MC_1_5_2 : MCVersion = MCVersion (8) ; } impl MCVersion { pub const MC_1_5 : MCVersion = MCVersion (8) ; } impl MCVersion { pub const MC_1_6_4 : MCVersion = MCVersion (9) ; } impl MCVersion { pub const MC_1_6 : MCVersion = MCVersion (9) ; } impl MCVersion { pub const MC_1_7_10 : MCVersion = MCVersion (10) ; } impl MCVersion { pub const MC_1_7 : MCVersion = MCVersion (10) ; } impl MCVersion { pub const MC_1_8_9 : MCVersion = MCVersion (11) ; } impl MCVersion { pub const MC_1_8 : MCVersion = MCVersion (11) ; } impl MCVersion { pub const MC_1_9_4 : MCVersion = MCVersion (12) ; } impl MCVersion { pub const MC_1_9 : MCVersion = MCVersion (12) ; } impl MCVersion { pub const MC_1_10_2 : MCVersion = MCVersion (13) ; } impl MCVersion { pub const MC_1_10 : MCVersion = MCVersion (13) ; } impl MCVersion { pub const MC_1_11_2 : MCVersion = MCVersion (14) ; } impl MCVersion { pub const MC_1_11 : MCVersion = MCVersion (14) ; } impl MCVersion { pub const MC_1_12_2 : MCVersion = MCVersion (15) ; } impl MCVersion { pub const MC_1_12 : MCVersion = MCVersion (15) ; } impl MCVersion { pub const MC_1_13_2 : MCVersion = MCVersion (16) ; } impl MCVersion { pub const MC_1_13 : MCVersion = MCVersion (16) ; } impl MCVersion { pub const MC_1_14_4 : MCVersion = MCVersion (17) ; } impl MCVersion { pub const MC_1_14 : MCVersion = MCVersion (17) ; } impl MCVersion { pub const MC_1_15_2 : MCVersion = MCVersion (18) ; } impl MCVersion { pub const MC_1_15 : MCVersion = MCVersion (18) ; } impl MCVersion { pub const MC_1_16_1 : MCVersion = MCVersion (19) ; } impl MCVersion { pub const MC_1_16_5 : MCVersion = MCVersion (20) ; } impl MCVersion { pub const MC_1_16 : MCVersion = MCVersion (20) ; } impl MCVersion { pub const MC_1_17_1 : MCVersion = MCVersion (21) ; } impl MCVersion { pub const MC_1_17 : MCVersion = MCVersion (21) ; } impl MCVersion { pub const MC_1_18_2 : MCVersion = MCVersion (22) ; } impl MCVersion { pub const MC_1_18 : MCVersion = MCVersion (22) ; } impl MCVersion { pub const MC_1_19_2 : MCVersion = MCVersion (23) ; } impl MCVersion { pub const MC_1_19_4 : MCVersion = MCVersion (24) ; } impl MCVersion { pub const MC_1_19 : MCVersion = MCVersion (24) ; } impl MCVersion { pub const MC_1_20_6 : MCVersion = MCVersion (25) ; } impl MCVersion { pub const MC_1_20 : MCVersion = MCVersion (25) ; } impl MCVersion { pub const MC_1_21_1 : MCVersion = MCVersion (26) ; } impl MCVersion { pub const MC_1_21_3 : MCVersion = MCVersion (27) ; } impl MCVersion { pub const MC_1_21_WD : MCVersion = MCVersion (28) ; } impl MCVersion { pub const MC_1_21 : MCVersion = MCVersion (28) ; } impl MCVersion { pub const MC_NEWEST : MCVersion = MCVersion (28) ; } # [repr (transparent)] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct MCVersion (pub :: std :: os :: raw :: c_uint) ; impl Dimension { pub const DIM_NETHER : Dimension = Dimension (- 1) ; } impl Dimension { pub const DIM_OVERWORLD : Dimension = Dimension (0) ; } impl Dimension { pub const DIM_END : Dimension = Dimension (1) ; } impl Dimension { pub const DIM_UNDEF : Dimension = Dimension (1000) ; } # [repr (transparent)] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct Dimension (pub :: std :: os :: raw :: c_int) ; impl BiomeID { pub const none : BiomeID = BiomeID (- 1) ; } impl BiomeID { pub const ocean : BiomeID = BiomeID (0) ; } impl BiomeID { pub const plains : BiomeID = BiomeID (1) ; } impl BiomeID { pub const desert : BiomeID = BiomeID (2) ; } impl BiomeID { pub const mountains : BiomeID = BiomeID (3) ; } impl BiomeID { pub const extremeHills : BiomeID = BiomeID (3) ; } impl BiomeID { pub const forest : BiomeID = BiomeID (4) ; } impl BiomeID { pub const taiga : BiomeID = BiomeID (5) ; } impl BiomeID { pub const swamp : BiomeID = BiomeID (6) ; } impl BiomeID { pub const swampland : BiomeID = BiomeID (6) ; } impl BiomeID { pub const river : BiomeID = BiomeID (7) ; } impl BiomeID { pub const nether_wastes : BiomeID = BiomeID (8) ; } impl BiomeID { pub const hell : BiomeID = BiomeID (8) ; } impl BiomeID { pub const the_end : BiomeID = BiomeID (9) ; } impl BiomeID { pub const sky : BiomeID = BiomeID (9) ; } impl BiomeID { pub const frozen_ocean : BiomeID = BiomeID (10) ; } impl BiomeID { pub const frozenOcean : BiomeID = BiomeID (10) ; } impl BiomeID { pub const frozen_river : BiomeID = BiomeID (11) ; } impl BiomeID { pub const frozenRiver : BiomeID = BiomeID (11) ; } impl BiomeID { pub const snowy_tundra : BiomeID = BiomeID (12) ; } impl BiomeID { pub const icePlains : BiomeID = BiomeID (12) ; } impl BiomeID { pub const snowy_mountains : BiomeID = BiomeID (13) ; } impl BiomeID { pub const iceMountains : BiomeID = BiomeID (13) ; } impl BiomeID { pub const mushroom_fields : BiomeID = BiomeID (14) ; } impl BiomeID { pub const mushroomIsland : BiomeID = BiomeID (14) ; } impl BiomeID { pub const mushroom_field_shore : BiomeID = BiomeID (15) ; } impl BiomeID { pub const mushroomIslandShore : BiomeID = BiomeID (15) ; } impl BiomeID { pub const beach : BiomeID = BiomeID (16) ; } impl BiomeID { pub const desert_hills : BiomeID = BiomeID (17) ; } impl BiomeID { pub const desertHills : BiomeID = BiomeID (17) ; } impl BiomeID { pub const wooded_hills : BiomeID = BiomeID (18) ; } impl BiomeID { pub const forestHills : BiomeID = BiomeID (18) ; } impl BiomeID { pub const taiga_hills : BiomeID = BiomeID (19) ; } impl BiomeID { pub const taigaHills : BiomeID = BiomeID (19) ; } impl BiomeID { pub const mountain_edge : BiomeID = BiomeID (20) ; } impl BiomeID { pub const extremeHillsEdge : BiomeID = BiomeID (20) ; } impl BiomeID { pub const jungle : BiomeID = BiomeID (21) ; } impl BiomeID { pub const jungle_hills : BiomeID = BiomeID (22) ; } impl BiomeID { pub const jungleHills : BiomeID = BiomeID (22) ; } impl BiomeID { pub const jungle_edge : BiomeID = BiomeID (23) ; } impl BiomeID { pub const jungleEdge : BiomeID = BiomeID (23) ; } impl BiomeID { pub const deep_ocean : BiomeID = BiomeID (24) ; } impl BiomeID { pub const deepOcean : BiomeID = BiomeID (24) ; } impl BiomeID { pub const stone_shore : BiomeID = BiomeID (25) ; } impl BiomeID { pub const stoneBeach : BiomeID = BiomeID (25) ; } impl BiomeID { pub const snowy_beach : BiomeID = BiomeID (26) ; } impl BiomeID { pub const coldBeach : BiomeID = BiomeID (26) ; } impl BiomeID { pub const birch_forest : BiomeID = BiomeID (27) ; } impl BiomeID { pub const birchForest : BiomeID = BiomeID (27) ; } impl BiomeID { pub const birch_forest_hills : BiomeID = BiomeID (28) ; } impl BiomeID { pub const birchForestHills : BiomeID = BiomeID (28) ; } impl BiomeID { pub const dark_forest : BiomeID = BiomeID (29) ; } impl BiomeID { pub const roofedForest : BiomeID = BiomeID (29) ; } impl BiomeID { pub const snowy_taiga : BiomeID = BiomeID (30) ; } impl BiomeID { pub const coldTaiga : BiomeID = BiomeID (30) ; } impl BiomeID { pub const snowy_taiga_hills : BiomeID = BiomeID (31) ; } impl BiomeID { pub const coldTaigaHills : BiomeID = BiomeID (31) ; } impl BiomeID { pub const giant_tree_taiga : BiomeID = BiomeID (32) ; } impl BiomeID { pub const megaTaiga : BiomeID = BiomeID (32) ; } impl BiomeID { pub const giant_tree_taiga_hills : BiomeID = BiomeID (33) ; } impl BiomeID { pub const megaTaigaHills : BiomeID = BiomeID (33) ; } impl BiomeID { pub const wooded_mountains : BiomeID = BiomeID (34) ; } impl BiomeID { pub const extremeHillsPlus : BiomeID = BiomeID (34) ; } impl BiomeID { pub const savanna : BiomeID = BiomeID (35) ; } impl BiomeID { pub const savanna_plateau : BiomeID = BiomeID (36) ; } impl BiomeID { pub const savannaPlateau : BiomeID = BiomeID (36) ; } impl BiomeID { pub const badlands : BiomeID = BiomeID (37) ; } impl BiomeID { pub const mesa : BiomeID = BiomeID (37) ; } impl BiomeID { pub const wooded_badlands_plateau : BiomeID = BiomeID (38) ; } impl BiomeID { pub const mesaPlateau_F : BiomeID = BiomeID (38) ; } impl BiomeID { pub const badlands_plateau : BiomeID = BiomeID (39) ; } impl BiomeID { pub const mesaPlateau : BiomeID = BiomeID (39) ; } impl BiomeID { pub const small_end_islands : BiomeID = BiomeID (40) ; } impl BiomeID { pub const end_midlands : BiomeID = BiomeID (41) ; } impl BiomeID { pub const end_highlands : BiomeID = BiomeID (42) ; } impl BiomeID { pub const end_barrens : BiomeID = BiomeID (43) ; } impl BiomeID { pub const warm_ocean : BiomeID = BiomeID (44) ; } impl BiomeID { pub const warmOcean : BiomeID = BiomeID (44) ; } impl BiomeID { pub const lukewarm_ocean : BiomeID = BiomeID (45) ; } impl BiomeID { pub const lukewarmOcean : BiomeID = BiomeID (45) ; } impl BiomeID { pub const cold_ocean : BiomeID = BiomeID (46) ; } impl BiomeID { pub const coldOcean : BiomeID = BiomeID (46) ; } impl BiomeID { pub const deep_warm_ocean : BiomeID = BiomeID (47) ; } impl BiomeID { pub const warmDeepOcean : BiomeID = BiomeID (47) ; } impl BiomeID { pub const deep_lukewarm_ocean : BiomeID = BiomeID (48) ; } impl BiomeID { pub const lukewarmDeepOcean : BiomeID = BiomeID (48) ; } impl BiomeID { pub const deep_cold_ocean : BiomeID = BiomeID (49) ; } impl BiomeID { pub const coldDeepOcean : BiomeID = BiomeID (49) ; } impl BiomeID { pub const deep_frozen_ocean : BiomeID = BiomeID (50) ; } impl BiomeID { pub const frozenDeepOcean : BiomeID = BiomeID (50) ; } impl BiomeID { pub const seasonal_forest : BiomeID = BiomeID (51) ; } impl BiomeID { pub const rainforest : BiomeID = BiomeID (52) ; } impl BiomeID { pub const shrubland : BiomeID = BiomeID (53) ; } impl BiomeID { pub const the_void : BiomeID = BiomeID (127) ; } impl BiomeID { pub const sunflower_plains : BiomeID = BiomeID (129) ; } impl BiomeID { pub const desert_lakes : BiomeID = BiomeID (130) ; } impl BiomeID { pub const gravelly_mountains : BiomeID = BiomeID (131) ; } impl BiomeID { pub const flower_forest : BiomeID = BiomeID (132) ; } impl BiomeID { pub const taiga_mountains : BiomeID = BiomeID (133) ; } impl BiomeID { pub const swamp_hills : BiomeID = BiomeID (134) ; } impl BiomeID { pub const ice_spikes : BiomeID = BiomeID (140) ; } impl BiomeID { pub const modified_jungle : BiomeID = BiomeID (149) ; } impl BiomeID { pub const modified_jungle_edge : BiomeID = BiomeID (151) ; } impl BiomeID { pub const tall_birch_forest : BiomeID = BiomeID (155) ; } impl BiomeID { pub const tall_birch_hills : BiomeID = BiomeID (156) ; } impl BiomeID { pub const dark_forest_hills : BiomeID = BiomeID (157) ; } impl BiomeID { pub const snowy_taiga_mountains : BiomeID = BiomeID (158) ; } impl BiomeID { pub const giant_spruce_taiga : BiomeID = BiomeID (160) ; } impl BiomeID { pub const giant_spruce_taiga_hills : BiomeID = BiomeID (161) ; } impl BiomeID { pub const modified_gravelly_mountains : BiomeID = BiomeID (162) ; } impl BiomeID { pub const shattered_savanna : BiomeID = BiomeID (163) ; } impl BiomeID { pub const shattered_savanna_plateau : BiomeID = BiomeID (164) ; } impl BiomeID { pub const eroded_badlands : BiomeID = BiomeID (165) ; } impl BiomeID { pub const modified_wooded_badlands_plateau : BiomeID = BiomeID (166) ; } impl BiomeID { pub const modified_badlands_plateau : BiomeID = BiomeID (167) ; } impl BiomeID { pub const bamboo_jungle : BiomeID = BiomeID (168) ; } impl BiomeID { pub const bamboo_jungle_hills : BiomeID = BiomeID (169) ; } impl BiomeID { pub const soul_sand_valley : BiomeID = BiomeID (170) ; } impl BiomeID { pub const crimson_forest : BiomeID = BiomeID (171) ; } impl BiomeID { pub const warped_forest : BiomeID = BiomeID (172) ; } impl BiomeID { pub const basalt_deltas : BiomeID = BiomeID (173) ; } impl BiomeID { pub const dripstone_caves : BiomeID = BiomeID (174) ; } impl BiomeID { pub const lush_caves : BiomeID = BiomeID (175) ; } impl BiomeID { pub const meadow : BiomeID = BiomeID (177) ; } impl BiomeID { pub const grove : BiomeID = BiomeID (178) ; } impl BiomeID { pub const snowy_slopes : BiomeID = BiomeID (179) ; } impl BiomeID { pub const jagged_peaks : BiomeID = BiomeID (180) ; } impl BiomeID { pub const frozen_peaks : BiomeID = BiomeID (181) ; } impl BiomeID { pub const stony_peaks : BiomeID = BiomeID (182) ; } impl BiomeID { pub const old_growth_birch_forest : BiomeID = BiomeID (155) ; } impl BiomeID { pub const old_growth_pine_taiga : BiomeID = BiomeID (32) ; } impl BiomeID { pub const old_growth_spruce_taiga : BiomeID = BiomeID (160) ; } impl BiomeID { pub const snowy_plains : BiomeID = BiomeID (12) ; } impl BiomeID { pub const sparse_jungle : BiomeID = BiomeID (23) ; } impl BiomeID { pub const stony_shore : BiomeID = BiomeID (25) ; } impl BiomeID { pub const windswept_hills : BiomeID = BiomeID (3) ; } impl BiomeID { pub const windswept_forest : BiomeID = BiomeID (34) ; } impl BiomeID { pub const windswept_gravelly_hills : BiomeID = BiomeID (131) ; } impl BiomeID { pub const windswept_savanna : BiomeID = BiomeID (163) ; } impl BiomeID { pub const wooded_badlands : BiomeID = BiomeID (38) ; } impl BiomeID { pub const deep_dark : BiomeID = BiomeID (183) ; } impl BiomeID { pub const mangrove_swamp : BiomeID = BiomeID (184) ; } impl BiomeID { pub const cherry_grove : BiomeID = BiomeID (185) ; } impl BiomeID { pub const pale_garden : BiomeID = BiomeID (186) ; } # [repr (transparent)] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct BiomeID (pub :: std :: os :: raw :: c_int) ; unsafe extern "C" { pub fn biomeExists (mc : :: std :: os :: raw :: c_int , id : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn isOverworld (mc : :: std :: os :: raw :: c_int , id : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getDimension (id : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getMutated (mc : :: std :: os :: raw :: c_int , id : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getCategory (mc : :: std :: os :: raw :: c_int , id : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn areSimilar (mc : :: std :: os :: raw :: c_int , id1 : :: std :: os :: raw :: c_int , id2 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn isMesa (id : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn isShallowOcean (id : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn isDeepOcean (id : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn isOceanic (id : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn isSnowy (id : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } impl BiomeTempCategory { pub const Oceanic : BiomeTempCategory = BiomeTempCategory (0) ; } impl BiomeTempCategory { pub const Warm : BiomeTempCategory = BiomeTempCategory (1) ; } impl BiomeTempCategory { pub const Lush : BiomeTempCategory = BiomeTempCategory (2) ; } impl BiomeTempCategory { pub const Cold : BiomeTempCategory = BiomeTempCategory (3) ; } impl BiomeTempCategory { pub const Freezing : BiomeTempCategory = BiomeTempCategory (4) ; } impl BiomeTempCategory { pub const Special : BiomeTempCategory = BiomeTempCategory (5) ; } # [repr (transparent)] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct BiomeTempCategory (pub :: std :: os :: raw :: c_uint) ; impl LayerId { pub const L_CONTINENT_4096 : LayerId = LayerId (0) ; } impl LayerId { pub const L_ISLAND_4096 : LayerId = LayerId (0) ; } impl LayerId { pub const L_ZOOM_4096 : LayerId = LayerId (1) ; } impl LayerId { pub const L_LAND_4096 : LayerId = LayerId (2) ; } impl LayerId { pub const L_ZOOM_2048 : LayerId = LayerId (3) ; } impl LayerId { pub const L_LAND_2048 : LayerId = LayerId (4) ; } impl LayerId { pub const L_ADD_ISLAND_2048 : LayerId = LayerId (4) ; } impl LayerId { pub const L_ZOOM_1024 : LayerId = LayerId (5) ; } impl LayerId { pub const L_LAND_1024_A : LayerId = LayerId (6) ; } impl LayerId { pub const L_ADD_ISLAND_1024A : LayerId = LayerId (6) ; } impl LayerId { pub const L_LAND_1024_B : LayerId = LayerId (7) ; } impl LayerId { pub const L_ADD_ISLAND_1024B : LayerId = LayerId (7) ; } impl LayerId { pub const L_LAND_1024_C : LayerId = LayerId (8) ; } impl LayerId { pub const L_ADD_ISLAND_1024C : LayerId = LayerId (8) ; } impl LayerId { pub const L_ISLAND_1024 : LayerId = LayerId (9) ; } impl LayerId { pub const L_REMOVE_OCEAN_1024 : LayerId = LayerId (9) ; } impl LayerId { pub const L_SNOW_1024 : LayerId = LayerId (10) ; } impl LayerId { pub const L_ADD_SNOW_1024 : LayerId = LayerId (10) ; } impl LayerId { pub const L_LAND_1024_D : LayerId = LayerId (11) ; } impl LayerId { pub const L_ADD_ISLAND_1024D : LayerId = LayerId (11) ; } impl LayerId { pub const L_COOL_1024 : LayerId = LayerId (12) ; } impl LayerId { pub const L_COOL_WARM_1024 : LayerId = LayerId (12) ; } impl LayerId { pub const L_HEAT_1024 : LayerId = LayerId (13) ; } impl LayerId { pub const L_HEAT_ICE_1024 : LayerId = LayerId (13) ; } impl LayerId { pub const L_SPECIAL_1024 : LayerId = LayerId (14) ; } impl LayerId { pub const L_ZOOM_512 : LayerId = LayerId (15) ; } impl LayerId { pub const L_LAND_512 : LayerId = LayerId (16) ; } impl LayerId { pub const L_ZOOM_256 : LayerId = LayerId (17) ; } impl LayerId { pub const L_LAND_256 : LayerId = LayerId (18) ; } impl LayerId { pub const L_ADD_ISLAND_256 : LayerId = LayerId (18) ; } impl LayerId { pub const L_MUSHROOM_256 : LayerId = LayerId (19) ; } impl LayerId { pub const L_ADD_MUSHROOM_256 : LayerId = LayerId (19) ; } impl LayerId { pub const L_DEEP_OCEAN_256 : LayerId = LayerId (20) ; } impl LayerId { pub const L_BIOME_256 : LayerId = LayerId (21) ; } impl LayerId { pub const L_BAMBOO_256 : LayerId = LayerId (22) ; } impl LayerId { pub const L14_BAMBOO_256 : LayerId = LayerId (22) ; } impl LayerId { pub const L_ZOOM_128 : LayerId = LayerId (23) ; } impl LayerId { pub const L_ZOOM_64 : LayerId = LayerId (24) ; } impl LayerId { pub const L_BIOME_EDGE_64 : LayerId = LayerId (25) ; } impl LayerId { pub const L_NOISE_256 : LayerId = LayerId (26) ; } impl LayerId { pub const L_RIVER_INIT_256 : LayerId = LayerId (26) ; } impl LayerId { pub const L_ZOOM_128_HILLS : LayerId = LayerId (27) ; } impl LayerId { pub const L_ZOOM_64_HILLS : LayerId = LayerId (28) ; } impl LayerId { pub const L_HILLS_64 : LayerId = LayerId (29) ; } impl LayerId { pub const L_SUNFLOWER_64 : LayerId = LayerId (30) ; } impl LayerId { pub const L_RARE_BIOME_64 : LayerId = LayerId (30) ; } impl LayerId { pub const L_ZOOM_32 : LayerId = LayerId (31) ; } impl LayerId { pub const L_LAND_32 : LayerId = LayerId (32) ; } impl LayerId { pub const L_ADD_ISLAND_32 : LayerId = LayerId (32) ; } impl LayerId { pub const L_ZOOM_16 : LayerId = LayerId (33) ; } impl LayerId { pub const L_SHORE_16 : LayerId = LayerId (34) ; } impl LayerId { pub const L_SWAMP_RIVER_16 : LayerId = LayerId (35) ; } impl LayerId { pub const L_ZOOM_8 : LayerId = LayerId (36) ; } impl LayerId { pub const L_ZOOM_4 : LayerId = LayerId (37) ; } impl LayerId { pub const L_SMOOTH_4 : LayerId = LayerId (38) ; } impl LayerId { pub const L_ZOOM_128_RIVER : LayerId = LayerId (39) ; } impl LayerId { pub const L_ZOOM_64_RIVER : LayerId = LayerId (40) ; } impl LayerId { pub const L_ZOOM_32_RIVER : LayerId = LayerId (41) ; } impl LayerId { pub const L_ZOOM_16_RIVER : LayerId = LayerId (42) ; } impl LayerId { pub const L_ZOOM_8_RIVER : LayerId = LayerId (43) ; } impl LayerId { pub const L_ZOOM_4_RIVER : LayerId = LayerId (44) ; } impl LayerId { pub const L_RIVER_4 : LayerId = LayerId (45) ; } impl LayerId { pub const L_SMOOTH_4_RIVER : LayerId = LayerId (46) ; } impl LayerId { pub const L_RIVER_MIX_4 : LayerId = LayerId (47) ; } impl LayerId { pub const L_OCEAN_TEMP_256 : LayerId = LayerId (48) ; } impl LayerId { pub const L13_OCEAN_TEMP_256 : LayerId = LayerId (48) ; } impl LayerId { pub const L_ZOOM_128_OCEAN : LayerId = LayerId (49) ; } impl LayerId { pub const L13_ZOOM_128 : LayerId = LayerId (49) ; } impl LayerId { pub const L_ZOOM_64_OCEAN : LayerId = LayerId (50) ; } impl LayerId { pub const L13_ZOOM_64 : LayerId = LayerId (50) ; } impl LayerId { pub const L_ZOOM_32_OCEAN : LayerId = LayerId (51) ; } impl LayerId { pub const L13_ZOOM_32 : LayerId = LayerId (51) ; } impl LayerId { pub const L_ZOOM_16_OCEAN : LayerId = LayerId (52) ; } impl LayerId { pub const L13_ZOOM_16 : LayerId = LayerId (52) ; } impl LayerId { pub const L_ZOOM_8_OCEAN : LayerId = LayerId (53) ; } impl LayerId { pub const L13_ZOOM_8 : LayerId = LayerId (53) ; } impl LayerId { pub const L_ZOOM_4_OCEAN : LayerId = LayerId (54) ; } impl LayerId { pub const L13_ZOOM_4 : LayerId = LayerId (54) ; } impl LayerId { pub const L_OCEAN_MIX_4 : LayerId = LayerId (55) ; } impl LayerId { pub const L13_OCEAN_MIX_4 : LayerId = LayerId (55) ; } impl LayerId { pub const L_VORONOI_1 : LayerId = LayerId (56) ; } impl LayerId { pub const L_VORONOI_ZOOM_1 : LayerId = LayerId (56) ; } impl LayerId { pub const L_ZOOM_LARGE_A : LayerId = LayerId (57) ; } impl LayerId { pub const L_ZOOM_LARGE_B : LayerId = LayerId (58) ; } impl LayerId { pub const L_ZOOM_L_RIVER_A : LayerId = LayerId (59) ; } impl LayerId { pub const L_ZOOM_L_RIVER_B : LayerId = LayerId (60) ; } impl LayerId { pub const L_NUM : LayerId = LayerId (61) ; } # [repr (transparent)] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct LayerId (pub :: std :: os :: raw :: c_uint) ; pub type mapfunc_t = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Layer { pub getMap : mapfunc_t , pub mc : i8 , pub zoom : i8 , pub edge : i8 , pub scale : :: std :: os :: raw :: c_int , pub layerSalt : u64 , pub startSalt : u64 , pub startSeed : u64 , pub noise : * mut :: std :: os :: raw :: c_void , pub data : * mut :: std :: os :: raw :: c_void , pub p : * mut Layer , pub p2 : * mut Layer , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Layer"] [:: std :: mem :: size_of :: < Layer > () - 72usize] ; ["Alignment of Layer"] [:: std :: mem :: align_of :: < Layer > () - 8usize] ; ["Offset of field: Layer::getMap"] [:: std :: mem :: offset_of ! (Layer , getMap) - 0usize] ; ["Offset of field: Layer::mc"] [:: std :: mem :: offset_of ! (Layer , mc) - 8usize] ; ["Offset of field: Layer::zoom"] [:: std :: mem :: offset_of ! (Layer , zoom) - 9usize] ; ["Offset of field: Layer::edge"] [:: std :: mem :: offset_of ! (Layer , edge) - 10usize] ; ["Offset of field: Layer::scale"] [:: std :: mem :: offset_of ! (Layer , scale) - 12usize] ; ["Offset of field: Layer::layerSalt"] [:: std :: mem :: offset_of ! (Layer , layerSalt) - 16usize] ; ["Offset of field: Layer::startSalt"] [:: std :: mem :: offset_of ! (Layer , startSalt) - 24usize] ; ["Offset of field: Layer::startSeed"] [:: std :: mem :: offset_of ! (Layer , startSeed) - 32usize] ; ["Offset of field: Layer::noise"] [:: std :: mem :: offset_of ! (Layer , noise) - 40usize] ; ["Offset of field: Layer::data"] [:: std :: mem :: offset_of ! (Layer , data) - 48usize] ; ["Offset of field: Layer::p"] [:: std :: mem :: offset_of ! (Layer , p) - 56usize] ; ["Offset of field: Layer::p2"] [:: std :: mem :: offset_of ! (Layer , p2) - 64usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct LayerStack { pub layers : [Layer ; 61usize] , pub entry_1 : * mut Layer , pub entry_4 : * mut Layer , pub entry_16 : * mut Layer , pub entry_64 : * mut Layer , pub entry_256 : * mut Layer , pub oceanRnd : PerlinNoise , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of LayerStack"] [:: std :: mem :: size_of :: < LayerStack > () - 4752usize] ; ["Alignment of LayerStack"] [:: std :: mem :: align_of :: < LayerStack > () - 8usize] ; ["Offset of field: LayerStack::layers"] [:: std :: mem :: offset_of ! (LayerStack , layers) - 0usize] ; ["Offset of field: LayerStack::entry_1"] [:: std :: mem :: offset_of ! (LayerStack , entry_1) - 4392usize] ; ["Offset of field: LayerStack::entry_4"] [:: std :: mem :: offset_of ! (LayerStack , entry_4) - 4400usize] ; ["Offset of field: LayerStack::entry_16"] [:: std :: mem :: offset_of ! (LayerStack , entry_16) - 4408usize] ; ["Offset of field: LayerStack::entry_64"] [:: std :: mem :: offset_of ! (LayerStack , entry_64) - 4416usize] ; ["Offset of field: LayerStack::entry_256"] [:: std :: mem :: offset_of ! (LayerStack , entry_256) - 4424usize] ; ["Offset of field: LayerStack::oceanRnd"] [:: std :: mem :: offset_of ! (LayerStack , oceanRnd) - 4432usize] ; } ; unsafe extern "C" { pub fn setLayerSeed (layer : * mut Layer , worldSeed : u64) ; } unsafe extern "C" { pub fn mapContinent (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapZoomFuzzy (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapZoom (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapLand (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapLand16 (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapLandB18 (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapIsland (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapSnow (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapSnow16 (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapCool (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapHeat (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapSpecial (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapMushroom (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapDeepOcean (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapBiome (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapBamboo (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapNoise (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapBiomeEdge (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapHills (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapRiver (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapSmooth (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapSunflower (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapShore (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapSwampRiver (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapRiverMix (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapOceanTemp (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapOceanMix (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapVoronoi (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapVoronoi114 (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getVoronoiSHA (worldSeed : u64) -> u64 ; } unsafe extern "C" { pub fn voronoiAccess3D (sha : u64 , x : :: std :: os :: raw :: c_int , y : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , x4 : * mut :: std :: os :: raw :: c_int , y4 : * mut :: std :: os :: raw :: c_int , z4 : * mut :: std :: os :: raw :: c_int) ; } unsafe extern "C" { pub fn mapVoronoiPlane (sha : u64 , out : * mut :: std :: os :: raw :: c_int , src : * mut :: std :: os :: raw :: c_int , x : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , w : :: std :: os :: raw :: c_int , h : :: std :: os :: raw :: c_int , y : :: std :: os :: raw :: c_int , px : :: std :: os :: raw :: c_int , pz : :: std :: os :: raw :: c_int , pw : :: std :: os :: raw :: c_int , ph : :: std :: os :: raw :: c_int) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Range { pub scale : :: std :: os :: raw :: c_int , pub x : :: std :: os :: raw :: c_int , pub z : :: std :: os :: raw :: c_int , pub sx : :: std :: os :: raw :: c_int , pub sz : :: std :: os :: raw :: c_int , pub y : :: std :: os :: raw :: c_int , pub sy : :: std :: os :: raw :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Range"] [:: std :: mem :: size_of :: < Range > () - 28usize] ; ["Alignment of Range"] [:: std :: mem :: align_of :: < Range > () - 4usize] ; ["Offset of field: Range::scale"] [:: std :: mem :: offset_of ! (Range , scale) - 0usize] ; ["Offset of field: Range::x"] [:: std :: mem :: offset_of ! (Range , x) - 4usize] ; ["Offset of field: Range::z"] [:: std :: mem :: offset_of ! (Range , z) - 8usize] ; ["Offset of field: Range::sx"] [:: std :: mem :: offset_of ! (Range , sx) - 12usize] ; ["Offset of field: Range::sz"] [:: std :: mem :: offset_of ! (Range , sz) - 16usize] ; ["Offset of field: Range::y"] [:: std :: mem :: offset_of ! (Range , y) - 20usize] ; ["Offset of field: Range::sy"] [:: std :: mem :: offset_of ! (Range , sy) - 24usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct NetherNoise { pub temperature : DoublePerlinNoise , pub humidity : DoublePerlinNoise , pub oct : [PerlinNoise ; 8usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of NetherNoise"] [:: std :: mem :: size_of :: < NetherNoise > () - 2640usize] ; ["Alignment of NetherNoise"] [:: std :: mem :: align_of :: < NetherNoise > () - 8usize] ; ["Offset of field: NetherNoise::temperature"] [:: std :: mem :: offset_of ! (NetherNoise , temperature) - 0usize] ; ["Offset of field: NetherNoise::humidity"] [:: std :: mem :: offset_of ! (NetherNoise , humidity) - 40usize] ; ["Offset of field: NetherNoise::oct"] [:: std :: mem :: offset_of ! (NetherNoise , oct) - 80usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct EndNoise { pub perlin : PerlinNoise , pub mc : :: std :: os :: raw :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of EndNoise"] [:: std :: mem :: size_of :: < EndNoise > () - 328usize] ; ["Alignment of EndNoise"] [:: std :: mem :: align_of :: < EndNoise > () - 8usize] ; ["Offset of field: EndNoise::perlin"] [:: std :: mem :: offset_of ! (EndNoise , perlin) - 0usize] ; ["Offset of field: EndNoise::mc"] [:: std :: mem :: offset_of ! (EndNoise , mc) - 320usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct SurfaceNoise { pub xzScale : f64 , pub yScale : f64 , pub xzFactor : f64 , pub yFactor : f64 , pub octmin : OctaveNoise , pub octmax : OctaveNoise , pub octmain : OctaveNoise , pub octsurf : OctaveNoise , pub octdepth : OctaveNoise , pub oct : [PerlinNoise ; 60usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of SurfaceNoise"] [:: std :: mem :: size_of :: < SurfaceNoise > () - 19312usize] ; ["Alignment of SurfaceNoise"] [:: std :: mem :: align_of :: < SurfaceNoise > () - 8usize] ; ["Offset of field: SurfaceNoise::xzScale"] [:: std :: mem :: offset_of ! (SurfaceNoise , xzScale) - 0usize] ; ["Offset of field: SurfaceNoise::yScale"] [:: std :: mem :: offset_of ! (SurfaceNoise , yScale) - 8usize] ; ["Offset of field: SurfaceNoise::xzFactor"] [:: std :: mem :: offset_of ! (SurfaceNoise , xzFactor) - 16usize] ; ["Offset of field: SurfaceNoise::yFactor"] [:: std :: mem :: offset_of ! (SurfaceNoise , yFactor) - 24usize] ; ["Offset of field: SurfaceNoise::octmin"] [:: std :: mem :: offset_of ! (SurfaceNoise , octmin) - 32usize] ; ["Offset of field: SurfaceNoise::octmax"] [:: std :: mem :: offset_of ! (SurfaceNoise , octmax) - 48usize] ; ["Offset of field: SurfaceNoise::octmain"] [:: std :: mem :: offset_of ! (SurfaceNoise , octmain) - 64usize] ; ["Offset of field: SurfaceNoise::octsurf"] [:: std :: mem :: offset_of ! (SurfaceNoise , octsurf) - 80usize] ; ["Offset of field: SurfaceNoise::octdepth"] [:: std :: mem :: offset_of ! (SurfaceNoise , octdepth) - 96usize] ; ["Offset of field: SurfaceNoise::oct"] [:: std :: mem :: offset_of ! (SurfaceNoise , oct) - 112usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct SurfaceNoiseBeta { pub octmin : OctaveNoise , pub octmax : OctaveNoise , pub octmain : OctaveNoise , pub octcontA : OctaveNoise , pub octcontB : OctaveNoise , pub oct : [PerlinNoise ; 66usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of SurfaceNoiseBeta"] [:: std :: mem :: size_of :: < SurfaceNoiseBeta > () - 21200usize] ; ["Alignment of SurfaceNoiseBeta"] [:: std :: mem :: align_of :: < SurfaceNoiseBeta > () - 8usize] ; ["Offset of field: SurfaceNoiseBeta::octmin"] [:: std :: mem :: offset_of ! (SurfaceNoiseBeta , octmin) - 0usize] ; ["Offset of field: SurfaceNoiseBeta::octmax"] [:: std :: mem :: offset_of ! (SurfaceNoiseBeta , octmax) - 16usize] ; ["Offset of field: SurfaceNoiseBeta::octmain"] [:: std :: mem :: offset_of ! (SurfaceNoiseBeta , octmain) - 32usize] ; ["Offset of field: SurfaceNoiseBeta::octcontA"] [:: std :: mem :: offset_of ! (SurfaceNoiseBeta , octcontA) - 48usize] ; ["Offset of field: SurfaceNoiseBeta::octcontB"] [:: std :: mem :: offset_of ! (SurfaceNoiseBeta , octcontB) - 64usize] ; ["Offset of field: SurfaceNoiseBeta::oct"] [:: std :: mem :: offset_of ! (SurfaceNoiseBeta , oct) - 80usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct SeaLevelColumnNoiseBeta { pub contASample : f64 , pub contBSample : f64 , pub minSample : [f64 ; 2usize] , pub maxSample : [f64 ; 2usize] , pub mainSample : [f64 ; 2usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of SeaLevelColumnNoiseBeta"] [:: std :: mem :: size_of :: < SeaLevelColumnNoiseBeta > () - 64usize] ; ["Alignment of SeaLevelColumnNoiseBeta"] [:: std :: mem :: align_of :: < SeaLevelColumnNoiseBeta > () - 8usize] ; ["Offset of field: SeaLevelColumnNoiseBeta::contASample"] [:: std :: mem :: offset_of ! (SeaLevelColumnNoiseBeta , contASample) - 0usize] ; ["Offset of field: SeaLevelColumnNoiseBeta::contBSample"] [:: std :: mem :: offset_of ! (SeaLevelColumnNoiseBeta , contBSample) - 8usize] ; ["Offset of field: SeaLevelColumnNoiseBeta::minSample"] [:: std :: mem :: offset_of ! (SeaLevelColumnNoiseBeta , minSample) - 16usize] ; ["Offset of field: SeaLevelColumnNoiseBeta::maxSample"] [:: std :: mem :: offset_of ! (SeaLevelColumnNoiseBeta , maxSample) - 32usize] ; ["Offset of field: SeaLevelColumnNoiseBeta::mainSample"] [:: std :: mem :: offset_of ! (SeaLevelColumnNoiseBeta , mainSample) - 48usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Spline { pub len : :: std :: os :: raw :: c_int , pub typ : :: std :: os :: raw :: c_int , pub loc : [f32 ; 12usize] , pub der : [f32 ; 12usize] , pub val : [* mut Spline ; 12usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Spline"] [:: std :: mem :: size_of :: < Spline > () - 200usize] ; ["Alignment of Spline"] [:: std :: mem :: align_of :: < Spline > () - 8usize] ; ["Offset of field: Spline::len"] [:: std :: mem :: offset_of ! (Spline , len) - 0usize] ; ["Offset of field: Spline::typ"] [:: std :: mem :: offset_of ! (Spline , typ) - 4usize] ; ["Offset of field: Spline::loc"] [:: std :: mem :: offset_of ! (Spline , loc) - 8usize] ; ["Offset of field: Spline::der"] [:: std :: mem :: offset_of ! (Spline , der) - 56usize] ; ["Offset of field: Spline::val"] [:: std :: mem :: offset_of ! (Spline , val) - 104usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FixSpline { pub len : :: std :: os :: raw :: c_int , pub val : f32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of FixSpline"] [:: std :: mem :: size_of :: < FixSpline > () - 8usize] ; ["Alignment of FixSpline"] [:: std :: mem :: align_of :: < FixSpline > () - 4usize] ; ["Offset of field: FixSpline::len"] [:: std :: mem :: offset_of ! (FixSpline , len) - 0usize] ; ["Offset of field: FixSpline::val"] [:: std :: mem :: offset_of ! (FixSpline , val) - 4usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct SplineStack { pub stack : [Spline ; 42usize] , pub fstack : [FixSpline ; 151usize] , pub len : :: std :: os :: raw :: c_int , pub flen : :: std :: os :: raw :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of SplineStack"] [:: std :: mem :: size_of :: < SplineStack > () - 9616usize] ; ["Alignment of SplineStack"] [:: std :: mem :: align_of :: < SplineStack > () - 8usize] ; ["Offset of field: SplineStack::stack"] [:: std :: mem :: offset_of ! (SplineStack , stack) - 0usize] ; ["Offset of field: SplineStack::fstack"] [:: std :: mem :: offset_of ! (SplineStack , fstack) - 8400usize] ; ["Offset of field: SplineStack::len"] [:: std :: mem :: offset_of ! (SplineStack , len) - 9608usize] ; ["Offset of field: SplineStack::flen"] [:: std :: mem :: offset_of ! (SplineStack , flen) - 9612usize] ; } ; pub const NP_TEMPERATURE : _bindgen_ty_2 = _bindgen_ty_2 (0) ; pub const NP_HUMIDITY : _bindgen_ty_2 = _bindgen_ty_2 (1) ; pub const NP_CONTINENTALNESS : _bindgen_ty_2 = _bindgen_ty_2 (2) ; pub const NP_EROSION : _bindgen_ty_2 = _bindgen_ty_2 (3) ; pub const NP_SHIFT : _bindgen_ty_2 = _bindgen_ty_2 (4) ; pub const NP_DEPTH : _bindgen_ty_2 = _bindgen_ty_2 (4) ; pub const NP_WEIRDNESS : _bindgen_ty_2 = _bindgen_ty_2 (5) ; pub const NP_MAX : _bindgen_ty_2 = _bindgen_ty_2 (6) ; # [repr (transparent)] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct _bindgen_ty_2 (pub :: std :: os :: raw :: c_uint) ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct BiomeNoise { pub climate : [DoublePerlinNoise ; 6usize] , pub oct : [PerlinNoise ; 46usize] , pub sp : * mut Spline , pub ss : SplineStack , pub nptype : :: std :: os :: raw :: c_int , pub mc : :: std :: os :: raw :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of BiomeNoise"] [:: std :: mem :: size_of :: < BiomeNoise > () - 24592usize] ; ["Alignment of BiomeNoise"] [:: std :: mem :: align_of :: < BiomeNoise > () - 8usize] ; ["Offset of field: BiomeNoise::climate"] [:: std :: mem :: offset_of ! (BiomeNoise , climate) - 0usize] ; ["Offset of field: BiomeNoise::oct"] [:: std :: mem :: offset_of ! (BiomeNoise , oct) - 240usize] ; ["Offset of field: BiomeNoise::sp"] [:: std :: mem :: offset_of ! (BiomeNoise , sp) - 14960usize] ; ["Offset of field: BiomeNoise::ss"] [:: std :: mem :: offset_of ! (BiomeNoise , ss) - 14968usize] ; ["Offset of field: BiomeNoise::nptype"] [:: std :: mem :: offset_of ! (BiomeNoise , nptype) - 24584usize] ; ["Offset of field: BiomeNoise::mc"] [:: std :: mem :: offset_of ! (BiomeNoise , mc) - 24588usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct BiomeNoiseBeta { pub climate : [OctaveNoise ; 3usize] , pub oct : [PerlinNoise ; 10usize] , pub nptype : :: std :: os :: raw :: c_int , pub mc : :: std :: os :: raw :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of BiomeNoiseBeta"] [:: std :: mem :: size_of :: < BiomeNoiseBeta > () - 3256usize] ; ["Alignment of BiomeNoiseBeta"] [:: std :: mem :: align_of :: < BiomeNoiseBeta > () - 8usize] ; ["Offset of field: BiomeNoiseBeta::climate"] [:: std :: mem :: offset_of ! (BiomeNoiseBeta , climate) - 0usize] ; ["Offset of field: BiomeNoiseBeta::oct"] [:: std :: mem :: offset_of ! (BiomeNoiseBeta , oct) - 48usize] ; ["Offset of field: BiomeNoiseBeta::nptype"] [:: std :: mem :: offset_of ! (BiomeNoiseBeta , nptype) - 3248usize] ; ["Offset of field: BiomeNoiseBeta::mc"] [:: std :: mem :: offset_of ! (BiomeNoiseBeta , mc) - 3252usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct BiomeTree { pub steps : * const u32 , pub param : * const i32 , pub nodes : * const u64 , pub order : u32 , pub len : u32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of BiomeTree"] [:: std :: mem :: size_of :: < BiomeTree > () - 32usize] ; ["Alignment of BiomeTree"] [:: std :: mem :: align_of :: < BiomeTree > () - 8usize] ; ["Offset of field: BiomeTree::steps"] [:: std :: mem :: offset_of ! (BiomeTree , steps) - 0usize] ; ["Offset of field: BiomeTree::param"] [:: std :: mem :: offset_of ! (BiomeTree , param) - 8usize] ; ["Offset of field: BiomeTree::nodes"] [:: std :: mem :: offset_of ! (BiomeTree , nodes) - 16usize] ; ["Offset of field: BiomeTree::order"] [:: std :: mem :: offset_of ! (BiomeTree , order) - 24usize] ; ["Offset of field: BiomeTree::len"] [:: std :: mem :: offset_of ! (BiomeTree , len) - 28usize] ; } ; unsafe extern "C" { pub fn initSurfaceNoise (sn : * mut SurfaceNoise , dim : :: std :: os :: raw :: c_int , seed : u64) ; } unsafe extern "C" { pub fn initSurfaceNoiseBeta (snb : * mut SurfaceNoiseBeta , seed : u64) ; } unsafe extern "C" { pub fn sampleSurfaceNoise (sn : * const SurfaceNoise , x : :: std :: os :: raw :: c_int , y : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int) -> f64 ; } unsafe extern "C" { pub fn sampleSurfaceNoiseBetween (sn : * const SurfaceNoise , x : :: std :: os :: raw :: c_int , y : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , noiseMin : f64 , noiseMax : f64) -> f64 ; } unsafe extern "C" { # [doc = " Nether biomes are 3D, and generated at scale 1:4. Use voronoiAccess3D() to\n convert coordinates at 1:1 scale to their 1:4 access. Biome checks for\n structures are generally done at y=0.\n\n The function getNetherBiome() determines the nether biome at a given\n coordinate at scale 1:4. The parameter 'ndel' is an output noise delta for\n optimization purposes and can be ignored (nullable).\n\n Use mapNether2D() to get a 2D area of nether biomes at y=0, scale 1:4.\n\n The mapNether3D() function attempts to optimize the generation of a volume\n at scale 1:4. The output is indexed as:\n out[i_y*(r.sx*r.sz) + i_z*r.sx + i_x].\n If the optimization parameter 'confidence' has a value less than 1.0, the\n generation will generally be faster, but can yield incorrect results in some\n circumstances.\n\n The output buffer for the map-functions need only be of sufficient size to\n hold the generated area (i.e. w*h or r.sx*r.sy*r.sz)."] pub fn setNetherSeed (nn : * mut NetherNoise , seed : u64) ; } unsafe extern "C" { pub fn getNetherBiome (nn : * const NetherNoise , x : :: std :: os :: raw :: c_int , y : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , ndel : * mut f32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapNether2D (nn : * const NetherNoise , out : * mut :: std :: os :: raw :: c_int , x : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , w : :: std :: os :: raw :: c_int , h : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapNether3D (nn : * const NetherNoise , out : * mut :: std :: os :: raw :: c_int , r : Range , confidence : f32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " The scaled Nether generation supports scales 1, 4, 16, 64, and 256.\n It is similar to mapNether3D(), but applies voronoi zoom if necessary, and\n fills the output buffer with nether_wastes for versions older than 1.16."] pub fn genNetherScaled (nn : * const NetherNoise , out : * mut :: std :: os :: raw :: c_int , r : Range , mc : :: std :: os :: raw :: c_int , sha : u64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " End biome generation is based on simplex noise and varies only at a 1:16\n chunk scale which can be generated with mapEndBiome(). The function mapEnd()\n is a variation which also scales this up on a regular grid to 1:4. The final\n access at a 1:1 scale uses voronoi."] pub fn setEndSeed (en : * mut EndNoise , mc : :: std :: os :: raw :: c_int , seed : u64) ; } unsafe extern "C" { pub fn mapEndBiome (en : * const EndNoise , out : * mut :: std :: os :: raw :: c_int , x : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , w : :: std :: os :: raw :: c_int , h : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapEnd (en : * const EndNoise , out : * mut :: std :: os :: raw :: c_int , x : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , w : :: std :: os :: raw :: c_int , h : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getEndSurfaceHeight (mc : :: std :: os :: raw :: c_int , seed : u64 , x : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapEndSurfaceHeight (y : * mut f32 , en : * const EndNoise , sn : * const SurfaceNoise , x : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , w : :: std :: os :: raw :: c_int , h : :: std :: os :: raw :: c_int , scale : :: std :: os :: raw :: c_int , ymin : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " The scaled End generation supports scales 1, 4, 16, and 64.\n The End biomes are usually 2D, but in 1.15+ there is 3D voronoi noise, which\n is controlled by the 'sha' hash of the seed. For scales higher than 1:1, and\n versions up to 1.14, 'sha' is ignored."] pub fn genEndScaled (en : * const EndNoise , out : * mut :: std :: os :: raw :: c_int , r : Range , mc : :: std :: os :: raw :: c_int , sha : u64) -> :: std :: os :: raw :: c_int ; } pub const SAMPLE_NO_SHIFT : _bindgen_ty_3 = _bindgen_ty_3 (1) ; pub const SAMPLE_NO_DEPTH : _bindgen_ty_3 = _bindgen_ty_3 (2) ; pub const SAMPLE_NO_BIOME : _bindgen_ty_3 = _bindgen_ty_3 (4) ; # [repr (transparent)] # [doc = " In 1.18 the Overworld uses a new noise map system for the biome generation.\n The random number generation also has updated to a Xiroshiro128 algorithm.\n The scale is 1:4, and is sampled at each point individually as there is\n currently not much benefit from generating a volume as a whole.\n\n The 1.18 End generation remains similar to 1.17 and does NOT use the\n biome noise."] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct _bindgen_ty_3 (pub :: std :: os :: raw :: c_uint) ; unsafe extern "C" { pub fn initBiomeNoise (bn : * mut BiomeNoise , mc : :: std :: os :: raw :: c_int) ; } unsafe extern "C" { pub fn setBiomeSeed (bn : * mut BiomeNoise , seed : u64 , large : :: std :: os :: raw :: c_int) ; } unsafe extern "C" { pub fn setBetaBiomeSeed (bnb : * mut BiomeNoiseBeta , seed : u64) ; } unsafe extern "C" { pub fn sampleBiomeNoise (bn : * const BiomeNoise , np : * mut i64 , x : :: std :: os :: raw :: c_int , y : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , dat : * mut u64 , sample_flags : u32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn sampleBiomeNoiseBeta (bnb : * const BiomeNoiseBeta , np : * mut i64 , nv : * mut f64 , x : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn approxSurfaceBeta (bnb : * const BiomeNoiseBeta , snb : * const SurfaceNoiseBeta , x : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int) -> f64 ; } unsafe extern "C" { # [doc = " (Alpha 1.2 - Beta 1.7)\n Temperature and humidity values to biome."] pub fn getOldBetaBiome (t : f32 , h : f32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " Uses the global biome tree definitions (see tables/btreeXX.h)\n to map a noise point (i.e. climate) to the corresponding overworld biome."] pub fn climateToBiome (mc : :: std :: os :: raw :: c_int , np : * const u64 , dat : * mut u64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " Initialize BiomeNoise for only a single climate parameter.\n If nptype == NP_DEPTH, the value is sampled at y=0. Note that this value\n changes linearly with the height (i.e. -= y/128).\n A maximum of nmax octaves is set, initializing only the most contributing\n octaves up to that point. Use -1 for a full initialization."] pub fn setClimateParaSeed (bn : * mut BiomeNoise , seed : u64 , large : :: std :: os :: raw :: c_int , nptype : :: std :: os :: raw :: c_int , nmax : :: std :: os :: raw :: c_int) ; } unsafe extern "C" { pub fn sampleClimatePara (bn : * const BiomeNoise , np : * mut i64 , x : f64 , z : f64) -> f64 ; } unsafe extern "C" { # [doc = " Currently, in 1.18, we have to generate biomes one chunk at a time to get an\n accurate mapping of the biomes in the level storage, as there is no longer a\n unique mapping from noise points to biomes (MC-241546). Note that the results\n from this are not suitable for chunk population/structure generation.\n The output is in the form out[x][y][z] for the 64 biome points in the chunk\n section. The coordinates {cx,cy,cz} are all at scale 1:16 and the 'dat'\n argument should be the previous noise sampling and can be left NULL."] pub fn genBiomeNoiseChunkSection (bn : * const BiomeNoise , out : * mut [[:: std :: os :: raw :: c_int ; 4usize] ; 4usize] , cx : :: std :: os :: raw :: c_int , cy : :: std :: os :: raw :: c_int , cz : :: std :: os :: raw :: c_int , dat : * mut u64) ; } unsafe extern "C" { # [doc = " The scaled biome noise generation applies for the Overworld version 1.18+.\n The 'sha' hash of the seed is only required for voronoi at scale 1:1.\n A scale of zero is interpreted as the default 1:4 scale."] pub fn genBiomeNoiseScaled (bn : * const BiomeNoise , out : * mut :: std :: os :: raw :: c_int , r : Range , sha : u64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " Generates the biomes for Beta 1.7, the surface noise is optional and enables\n ocean mapping in areas that fall below the sea level."] pub fn genBiomeNoiseBetaScaled (bnb : * const BiomeNoiseBeta , snb : * const SurfaceNoiseBeta , out : * mut :: std :: os :: raw :: c_int , r : Range) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getBiomeDepthAndScale (id : :: std :: os :: raw :: c_int , depth : * mut f64 , scale : * mut f64 , grass : * mut :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getVoronoiSrcRange (r : Range) -> Range ; } pub const LARGE_BIOMES : _bindgen_ty_4 = _bindgen_ty_4 (1) ; pub const NO_BETA_OCEAN : _bindgen_ty_4 = _bindgen_ty_4 (2) ; pub const FORCE_OCEAN_VARIANTS : _bindgen_ty_4 = _bindgen_ty_4 (4) ; # [repr (transparent)] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct _bindgen_ty_4 (pub :: std :: os :: raw :: c_uint) ; # [repr (C)] # [derive (Copy , Clone)] pub struct Generator { pub mc : :: std :: os :: raw :: c_int , pub dim : :: std :: os :: raw :: c_int , pub flags : u32 , pub seed : u64 , pub sha : u64 , pub __bindgen_anon_1 : Generator__bindgen_ty_1 , pub nn : NetherNoise , pub en : EndNoise , } # [repr (C)] # [derive (Copy , Clone)] pub union Generator__bindgen_ty_1 { pub __bindgen_anon_1 : Generator__bindgen_ty_1__bindgen_ty_1 , pub __bindgen_anon_2 : Generator__bindgen_ty_1__bindgen_ty_2 , pub __bindgen_anon_3 : Generator__bindgen_ty_1__bindgen_ty_3 , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Generator__bindgen_ty_1__bindgen_ty_1 { pub ls : LayerStack , pub xlayer : [Layer ; 5usize] , pub entry : * mut Layer , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Generator__bindgen_ty_1__bindgen_ty_1"] [:: std :: mem :: size_of :: < Generator__bindgen_ty_1__bindgen_ty_1 > () - 5120usize] ; ["Alignment of Generator__bindgen_ty_1__bindgen_ty_1"] [:: std :: mem :: align_of :: < Generator__bindgen_ty_1__bindgen_ty_1 > () - 8usize] ; ["Offset of field: Generator__bindgen_ty_1__bindgen_ty_1::ls"] [:: std :: mem :: offset_of ! (Generator__bindgen_ty_1__bindgen_ty_1 , ls) - 0usize] ; ["Offset of field: Generator__bindgen_ty_1__bindgen_ty_1::xlayer"] [:: std :: mem :: offset_of ! (Generator__bindgen_ty_1__bindgen_ty_1 , xlayer) - 4752usize] ; ["Offset of field: Generator__bindgen_ty_1__bindgen_ty_1::entry"] [:: std :: mem :: offset_of ! (Generator__bindgen_ty_1__bindgen_ty_1 , entry) - 5112usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Generator__bindgen_ty_1__bindgen_ty_2 { pub bn : BiomeNoise , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Generator__bindgen_ty_1__bindgen_ty_2"] [:: std :: mem :: size_of :: < Generator__bindgen_ty_1__bindgen_ty_2 > () - 24592usize] ; ["Alignment of Generator__bindgen_ty_1__bindgen_ty_2"] [:: std :: mem :: align_of :: < Generator__bindgen_ty_1__bindgen_ty_2 > () - 8usize] ; ["Offset of field: Generator__bindgen_ty_1__bindgen_ty_2::bn"] [:: std :: mem :: offset_of ! (Generator__bindgen_ty_1__bindgen_ty_2 , bn) - 0usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Generator__bindgen_ty_1__bindgen_ty_3 { pub bnb : BiomeNoiseBeta , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Generator__bindgen_ty_1__bindgen_ty_3"] [:: std :: mem :: size_of :: < Generator__bindgen_ty_1__bindgen_ty_3 > () - 3256usize] ; ["Alignment of Generator__bindgen_ty_1__bindgen_ty_3"] [:: std :: mem :: align_of :: < Generator__bindgen_ty_1__bindgen_ty_3 > () - 8usize] ; ["Offset of field: Generator__bindgen_ty_1__bindgen_ty_3::bnb"] [:: std :: mem :: offset_of ! (Generator__bindgen_ty_1__bindgen_ty_3 , bnb) - 0usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Generator__bindgen_ty_1"] [:: std :: mem :: size_of :: < Generator__bindgen_ty_1 > () - 24592usize] ; ["Alignment of Generator__bindgen_ty_1"] [:: std :: mem :: align_of :: < Generator__bindgen_ty_1 > () - 8usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Generator"] [:: std :: mem :: size_of :: < Generator > () - 27592usize] ; ["Alignment of Generator"] [:: std :: mem :: align_of :: < Generator > () - 8usize] ; ["Offset of field: Generator::mc"] [:: std :: mem :: offset_of ! (Generator , mc) - 0usize] ; ["Offset of field: Generator::dim"] [:: std :: mem :: offset_of ! (Generator , dim) - 4usize] ; ["Offset of field: Generator::flags"] [:: std :: mem :: offset_of ! (Generator , flags) - 8usize] ; ["Offset of field: Generator::seed"] [:: std :: mem :: offset_of ! (Generator , seed) - 16usize] ; ["Offset of field: Generator::sha"] [:: std :: mem :: offset_of ! (Generator , sha) - 24usize] ; ["Offset of field: Generator::nn"] [:: std :: mem :: offset_of ! (Generator , nn) - 24624usize] ; ["Offset of field: Generator::en"] [:: std :: mem :: offset_of ! (Generator , en) - 27264usize] ; } ; unsafe extern "C" { # [doc = " Sets up a biome generator for a given MC version. The 'flags' can be used to\n control LARGE_BIOMES or to FORCE_OCEAN_VARIANTS to enable ocean variants at\n scales higher than normal."] pub fn setupGenerator (g : * mut Generator , mc : :: std :: os :: raw :: c_int , flags : u32) ; } unsafe extern "C" { # [doc = " Initializes the generator for a given dimension and seed.\n dim=0:   Overworld\n dim=-1:  Nether\n dim=+1:  End"] pub fn applySeed (g : * mut Generator , dim : :: std :: os :: raw :: c_int , seed : u64) ; } unsafe extern "C" { # [doc = " Calculates the buffer size (number of ints) required to generate a cuboidal\n volume of size (sx, sy, sz). If 'sy' is zero the buffer is calculated for a\n 2D plane (which is equivalent to sy=1 here).\n The function allocCache() can be used to allocate the corresponding int\n buffer using malloc()."] pub fn getMinCacheSize (g : * const Generator , scale : :: std :: os :: raw :: c_int , sx : :: std :: os :: raw :: c_int , sy : :: std :: os :: raw :: c_int , sz : :: std :: os :: raw :: c_int) -> usize ; } unsafe extern "C" { pub fn allocCache (g : * const Generator , r : Range) -> * mut :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " Generates the biomes for a cuboidal scaled range given by 'r'.\n (See description of Range for more detail.)\n\n The output is generated inside the cache. Upon success the biome ids can be\n accessed by indexing as:\n  cache[ y*r.sx*r.sz + z*r.sx + x ]\n where (x,y,z) is an relative position inside the range cuboid.\n\n The required length of the cache can be determined with getMinCacheSize().\n\n The return value is zero upon success."] pub fn genBiomes (g : * const Generator , cache : * mut :: std :: os :: raw :: c_int , r : Range) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " Gets the biome for a specified scaled position. Note that the scale should\n be either 1 or 4, for block or biome coordinates respectively.\n Returns none (-1) upon failure."] pub fn getBiomeAt (g : * const Generator , scale : :: std :: os :: raw :: c_int , x : :: std :: os :: raw :: c_int , y : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " Returns the default layer that corresponds to the given scale.\n Supported scales are {0, 1, 4, 16, 64, 256}. A scale of zero indicates the\n custom entry layer 'g->entry'.\n (Overworld, MC <= 1.17)"] pub fn getLayerForScale (g : * const Generator , scale : :: std :: os :: raw :: c_int) -> * const Layer ; } unsafe extern "C" { # [doc = "=============================================================================\n Layered Biome Generation (old interface up to 1.17)\n============================================================================="] pub fn setupLayerStack (g : * mut LayerStack , mc : :: std :: os :: raw :: c_int , largeBiomes : :: std :: os :: raw :: c_int) ; } unsafe extern "C" { pub fn getMinLayerCacheSize (layer : * const Layer , sizeX : :: std :: os :: raw :: c_int , sizeZ : :: std :: os :: raw :: c_int) -> usize ; } unsafe extern "C" { pub fn setupLayer (l : * mut Layer , map : mapfunc_t , mc : :: std :: os :: raw :: c_int , zoom : i8 , edge : i8 , saltbase : u64 , p : * mut Layer , p2 : * mut Layer) -> * mut Layer ; } unsafe extern "C" { pub fn genArea (layer : * const Layer , out : * mut :: std :: os :: raw :: c_int , areaX : :: std :: os :: raw :: c_int , areaZ : :: std :: os :: raw :: c_int , areaWidth : :: std :: os :: raw :: c_int , areaHeight : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " Map an approximation of the Overworld surface height.\n The horizontal scaling is 1:4. If non-null, the ids are filled with the\n biomes of the area. The height (written to y) is in blocks."] pub fn mapApproxHeight (y : * mut f32 , ids : * mut :: std :: os :: raw :: c_int , g : * const Generator , sn : * const SurfaceNoise , x : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , w : :: std :: os :: raw :: c_int , h : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } impl StructureType { pub const Feature : StructureType = StructureType (0) ; } impl StructureType { pub const Desert_Pyramid : StructureType = StructureType (1) ; } impl StructureType { pub const Jungle_Temple : StructureType = StructureType (2) ; } impl StructureType { pub const Jungle_Pyramid : StructureType = StructureType (2) ; } impl StructureType { pub const Swamp_Hut : StructureType = StructureType (3) ; } impl StructureType { pub const Igloo : StructureType = StructureType (4) ; } impl StructureType { pub const Village : StructureType = StructureType (5) ; } impl StructureType { pub const Ocean_Ruin : StructureType = StructureType (6) ; } impl StructureType { pub const Shipwreck : StructureType = StructureType (7) ; } impl StructureType { pub const Monument : StructureType = StructureType (8) ; } impl StructureType { pub const Mansion : StructureType = StructureType (9) ; } impl StructureType { pub const Outpost : StructureType = StructureType (10) ; } impl StructureType { pub const Ruined_Portal : StructureType = StructureType (11) ; } impl StructureType { pub const Ruined_Portal_N : StructureType = StructureType (12) ; } impl StructureType { pub const Ancient_City : StructureType = StructureType (13) ; } impl StructureType { pub const Treasure : StructureType = StructureType (14) ; } impl StructureType { pub const Mineshaft : StructureType = StructureType (15) ; } impl StructureType { pub const Desert_Well : StructureType = StructureType (16) ; } impl StructureType { pub const Geode : StructureType = StructureType (17) ; } impl StructureType { pub const Fortress : StructureType = StructureType (18) ; } impl StructureType { pub const Bastion : StructureType = StructureType (19) ; } impl StructureType { pub const End_City : StructureType = StructureType (20) ; } impl StructureType { pub const End_Gateway : StructureType = StructureType (21) ; } impl StructureType { pub const End_Island : StructureType = StructureType (22) ; } impl StructureType { pub const Trail_Ruins : StructureType = StructureType (23) ; } impl StructureType { pub const Trial_Chambers : StructureType = StructureType (24) ; } impl StructureType { pub const FEATURE_NUM : StructureType = StructureType (25) ; } # [repr (transparent)] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct StructureType (pub :: std :: os :: raw :: c_uint) ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct StructureConfig { pub salt : i32 , pub regionSize : i8 , pub chunkRange : i8 , pub structType : u8 , pub dim : i8 , pub rarity : f32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of StructureConfig"] [:: std :: mem :: size_of :: < StructureConfig > () - 12usize] ; ["Alignment of StructureConfig"] [:: std :: mem :: align_of :: < StructureConfig > () - 4usize] ; ["Offset of field: StructureConfig::salt"] [:: std :: mem :: offset_of ! (StructureConfig , salt) - 0usize] ; ["Offset of field: StructureConfig::regionSize"] [:: std :: mem :: offset_of ! (StructureConfig , regionSize) - 4usize] ; ["Offset of field: StructureConfig::chunkRange"] [:: std :: mem :: offset_of ! (StructureConfig , chunkRange) - 5usize] ; ["Offset of field: StructureConfig::structType"] [:: std :: mem :: offset_of ! (StructureConfig , structType) - 6usize] ; ["Offset of field: StructureConfig::dim"] [:: std :: mem :: offset_of ! (StructureConfig , dim) - 7usize] ; ["Offset of field: StructureConfig::rarity"] [:: std :: mem :: offset_of ! (StructureConfig , rarity) - 8usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Pos { pub x : :: std :: os :: raw :: c_int , pub z : :: std :: os :: raw :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Pos"] [:: std :: mem :: size_of :: < Pos > () - 8usize] ; ["Alignment of Pos"] [:: std :: mem :: align_of :: < Pos > () - 4usize] ; ["Offset of field: Pos::x"] [:: std :: mem :: offset_of ! (Pos , x) - 0usize] ; ["Offset of field: Pos::z"] [:: std :: mem :: offset_of ! (Pos , z) - 4usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Pos3 { pub x : :: std :: os :: raw :: c_int , pub y : :: std :: os :: raw :: c_int , pub z : :: std :: os :: raw :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Pos3"] [:: std :: mem :: size_of :: < Pos3 > () - 12usize] ; ["Alignment of Pos3"] [:: std :: mem :: align_of :: < Pos3 > () - 4usize] ; ["Offset of field: Pos3::x"] [:: std :: mem :: offset_of ! (Pos3 , x) - 0usize] ; ["Offset of field: Pos3::y"] [:: std :: mem :: offset_of ! (Pos3 , y) - 4usize] ; ["Offset of field: Pos3::z"] [:: std :: mem :: offset_of ! (Pos3 , z) - 8usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct StrongholdIter { pub pos : Pos , pub nextapprox : Pos , pub index : :: std :: os :: raw :: c_int , pub ringnum : :: std :: os :: raw :: c_int , pub ringmax : :: std :: os :: raw :: c_int , pub ringidx : :: std :: os :: raw :: c_int , pub angle : f64 , pub dist : f64 , pub rnds : u64 , pub mc : :: std :: os :: raw :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of StrongholdIter"] [:: std :: mem :: size_of :: < StrongholdIter > () - 64usize] ; ["Alignment of StrongholdIter"] [:: std :: mem :: align_of :: < StrongholdIter > () - 8usize] ; ["Offset of field: StrongholdIter::pos"] [:: std :: mem :: offset_of ! (StrongholdIter , pos) - 0usize] ; ["Offset of field: StrongholdIter::nextapprox"] [:: std :: mem :: offset_of ! (StrongholdIter , nextapprox) - 8usize] ; ["Offset of field: StrongholdIter::index"] [:: std :: mem :: offset_of ! (StrongholdIter , index) - 16usize] ; ["Offset of field: StrongholdIter::ringnum"] [:: std :: mem :: offset_of ! (StrongholdIter , ringnum) - 20usize] ; ["Offset of field: StrongholdIter::ringmax"] [:: std :: mem :: offset_of ! (StrongholdIter , ringmax) - 24usize] ; ["Offset of field: StrongholdIter::ringidx"] [:: std :: mem :: offset_of ! (StrongholdIter , ringidx) - 28usize] ; ["Offset of field: StrongholdIter::angle"] [:: std :: mem :: offset_of ! (StrongholdIter , angle) - 32usize] ; ["Offset of field: StrongholdIter::dist"] [:: std :: mem :: offset_of ! (StrongholdIter , dist) - 40usize] ; ["Offset of field: StrongholdIter::rnds"] [:: std :: mem :: offset_of ! (StrongholdIter , rnds) - 48usize] ; ["Offset of field: StrongholdIter::mc"] [:: std :: mem :: offset_of ! (StrongholdIter , mc) - 56usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct StructureVariant { pub _bitfield_align_1 : [u8 ; 0] , pub _bitfield_1 : __BindgenBitfieldUnit < [u8 ; 1usize] > , pub size : u8 , pub start : u8 , pub biome : :: std :: os :: raw :: c_short , pub rotation : u8 , pub mirror : u8 , pub x : i16 , pub y : i16 , pub z : i16 , pub sx : i16 , pub sy : i16 , pub sz : i16 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of StructureVariant"] [:: std :: mem :: size_of :: < StructureVariant > () - 20usize] ; ["Alignment of StructureVariant"] [:: std :: mem :: align_of :: < StructureVariant > () - 2usize] ; ["Offset of field: StructureVariant::size"] [:: std :: mem :: offset_of ! (StructureVariant , size) - 1usize] ; ["Offset of field: StructureVariant::start"] [:: std :: mem :: offset_of ! (StructureVariant , start) - 2usize] ; ["Offset of field: StructureVariant::biome"] [:: std :: mem :: offset_of ! (StructureVariant , biome) - 4usize] ; ["Offset of field: StructureVariant::rotation"] [:: std :: mem :: offset_of ! (StructureVariant , rotation) - 6usize] ; ["Offset of field: StructureVariant::mirror"] [:: std :: mem :: offset_of ! (StructureVariant , mirror) - 7usize] ; ["Offset of field: StructureVariant::x"] [:: std :: mem :: offset_of ! (StructureVariant , x) - 8usize] ; ["Offset of field: StructureVariant::y"] [:: std :: mem :: offset_of ! (StructureVariant , y) - 10usize] ; ["Offset of field: StructureVariant::z"] [:: std :: mem :: offset_of ! (StructureVariant , z) - 12usize] ; ["Offset of field: StructureVariant::sx"] [:: std :: mem :: offset_of ! (StructureVariant , sx) - 14usize] ; ["Offset of field: StructureVariant::sy"] [:: std :: mem :: offset_of ! (StructureVariant , sy) - 16usize] ; ["Offset of field: StructureVariant::sz"] [:: std :: mem :: offset_of ! (StructureVariant , sz) - 18usize] ; } ; impl StructureVariant { # [inline] pub fn abandoned (& self) -> u8 { unsafe { :: std :: mem :: transmute (self . _bitfield_1 . get (0usize , 1u8) as u8) } } # [inline] pub fn set_abandoned (& mut self , val : u8) { unsafe { let val : u8 = :: std :: mem :: transmute (val) ; self . _bitfield_1 . set (0usize , 1u8 , val as u64) } } # [inline] pub unsafe fn abandoned_raw (this : * const Self) -> u8 { unsafe { :: std :: mem :: transmute (< __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_get (:: std :: ptr :: addr_of ! ((* this) . _bitfield_1) , 0usize , 1u8 ,) as u8) } } # [inline] pub unsafe fn set_abandoned_raw (this : * mut Self , val : u8) { unsafe { let val : u8 = :: std :: mem :: transmute (val) ; < __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_set (:: std :: ptr :: addr_of_mut ! ((* this) . _bitfield_1) , 0usize , 1u8 , val as u64 ,) } } # [inline] pub fn giant (& self) -> u8 { unsafe { :: std :: mem :: transmute (self . _bitfield_1 . get (1usize , 1u8) as u8) } } # [inline] pub fn set_giant (& mut self , val : u8) { unsafe { let val : u8 = :: std :: mem :: transmute (val) ; self . _bitfield_1 . set (1usize , 1u8 , val as u64) } } # [inline] pub unsafe fn giant_raw (this : * const Self) -> u8 { unsafe { :: std :: mem :: transmute (< __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_get (:: std :: ptr :: addr_of ! ((* this) . _bitfield_1) , 1usize , 1u8 ,) as u8) } } # [inline] pub unsafe fn set_giant_raw (this : * mut Self , val : u8) { unsafe { let val : u8 = :: std :: mem :: transmute (val) ; < __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_set (:: std :: ptr :: addr_of_mut ! ((* this) . _bitfield_1) , 1usize , 1u8 , val as u64 ,) } } # [inline] pub fn underground (& self) -> u8 { unsafe { :: std :: mem :: transmute (self . _bitfield_1 . get (2usize , 1u8) as u8) } } # [inline] pub fn set_underground (& mut self , val : u8) { unsafe { let val : u8 = :: std :: mem :: transmute (val) ; self . _bitfield_1 . set (2usize , 1u8 , val as u64) } } # [inline] pub unsafe fn underground_raw (this : * const Self) -> u8 { unsafe { :: std :: mem :: transmute (< __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_get (:: std :: ptr :: addr_of ! ((* this) . _bitfield_1) , 2usize , 1u8 ,) as u8) } } # [inline] pub unsafe fn set_underground_raw (this : * mut Self , val : u8) { unsafe { let val : u8 = :: std :: mem :: transmute (val) ; < __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_set (:: std :: ptr :: addr_of_mut ! ((* this) . _bitfield_1) , 2usize , 1u8 , val as u64 ,) } } # [inline] pub fn airpocket (& self) -> u8 { unsafe { :: std :: mem :: transmute (self . _bitfield_1 . get (3usize , 1u8) as u8) } } # [inline] pub fn set_airpocket (& mut self , val : u8) { unsafe { let val : u8 = :: std :: mem :: transmute (val) ; self . _bitfield_1 . set (3usize , 1u8 , val as u64) } } # [inline] pub unsafe fn airpocket_raw (this : * const Self) -> u8 { unsafe { :: std :: mem :: transmute (< __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_get (:: std :: ptr :: addr_of ! ((* this) . _bitfield_1) , 3usize , 1u8 ,) as u8) } } # [inline] pub unsafe fn set_airpocket_raw (this : * mut Self , val : u8) { unsafe { let val : u8 = :: std :: mem :: transmute (val) ; < __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_set (:: std :: ptr :: addr_of_mut ! ((* this) . _bitfield_1) , 3usize , 1u8 , val as u64 ,) } } # [inline] pub fn basement (& self) -> u8 { unsafe { :: std :: mem :: transmute (self . _bitfield_1 . get (4usize , 1u8) as u8) } } # [inline] pub fn set_basement (& mut self , val : u8) { unsafe { let val : u8 = :: std :: mem :: transmute (val) ; self . _bitfield_1 . set (4usize , 1u8 , val as u64) } } # [inline] pub unsafe fn basement_raw (this : * const Self) -> u8 { unsafe { :: std :: mem :: transmute (< __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_get (:: std :: ptr :: addr_of ! ((* this) . _bitfield_1) , 4usize , 1u8 ,) as u8) } } # [inline] pub unsafe fn set_basement_raw (this : * mut Self , val : u8) { unsafe { let val : u8 = :: std :: mem :: transmute (val) ; < __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_set (:: std :: ptr :: addr_of_mut ! ((* this) . _bitfield_1) , 4usize , 1u8 , val as u64 ,) } } # [inline] pub fn cracked (& self) -> u8 { unsafe { :: std :: mem :: transmute (self . _bitfield_1 . get (5usize , 1u8) as u8) } } # [inline] pub fn set_cracked (& mut self , val : u8) { unsafe { let val : u8 = :: std :: mem :: transmute (val) ; self . _bitfield_1 . set (5usize , 1u8 , val as u64) } } # [inline] pub unsafe fn cracked_raw (this : * const Self) -> u8 { unsafe { :: std :: mem :: transmute (< __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_get (:: std :: ptr :: addr_of ! ((* this) . _bitfield_1) , 5usize , 1u8 ,) as u8) } } # [inline] pub unsafe fn set_cracked_raw (this : * mut Self , val : u8) { unsafe { let val : u8 = :: std :: mem :: transmute (val) ; < __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_set (:: std :: ptr :: addr_of_mut ! ((* this) . _bitfield_1) , 5usize , 1u8 , val as u64 ,) } } # [inline] pub fn new_bitfield_1 (abandoned : u8 , giant : u8 , underground : u8 , airpocket : u8 , basement : u8 , cracked : u8) -> __BindgenBitfieldUnit < [u8 ; 1usize] > { let mut __bindgen_bitfield_unit : __BindgenBitfieldUnit < [u8 ; 1usize] > = Default :: default () ; __bindgen_bitfield_unit . set (0usize , 1u8 , { let abandoned : u8 = unsafe { :: std :: mem :: transmute (abandoned) } ; abandoned as u64 }) ; __bindgen_bitfield_unit . set (1usize , 1u8 , { let giant : u8 = unsafe { :: std :: mem :: transmute (giant) } ; giant as u64 }) ; __bindgen_bitfield_unit . set (2usize , 1u8 , { let underground : u8 = unsafe { :: std :: mem :: transmute (underground) } ; underground as u64 }) ; __bindgen_bitfield_unit . set (3usize , 1u8 , { let airpocket : u8 = unsafe { :: std :: mem :: transmute (airpocket) } ; airpocket as u64 }) ; __bindgen_bitfield_unit . set (4usize , 1u8 , { let basement : u8 = unsafe { :: std :: mem :: transmute (basement) } ; basement as u64 }) ; __bindgen_bitfield_unit . set (5usize , 1u8 , { let cracked : u8 = unsafe { :: std :: mem :: transmute (cracked) } ; cracked as u64 }) ; __bindgen_bitfield_unit } } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Piece { pub name : * const :: std :: os :: raw :: c_char , pub pos : Pos3 , pub bb0 : Pos3 , pub bb1 : Pos3 , pub rot : u8 , pub depth : i8 , pub type_ : i8 , pub next : * mut Piece , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Piece"] [:: std :: mem :: size_of :: < Piece > () - 56usize] ; ["Alignment of Piece"] [:: std :: mem :: align_of :: < Piece > () - 8usize] ; ["Offset of field: Piece::name"] [:: std :: mem :: offset_of ! (Piece , name) - 0usize] ; ["Offset of field: Piece::pos"] [:: std :: mem :: offset_of ! (Piece , pos) - 8usize] ; ["Offset of field: Piece::bb0"] [:: std :: mem :: offset_of ! (Piece , bb0) - 20usize] ; ["Offset of field: Piece::bb1"] [:: std :: mem :: offset_of ! (Piece , bb1) - 32usize] ; ["Offset of field: Piece::rot"] [:: std :: mem :: offset_of ! (Piece , rot) - 44usize] ; ["Offset of field: Piece::depth"] [:: std :: mem :: offset_of ! (Piece , depth) - 45usize] ; ["Offset of field: Piece::type_"] [:: std :: mem :: offset_of ! (Piece , type_) - 46usize] ; ["Offset of field: Piece::next"] [:: std :: mem :: offset_of ! (Piece , next) - 48usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct EndIsland { pub x : :: std :: os :: raw :: c_int , pub y : :: std :: os :: raw :: c_int , pub z : :: std :: os :: raw :: c_int , pub r : :: std :: os :: raw :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of EndIsland"] [:: std :: mem :: size_of :: < EndIsland > () - 16usize] ; ["Alignment of EndIsland"] [:: std :: mem :: align_of :: < EndIsland > () - 4usize] ; ["Offset of field: EndIsland::x"] [:: std :: mem :: offset_of ! (EndIsland , x) - 0usize] ; ["Offset of field: EndIsland::y"] [:: std :: mem :: offset_of ! (EndIsland , y) - 4usize] ; ["Offset of field: EndIsland::z"] [:: std :: mem :: offset_of ! (EndIsland , z) - 8usize] ; ["Offset of field: EndIsland::r"] [:: std :: mem :: offset_of ! (EndIsland , r) - 12usize] ; } ; pub const BF_APPROX : _bindgen_ty_5 = _bindgen_ty_5 (1) ; pub const BF_FORCED_OCEAN : _bindgen_ty_5 = _bindgen_ty_5 (4) ; # [repr (transparent)] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct _bindgen_ty_5 (pub :: std :: os :: raw :: c_uint) ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct BiomeFilter { pub tempsToFind : u64 , pub otempToFind : u64 , pub majorToFind : u64 , pub edgesToFind : u64 , pub raresToFind : u64 , pub raresToFindM : u64 , pub shoreToFind : u64 , pub shoreToFindM : u64 , pub riverToFind : u64 , pub riverToFindM : u64 , pub oceanToFind : u64 , pub specialCnt : :: std :: os :: raw :: c_int , pub flags : u32 , pub tempsToExcl : u64 , pub majorToExcl : u64 , pub edgesToExcl : u64 , pub raresToExcl : u64 , pub raresToExclM : u64 , pub shoreToExcl : u64 , pub shoreToExclM : u64 , pub riverToExcl : u64 , pub riverToExclM : u64 , pub biomeToExcl : u64 , pub biomeToExclM : u64 , pub biomeToFind : u64 , pub biomeToFindM : u64 , pub biomeToPick : u64 , pub biomeToPickM : u64 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of BiomeFilter"] [:: std :: mem :: size_of :: < BiomeFilter > () - 216usize] ; ["Alignment of BiomeFilter"] [:: std :: mem :: align_of :: < BiomeFilter > () - 8usize] ; ["Offset of field: BiomeFilter::tempsToFind"] [:: std :: mem :: offset_of ! (BiomeFilter , tempsToFind) - 0usize] ; ["Offset of field: BiomeFilter::otempToFind"] [:: std :: mem :: offset_of ! (BiomeFilter , otempToFind) - 8usize] ; ["Offset of field: BiomeFilter::majorToFind"] [:: std :: mem :: offset_of ! (BiomeFilter , majorToFind) - 16usize] ; ["Offset of field: BiomeFilter::edgesToFind"] [:: std :: mem :: offset_of ! (BiomeFilter , edgesToFind) - 24usize] ; ["Offset of field: BiomeFilter::raresToFind"] [:: std :: mem :: offset_of ! (BiomeFilter , raresToFind) - 32usize] ; ["Offset of field: BiomeFilter::raresToFindM"] [:: std :: mem :: offset_of ! (BiomeFilter , raresToFindM) - 40usize] ; ["Offset of field: BiomeFilter::shoreToFind"] [:: std :: mem :: offset_of ! (BiomeFilter , shoreToFind) - 48usize] ; ["Offset of field: BiomeFilter::shoreToFindM"] [:: std :: mem :: offset_of ! (BiomeFilter , shoreToFindM) - 56usize] ; ["Offset of field: BiomeFilter::riverToFind"] [:: std :: mem :: offset_of ! (BiomeFilter , riverToFind) - 64usize] ; ["Offset of field: BiomeFilter::riverToFindM"] [:: std :: mem :: offset_of ! (BiomeFilter , riverToFindM) - 72usize] ; ["Offset of field: BiomeFilter::oceanToFind"] [:: std :: mem :: offset_of ! (BiomeFilter , oceanToFind) - 80usize] ; ["Offset of field: BiomeFilter::specialCnt"] [:: std :: mem :: offset_of ! (BiomeFilter , specialCnt) - 88usize] ; ["Offset of field: BiomeFilter::flags"] [:: std :: mem :: offset_of ! (BiomeFilter , flags) - 92usize] ; ["Offset of field: BiomeFilter::tempsToExcl"] [:: std :: mem :: offset_of ! (BiomeFilter , tempsToExcl) - 96usize] ; ["Offset of field: BiomeFilter::majorToExcl"] [:: std :: mem :: offset_of ! (BiomeFilter , majorToExcl) - 104usize] ; ["Offset of field: BiomeFilter::edgesToExcl"] [:: std :: mem :: offset_of ! (BiomeFilter , edgesToExcl) - 112usize] ; ["Offset of field: BiomeFilter::raresToExcl"] [:: std :: mem :: offset_of ! (BiomeFilter , raresToExcl) - 120usize] ; ["Offset of field: BiomeFilter::raresToExclM"] [:: std :: mem :: offset_of ! (BiomeFilter , raresToExclM) - 128usize] ; ["Offset of field: BiomeFilter::shoreToExcl"] [:: std :: mem :: offset_of ! (BiomeFilter , shoreToExcl) - 136usize] ; ["Offset of field: BiomeFilter::shoreToExclM"] [:: std :: mem :: offset_of ! (BiomeFilter , shoreToExclM) - 144usize] ; ["Offset of field: BiomeFilter::riverToExcl"] [:: std :: mem :: offset_of ! (BiomeFilter , riverToExcl) - 152usize] ; ["Offset of field: BiomeFilter::riverToExclM"] [:: std :: mem :: offset_of ! (BiomeFilter , riverToExclM) - 160usize] ; ["Offset of field: BiomeFilter::biomeToExcl"] [:: std :: mem :: offset_of ! (BiomeFilter , biomeToExcl) - 168usize] ; ["Offset of field: BiomeFilter::biomeToExclM"] [:: std :: mem :: offset_of ! (BiomeFilter , biomeToExclM) - 176usize] ; ["Offset of field: BiomeFilter::biomeToFind"] [:: std :: mem :: offset_of ! (BiomeFilter , biomeToFind) - 184usize] ; ["Offset of field: BiomeFilter::biomeToFindM"] [:: std :: mem :: offset_of ! (BiomeFilter , biomeToFindM) - 192usize] ; ["Offset of field: BiomeFilter::biomeToPick"] [:: std :: mem :: offset_of ! (BiomeFilter , biomeToPick) - 200usize] ; ["Offset of field: BiomeFilter::biomeToPickM"] [:: std :: mem :: offset_of ! (BiomeFilter , biomeToPickM) - 208usize] ; } ; unsafe extern "C" { pub fn getStructureConfig (structureType : :: std :: os :: raw :: c_int , mc : :: std :: os :: raw :: c_int , sconf : * mut StructureConfig) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getStructurePos (structureType : :: std :: os :: raw :: c_int , mc : :: std :: os :: raw :: c_int , seed : u64 , regX : :: std :: os :: raw :: c_int , regZ : :: std :: os :: raw :: c_int , pos : * mut Pos) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getMineshafts (mc : :: std :: os :: raw :: c_int , seed : u64 , chunkX : :: std :: os :: raw :: c_int , chunkZ : :: std :: os :: raw :: c_int , chunkW : :: std :: os :: raw :: c_int , chunkH : :: std :: os :: raw :: c_int , out : * mut Pos , nout : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getEndIslands (islands : * mut EndIsland , mc : :: std :: os :: raw :: c_int , seed : u64 , chunkX : :: std :: os :: raw :: c_int , chunkZ : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapEndIslandHeight (y : * mut f32 , en : * const EndNoise , seed : u64 , x : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , w : :: std :: os :: raw :: c_int , h : :: std :: os :: raw :: c_int , scale : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn isEndChunkEmpty (en : * const EndNoise , sn : * const SurfaceNoise , seed : u64 , chunkX : :: std :: os :: raw :: c_int , chunkZ : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn initFirstStronghold (sh : * mut StrongholdIter , mc : :: std :: os :: raw :: c_int , s48 : u64) -> Pos ; } unsafe extern "C" { pub fn nextStronghold (sh : * mut StrongholdIter , g : * const Generator) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn estimateSpawn (g : * const Generator , rng : * mut u64) -> Pos ; } unsafe extern "C" { pub fn getSpawn (g : * const Generator) -> Pos ; } unsafe extern "C" { pub fn locateBiome (g : * const Generator , x : :: std :: os :: raw :: c_int , y : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , radius : :: std :: os :: raw :: c_int , validB : u64 , validM : u64 , rng : * mut u64 , passes : * mut :: std :: os :: raw :: c_int) -> Pos ; } unsafe extern "C" { pub fn isViableStructurePos (structType : :: std :: os :: raw :: c_int , g : * mut Generator , blockX : :: std :: os :: raw :: c_int , blockZ : :: std :: os :: raw :: c_int , flags : u32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn isViableFeatureBiome (mc : :: std :: os :: raw :: c_int , structureType : :: std :: os :: raw :: c_int , biomeID : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn isViableStructureTerrain (structType : :: std :: os :: raw :: c_int , g : * mut Generator , blockX : :: std :: os :: raw :: c_int , blockZ : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn isViableEndCityTerrain (g : * const Generator , sn : * const SurfaceNoise , blockX : :: std :: os :: raw :: c_int , blockZ : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getVariant (sv : * mut StructureVariant , structType : :: std :: os :: raw :: c_int , mc : :: std :: os :: raw :: c_int , seed : u64 , blockX : :: std :: os :: raw :: c_int , blockZ : :: std :: os :: raw :: c_int , biomeID : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getEndCityPieces (pieces : * mut Piece , seed : u64 , chunkX : :: std :: os :: raw :: c_int , chunkZ : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } pub const BASE_FLOOR : _bindgen_ty_6 = _bindgen_ty_6 (0) ; pub const BASE_ROOF : _bindgen_ty_6 = _bindgen_ty_6 (1) ; pub const BRIDGE_END : _bindgen_ty_6 = _bindgen_ty_6 (2) ; pub const BRIDGE_GENTLE_STAIRS : _bindgen_ty_6 = _bindgen_ty_6 (3) ; pub const BRIDGE_PIECE : _bindgen_ty_6 = _bindgen_ty_6 (4) ; pub const BRIDGE_STEEP_STAIRS : _bindgen_ty_6 = _bindgen_ty_6 (5) ; pub const FAT_TOWER_BASE : _bindgen_ty_6 = _bindgen_ty_6 (6) ; pub const FAT_TOWER_MIDDLE : _bindgen_ty_6 = _bindgen_ty_6 (7) ; pub const FAT_TOWER_TOP : _bindgen_ty_6 = _bindgen_ty_6 (8) ; pub const SECOND_FLOOR_1 : _bindgen_ty_6 = _bindgen_ty_6 (9) ; pub const SECOND_FLOOR_2 : _bindgen_ty_6 = _bindgen_ty_6 (10) ; pub const SECOND_ROOF : _bindgen_ty_6 = _bindgen_ty_6 (11) ; pub const END_SHIP : _bindgen_ty_6 = _bindgen_ty_6 (12) ; pub const THIRD_FLOOR_1 : _bindgen_ty_6 = _bindgen_ty_6 (13) ; pub const THIRD_FLOOR_2 : _bindgen_ty_6 = _bindgen_ty_6 (14) ; pub const THIRD_ROOF : _bindgen_ty_6 = _bindgen_ty_6 (15) ; pub const TOWER_BASE : _bindgen_ty_6 = _bindgen_ty_6 (16) ; pub const TOWER_FLOOR : _bindgen_ty_6 = _bindgen_ty_6 (17) ; pub const TOWER_PIECE : _bindgen_ty_6 = _bindgen_ty_6 (18) ; pub const TOWER_TOP : _bindgen_ty_6 = _bindgen_ty_6 (19) ; pub const END_CITY_PIECES_MAX : _bindgen_ty_6 = _bindgen_ty_6 (421) ; # [repr (transparent)] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct _bindgen_ty_6 (pub :: std :: os :: raw :: c_uint) ; unsafe extern "C" { pub fn getFortressPieces (list : * mut Piece , n : :: std :: os :: raw :: c_int , mc : :: std :: os :: raw :: c_int , seed : u64 , chunkX : :: std :: os :: raw :: c_int , chunkZ : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } pub const FORTRESS_START : _bindgen_ty_7 = _bindgen_ty_7 (0) ; pub const BRIDGE_STRAIGHT : _bindgen_ty_7 = _bindgen_ty_7 (1) ; pub const BRIDGE_CROSSING : _bindgen_ty_7 = _bindgen_ty_7 (2) ; pub const BRIDGE_FORTIFIED_CROSSING : _bindgen_ty_7 = _bindgen_ty_7 (3) ; pub const BRIDGE_STAIRS : _bindgen_ty_7 = _bindgen_ty_7 (4) ; pub const BRIDGE_SPAWNER : _bindgen_ty_7 = _bindgen_ty_7 (5) ; pub const BRIDGE_CORRIDOR_ENTRANCE : _bindgen_ty_7 = _bindgen_ty_7 (6) ; pub const CORRIDOR_STRAIGHT : _bindgen_ty_7 = _bindgen_ty_7 (7) ; pub const CORRIDOR_CROSSING : _bindgen_ty_7 = _bindgen_ty_7 (8) ; pub const CORRIDOR_TURN_RIGHT : _bindgen_ty_7 = _bindgen_ty_7 (9) ; pub const CORRIDOR_TURN_LEFT : _bindgen_ty_7 = _bindgen_ty_7 (10) ; pub const CORRIDOR_STAIRS : _bindgen_ty_7 = _bindgen_ty_7 (11) ; pub const CORRIDOR_T_CROSSING : _bindgen_ty_7 = _bindgen_ty_7 (12) ; pub const CORRIDOR_NETHER_WART : _bindgen_ty_7 = _bindgen_ty_7 (13) ; pub const FORTRESS_END : _bindgen_ty_7 = _bindgen_ty_7 (14) ; pub const PIECE_COUNT : _bindgen_ty_7 = _bindgen_ty_7 (15) ; # [repr (transparent)] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct _bindgen_ty_7 (pub :: std :: os :: raw :: c_uint) ; unsafe extern "C" { pub fn getFixedEndGateways (mc : :: std :: os :: raw :: c_int , seed : u64 , src : * mut Pos) ; } unsafe extern "C" { pub fn getLinkedGatewayChunk (en : * const EndNoise , sn : * const SurfaceNoise , seed : u64 , src : Pos , dst : * mut Pos) -> Pos ; } unsafe extern "C" { pub fn getLinkedGatewayPos (en : * const EndNoise , sn : * const SurfaceNoise , seed : u64 , src : Pos) -> Pos ; } pub const HouseSmall : _bindgen_ty_8 = _bindgen_ty_8 (0) ; pub const Church : _bindgen_ty_8 = _bindgen_ty_8 (1) ; pub const Library : _bindgen_ty_8 = _bindgen_ty_8 (2) ; pub const WoodHut : _bindgen_ty_8 = _bindgen_ty_8 (3) ; pub const Butcher : _bindgen_ty_8 = _bindgen_ty_8 (4) ; pub const FarmLarge : _bindgen_ty_8 = _bindgen_ty_8 (5) ; pub const FarmSmall : _bindgen_ty_8 = _bindgen_ty_8 (6) ; pub const Blacksmith : _bindgen_ty_8 = _bindgen_ty_8 (7) ; pub const HouseLarge : _bindgen_ty_8 = _bindgen_ty_8 (8) ; pub const HOUSE_NUM : _bindgen_ty_8 = _bindgen_ty_8 (9) ; # [repr (transparent)] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct _bindgen_ty_8 (pub :: std :: os :: raw :: c_uint) ; unsafe extern "C" { pub fn getHouseList (houses : * mut :: std :: os :: raw :: c_int , seed : u64 , chunkX : :: std :: os :: raw :: c_int , chunkZ : :: std :: os :: raw :: c_int) -> u64 ; } unsafe extern "C" { pub fn monteCarloBiomes (g : * mut Generator , r : Range , rng : * mut u64 , coverage : f64 , confidence : f64 , eval : :: std :: option :: Option < unsafe extern "C" fn (g : * mut Generator , scale : :: std :: os :: raw :: c_int , x : :: std :: os :: raw :: c_int , y : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , data : * mut :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int > , data : * mut :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn setupBiomeFilter (bf : * mut BiomeFilter , mc : :: std :: os :: raw :: c_int , flags : u32 , required : * const :: std :: os :: raw :: c_int , requiredLen : :: std :: os :: raw :: c_int , excluded : * const :: std :: os :: raw :: c_int , excludedLen : :: std :: os :: raw :: c_int , matchany : * const :: std :: os :: raw :: c_int , matchanyLen : :: std :: os :: raw :: c_int) ; } unsafe extern "C" { pub fn checkForBiomes (g : * mut Generator , cache : * mut :: std :: os :: raw :: c_int , r : Range , dim : :: std :: os :: raw :: c_int , seed : u64 , filter : * const BiomeFilter , stop : * mut :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn checkForBiomesAtLayer (ls : * mut LayerStack , entry : * mut Layer , cache : * mut :: std :: os :: raw :: c_int , seed : u64 , x : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , w : :: std :: os :: raw :: c_uint , h : :: std :: os :: raw :: c_uint , filter : * const BiomeFilter) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn checkForTemps (g : * mut LayerStack , seed : u64 , x : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , w : :: std :: os :: raw :: c_int , h : :: std :: os :: raw :: c_int , tc : * const :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getBiomeCenters (pos : * mut Pos , siz : * mut :: std :: os :: raw :: c_int , nmax : :: std :: os :: raw :: c_int , g : * mut Generator , r : Range , match_ : :: std :: os :: raw :: c_int , minsiz : :: std :: os :: raw :: c_int , tol : :: std :: os :: raw :: c_int , stop : * mut :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn canBiomeGenerate (layerId : :: std :: os :: raw :: c_int , mc : :: std :: os :: raw :: c_int , flags : u32 , biomeID : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn genPotential (mL : * mut u64 , mM : * mut u64 , layerId : :: std :: os :: raw :: c_int , mc : :: std :: os :: raw :: c_int , flags : u32 , biomeID : :: std :: os :: raw :: c_int) ; } unsafe extern "C" { pub fn getAvailableBiomes (mL : * mut u64 , mM : * mut u64 , layerId : :: std :: os :: raw :: c_int , mc : :: std :: os :: raw :: c_int , flags : u32) ; } unsafe extern "C" { # [doc = " Runs a gradient descent towards the minimum of the noise parameter times a\n given factor. The algorithm is restricted to the area (x,z,w,h) and starts\n at (i0,j0) relative to (x,z). The iteration is terminated when either\n 1) a fix point has been reached,\n 2) maxiter iterations have been completed,\n 3) or the sampling position has moved more than maxrad away from (i0,j0).\n\n Alpha is an optimization argument that is used to determine the length of\n large steps based on the current gradient.\n\n Optionally, the iteration can also call the custom function:\n  func(data, x, z, factor*para_noise(x,z));\n\n The return value is the minimum value reached."] pub fn getParaDescent (para : * const DoublePerlinNoise , factor : f64 , x : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , w : :: std :: os :: raw :: c_int , h : :: std :: os :: raw :: c_int , i0 : :: std :: os :: raw :: c_int , j0 : :: std :: os :: raw :: c_int , maxrad : :: std :: os :: raw :: c_int , maxiter : :: std :: os :: raw :: c_int , alpha : f64 , data : * mut :: std :: os :: raw :: c_void , func : :: std :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: std :: os :: raw :: c_void , arg2 : :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : f64) -> :: std :: os :: raw :: c_int >) -> f64 ; } unsafe extern "C" { # [doc = " Determines the value range of a climate noise parameter over the given area.\n The sampling has scale 1:4 and sampling shift is not considered, so biomes\n could potentially *leak* in at the boarders.\n An optional function:\n  func(data, x, z, climate_noise(x,z))\n is called in each gradient descent iteration. If this function returns\n non-zero the search is aborted, the results are undefined and a non-zero\n error is returned.\n\n The results are written to pmin and pmax (which would be cast to an integer\n during boime mapping). Nullable, to look for minima and maxima separately."] pub fn getParaRange (para : * const DoublePerlinNoise , pmin : * mut f64 , pmax : * mut f64 , x : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , w : :: std :: os :: raw :: c_int , h : :: std :: os :: raw :: c_int , data : * mut :: std :: os :: raw :: c_void , func : :: std :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: std :: os :: raw :: c_void , arg2 : :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : f64) -> :: std :: os :: raw :: c_int >) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " Gets the min/max parameter values within which a biome change can occur."] pub fn getBiomeParaExtremes (mc : :: std :: os :: raw :: c_int) -> * const :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " Gets the min/max possible noise parameter values at which the given biome\n can generate. The values are in min/max pairs in order of:\n temperature, humidity, continentalness, erosion, depth, weirdness."] pub fn getBiomeParaLimits (mc : :: std :: os :: raw :: c_int , id : :: std :: os :: raw :: c_int) -> * const :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " Determines which biomes are able to generate given a set of climate\n parameter limits. Possible biomes are marked non-zero in the 'ids'."] pub fn getPossibleBiomesForLimits (ids : * mut :: std :: os :: raw :: c_char , mc : :: std :: os :: raw :: c_int , limits : * mut [:: std :: os :: raw :: c_int ; 2usize]) ; } unsafe extern "C" { # [doc = " Find the largest rectangle in ids[sx][sz] which consists only of 'match'.\n The limit corners are written to p0 and p1. Returned is the rectangle's area."] pub fn getLargestRec (match_ : :: std :: os :: raw :: c_int , ids : * const :: std :: os :: raw :: c_int , sx : :: std :: os :: raw :: c_int , sz : :: std :: os :: raw :: c_int , p0 : * mut Pos , p1 : * mut Pos) -> :: std :: os :: raw :: c_int ; } pub type __gnuc_va_list = __builtin_va_list ; # [repr (C)] # [derive (Copy , Clone)] pub struct __mbstate_t { pub __count : :: std :: os :: raw :: c_int , pub __value : __mbstate_t__bindgen_ty_1 , } # [repr (C)] # [derive (Copy , Clone)] pub union __mbstate_t__bindgen_ty_1 { pub __wch : :: std :: os :: raw :: c_uint , pub __wchb : [:: std :: os :: raw :: c_char ; 4usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __mbstate_t__bindgen_ty_1"] [:: std :: mem :: size_of :: < __mbstate_t__bindgen_ty_1 > () - 4usize] ; ["Alignment of __mbstate_t__bindgen_ty_1"] [:: std :: mem :: align_of :: < __mbstate_t__bindgen_ty_1 > () - 4usize] ; ["Offset of field: __mbstate_t__bindgen_ty_1::__wch"] [:: std :: mem :: offset_of ! (__mbstate_t__bindgen_ty_1 , __wch) - 0usize] ; ["Offset of field: __mbstate_t__bindgen_ty_1::__wchb"] [:: std :: mem :: offset_of ! (__mbstate_t__bindgen_ty_1 , __wchb) - 0usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __mbstate_t"] [:: std :: mem :: size_of :: < __mbstate_t > () - 8usize] ; ["Alignment of __mbstate_t"] [:: std :: mem :: align_of :: < __mbstate_t > () - 4usize] ; ["Offset of field: __mbstate_t::__count"] [:: std :: mem :: offset_of ! (__mbstate_t , __count) - 0usize] ; ["Offset of field: __mbstate_t::__value"] [:: std :: mem :: offset_of ! (__mbstate_t , __value) - 4usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub struct _G_fpos_t { pub __pos : __off_t , pub __state : __mbstate_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of _G_fpos_t"] [:: std :: mem :: size_of :: < _G_fpos_t > () - 16usize] ; ["Alignment of _G_fpos_t"] [:: std :: mem :: align_of :: < _G_fpos_t > () - 8usize] ; ["Offset of field: _G_fpos_t::__pos"] [:: std :: mem :: offset_of ! (_G_fpos_t , __pos) - 0usize] ; ["Offset of field: _G_fpos_t::__state"] [:: std :: mem :: offset_of ! (_G_fpos_t , __state) - 8usize] ; } ; pub type __fpos_t = _G_fpos_t ; # [repr (C)] # [derive (Copy , Clone)] pub struct _G_fpos64_t { pub __pos : __off64_t , pub __state : __mbstate_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of _G_fpos64_t"] [:: std :: mem :: size_of :: < _G_fpos64_t > () - 16usize] ; ["Alignment of _G_fpos64_t"] [:: std :: mem :: align_of :: < _G_fpos64_t > () - 8usize] ; ["Offset of field: _G_fpos64_t::__pos"] [:: std :: mem :: offset_of ! (_G_fpos64_t , __pos) - 0usize] ; ["Offset of field: _G_fpos64_t::__state"] [:: std :: mem :: offset_of ! (_G_fpos64_t , __state) - 8usize] ; } ; pub type __fpos64_t = _G_fpos64_t ; pub type __FILE = _IO_FILE ; pub type FILE = _IO_FILE ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_marker { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_codecvt { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_wide_data { _unused : [u8 ; 0] , } pub type _IO_lock_t = :: std :: os :: raw :: c_void ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_FILE { pub _flags : :: std :: os :: raw :: c_int , pub _IO_read_ptr : * mut :: std :: os :: raw :: c_char , pub _IO_read_end : * mut :: std :: os :: raw :: c_char , pub _IO_read_base : * mut :: std :: os :: raw :: c_char , pub _IO_write_base : * mut :: std :: os :: raw :: c_char , pub _IO_write_ptr : * mut :: std :: os :: raw :: c_char , pub _IO_write_end : * mut :: std :: os :: raw :: c_char , pub _IO_buf_base : * mut :: std :: os :: raw :: c_char , pub _IO_buf_end : * mut :: std :: os :: raw :: c_char , pub _IO_save_base : * mut :: std :: os :: raw :: c_char , pub _IO_backup_base : * mut :: std :: os :: raw :: c_char , pub _IO_save_end : * mut :: std :: os :: raw :: c_char , pub _markers : * mut _IO_marker , pub _chain : * mut _IO_FILE , pub _fileno : :: std :: os :: raw :: c_int , pub _bitfield_align_1 : [u32 ; 0] , pub _bitfield_1 : __BindgenBitfieldUnit < [u8 ; 3usize] > , pub _short_backupbuf : [:: std :: os :: raw :: c_char ; 1usize] , pub _old_offset : __off_t , pub _cur_column : :: std :: os :: raw :: c_ushort , pub _vtable_offset : :: std :: os :: raw :: c_schar , pub _shortbuf : [:: std :: os :: raw :: c_char ; 1usize] , pub _lock : * mut _IO_lock_t , pub _offset : __off64_t , pub _codecvt : * mut _IO_codecvt , pub _wide_data : * mut _IO_wide_data , pub _freeres_list : * mut _IO_FILE , pub _freeres_buf : * mut :: std :: os :: raw :: c_void , pub _prevchain : * mut * mut _IO_FILE , pub _mode : :: std :: os :: raw :: c_int , pub _unused3 : :: std :: os :: raw :: c_int , pub _total_written : __uint64_t , pub _unused2 : [:: std :: os :: raw :: c_char ; 8usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of _IO_FILE"] [:: std :: mem :: size_of :: < _IO_FILE > () - 216usize] ; ["Alignment of _IO_FILE"] [:: std :: mem :: align_of :: < _IO_FILE > () - 8usize] ; ["Offset of field: _IO_FILE::_flags"] [:: std :: mem :: offset_of ! (_IO_FILE , _flags) - 0usize] ; ["Offset of field: _IO_FILE::_IO_read_ptr"] [:: std :: mem :: offset_of ! (_IO_FILE , _IO_read_ptr) - 8usize] ; ["Offset of field: _IO_FILE::_IO_read_end"] [:: std :: mem :: offset_of ! (_IO_FILE , _IO_read_end) - 16usize] ; ["Offset of field: _IO_FILE::_IO_read_base"] [:: std :: mem :: offset_of ! (_IO_FILE , _IO_read_base) - 24usize] ; ["Offset of field: _IO_FILE::_IO_write_base"] [:: std :: mem :: offset_of ! (_IO_FILE , _IO_write_base) - 32usize] ; ["Offset of field: _IO_FILE::_IO_write_ptr"] [:: std :: mem :: offset_of ! (_IO_FILE , _IO_write_ptr) - 40usize] ; ["Offset of field: _IO_FILE::_IO_write_end"] [:: std :: mem :: offset_of ! (_IO_FILE , _IO_write_end) - 48usize] ; ["Offset of field: _IO_FILE::_IO_buf_base"] [:: std :: mem :: offset_of ! (_IO_FILE , _IO_buf_base) - 56usize] ; ["Offset of field: _IO_FILE::_IO_buf_end"] [:: std :: mem :: offset_of ! (_IO_FILE , _IO_buf_end) - 64usize] ; ["Offset of field: _IO_FILE::_IO_save_base"] [:: std :: mem :: offset_of ! (_IO_FILE , _IO_save_base) - 72usize] ; ["Offset of field: _IO_FILE::_IO_backup_base"] [:: std :: mem :: offset_of ! (_IO_FILE , _IO_backup_base) - 80usize] ; ["Offset of field: _IO_FILE::_IO_save_end"] [:: std :: mem :: offset_of ! (_IO_FILE , _IO_save_end) - 88usize] ; ["Offset of field: _IO_FILE::_markers"] [:: std :: mem :: offset_of ! (_IO_FILE , _markers) - 96usize] ; ["Offset of field: _IO_FILE::_chain"] [:: std :: mem :: offset_of ! (_IO_FILE , _chain) - 104usize] ; ["Offset of field: _IO_FILE::_fileno"] [:: std :: mem :: offset_of ! (_IO_FILE , _fileno) - 112usize] ; ["Offset of field: _IO_FILE::_short_backupbuf"] [:: std :: mem :: offset_of ! (_IO_FILE , _short_backupbuf) - 119usize] ; ["Offset of field: _IO_FILE::_old_offset"] [:: std :: mem :: offset_of ! (_IO_FILE , _old_offset) - 120usize] ; ["Offset of field: _IO_FILE::_cur_column"] [:: std :: mem :: offset_of ! (_IO_FILE , _cur_column) - 128usize] ; ["Offset of field: _IO_FILE::_vtable_offset"] [:: std :: mem :: offset_of ! (_IO_FILE , _vtable_offset) - 130usize] ; ["Offset of field: _IO_FILE::_shortbuf"] [:: std :: mem :: offset_of ! (_IO_FILE , _shortbuf) - 131usize] ; ["Offset of field: _IO_FILE::_lock"] [:: std :: mem :: offset_of ! (_IO_FILE , _lock) - 136usize] ; ["Offset of field: _IO_FILE::_offset"] [:: std :: mem :: offset_of ! (_IO_FILE , _offset) - 144usize] ; ["Offset of field: _IO_FILE::_codecvt"] [:: std :: mem :: offset_of ! (_IO_FILE , _codecvt) - 152usize] ; ["Offset of field: _IO_FILE::_wide_data"] [:: std :: mem :: offset_of ! (_IO_FILE , _wide_data) - 160usize] ; ["Offset of field: _IO_FILE::_freeres_list"] [:: std :: mem :: offset_of ! (_IO_FILE , _freeres_list) - 168usize] ; ["Offset of field: _IO_FILE::_freeres_buf"] [:: std :: mem :: offset_of ! (_IO_FILE , _freeres_buf) - 176usize] ; ["Offset of field: _IO_FILE::_prevchain"] [:: std :: mem :: offset_of ! (_IO_FILE , _prevchain) - 184usize] ; ["Offset of field: _IO_FILE::_mode"] [:: std :: mem :: offset_of ! (_IO_FILE , _mode) - 192usize] ; ["Offset of field: _IO_FILE::_unused3"] [:: std :: mem :: offset_of ! (_IO_FILE , _unused3) - 196usize] ; ["Offset of field: _IO_FILE::_total_written"] [:: std :: mem :: offset_of ! (_IO_FILE , _total_written) - 200usize] ; ["Offset of field: _IO_FILE::_unused2"] [:: std :: mem :: offset_of ! (_IO_FILE , _unused2) - 208usize] ; } ; impl _IO_FILE { # [inline] pub fn _flags2 (& self) -> :: std :: os :: raw :: c_int { unsafe { :: std :: mem :: transmute (self . _bitfield_1 . get (0usize , 24u8) as u32) } } # [inline] pub fn set__flags2 (& mut self , val : :: std :: os :: raw :: c_int) { unsafe { let val : u32 = :: std :: mem :: transmute (val) ; self . _bitfield_1 . set (0usize , 24u8 , val as u64) } } # [inline] pub unsafe fn _flags2_raw (this : * const Self) -> :: std :: os :: raw :: c_int { unsafe { :: std :: mem :: transmute (< __BindgenBitfieldUnit < [u8 ; 3usize] > > :: raw_get (:: std :: ptr :: addr_of ! ((* this) . _bitfield_1) , 0usize , 24u8 ,) as u32) } } # [inline] pub unsafe fn set__flags2_raw (this : * mut Self , val : :: std :: os :: raw :: c_int) { unsafe { let val : u32 = :: std :: mem :: transmute (val) ; < __BindgenBitfieldUnit < [u8 ; 3usize] > > :: raw_set (:: std :: ptr :: addr_of_mut ! ((* this) . _bitfield_1) , 0usize , 24u8 , val as u64 ,) } } # [inline] pub fn new_bitfield_1 (_flags2 : :: std :: os :: raw :: c_int) -> __BindgenBitfieldUnit < [u8 ; 3usize] > { let mut __bindgen_bitfield_unit : __BindgenBitfieldUnit < [u8 ; 3usize] > = Default :: default () ; __bindgen_bitfield_unit . set (0usize , 24u8 , { let _flags2 : u32 = unsafe { :: std :: mem :: transmute (_flags2) } ; _flags2 as u64 }) ; __bindgen_bitfield_unit } } pub type cookie_read_function_t = :: std :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: std :: os :: raw :: c_void , __buf : * mut :: std :: os :: raw :: c_char , __nbytes : usize) -> __ssize_t > ; pub type cookie_write_function_t = :: std :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: std :: os :: raw :: c_void , __buf : * const :: std :: os :: raw :: c_char , __nbytes : usize) -> __ssize_t > ; pub type cookie_seek_function_t = :: std :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: std :: os :: raw :: c_void , __pos : * mut __off64_t , __w : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int > ; pub type cookie_close_function_t = :: std :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_cookie_io_functions_t { pub read : cookie_read_function_t , pub write : cookie_write_function_t , pub seek : cookie_seek_function_t , pub close : cookie_close_function_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of _IO_cookie_io_functions_t"] [:: std :: mem :: size_of :: < _IO_cookie_io_functions_t > () - 32usize] ; ["Alignment of _IO_cookie_io_functions_t"] [:: std :: mem :: align_of :: < _IO_cookie_io_functions_t > () - 8usize] ; ["Offset of field: _IO_cookie_io_functions_t::read"] [:: std :: mem :: offset_of ! (_IO_cookie_io_functions_t , read) - 0usize] ; ["Offset of field: _IO_cookie_io_functions_t::write"] [:: std :: mem :: offset_of ! (_IO_cookie_io_functions_t , write) - 8usize] ; ["Offset of field: _IO_cookie_io_functions_t::seek"] [:: std :: mem :: offset_of ! (_IO_cookie_io_functions_t , seek) - 16usize] ; ["Offset of field: _IO_cookie_io_functions_t::close"] [:: std :: mem :: offset_of ! (_IO_cookie_io_functions_t , close) - 24usize] ; } ; pub type cookie_io_functions_t = _IO_cookie_io_functions_t ; pub type va_list = __gnuc_va_list ; pub type fpos_t = __fpos_t ; unsafe extern "C" { pub static mut stdin : * mut FILE ; } unsafe extern "C" { pub static mut stdout : * mut FILE ; } unsafe extern "C" { pub static mut stderr : * mut FILE ; } unsafe extern "C" { pub fn remove (__filename : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn rename (__old : * const :: std :: os :: raw :: c_char , __new : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn renameat (__oldfd : :: std :: os :: raw :: c_int , __old : * const :: std :: os :: raw :: c_char , __newfd : :: std :: os :: raw :: c_int , __new : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn fclose (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn tmpfile () -> * mut FILE ; } unsafe extern "C" { pub fn tmpnam (arg1 : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn tmpnam_r (__s : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn tempnam (__dir : * const :: std :: os :: raw :: c_char , __pfx : * const :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn fflush (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn fflush_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn fopen (__filename : * const :: std :: os :: raw :: c_char , __modes : * const :: std :: os :: raw :: c_char) -> * mut FILE ; } unsafe extern "C" { pub fn freopen (__filename : * const :: std :: os :: raw :: c_char , __modes : * const :: std :: os :: raw :: c_char , __stream : * mut FILE) -> * mut FILE ; } unsafe extern "C" { pub fn fdopen (__fd : :: std :: os :: raw :: c_int , __modes : * const :: std :: os :: raw :: c_char) -> * mut FILE ; } unsafe extern "C" { pub fn fopencookie (__magic_cookie : * mut :: std :: os :: raw :: c_void , __modes : * const :: std :: os :: raw :: c_char , __io_funcs : cookie_io_functions_t) -> * mut FILE ; } unsafe extern "C" { pub fn fmemopen (__s : * mut :: std :: os :: raw :: c_void , __len : usize , __modes : * const :: std :: os :: raw :: c_char) -> * mut FILE ; } unsafe extern "C" { pub fn open_memstream (__bufloc : * mut * mut :: std :: os :: raw :: c_char , __sizeloc : * mut usize) -> * mut FILE ; } unsafe extern "C" { pub fn setbuf (__stream : * mut FILE , __buf : * mut :: std :: os :: raw :: c_char) ; } unsafe extern "C" { pub fn setvbuf (__stream : * mut FILE , __buf : * mut :: std :: os :: raw :: c_char , __modes : :: std :: os :: raw :: c_int , __n : usize) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn setbuffer (__stream : * mut FILE , __buf : * mut :: std :: os :: raw :: c_char , __size : usize) ; } unsafe extern "C" { pub fn setlinebuf (__stream : * mut FILE) ; } unsafe extern "C" { pub fn fprintf (__stream : * mut FILE , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn printf (__format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn sprintf (__s : * mut :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn vfprintf (__s : * mut FILE , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn vprintf (__format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn vsprintf (__s : * mut :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn snprintf (__s : * mut :: std :: os :: raw :: c_char , __maxlen : :: std :: os :: raw :: c_ulong , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn vsnprintf (__s : * mut :: std :: os :: raw :: c_char , __maxlen : :: std :: os :: raw :: c_ulong , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn vasprintf (__ptr : * mut * mut :: std :: os :: raw :: c_char , __f : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __asprintf (__ptr : * mut * mut :: std :: os :: raw :: c_char , __fmt : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn asprintf (__ptr : * mut * mut :: std :: os :: raw :: c_char , __fmt : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn vdprintf (__fd : :: std :: os :: raw :: c_int , __fmt : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn dprintf (__fd : :: std :: os :: raw :: c_int , __fmt : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn fscanf (__stream : * mut FILE , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn scanf (__format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn sscanf (__s : * const :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [link_name = "\u{1}__isoc99_fscanf"] pub fn fscanf1 (__stream : * mut FILE , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [link_name = "\u{1}__isoc99_scanf"] pub fn scanf1 (__format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [link_name = "\u{1}__isoc99_sscanf"] pub fn sscanf1 (__s : * const :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn vfscanf (__s : * mut FILE , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn vscanf (__format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn vsscanf (__s : * const :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [link_name = "\u{1}__isoc99_vfscanf"] pub fn vfscanf1 (__s : * mut FILE , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [link_name = "\u{1}__isoc99_vscanf"] pub fn vscanf1 (__format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [link_name = "\u{1}__isoc99_vsscanf"] pub fn vsscanf1 (__s : * const :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn fgetc (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getc (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getchar () -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getc_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getchar_unlocked () -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn fgetc_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn fputc (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn putc (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn putchar (__c : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn fputc_unlocked (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn putc_unlocked (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn putchar_unlocked (__c : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getw (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn putw (__w : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn fgets (__s : * mut :: std :: os :: raw :: c_char , __n : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn __getdelim (__lineptr : * mut * mut :: std :: os :: raw :: c_char , __n : * mut usize , __delimiter : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> __ssize_t ; } unsafe extern "C" { pub fn getdelim (__lineptr : * mut * mut :: std :: os :: raw :: c_char , __n : * mut usize , __delimiter : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> __ssize_t ; } unsafe extern "C" { pub fn getline (__lineptr : * mut * mut :: std :: os :: raw :: c_char , __n : * mut usize , __stream : * mut FILE) -> __ssize_t ; } unsafe extern "C" { pub fn fputs (__s : * const :: std :: os :: raw :: c_char , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn puts (__s : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn ungetc (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn fread (__ptr : * mut :: std :: os :: raw :: c_void , __size : :: std :: os :: raw :: c_ulong , __n : :: std :: os :: raw :: c_ulong , __stream : * mut FILE) -> :: std :: os :: raw :: c_ulong ; } unsafe extern "C" { pub fn fwrite (__ptr : * const :: std :: os :: raw :: c_void , __size : :: std :: os :: raw :: c_ulong , __n : :: std :: os :: raw :: c_ulong , __s : * mut FILE) -> :: std :: os :: raw :: c_ulong ; } unsafe extern "C" { pub fn fread_unlocked (__ptr : * mut :: std :: os :: raw :: c_void , __size : usize , __n : usize , __stream : * mut FILE) -> usize ; } unsafe extern "C" { pub fn fwrite_unlocked (__ptr : * const :: std :: os :: raw :: c_void , __size : usize , __n : usize , __stream : * mut FILE) -> usize ; } unsafe extern "C" { pub fn fseek (__stream : * mut FILE , __off : :: std :: os :: raw :: c_long , __whence : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn ftell (__stream : * mut FILE) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn rewind (__stream : * mut FILE) ; } unsafe extern "C" { pub fn fseeko (__stream : * mut FILE , __off : __off_t , __whence : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn ftello (__stream : * mut FILE) -> __off_t ; } unsafe extern "C" { pub fn fgetpos (__stream : * mut FILE , __pos : * mut fpos_t) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn fsetpos (__stream : * mut FILE , __pos : * const fpos_t) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn clearerr (__stream : * mut FILE) ; } unsafe extern "C" { pub fn feof (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn ferror (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn clearerr_unlocked (__stream : * mut FILE) ; } unsafe extern "C" { pub fn feof_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn ferror_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn perror (__s : * const :: std :: os :: raw :: c_char) ; } unsafe extern "C" { pub fn fileno (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn fileno_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn pclose (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn popen (__command : * const :: std :: os :: raw :: c_char , __modes : * const :: std :: os :: raw :: c_char) -> * mut FILE ; } unsafe extern "C" { pub fn ctermid (__s : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn flockfile (__stream : * mut FILE) ; } unsafe extern "C" { pub fn ftrylockfile (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn funlockfile (__stream : * mut FILE) ; } unsafe extern "C" { pub fn __uflow (arg1 : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __overflow (arg1 : * mut FILE , arg2 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " Quad-Witch-Huts\n\n  For a quad-structure, we mainly care about relative positioning, so we can\n  get away with just checking the regions near the origin: (0,0),(0,1),(1,0)\n  and (1,1) and then move the structures to the desired position.\n\n  Futhermore, the PRNG that determines the chunk positions inside each region,\n  performs some modular arithmatic on the 48-bit numbers which causes some\n  restrictions on the lower bits when looking for near perfect structure\n  positions. This is difficult to prove, but can be used to reduce the number\n  of free bits to 28 which can be comfortably brute-forced to get the entire\n  set of quad-structure candidates. Each of the seeds found this way\n  describes entire set of possible quad-witch-huts (with degrees of freedom\n  for region-transposition, as well as the top 16-bit bits)."] pub static low20QuadIdeal : [u64 ; 4usize] ; } unsafe extern "C" { pub static low20QuadClassic : [u64 ; 5usize] ; } unsafe extern "C" { pub static low20QuadHutNormal : [u64 ; 11usize] ; } unsafe extern "C" { pub static low20QuadHutBarely : [u64 ; 29usize] ; } pub const CST_NONE : _bindgen_ty_9 = _bindgen_ty_9 (0) ; pub const CST_IDEAL : _bindgen_ty_9 = _bindgen_ty_9 (1) ; pub const CST_CLASSIC : _bindgen_ty_9 = _bindgen_ty_9 (2) ; pub const CST_NORMAL : _bindgen_ty_9 = _bindgen_ty_9 (3) ; pub const CST_BARELY : _bindgen_ty_9 = _bindgen_ty_9 (4) ; # [repr (transparent)] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct _bindgen_ty_9 (pub :: std :: os :: raw :: c_uint) ; unsafe extern "C" { pub fn getQuadHutCst (low20 : u64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn searchAll48 (seedbuf : * mut * mut u64 , buflen : * mut u64 , path : * const :: std :: os :: raw :: c_char , threads : :: std :: os :: raw :: c_int , lowBits : * const u64 , lowBitN : :: std :: os :: raw :: c_int , check : :: std :: option :: Option < unsafe extern "C" fn (s48 : u64 , data : * mut :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int > , data : * mut :: std :: os :: raw :: c_void , stop : * mut :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getOptimalAfk (p : * mut Pos , ax : :: std :: os :: raw :: c_int , ay : :: std :: os :: raw :: c_int , az : :: std :: os :: raw :: c_int , spcnt : * mut :: std :: os :: raw :: c_int) -> Pos ; } unsafe extern "C" { pub fn scanForQuads (sconf : StructureConfig , radius : :: std :: os :: raw :: c_int , s48 : u64 , lowBits : * const u64 , lowBitN : :: std :: os :: raw :: c_int , salt : u64 , x : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , w : :: std :: os :: raw :: c_int , h : :: std :: os :: raw :: c_int , qplist : * mut Pos , n : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn loadSavedSeeds (fnam : * const :: std :: os :: raw :: c_char , scnt : * mut u64) -> * mut u64 ; } unsafe extern "C" { # [doc = " convert between version enum and text"] pub fn mc2str (mc : :: std :: os :: raw :: c_int) -> * const :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn str2mc (s : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " get the resource id name for a biome (for versions 1.13+)"] pub fn biome2str (mc : :: std :: os :: raw :: c_int , id : :: std :: os :: raw :: c_int) -> * const :: std :: os :: raw :: c_char ; } unsafe extern "C" { # [doc = " get the resource id name for a structure"] pub fn struct2str (stype : :: std :: os :: raw :: c_int) -> * const :: std :: os :: raw :: c_char ; } unsafe extern "C" { # [doc = " initialize a biome colormap with some defaults"] pub fn initBiomeColors (biomeColors : * mut [:: std :: os :: raw :: c_uchar ; 3usize]) ; } unsafe extern "C" { pub fn initBiomeTypeColors (biomeColors : * mut [:: std :: os :: raw :: c_uchar ; 3usize]) ; } unsafe extern "C" { pub fn parseBiomeColors (biomeColors : * mut [:: std :: os :: raw :: c_uchar ; 3usize] , buf : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn biomesToImage (pixels : * mut :: std :: os :: raw :: c_uchar , biomeColors : * mut [:: std :: os :: raw :: c_uchar ; 3usize] , biomes : * const :: std :: os :: raw :: c_int , sx : :: std :: os :: raw :: c_uint , sy : :: std :: os :: raw :: c_uint , pixscale : :: std :: os :: raw :: c_uint , flip : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn savePPM (path : * const :: std :: os :: raw :: c_char , pixels : * const :: std :: os :: raw :: c_uchar , sx : :: std :: os :: raw :: c_uint , sy : :: std :: os :: raw :: c_uint) -> :: std :: os :: raw :: c_int ; } pub type __builtin_va_list = [__va_list_tag ; 1usize] ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __va_list_tag { pub gp_offset : :: std :: os :: raw :: c_uint , pub fp_offset : :: std :: os :: raw :: c_uint , pub overflow_arg_area : * mut :: std :: os :: raw :: c_void , pub reg_save_area : * mut :: std :: os :: raw :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __va_list_tag"] [:: std :: mem :: size_of :: < __va_list_tag > () - 24usize] ; ["Alignment of __va_list_tag"] [:: std :: mem :: align_of :: < __va_list_tag > () - 8usize] ; ["Offset of field: __va_list_tag::gp_offset"] [:: std :: mem :: offset_of ! (__va_list_tag , gp_offset) - 0usize] ; ["Offset of field: __va_list_tag::fp_offset"] [:: std :: mem :: offset_of ! (__va_list_tag , fp_offset) - 4usize] ; ["Offset of field: __va_list_tag::overflow_arg_area"] [:: std :: mem :: offset_of ! (__va_list_tag , overflow_arg_area) - 8usize] ; ["Offset of field: __va_list_tag::reg_save_area"] [:: std :: mem :: offset_of ! (__va_list_tag , reg_save_area) - 16usize] ; } ;
[INFO] [stdout] 3 + # [repr (C)] # [derive (Copy , Clone , Debug , Default , Eq , Hash , Ord , PartialEq , PartialOrd)] pub struct __BindgenBitfieldUnit < Storage > { storage : Storage , } impl < Storage > __BindgenBitfieldUnit < Storage > { # [inline] pub const fn new (storage : Storage) -> Self { Self { storage } } } impl < Storage > __BindgenBitfieldUnit < Storage > where Storage : AsRef < [u8] > + AsMut < [u8] >, { # [inline] fn extract_bit (byte : u8 , index : usize) -> bool { let bit_index = if cfg ! (target_endian = "big") { 7 - (index % 8) } else { index % 8 } ; let mask = 1 << bit_index ; byte & mask == mask } # [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] ; Self :: extract_bit (byte , index) } # [inline] pub unsafe fn raw_get_bit (this : * const Self , index : usize) -> bool { debug_assert ! (index / 8 < core :: mem :: size_of ::< Storage > ()) ; let byte_index = index / 8 ; let byte = * (core :: ptr :: addr_of ! ((* this) . storage) as * const u8) . offset (byte_index as isize) ; Self :: extract_bit (byte , index) } # [inline] fn change_bit (byte : u8 , index : usize , val : bool) -> u8 { let bit_index = if cfg ! (target_endian = "big") { 7 - (index % 8) } else { index % 8 } ; let mask = 1 << bit_index ; if val { byte | mask } else { byte & ! 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] ; * byte = Self :: change_bit (* byte , index , val) ; } # [inline] pub unsafe fn raw_set_bit (this : * mut Self , index : usize , val : bool) { debug_assert ! (index / 8 < core :: mem :: size_of ::< Storage > ()) ; let byte_index = index / 8 ; let byte = (core :: ptr :: addr_of_mut ! ((* this) . storage) as * mut u8) . offset (byte_index as isize) ; * byte = Self :: change_bit (* byte , index , val) ; } # [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) { let index = if cfg ! (target_endian = "big") { bit_width as usize - 1 - i } else { i } ; val |= 1 << index ; } } val } # [inline] pub unsafe fn raw_get (this : * const Self , bit_offset : usize , bit_width : u8 ,) -> u64 { debug_assert ! (bit_width <= 64) ; debug_assert ! (bit_offset / 8 < core :: mem :: size_of ::< Storage > ()) ; debug_assert ! ((bit_offset + (bit_width as usize)) / 8 <= core :: mem :: size_of ::< Storage > ()) ; let mut val = 0 ; for i in 0 .. (bit_width as usize) { if Self :: raw_get_bit (this , i + bit_offset) { let index = if cfg ! (target_endian = "big") { bit_width as usize - 1 - i } else { i } ; val |= 1 << index ; } } 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 ; let index = if cfg ! (target_endian = "big") { bit_width as usize - 1 - i } else { i } ; self . set_bit (index + bit_offset , val_bit_is_set) ; } } # [inline] pub unsafe fn raw_set (this : * mut Self , bit_offset : usize , bit_width : u8 , val : u64 ,) { debug_assert ! (bit_width <= 64) ; debug_assert ! (bit_offset / 8 < core :: mem :: size_of ::< Storage > ()) ; debug_assert ! ((bit_offset + (bit_width as usize)) / 8 <= core :: mem :: size_of ::< Storage > ()) ; for i in 0 .. (bit_width as usize) { let mask = 1 << i ; let val_bit_is_set = val & mask == mask ; let index = if cfg ! (target_endian = "big") { bit_width as usize - 1 - i } else { i } ; Self :: raw_set_bit (this , index + bit_offset , val_bit_is_set) ; } } } # [derive (PartialEq , Copy , Clone , Hash , Debug , Default)] # [repr (C)] pub struct __BindgenComplex < T > { pub re : T , pub im : T } pub const __STDC_FORMAT_MACROS : u32 = 1 ; pub const _FEATURES_H : u32 = 1 ; pub const _DEFAULT_SOURCE : u32 = 1 ; pub const __GLIBC_USE_ISOC2Y : u32 = 0 ; pub const __GLIBC_USE_ISOC23 : u32 = 0 ; pub const __USE_ISOC11 : u32 = 1 ; pub const __USE_ISOC99 : u32 = 1 ; pub const __USE_ISOC95 : u32 = 1 ; pub const __USE_POSIX_IMPLICITLY : u32 = 1 ; pub const _POSIX_SOURCE : u32 = 1 ; pub const _POSIX_C_SOURCE : u32 = 202405 ; pub const __USE_POSIX : u32 = 1 ; pub const __USE_POSIX2 : u32 = 1 ; pub const __USE_POSIX199309 : u32 = 1 ; pub const __USE_POSIX199506 : u32 = 1 ; pub const __USE_XOPEN2K : u32 = 1 ; pub const __USE_XOPEN2K8 : u32 = 1 ; pub const _ATFILE_SOURCE : u32 = 1 ; pub const __USE_XOPEN2K24 : u32 = 1 ; pub const __WORDSIZE : u32 = 64 ; pub const __WORDSIZE_TIME64_COMPAT32 : u32 = 1 ; pub const __SYSCALL_WORDSIZE : u32 = 64 ; pub const __TIMESIZE : u32 = 64 ; pub const __USE_TIME_BITS64 : u32 = 1 ; pub const __USE_MISC : u32 = 1 ; pub const __USE_ATFILE : u32 = 1 ; pub const __USE_FORTIFY_LEVEL : u32 = 0 ; pub const __GLIBC_USE_DEPRECATED_GETS : u32 = 0 ; pub const __GLIBC_USE_DEPRECATED_SCANF : u32 = 0 ; pub const __GLIBC_USE_C23_STRTOL : u32 = 0 ; pub const _STDC_PREDEF_H : u32 = 1 ; pub const __STDC_IEC_559__ : u32 = 1 ; pub const __STDC_IEC_60559_BFP__ : u32 = 201404 ; pub const __STDC_IEC_559_COMPLEX__ : u32 = 1 ; pub const __STDC_IEC_60559_COMPLEX__ : u32 = 201404 ; pub const __STDC_ISO_10646__ : u32 = 201706 ; pub const __GNU_LIBRARY__ : u32 = 6 ; pub const __GLIBC__ : u32 = 2 ; pub const __GLIBC_MINOR__ : u32 = 43 ; pub const _SYS_CDEFS_H : u32 = 1 ; pub const __glibc_c99_flexarr_available : u32 = 1 ; pub const __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI : u32 = 0 ; pub const __HAVE_GENERIC_SELECTION : u32 = 1 ; pub const __GLIBC_USE_LIB_EXT2 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_BFP_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_BFP_EXT_C23 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_FUNCS_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_FUNCS_EXT_C23 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_TYPES_EXT : u32 = 0 ; pub const _STDLIB_H : u32 = 1 ; pub const WNOHANG : u32 = 1 ; pub const WUNTRACED : u32 = 2 ; pub const WSTOPPED : u32 = 2 ; pub const WEXITED : u32 = 4 ; pub const WCONTINUED : u32 = 8 ; pub const WNOWAIT : u32 = 16777216 ; pub const __WNOTHREAD : u32 = 536870912 ; pub const __WALL : u32 = 1073741824 ; pub const __WCLONE : u32 = 2147483648 ; pub const __W_CONTINUED : u32 = 65535 ; pub const __WCOREFLAG : u32 = 128 ; pub const __HAVE_FLOAT128 : u32 = 1 ; pub const __HAVE_DISTINCT_FLOAT128 : u32 = 1 ; pub const __HAVE_FLOAT64X : u32 = 1 ; pub const __HAVE_FLOAT64X_LONG_DOUBLE : u32 = 1 ; pub const __HAVE_FLOAT16 : u32 = 0 ; pub const __HAVE_FLOAT32 : u32 = 1 ; pub const __HAVE_FLOAT64 : u32 = 1 ; pub const __HAVE_FLOAT32X : u32 = 1 ; pub const __HAVE_FLOAT128X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT16 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT32 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT64 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT32X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT64X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT128X : u32 = 0 ; pub const __HAVE_FLOATN_NOT_TYPEDEF : u32 = 0 ; pub const __ldiv_t_defined : u32 = 1 ; pub const __lldiv_t_defined : u32 = 1 ; pub const RAND_MAX : u32 = 2147483647 ; pub const EXIT_FAILURE : u32 = 1 ; pub const EXIT_SUCCESS : u32 = 0 ; pub const _SYS_TYPES_H : u32 = 1 ; pub const _BITS_TYPES_H : u32 = 1 ; pub const _BITS_TYPESIZES_H : u32 = 1 ; pub const __OFF_T_MATCHES_OFF64_T : u32 = 1 ; pub const __INO_T_MATCHES_INO64_T : u32 = 1 ; pub const __RLIM_T_MATCHES_RLIM64_T : u32 = 1 ; pub const __STATFS_MATCHES_STATFS64 : u32 = 1 ; pub const __KERNEL_OLD_TIMEVAL_MATCHES_TIMEVAL64 : u32 = 1 ; pub const __FD_SETSIZE : u32 = 1024 ; pub const _BITS_TIME64_H : u32 = 1 ; pub const __clock_t_defined : u32 = 1 ; pub const __clockid_t_defined : u32 = 1 ; pub const __time_t_defined : u32 = 1 ; pub const __timer_t_defined : u32 = 1 ; pub const _BITS_STDINT_INTN_H : u32 = 1 ; pub const __BIT_TYPES_DEFINED__ : u32 = 1 ; pub const _ENDIAN_H : u32 = 1 ; pub const _BITS_ENDIAN_H : u32 = 1 ; pub const __LITTLE_ENDIAN : u32 = 1234 ; pub const __BIG_ENDIAN : u32 = 4321 ; pub const __PDP_ENDIAN : u32 = 3412 ; pub const _BITS_ENDIANNESS_H : u32 = 1 ; pub const __BYTE_ORDER : u32 = 1234 ; pub const __FLOAT_WORD_ORDER : u32 = 1234 ; pub const LITTLE_ENDIAN : u32 = 1234 ; pub const BIG_ENDIAN : u32 = 4321 ; pub const PDP_ENDIAN : u32 = 3412 ; pub const BYTE_ORDER : u32 = 1234 ; pub const _BITS_BYTESWAP_H : u32 = 1 ; pub const _BITS_UINTN_IDENTITY_H : u32 = 1 ; pub const _SYS_SELECT_H : u32 = 1 ; pub const __sigset_t_defined : u32 = 1 ; pub const __timeval_defined : u32 = 1 ; pub const _STRUCT_TIMESPEC : u32 = 1 ; pub const FD_SETSIZE : u32 = 1024 ; pub const _BITS_PTHREADTYPES_COMMON_H : u32 = 1 ; pub const _THREAD_SHARED_TYPES_H : u32 = 1 ; pub const _BITS_PTHREADTYPES_ARCH_H : u32 = 1 ; pub const __SIZEOF_PTHREAD_MUTEX_T : u32 = 40 ; pub const __SIZEOF_PTHREAD_ATTR_T : u32 = 56 ; pub const __SIZEOF_PTHREAD_RWLOCK_T : u32 = 56 ; pub const __SIZEOF_PTHREAD_BARRIER_T : u32 = 32 ; pub const __SIZEOF_PTHREAD_MUTEXATTR_T : u32 = 4 ; pub const __SIZEOF_PTHREAD_COND_T : u32 = 48 ; pub const __SIZEOF_PTHREAD_CONDATTR_T : u32 = 4 ; pub const __SIZEOF_PTHREAD_RWLOCKATTR_T : u32 = 8 ; pub const __SIZEOF_PTHREAD_BARRIERATTR_T : u32 = 4 ; pub const _THREAD_MUTEX_INTERNAL_H : u32 = 1 ; pub const __PTHREAD_MUTEX_HAVE_PREV : u32 = 1 ; pub const __have_pthread_attr_t : u32 = 1 ; pub const _ALLOCA_H : u32 = 1 ; pub const _INTTYPES_H : u32 = 1 ; pub const _STDINT_H : u32 = 1 ; pub const _BITS_WCHAR_H : u32 = 1 ; pub const _BITS_STDINT_UINTN_H : u32 = 1 ; pub const _BITS_STDINT_LEAST_H : u32 = 1 ; pub const INT8_MIN : i32 = - 128 ; pub const INT16_MIN : i32 = - 32768 ; pub const INT32_MIN : i32 = - 2147483648 ; pub const INT8_MAX : u32 = 127 ; pub const INT16_MAX : u32 = 32767 ; pub const INT32_MAX : u32 = 2147483647 ; pub const UINT8_MAX : u32 = 255 ; pub const UINT16_MAX : u32 = 65535 ; pub const UINT32_MAX : u32 = 4294967295 ; pub const INT_LEAST8_MIN : i32 = - 128 ; pub const INT_LEAST16_MIN : i32 = - 32768 ; pub const INT_LEAST32_MIN : i32 = - 2147483648 ; pub const INT_LEAST8_MAX : u32 = 127 ; pub const INT_LEAST16_MAX : u32 = 32767 ; pub const INT_LEAST32_MAX : u32 = 2147483647 ; pub const UINT_LEAST8_MAX : u32 = 255 ; pub const UINT_LEAST16_MAX : u32 = 65535 ; pub const UINT_LEAST32_MAX : u32 = 4294967295 ; pub const INT_FAST8_MIN : i32 = - 128 ; pub const INT_FAST16_MIN : i64 = - 9223372036854775808 ; pub const INT_FAST32_MIN : i64 = - 9223372036854775808 ; pub const INT_FAST8_MAX : u32 = 127 ; pub const INT_FAST16_MAX : u64 = 9223372036854775807 ; pub const INT_FAST32_MAX : u64 = 9223372036854775807 ; pub const UINT_FAST8_MAX : u32 = 255 ; pub const UINT_FAST16_MAX : i32 = - 1 ; pub const UINT_FAST32_MAX : i32 = - 1 ; pub const INTPTR_MIN : i64 = - 9223372036854775808 ; pub const INTPTR_MAX : u64 = 9223372036854775807 ; pub const UINTPTR_MAX : i32 = - 1 ; pub const PTRDIFF_MIN : i64 = - 9223372036854775808 ; pub const PTRDIFF_MAX : u64 = 9223372036854775807 ; pub const SIG_ATOMIC_MIN : i32 = - 2147483648 ; pub const SIG_ATOMIC_MAX : u32 = 2147483647 ; pub const SIZE_MAX : i32 = - 1 ; pub const WINT_MIN : u32 = 0 ; pub const WINT_MAX : u32 = 4294967295 ; pub const ____gwchar_t_defined : u32 = 1 ; pub const __PRI64_PREFIX : & [u8 ; 2] = b"l\0" ; pub const __PRIPTR_PREFIX : & [u8 ; 2] = b"l\0" ; pub const PRId8 : & [u8 ; 4] = b"hhd\0" ; pub const PRId16 : & [u8 ; 3] = b"hd\0" ; pub const PRId32 : & [u8 ; 2] = b"d\0" ; pub const PRId64 : & [u8 ; 3] = b"ld\0" ; pub const PRIdLEAST8 : & [u8 ; 4] = b"hhd\0" ; pub const PRIdLEAST16 : & [u8 ; 3] = b"hd\0" ; pub const PRIdLEAST32 : & [u8 ; 2] = b"d\0" ; pub const PRIdLEAST64 : & [u8 ; 3] = b"ld\0" ; pub const PRIdFAST8 : & [u8 ; 4] = b"hhd\0" ; pub const PRIdFAST16 : & [u8 ; 3] = b"ld\0" ; pub const PRIdFAST32 : & [u8 ; 3] = b"ld\0" ; pub const PRIdFAST64 : & [u8 ; 3] = b"ld\0" ; pub const PRIi8 : & [u8 ; 4] = b"hhi\0" ; pub const PRIi16 : & [u8 ; 3] = b"hi\0" ; pub const PRIi32 : & [u8 ; 2] = b"i\0" ; pub const PRIi64 : & [u8 ; 3] = b"li\0" ; pub const PRIiLEAST8 : & [u8 ; 4] = b"hhi\0" ; pub const PRIiLEAST16 : & [u8 ; 3] = b"hi\0" ; pub const PRIiLEAST32 : & [u8 ; 2] = b"i\0" ; pub const PRIiLEAST64 : & [u8 ; 3] = b"li\0" ; pub const PRIiFAST8 : & [u8 ; 4] = b"hhi\0" ; pub const PRIiFAST16 : & [u8 ; 3] = b"li\0" ; pub const PRIiFAST32 : & [u8 ; 3] = b"li\0" ; pub const PRIiFAST64 : & [u8 ; 3] = b"li\0" ; pub const PRIo8 : & [u8 ; 4] = b"hho\0" ; pub const PRIo16 : & [u8 ; 3] = b"ho\0" ; pub const PRIo32 : & [u8 ; 2] = b"o\0" ; pub const PRIo64 : & [u8 ; 3] = b"lo\0" ; pub const PRIoLEAST8 : & [u8 ; 4] = b"hho\0" ; pub const PRIoLEAST16 : & [u8 ; 3] = b"ho\0" ; pub const PRIoLEAST32 : & [u8 ; 2] = b"o\0" ; pub const PRIoLEAST64 : & [u8 ; 3] = b"lo\0" ; pub const PRIoFAST8 : & [u8 ; 4] = b"hho\0" ; pub const PRIoFAST16 : & [u8 ; 3] = b"lo\0" ; pub const PRIoFAST32 : & [u8 ; 3] = b"lo\0" ; pub const PRIoFAST64 : & [u8 ; 3] = b"lo\0" ; pub const PRIu8 : & [u8 ; 4] = b"hhu\0" ; pub const PRIu16 : & [u8 ; 3] = b"hu\0" ; pub const PRIu32 : & [u8 ; 2] = b"u\0" ; pub const PRIu64 : & [u8 ; 3] = b"lu\0" ; pub const PRIuLEAST8 : & [u8 ; 4] = b"hhu\0" ; pub const PRIuLEAST16 : & [u8 ; 3] = b"hu\0" ; pub const PRIuLEAST32 : & [u8 ; 2] = b"u\0" ; pub const PRIuLEAST64 : & [u8 ; 3] = b"lu\0" ; pub const PRIuFAST8 : & [u8 ; 4] = b"hhu\0" ; pub const PRIuFAST16 : & [u8 ; 3] = b"lu\0" ; pub const PRIuFAST32 : & [u8 ; 3] = b"lu\0" ; pub const PRIuFAST64 : & [u8 ; 3] = b"lu\0" ; pub const PRIx8 : & [u8 ; 4] = b"hhx\0" ; pub const PRIx16 : & [u8 ; 3] = b"hx\0" ; pub const PRIx32 : & [u8 ; 2] = b"x\0" ; pub const PRIx64 : & [u8 ; 3] = b"lx\0" ; pub const PRIxLEAST8 : & [u8 ; 4] = b"hhx\0" ; pub const PRIxLEAST16 : & [u8 ; 3] = b"hx\0" ; pub const PRIxLEAST32 : & [u8 ; 2] = b"x\0" ; pub const PRIxLEAST64 : & [u8 ; 3] = b"lx\0" ; pub const PRIxFAST8 : & [u8 ; 4] = b"hhx\0" ; pub const PRIxFAST16 : & [u8 ; 3] = b"lx\0" ; pub const PRIxFAST32 : & [u8 ; 3] = b"lx\0" ; pub const PRIxFAST64 : & [u8 ; 3] = b"lx\0" ; pub const PRIX8 : & [u8 ; 4] = b"hhX\0" ; pub const PRIX16 : & [u8 ; 3] = b"hX\0" ; pub const PRIX32 : & [u8 ; 2] = b"X\0" ; pub const PRIX64 : & [u8 ; 3] = b"lX\0" ; pub const PRIXLEAST8 : & [u8 ; 4] = b"hhX\0" ; pub const PRIXLEAST16 : & [u8 ; 3] = b"hX\0" ; pub const PRIXLEAST32 : & [u8 ; 2] = b"X\0" ; pub const PRIXLEAST64 : & [u8 ; 3] = b"lX\0" ; pub const PRIXFAST8 : & [u8 ; 4] = b"hhX\0" ; pub const PRIXFAST16 : & [u8 ; 3] = b"lX\0" ; pub const PRIXFAST32 : & [u8 ; 3] = b"lX\0" ; pub const PRIXFAST64 : & [u8 ; 3] = b"lX\0" ; pub const PRIdMAX : & [u8 ; 3] = b"ld\0" ; pub const PRIiMAX : & [u8 ; 3] = b"li\0" ; pub const PRIoMAX : & [u8 ; 3] = b"lo\0" ; pub const PRIuMAX : & [u8 ; 3] = b"lu\0" ; pub const PRIxMAX : & [u8 ; 3] = b"lx\0" ; pub const PRIXMAX : & [u8 ; 3] = b"lX\0" ; pub const PRIdPTR : & [u8 ; 3] = b"ld\0" ; pub const PRIiPTR : & [u8 ; 3] = b"li\0" ; pub const PRIoPTR : & [u8 ; 3] = b"lo\0" ; pub const PRIuPTR : & [u8 ; 3] = b"lu\0" ; pub const PRIxPTR : & [u8 ; 3] = b"lx\0" ; pub const PRIXPTR : & [u8 ; 3] = b"lX\0" ; pub const SCNd8 : & [u8 ; 4] = b"hhd\0" ; pub const SCNd16 : & [u8 ; 3] = b"hd\0" ; pub const SCNd32 : & [u8 ; 2] = b"d\0" ; pub const SCNd64 : & [u8 ; 3] = b"ld\0" ; pub const SCNdLEAST8 : & [u8 ; 4] = b"hhd\0" ; pub const SCNdLEAST16 : & [u8 ; 3] = b"hd\0" ; pub const SCNdLEAST32 : & [u8 ; 2] = b"d\0" ; pub const SCNdLEAST64 : & [u8 ; 3] = b"ld\0" ; pub const SCNdFAST8 : & [u8 ; 4] = b"hhd\0" ; pub const SCNdFAST16 : & [u8 ; 3] = b"ld\0" ; pub const SCNdFAST32 : & [u8 ; 3] = b"ld\0" ; pub const SCNdFAST64 : & [u8 ; 3] = b"ld\0" ; pub const SCNi8 : & [u8 ; 4] = b"hhi\0" ; pub const SCNi16 : & [u8 ; 3] = b"hi\0" ; pub const SCNi32 : & [u8 ; 2] = b"i\0" ; pub const SCNi64 : & [u8 ; 3] = b"li\0" ; pub const SCNiLEAST8 : & [u8 ; 4] = b"hhi\0" ; pub const SCNiLEAST16 : & [u8 ; 3] = b"hi\0" ; pub const SCNiLEAST32 : & [u8 ; 2] = b"i\0" ; pub const SCNiLEAST64 : & [u8 ; 3] = b"li\0" ; pub const SCNiFAST8 : & [u8 ; 4] = b"hhi\0" ; pub const SCNiFAST16 : & [u8 ; 3] = b"li\0" ; pub const SCNiFAST32 : & [u8 ; 3] = b"li\0" ; pub const SCNiFAST64 : & [u8 ; 3] = b"li\0" ; pub const SCNu8 : & [u8 ; 4] = b"hhu\0" ; pub const SCNu16 : & [u8 ; 3] = b"hu\0" ; pub const SCNu32 : & [u8 ; 2] = b"u\0" ; pub const SCNu64 : & [u8 ; 3] = b"lu\0" ; pub const SCNuLEAST8 : & [u8 ; 4] = b"hhu\0" ; pub const SCNuLEAST16 : & [u8 ; 3] = b"hu\0" ; pub const SCNuLEAST32 : & [u8 ; 2] = b"u\0" ; pub const SCNuLEAST64 : & [u8 ; 3] = b"lu\0" ; pub const SCNuFAST8 : & [u8 ; 4] = b"hhu\0" ; pub const SCNuFAST16 : & [u8 ; 3] = b"lu\0" ; pub const SCNuFAST32 : & [u8 ; 3] = b"lu\0" ; pub const SCNuFAST64 : & [u8 ; 3] = b"lu\0" ; pub const SCNo8 : & [u8 ; 4] = b"hho\0" ; pub const SCNo16 : & [u8 ; 3] = b"ho\0" ; pub const SCNo32 : & [u8 ; 2] = b"o\0" ; pub const SCNo64 : & [u8 ; 3] = b"lo\0" ; pub const SCNoLEAST8 : & [u8 ; 4] = b"hho\0" ; pub const SCNoLEAST16 : & [u8 ; 3] = b"ho\0" ; pub const SCNoLEAST32 : & [u8 ; 2] = b"o\0" ; pub const SCNoLEAST64 : & [u8 ; 3] = b"lo\0" ; pub const SCNoFAST8 : & [u8 ; 4] = b"hho\0" ; pub const SCNoFAST16 : & [u8 ; 3] = b"lo\0" ; pub const SCNoFAST32 : & [u8 ; 3] = b"lo\0" ; pub const SCNoFAST64 : & [u8 ; 3] = b"lo\0" ; pub const SCNx8 : & [u8 ; 4] = b"hhx\0" ; pub const SCNx16 : & [u8 ; 3] = b"hx\0" ; pub const SCNx32 : & [u8 ; 2] = b"x\0" ; pub const SCNx64 : & [u8 ; 3] = b"lx\0" ; pub const SCNxLEAST8 : & [u8 ; 4] = b"hhx\0" ; pub const SCNxLEAST16 : & [u8 ; 3] = b"hx\0" ; pub const SCNxLEAST32 : & [u8 ; 2] = b"x\0" ; pub const SCNxLEAST64 : & [u8 ; 3] = b"lx\0" ; pub const SCNxFAST8 : & [u8 ; 4] = b"hhx\0" ; pub const SCNxFAST16 : & [u8 ; 3] = b"lx\0" ; pub const SCNxFAST32 : & [u8 ; 3] = b"lx\0" ; pub const SCNxFAST64 : & [u8 ; 3] = b"lx\0" ; pub const SCNdMAX : & [u8 ; 3] = b"ld\0" ; pub const SCNiMAX : & [u8 ; 3] = b"li\0" ; pub const SCNoMAX : & [u8 ; 3] = b"lo\0" ; pub const SCNuMAX : & [u8 ; 3] = b"lu\0" ; pub const SCNxMAX : & [u8 ; 3] = b"lx\0" ; pub const SCNdPTR : & [u8 ; 3] = b"ld\0" ; pub const SCNiPTR : & [u8 ; 3] = b"li\0" ; pub const SCNoPTR : & [u8 ; 3] = b"lo\0" ; pub const SCNuPTR : & [u8 ; 3] = b"lu\0" ; pub const SCNxPTR : & [u8 ; 3] = b"lx\0" ; pub const _MATH_H : u32 = 1 ; pub const _BITS_LIBM_SIMD_DECL_STUBS_H : u32 = 1 ; pub const __FP_LOGB0_IS_MIN : u32 = 1 ; pub const __FP_LOGBNAN_IS_MIN : u32 = 1 ; pub const FP_ILOGB0 : i32 = - 2147483648 ; pub const FP_ILOGBNAN : i32 = - 2147483648 ; pub const __MATH_DECLARING_DOUBLE : u32 = 1 ; pub const __MATH_DECLARING_FLOATN : u32 = 0 ; pub const __MATH_DECLARE_LDOUBLE : u32 = 1 ; pub const MATH_ERRNO : u32 = 1 ; pub const MATH_ERREXCEPT : u32 = 2 ; pub const math_errhandling : u32 = 3 ; pub const M_E : f64 = 2.718281828459045 ; pub const M_LOG2E : f64 = 1.4426950408889634 ; pub const M_LOG10E : f64 = 0.4342944819032518 ; pub const M_LN2 : f64 = 0.6931471805599453 ; pub const M_LN10 : f64 = 2.302585092994046 ; pub const M_PI : f64 = 3.141592653589793 ; pub const M_PI_2 : f64 = 1.5707963267948966 ; pub const M_PI_4 : f64 = 0.7853981633974483 ; pub const M_1_PI : f64 = 0.3183098861837907 ; pub const M_2_PI : f64 = 0.6366197723675814 ; pub const M_2_SQRTPI : f64 = 1.1283791670955126 ; pub const M_SQRT2 : f64 = 1.4142135623730951 ; pub const M_SQRT1_2 : f64 = 0.7071067811865476 ; pub const LAYER_INIT_SHA : i32 = - 1 ; pub const _STDIO_H : u32 = 1 ; pub const _____fpos_t_defined : u32 = 1 ; pub const ____mbstate_t_defined : u32 = 1 ; pub const _____fpos64_t_defined : u32 = 1 ; pub const ____FILE_defined : u32 = 1 ; pub const __FILE_defined : u32 = 1 ; pub const __struct_FILE_defined : u32 = 1 ; pub const _IO_EOF_SEEN : u32 = 16 ; pub const _IO_ERR_SEEN : u32 = 32 ; pub const _IO_USER_LOCK : u32 = 32768 ; pub const __cookie_io_functions_t_defined : u32 = 1 ; pub const _IOFBF : u32 = 0 ; pub const _IOLBF : u32 = 1 ; pub const _IONBF : u32 = 2 ; pub const BUFSIZ : u32 = 8192 ; pub const EOF : i32 = - 1 ; pub const SEEK_SET : u32 = 0 ; pub const SEEK_CUR : u32 = 1 ; pub const SEEK_END : u32 = 2 ; pub const P_tmpdir : & [u8 ; 5] = b"/tmp\0" ; pub const L_tmpnam : u32 = 20 ; pub const TMP_MAX : u32 = 238328 ; pub const _BITS_STDIO_LIM_H : u32 = 1 ; pub const FILENAME_MAX : u32 = 4096 ; pub const L_ctermid : u32 = 9 ; pub const FOPEN_MAX : u32 = 16 ; pub type wchar_t = :: std :: os :: raw :: c_int ; pub type __cfloat128 = __BindgenComplex < u128 > ; pub type _Float128 = u128 ; pub type _Float32 = f32 ; pub type _Float64 = f64 ; pub type _Float32x = f64 ; pub type _Float64x = u128 ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct div_t { pub quot : :: std :: os :: raw :: c_int , pub rem : :: std :: os :: raw :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of div_t"] [:: std :: mem :: size_of :: < div_t > () - 8usize] ; ["Alignment of div_t"] [:: std :: mem :: align_of :: < div_t > () - 4usize] ; ["Offset of field: div_t::quot"] [:: std :: mem :: offset_of ! (div_t , quot) - 0usize] ; ["Offset of field: div_t::rem"] [:: std :: mem :: offset_of ! (div_t , rem) - 4usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ldiv_t { pub quot : :: std :: os :: raw :: c_long , pub rem : :: std :: os :: raw :: c_long , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ldiv_t"] [:: std :: mem :: size_of :: < ldiv_t > () - 16usize] ; ["Alignment of ldiv_t"] [:: std :: mem :: align_of :: < ldiv_t > () - 8usize] ; ["Offset of field: ldiv_t::quot"] [:: std :: mem :: offset_of ! (ldiv_t , quot) - 0usize] ; ["Offset of field: ldiv_t::rem"] [:: std :: mem :: offset_of ! (ldiv_t , rem) - 8usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct lldiv_t { pub quot : :: std :: os :: raw :: c_longlong , pub rem : :: std :: os :: raw :: c_longlong , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of lldiv_t"] [:: std :: mem :: size_of :: < lldiv_t > () - 16usize] ; ["Alignment of lldiv_t"] [:: std :: mem :: align_of :: < lldiv_t > () - 8usize] ; ["Offset of field: lldiv_t::quot"] [:: std :: mem :: offset_of ! (lldiv_t , quot) - 0usize] ; ["Offset of field: lldiv_t::rem"] [:: std :: mem :: offset_of ! (lldiv_t , rem) - 8usize] ; } ; unsafe extern "C" { pub fn __ctype_get_mb_cur_max () -> usize ; } unsafe extern "C" { pub fn atof (__nptr : * const :: std :: os :: raw :: c_char) -> f64 ; } unsafe extern "C" { pub fn atoi (__nptr : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn atol (__nptr : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn atoll (__nptr : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn strtod (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char) -> f64 ; } unsafe extern "C" { pub fn strtof (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char) -> f32 ; } unsafe extern "C" { pub fn strtold (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char) -> u128 ; } unsafe extern "C" { pub fn strtol (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn strtoul (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_ulong ; } unsafe extern "C" { pub fn strtoq (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn strtouq (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_ulonglong ; } unsafe extern "C" { pub fn strtoll (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn strtoull (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_ulonglong ; } unsafe extern "C" { pub fn l64a (__n : :: std :: os :: raw :: c_long) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn a64l (__s : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_long ; } pub type __u_char = :: std :: os :: raw :: c_uchar ; pub type __u_short = :: std :: os :: raw :: c_ushort ; pub type __u_int = :: std :: os :: raw :: c_uint ; pub type __u_long = :: std :: os :: raw :: c_ulong ; 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_long ; pub type __uint64_t = :: std :: os :: raw :: c_ulong ; pub type __int_least8_t = __int8_t ; pub type __uint_least8_t = __uint8_t ; pub type __int_least16_t = __int16_t ; pub type __uint_least16_t = __uint16_t ; pub type __int_least32_t = __int32_t ; pub type __uint_least32_t = __uint32_t ; pub type __int_least64_t = __int64_t ; pub type __uint_least64_t = __uint64_t ; pub type __quad_t = :: std :: os :: raw :: c_long ; pub type __u_quad_t = :: std :: os :: raw :: c_ulong ; pub type __intmax_t = :: std :: os :: raw :: c_long ; pub type __uintmax_t = :: std :: os :: raw :: c_ulong ; pub type __dev_t = :: std :: os :: raw :: c_ulong ; pub type __uid_t = :: std :: os :: raw :: c_uint ; pub type __gid_t = :: std :: os :: raw :: c_uint ; pub type __ino_t = :: std :: os :: raw :: c_ulong ; pub type __ino64_t = :: std :: os :: raw :: c_ulong ; pub type __mode_t = :: std :: os :: raw :: c_uint ; pub type __nlink_t = :: std :: os :: raw :: c_ulong ; pub type __off_t = :: std :: os :: raw :: c_long ; pub type __off64_t = :: std :: os :: raw :: c_long ; pub type __pid_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [:: std :: os :: raw :: c_int ; 2usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __fsid_t"] [:: std :: mem :: size_of :: < __fsid_t > () - 8usize] ; ["Alignment of __fsid_t"] [:: std :: mem :: align_of :: < __fsid_t > () - 4usize] ; ["Offset of field: __fsid_t::__val"] [:: std :: mem :: offset_of ! (__fsid_t , __val) - 0usize] ; } ; pub type __clock_t = :: std :: os :: raw :: c_long ; pub type __rlim_t = :: std :: os :: raw :: c_ulong ; pub type __rlim64_t = :: std :: os :: raw :: c_ulong ; pub type __id_t = :: std :: os :: raw :: c_uint ; pub type __time_t = :: std :: os :: raw :: c_long ; pub type __useconds_t = :: std :: os :: raw :: c_uint ; pub type __suseconds_t = :: std :: os :: raw :: c_long ; pub type __suseconds64_t = :: std :: os :: raw :: c_long ; pub type __daddr_t = :: std :: os :: raw :: c_int ; pub type __key_t = :: std :: os :: raw :: c_int ; pub type __clockid_t = :: std :: os :: raw :: c_int ; pub type __timer_t = * mut :: std :: os :: raw :: c_void ; pub type __blksize_t = :: std :: os :: raw :: c_long ; pub type __blkcnt_t = :: std :: os :: raw :: c_long ; pub type __blkcnt64_t = :: std :: os :: raw :: c_long ; pub type __fsblkcnt_t = :: std :: os :: raw :: c_ulong ; pub type __fsblkcnt64_t = :: std :: os :: raw :: c_ulong ; pub type __fsfilcnt_t = :: std :: os :: raw :: c_ulong ; pub type __fsfilcnt64_t = :: std :: os :: raw :: c_ulong ; pub type __fsword_t = :: std :: os :: raw :: c_long ; pub type __ssize_t = :: std :: os :: raw :: c_long ; pub type __syscall_slong_t = :: std :: os :: raw :: c_long ; pub type __syscall_ulong_t = :: std :: os :: raw :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut :: std :: os :: raw :: c_char ; pub type __intptr_t = :: std :: os :: raw :: c_long ; pub type __socklen_t = :: std :: os :: raw :: c_uint ; pub type __sig_atomic_t = :: std :: os :: raw :: c_int ; pub type u_char = __u_char ; pub type u_short = __u_short ; pub type u_int = __u_int ; pub type u_long = __u_long ; pub type quad_t = __quad_t ; pub type u_quad_t = __u_quad_t ; pub type fsid_t = __fsid_t ; pub type loff_t = __loff_t ; pub type ino_t = __ino_t ; pub type dev_t = __dev_t ; pub type gid_t = __gid_t ; pub type mode_t = __mode_t ; pub type nlink_t = __nlink_t ; pub type uid_t = __uid_t ; pub type off_t = __off_t ; pub type pid_t = __pid_t ; pub type id_t = __id_t ; pub type daddr_t = __daddr_t ; pub type caddr_t = __caddr_t ; pub type key_t = __key_t ; pub type clock_t = __clock_t ; pub type clockid_t = __clockid_t ; pub type time_t = __time_t ; pub type timer_t = __timer_t ; pub type ulong = :: std :: os :: raw :: c_ulong ; pub type ushort = :: std :: os :: raw :: c_ushort ; pub type uint = :: std :: os :: raw :: c_uint ; pub type u_int8_t = __uint8_t ; pub type u_int16_t = __uint16_t ; pub type u_int32_t = __uint32_t ; pub type u_int64_t = __uint64_t ; pub type register_t = :: std :: os :: raw :: c_long ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __sigset_t { pub __val : [:: std :: os :: raw :: c_ulong ; 16usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __sigset_t"] [:: std :: mem :: size_of :: < __sigset_t > () - 128usize] ; ["Alignment of __sigset_t"] [:: std :: mem :: align_of :: < __sigset_t > () - 8usize] ; ["Offset of field: __sigset_t::__val"] [:: std :: mem :: offset_of ! (__sigset_t , __val) - 0usize] ; } ; pub type sigset_t = __sigset_t ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct timeval { pub tv_sec : __time_t , pub tv_usec : __suseconds_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of timeval"] [:: std :: mem :: size_of :: < timeval > () - 16usize] ; ["Alignment of timeval"] [:: std :: mem :: align_of :: < timeval > () - 8usize] ; ["Offset of field: timeval::tv_sec"] [:: std :: mem :: offset_of ! (timeval , tv_sec) - 0usize] ; ["Offset of field: timeval::tv_usec"] [:: std :: mem :: offset_of ! (timeval , tv_usec) - 8usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct timespec { pub tv_sec : __time_t , pub tv_nsec : __syscall_slong_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of timespec"] [:: std :: mem :: size_of :: < timespec > () - 16usize] ; ["Alignment of timespec"] [:: std :: mem :: align_of :: < timespec > () - 8usize] ; ["Offset of field: timespec::tv_sec"] [:: std :: mem :: offset_of ! (timespec , tv_sec) - 0usize] ; ["Offset of field: timespec::tv_nsec"] [:: std :: mem :: offset_of ! (timespec , tv_nsec) - 8usize] ; } ; pub type suseconds_t = __suseconds_t ; pub type __fd_mask = :: std :: os :: raw :: c_long ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct fd_set { pub __fds_bits : [__fd_mask ; 16usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of fd_set"] [:: std :: mem :: size_of :: < fd_set > () - 128usize] ; ["Alignment of fd_set"] [:: std :: mem :: align_of :: < fd_set > () - 8usize] ; ["Offset of field: fd_set::__fds_bits"] [:: std :: mem :: offset_of ! (fd_set , __fds_bits) - 0usize] ; } ; pub type fd_mask = __fd_mask ; unsafe extern "C" { pub fn select (__nfds : :: std :: os :: raw :: c_int , __readfds : * mut fd_set , __writefds : * mut fd_set , __exceptfds : * mut fd_set , __timeout : * mut timeval) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn pselect (__nfds : :: std :: os :: raw :: c_int , __readfds : * mut fd_set , __writefds : * mut fd_set , __exceptfds : * mut fd_set , __timeout : * const timespec , __sigmask : * const __sigset_t) -> :: std :: os :: raw :: c_int ; } pub type blksize_t = __blksize_t ; pub type blkcnt_t = __blkcnt_t ; pub type fsblkcnt_t = __fsblkcnt_t ; pub type fsfilcnt_t = __fsfilcnt_t ; # [repr (C)] # [derive (Copy , Clone)] pub union __atomic_wide_counter { pub __value64 : :: std :: os :: raw :: c_ulonglong , pub __value32 : __atomic_wide_counter__bindgen_ty_1 , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __atomic_wide_counter__bindgen_ty_1 { pub __low : :: std :: os :: raw :: c_uint , pub __high : :: std :: os :: raw :: c_uint , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __atomic_wide_counter__bindgen_ty_1"] [:: std :: mem :: size_of :: < __atomic_wide_counter__bindgen_ty_1 > () - 8usize] ; ["Alignment of __atomic_wide_counter__bindgen_ty_1"] [:: std :: mem :: align_of :: < __atomic_wide_counter__bindgen_ty_1 > () - 4usize] ; ["Offset of field: __atomic_wide_counter__bindgen_ty_1::__low"] [:: std :: mem :: offset_of ! (__atomic_wide_counter__bindgen_ty_1 , __low) - 0usize] ; ["Offset of field: __atomic_wide_counter__bindgen_ty_1::__high"] [:: std :: mem :: offset_of ! (__atomic_wide_counter__bindgen_ty_1 , __high) - 4usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __atomic_wide_counter"] [:: std :: mem :: size_of :: < __atomic_wide_counter > () - 8usize] ; ["Alignment of __atomic_wide_counter"] [:: std :: mem :: align_of :: < __atomic_wide_counter > () - 8usize] ; ["Offset of field: __atomic_wide_counter::__value64"] [:: std :: mem :: offset_of ! (__atomic_wide_counter , __value64) - 0usize] ; ["Offset of field: __atomic_wide_counter::__value32"] [:: std :: mem :: offset_of ! (__atomic_wide_counter , __value32) - 0usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_internal_list { pub __prev : * mut __pthread_internal_list , pub __next : * mut __pthread_internal_list , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __pthread_internal_list"] [:: std :: mem :: size_of :: < __pthread_internal_list > () - 16usize] ; ["Alignment of __pthread_internal_list"] [:: std :: mem :: align_of :: < __pthread_internal_list > () - 8usize] ; ["Offset of field: __pthread_internal_list::__prev"] [:: std :: mem :: offset_of ! (__pthread_internal_list , __prev) - 0usize] ; ["Offset of field: __pthread_internal_list::__next"] [:: std :: mem :: offset_of ! (__pthread_internal_list , __next) - 8usize] ; } ; pub type __pthread_list_t = __pthread_internal_list ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_internal_slist { pub __next : * mut __pthread_internal_slist , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __pthread_internal_slist"] [:: std :: mem :: size_of :: < __pthread_internal_slist > () - 8usize] ; ["Alignment of __pthread_internal_slist"] [:: std :: mem :: align_of :: < __pthread_internal_slist > () - 8usize] ; ["Offset of field: __pthread_internal_slist::__next"] [:: std :: mem :: offset_of ! (__pthread_internal_slist , __next) - 0usize] ; } ; pub type __pthread_slist_t = __pthread_internal_slist ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_mutex_s { pub __lock : :: std :: os :: raw :: c_int , pub __count : :: std :: os :: raw :: c_uint , pub __owner : :: std :: os :: raw :: c_int , pub __nusers : :: std :: os :: raw :: c_uint , pub __kind : :: std :: os :: raw :: c_int , pub __spins : :: std :: os :: raw :: c_short , pub __unused : :: std :: os :: raw :: c_short , pub __list : __pthread_list_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __pthread_mutex_s"] [:: std :: mem :: size_of :: < __pthread_mutex_s > () - 40usize] ; ["Alignment of __pthread_mutex_s"] [:: std :: mem :: align_of :: < __pthread_mutex_s > () - 8usize] ; ["Offset of field: __pthread_mutex_s::__lock"] [:: std :: mem :: offset_of ! (__pthread_mutex_s , __lock) - 0usize] ; ["Offset of field: __pthread_mutex_s::__count"] [:: std :: mem :: offset_of ! (__pthread_mutex_s , __count) - 4usize] ; ["Offset of field: __pthread_mutex_s::__owner"] [:: std :: mem :: offset_of ! (__pthread_mutex_s , __owner) - 8usize] ; ["Offset of field: __pthread_mutex_s::__nusers"] [:: std :: mem :: offset_of ! (__pthread_mutex_s , __nusers) - 12usize] ; ["Offset of field: __pthread_mutex_s::__kind"] [:: std :: mem :: offset_of ! (__pthread_mutex_s , __kind) - 16usize] ; ["Offset of field: __pthread_mutex_s::__spins"] [:: std :: mem :: offset_of ! (__pthread_mutex_s , __spins) - 20usize] ; ["Offset of field: __pthread_mutex_s::__unused"] [:: std :: mem :: offset_of ! (__pthread_mutex_s , __unused) - 22usize] ; ["Offset of field: __pthread_mutex_s::__list"] [:: std :: mem :: offset_of ! (__pthread_mutex_s , __list) - 24usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_rwlock_arch_t { pub __readers : :: std :: os :: raw :: c_uint , pub __writers : :: std :: os :: raw :: c_uint , pub __wrphase_futex : :: std :: os :: raw :: c_uint , pub __writers_futex : :: std :: os :: raw :: c_uint , pub __pad3 : :: std :: os :: raw :: c_uint , pub __pad4 : :: std :: os :: raw :: c_uint , pub __cur_writer : :: std :: os :: raw :: c_int , pub __shared : :: std :: os :: raw :: c_int , pub __pad1 : :: std :: os :: raw :: c_ulong , pub __pad2 : :: std :: os :: raw :: c_ulong , pub __flags : :: std :: os :: raw :: c_uint , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __pthread_rwlock_arch_t"] [:: std :: mem :: size_of :: < __pthread_rwlock_arch_t > () - 56usize] ; ["Alignment of __pthread_rwlock_arch_t"] [:: std :: mem :: align_of :: < __pthread_rwlock_arch_t > () - 8usize] ; ["Offset of field: __pthread_rwlock_arch_t::__readers"] [:: std :: mem :: offset_of ! (__pthread_rwlock_arch_t , __readers) - 0usize] ; ["Offset of field: __pthread_rwlock_arch_t::__writers"] [:: std :: mem :: offset_of ! (__pthread_rwlock_arch_t , __writers) - 4usize] ; ["Offset of field: __pthread_rwlock_arch_t::__wrphase_futex"] [:: std :: mem :: offset_of ! (__pthread_rwlock_arch_t , __wrphase_futex) - 8usize] ; ["Offset of field: __pthread_rwlock_arch_t::__writers_futex"] [:: std :: mem :: offset_of ! (__pthread_rwlock_arch_t , __writers_futex) - 12usize] ; ["Offset of field: __pthread_rwlock_arch_t::__pad3"] [:: std :: mem :: offset_of ! (__pthread_rwlock_arch_t , __pad3) - 16usize] ; ["Offset of field: __pthread_rwlock_arch_t::__pad4"] [:: std :: mem :: offset_of ! (__pthread_rwlock_arch_t , __pad4) - 20usize] ; ["Offset of field: __pthread_rwlock_arch_t::__cur_writer"] [:: std :: mem :: offset_of ! (__pthread_rwlock_arch_t , __cur_writer) - 24usize] ; ["Offset of field: __pthread_rwlock_arch_t::__shared"] [:: std :: mem :: offset_of ! (__pthread_rwlock_arch_t , __shared) - 28usize] ; ["Offset of field: __pthread_rwlock_arch_t::__pad1"] [:: std :: mem :: offset_of ! (__pthread_rwlock_arch_t , __pad1) - 32usize] ; ["Offset of field: __pthread_rwlock_arch_t::__pad2"] [:: std :: mem :: offset_of ! (__pthread_rwlock_arch_t , __pad2) - 40usize] ; ["Offset of field: __pthread_rwlock_arch_t::__flags"] [:: std :: mem :: offset_of ! (__pthread_rwlock_arch_t , __flags) - 48usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub struct __pthread_cond_s { pub __wseq : __atomic_wide_counter , pub __g1_start : __atomic_wide_counter , pub __g_size : [:: std :: os :: raw :: c_uint ; 2usize] , pub __g1_orig_size : :: std :: os :: raw :: c_uint , pub __wrefs : :: std :: os :: raw :: c_uint , pub __g_signals : [:: std :: os :: raw :: c_uint ; 2usize] , pub __unused_initialized_1 : :: std :: os :: raw :: c_uint , pub __unused_initialized_2 : :: std :: os :: raw :: c_uint , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __pthread_cond_s"] [:: std :: mem :: size_of :: < __pthread_cond_s > () - 48usize] ; ["Alignment of __pthread_cond_s"] [:: std :: mem :: align_of :: < __pthread_cond_s > () - 8usize] ; ["Offset of field: __pthread_cond_s::__wseq"] [:: std :: mem :: offset_of ! (__pthread_cond_s , __wseq) - 0usize] ; ["Offset of field: __pthread_cond_s::__g1_start"] [:: std :: mem :: offset_of ! (__pthread_cond_s , __g1_start) - 8usize] ; ["Offset of field: __pthread_cond_s::__g_size"] [:: std :: mem :: offset_of ! (__pthread_cond_s , __g_size) - 16usize] ; ["Offset of field: __pthread_cond_s::__g1_orig_size"] [:: std :: mem :: offset_of ! (__pthread_cond_s , __g1_orig_size) - 24usize] ; ["Offset of field: __pthread_cond_s::__wrefs"] [:: std :: mem :: offset_of ! (__pthread_cond_s , __wrefs) - 28usize] ; ["Offset of field: __pthread_cond_s::__g_signals"] [:: std :: mem :: offset_of ! (__pthread_cond_s , __g_signals) - 32usize] ; ["Offset of field: __pthread_cond_s::__unused_initialized_1"] [:: std :: mem :: offset_of ! (__pthread_cond_s , __unused_initialized_1) - 40usize] ; ["Offset of field: __pthread_cond_s::__unused_initialized_2"] [:: std :: mem :: offset_of ! (__pthread_cond_s , __unused_initialized_2) - 44usize] ; } ; pub type __tss_t = :: std :: os :: raw :: c_uint ; pub type __thrd_t = :: std :: os :: raw :: c_ulong ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __once_flag { pub __data : :: std :: os :: raw :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __once_flag"] [:: std :: mem :: size_of :: < __once_flag > () - 4usize] ; ["Alignment of __once_flag"] [:: std :: mem :: align_of :: < __once_flag > () - 4usize] ; ["Offset of field: __once_flag::__data"] [:: std :: mem :: offset_of ! (__once_flag , __data) - 0usize] ; } ; pub type pthread_t = :: std :: os :: raw :: c_ulong ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_mutexattr_t { pub __size : [:: std :: os :: raw :: c_char ; 4usize] , pub __align : :: std :: os :: raw :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_mutexattr_t"] [:: std :: mem :: size_of :: < pthread_mutexattr_t > () - 4usize] ; ["Alignment of pthread_mutexattr_t"] [:: std :: mem :: align_of :: < pthread_mutexattr_t > () - 4usize] ; ["Offset of field: pthread_mutexattr_t::__size"] [:: std :: mem :: offset_of ! (pthread_mutexattr_t , __size) - 0usize] ; ["Offset of field: pthread_mutexattr_t::__align"] [:: std :: mem :: offset_of ! (pthread_mutexattr_t , __align) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_condattr_t { pub __size : [:: std :: os :: raw :: c_char ; 4usize] , pub __align : :: std :: os :: raw :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_condattr_t"] [:: std :: mem :: size_of :: < pthread_condattr_t > () - 4usize] ; ["Alignment of pthread_condattr_t"] [:: std :: mem :: align_of :: < pthread_condattr_t > () - 4usize] ; ["Offset of field: pthread_condattr_t::__size"] [:: std :: mem :: offset_of ! (pthread_condattr_t , __size) - 0usize] ; ["Offset of field: pthread_condattr_t::__align"] [:: std :: mem :: offset_of ! (pthread_condattr_t , __align) - 0usize] ; } ; pub type pthread_key_t = :: std :: os :: raw :: c_uint ; pub type pthread_once_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_attr_t { pub __size : [:: std :: os :: raw :: c_char ; 56usize] , pub __align : :: std :: os :: raw :: c_long , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_attr_t"] [:: std :: mem :: size_of :: < pthread_attr_t > () - 56usize] ; ["Alignment of pthread_attr_t"] [:: std :: mem :: align_of :: < pthread_attr_t > () - 8usize] ; ["Offset of field: pthread_attr_t::__size"] [:: std :: mem :: offset_of ! (pthread_attr_t , __size) - 0usize] ; ["Offset of field: pthread_attr_t::__align"] [:: std :: mem :: offset_of ! (pthread_attr_t , __align) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_mutex_t { pub __data : __pthread_mutex_s , pub __size : [:: std :: os :: raw :: c_char ; 40usize] , pub __align : :: std :: os :: raw :: c_long , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_mutex_t"] [:: std :: mem :: size_of :: < pthread_mutex_t > () - 40usize] ; ["Alignment of pthread_mutex_t"] [:: std :: mem :: align_of :: < pthread_mutex_t > () - 8usize] ; ["Offset of field: pthread_mutex_t::__data"] [:: std :: mem :: offset_of ! (pthread_mutex_t , __data) - 0usize] ; ["Offset of field: pthread_mutex_t::__size"] [:: std :: mem :: offset_of ! (pthread_mutex_t , __size) - 0usize] ; ["Offset of field: pthread_mutex_t::__align"] [:: std :: mem :: offset_of ! (pthread_mutex_t , __align) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_cond_t { pub __data : __pthread_cond_s , pub __size : [:: std :: os :: raw :: c_char ; 48usize] , pub __align : :: std :: os :: raw :: c_longlong , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_cond_t"] [:: std :: mem :: size_of :: < pthread_cond_t > () - 48usize] ; ["Alignment of pthread_cond_t"] [:: std :: mem :: align_of :: < pthread_cond_t > () - 8usize] ; ["Offset of field: pthread_cond_t::__data"] [:: std :: mem :: offset_of ! (pthread_cond_t , __data) - 0usize] ; ["Offset of field: pthread_cond_t::__size"] [:: std :: mem :: offset_of ! (pthread_cond_t , __size) - 0usize] ; ["Offset of field: pthread_cond_t::__align"] [:: std :: mem :: offset_of ! (pthread_cond_t , __align) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_rwlock_t { pub __data : __pthread_rwlock_arch_t , pub __size : [:: std :: os :: raw :: c_char ; 56usize] , pub __align : :: std :: os :: raw :: c_long , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_rwlock_t"] [:: std :: mem :: size_of :: < pthread_rwlock_t > () - 56usize] ; ["Alignment of pthread_rwlock_t"] [:: std :: mem :: align_of :: < pthread_rwlock_t > () - 8usize] ; ["Offset of field: pthread_rwlock_t::__data"] [:: std :: mem :: offset_of ! (pthread_rwlock_t , __data) - 0usize] ; ["Offset of field: pthread_rwlock_t::__size"] [:: std :: mem :: offset_of ! (pthread_rwlock_t , __size) - 0usize] ; ["Offset of field: pthread_rwlock_t::__align"] [:: std :: mem :: offset_of ! (pthread_rwlock_t , __align) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_rwlockattr_t { pub __size : [:: std :: os :: raw :: c_char ; 8usize] , pub __align : :: std :: os :: raw :: c_long , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_rwlockattr_t"] [:: std :: mem :: size_of :: < pthread_rwlockattr_t > () - 8usize] ; ["Alignment of pthread_rwlockattr_t"] [:: std :: mem :: align_of :: < pthread_rwlockattr_t > () - 8usize] ; ["Offset of field: pthread_rwlockattr_t::__size"] [:: std :: mem :: offset_of ! (pthread_rwlockattr_t , __size) - 0usize] ; ["Offset of field: pthread_rwlockattr_t::__align"] [:: std :: mem :: offset_of ! (pthread_rwlockattr_t , __align) - 0usize] ; } ; pub type pthread_spinlock_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_barrier_t { pub __size : [:: std :: os :: raw :: c_char ; 32usize] , pub __align : :: std :: os :: raw :: c_long , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_barrier_t"] [:: std :: mem :: size_of :: < pthread_barrier_t > () - 32usize] ; ["Alignment of pthread_barrier_t"] [:: std :: mem :: align_of :: < pthread_barrier_t > () - 8usize] ; ["Offset of field: pthread_barrier_t::__size"] [:: std :: mem :: offset_of ! (pthread_barrier_t , __size) - 0usize] ; ["Offset of field: pthread_barrier_t::__align"] [:: std :: mem :: offset_of ! (pthread_barrier_t , __align) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_barrierattr_t { pub __size : [:: std :: os :: raw :: c_char ; 4usize] , pub __align : :: std :: os :: raw :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_barrierattr_t"] [:: std :: mem :: size_of :: < pthread_barrierattr_t > () - 4usize] ; ["Alignment of pthread_barrierattr_t"] [:: std :: mem :: align_of :: < pthread_barrierattr_t > () - 4usize] ; ["Offset of field: pthread_barrierattr_t::__size"] [:: std :: mem :: offset_of ! (pthread_barrierattr_t , __size) - 0usize] ; ["Offset of field: pthread_barrierattr_t::__align"] [:: std :: mem :: offset_of ! (pthread_barrierattr_t , __align) - 0usize] ; } ; unsafe extern "C" { pub fn random () -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn srandom (__seed : :: std :: os :: raw :: c_uint) ; } unsafe extern "C" { pub fn initstate (__seed : :: std :: os :: raw :: c_uint , __statebuf : * mut :: std :: os :: raw :: c_char , __statelen : usize) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn setstate (__statebuf : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct random_data { pub fptr : * mut i32 , pub rptr : * mut i32 , pub state : * mut i32 , pub rand_type : :: std :: os :: raw :: c_int , pub rand_deg : :: std :: os :: raw :: c_int , pub rand_sep : :: std :: os :: raw :: c_int , pub end_ptr : * mut i32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of random_data"] [:: std :: mem :: size_of :: < random_data > () - 48usize] ; ["Alignment of random_data"] [:: std :: mem :: align_of :: < random_data > () - 8usize] ; ["Offset of field: random_data::fptr"] [:: std :: mem :: offset_of ! (random_data , fptr) - 0usize] ; ["Offset of field: random_data::rptr"] [:: std :: mem :: offset_of ! (random_data , rptr) - 8usize] ; ["Offset of field: random_data::state"] [:: std :: mem :: offset_of ! (random_data , state) - 16usize] ; ["Offset of field: random_data::rand_type"] [:: std :: mem :: offset_of ! (random_data , rand_type) - 24usize] ; ["Offset of field: random_data::rand_deg"] [:: std :: mem :: offset_of ! (random_data , rand_deg) - 28usize] ; ["Offset of field: random_data::rand_sep"] [:: std :: mem :: offset_of ! (random_data , rand_sep) - 32usize] ; ["Offset of field: random_data::end_ptr"] [:: std :: mem :: offset_of ! (random_data , end_ptr) - 40usize] ; } ; unsafe extern "C" { pub fn random_r (__buf : * mut random_data , __result : * mut i32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn srandom_r (__seed : :: std :: os :: raw :: c_uint , __buf : * mut random_data) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn initstate_r (__seed : :: std :: os :: raw :: c_uint , __statebuf : * mut :: std :: os :: raw :: c_char , __statelen : usize , __buf : * mut random_data) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn setstate_r (__statebuf : * mut :: std :: os :: raw :: c_char , __buf : * mut random_data) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn rand () -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn srand (__seed : :: std :: os :: raw :: c_uint) ; } unsafe extern "C" { pub fn rand_r (__seed : * mut :: std :: os :: raw :: c_uint) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn drand48 () -> f64 ; } unsafe extern "C" { pub fn erand48 (__xsubi : * mut :: std :: os :: raw :: c_ushort) -> f64 ; } unsafe extern "C" { pub fn lrand48 () -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn nrand48 (__xsubi : * mut :: std :: os :: raw :: c_ushort) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn mrand48 () -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn jrand48 (__xsubi : * mut :: std :: os :: raw :: c_ushort) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn srand48 (__seedval : :: std :: os :: raw :: c_long) ; } unsafe extern "C" { pub fn seed48 (__seed16v : * mut :: std :: os :: raw :: c_ushort) -> * mut :: std :: os :: raw :: c_ushort ; } unsafe extern "C" { pub fn lcong48 (__param : * mut :: std :: os :: raw :: c_ushort) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct drand48_data { pub __x : [:: std :: os :: raw :: c_ushort ; 3usize] , pub __old_x : [:: std :: os :: raw :: c_ushort ; 3usize] , pub __c : :: std :: os :: raw :: c_ushort , pub __init : :: std :: os :: raw :: c_ushort , pub __a : :: std :: os :: raw :: c_ulonglong , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of drand48_data"] [:: std :: mem :: size_of :: < drand48_data > () - 24usize] ; ["Alignment of drand48_data"] [:: std :: mem :: align_of :: < drand48_data > () - 8usize] ; ["Offset of field: drand48_data::__x"] [:: std :: mem :: offset_of ! (drand48_data , __x) - 0usize] ; ["Offset of field: drand48_data::__old_x"] [:: std :: mem :: offset_of ! (drand48_data , __old_x) - 6usize] ; ["Offset of field: drand48_data::__c"] [:: std :: mem :: offset_of ! (drand48_data , __c) - 12usize] ; ["Offset of field: drand48_data::__init"] [:: std :: mem :: offset_of ! (drand48_data , __init) - 14usize] ; ["Offset of field: drand48_data::__a"] [:: std :: mem :: offset_of ! (drand48_data , __a) - 16usize] ; } ; unsafe extern "C" { pub fn drand48_r (__buffer : * mut drand48_data , __result : * mut f64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn erand48_r (__xsubi : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data , __result : * mut f64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn lrand48_r (__buffer : * mut drand48_data , __result : * mut :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn nrand48_r (__xsubi : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data , __result : * mut :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mrand48_r (__buffer : * mut drand48_data , __result : * mut :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn jrand48_r (__xsubi : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data , __result : * mut :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn srand48_r (__seedval : :: std :: os :: raw :: c_long , __buffer : * mut drand48_data) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn seed48_r (__seed16v : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn lcong48_r (__param : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn arc4random () -> __uint32_t ; } unsafe extern "C" { pub fn arc4random_buf (__buf : * mut :: std :: os :: raw :: c_void , __size : usize) ; } unsafe extern "C" { pub fn arc4random_uniform (__upper_bound : __uint32_t) -> __uint32_t ; } unsafe extern "C" { pub fn malloc (__size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } unsafe extern "C" { pub fn calloc (__nmemb : :: std :: os :: raw :: c_ulong , __size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } unsafe extern "C" { pub fn realloc (__ptr : * mut :: std :: os :: raw :: c_void , __size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } unsafe extern "C" { pub fn free (__ptr : * mut :: std :: os :: raw :: c_void) ; } unsafe extern "C" { pub fn reallocarray (__ptr : * mut :: std :: os :: raw :: c_void , __nmemb : usize , __size : usize) -> * mut :: std :: os :: raw :: c_void ; } unsafe extern "C" { pub fn alloca (__size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } unsafe extern "C" { pub fn valloc (__size : usize) -> * mut :: std :: os :: raw :: c_void ; } unsafe extern "C" { pub fn posix_memalign (__memptr : * mut * mut :: std :: os :: raw :: c_void , __alignment : usize , __size : usize) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn aligned_alloc (__alignment : :: std :: os :: raw :: c_ulong , __size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } unsafe extern "C" { pub fn abort () -> ! ; } unsafe extern "C" { pub fn atexit (__func : :: std :: option :: Option < unsafe extern "C" fn () >) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn at_quick_exit (__func : :: std :: option :: Option < unsafe extern "C" fn () >) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn on_exit (__func : :: std :: option :: Option < unsafe extern "C" fn (__status : :: std :: os :: raw :: c_int , __arg : * mut :: std :: os :: raw :: c_void) > , __arg : * mut :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn exit (__status : :: std :: os :: raw :: c_int) -> ! ; } unsafe extern "C" { pub fn quick_exit (__status : :: std :: os :: raw :: c_int) -> ! ; } unsafe extern "C" { pub fn _Exit (__status : :: std :: os :: raw :: c_int) -> ! ; } unsafe extern "C" { pub fn getenv (__name : * const :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn putenv (__string : * mut :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn setenv (__name : * const :: std :: os :: raw :: c_char , __value : * const :: std :: os :: raw :: c_char , __replace : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn unsetenv (__name : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn clearenv () -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mktemp (__template : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn mkstemp (__template : * mut :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mkstemps (__template : * mut :: std :: os :: raw :: c_char , __suffixlen : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mkdtemp (__template : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn system (__command : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn realpath (__name : * const :: std :: os :: raw :: c_char , __resolved : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } pub type __compar_fn_t = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * const :: std :: os :: raw :: c_void , arg2 : * const :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int > ; unsafe extern "C" { pub fn bsearch (__key : * const :: std :: os :: raw :: c_void , __base : * const :: std :: os :: raw :: c_void , __nmemb : usize , __size : usize , __compar : __compar_fn_t) -> * mut :: std :: os :: raw :: c_void ; } unsafe extern "C" { pub fn qsort (__base : * mut :: std :: os :: raw :: c_void , __nmemb : usize , __size : usize , __compar : __compar_fn_t) ; } unsafe extern "C" { pub fn abs (__x : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn labs (__x : :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn llabs (__x : :: std :: os :: raw :: c_longlong) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn div (__numer : :: std :: os :: raw :: c_int , __denom : :: std :: os :: raw :: c_int) -> div_t ; } unsafe extern "C" { pub fn ldiv (__numer : :: std :: os :: raw :: c_long , __denom : :: std :: os :: raw :: c_long) -> ldiv_t ; } unsafe extern "C" { pub fn lldiv (__numer : :: std :: os :: raw :: c_longlong , __denom : :: std :: os :: raw :: c_longlong) -> lldiv_t ; } unsafe extern "C" { pub fn ecvt (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn fcvt (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn gcvt (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn qecvt (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn qfcvt (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn qgcvt (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn ecvt_r (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char , __len : usize) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn fcvt_r (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char , __len : usize) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn qecvt_r (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char , __len : usize) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn qfcvt_r (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char , __len : usize) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mblen (__s : * const :: std :: os :: raw :: c_char , __n : usize) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mbtowc (__pwc : * mut wchar_t , __s : * const :: std :: os :: raw :: c_char , __n : usize) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn wctomb (__s : * mut :: std :: os :: raw :: c_char , __wchar : wchar_t) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mbstowcs (__pwcs : * mut wchar_t , __s : * const :: std :: os :: raw :: c_char , __n : usize) -> usize ; } unsafe extern "C" { pub fn wcstombs (__s : * mut :: std :: os :: raw :: c_char , __pwcs : * const wchar_t , __n : usize) -> usize ; } unsafe extern "C" { pub fn rpmatch (__response : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getsubopt (__optionp : * mut * mut :: std :: os :: raw :: c_char , __tokens : * const * mut :: std :: os :: raw :: c_char , __valuep : * mut * mut :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getloadavg (__loadavg : * mut f64 , __nelem : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } # [repr (C)] # [repr (align (16))] # [derive (Debug , Copy , Clone)] pub struct max_align_t { pub __clang_max_align_nonce1 : :: std :: os :: raw :: c_longlong , pub __bindgen_padding_0 : u64 , pub __clang_max_align_nonce2 : u128 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of max_align_t"] [:: std :: mem :: size_of :: < max_align_t > () - 32usize] ; ["Alignment of max_align_t"] [:: std :: mem :: align_of :: < max_align_t > () - 16usize] ; ["Offset of field: max_align_t::__clang_max_align_nonce1"] [:: std :: mem :: offset_of ! (max_align_t , __clang_max_align_nonce1) - 0usize] ; ["Offset of field: max_align_t::__clang_max_align_nonce2"] [:: std :: mem :: offset_of ! (max_align_t , __clang_max_align_nonce2) - 16usize] ; } ; pub type int_least8_t = __int_least8_t ; pub type int_least16_t = __int_least16_t ; pub type int_least32_t = __int_least32_t ; pub type int_least64_t = __int_least64_t ; pub type uint_least8_t = __uint_least8_t ; pub type uint_least16_t = __uint_least16_t ; pub type uint_least32_t = __uint_least32_t ; pub type uint_least64_t = __uint_least64_t ; pub type int_fast8_t = :: std :: os :: raw :: c_schar ; pub type int_fast16_t = :: std :: os :: raw :: c_long ; pub type int_fast32_t = :: std :: os :: raw :: c_long ; pub type int_fast64_t = :: std :: os :: raw :: c_long ; pub type uint_fast8_t = :: std :: os :: raw :: c_uchar ; pub type uint_fast16_t = :: std :: os :: raw :: c_ulong ; pub type uint_fast32_t = :: std :: os :: raw :: c_ulong ; pub type uint_fast64_t = :: std :: os :: raw :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub type __gwchar_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct imaxdiv_t { pub quot : :: std :: os :: raw :: c_long , pub rem : :: std :: os :: raw :: c_long , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of imaxdiv_t"] [:: std :: mem :: size_of :: < imaxdiv_t > () - 16usize] ; ["Alignment of imaxdiv_t"] [:: std :: mem :: align_of :: < imaxdiv_t > () - 8usize] ; ["Offset of field: imaxdiv_t::quot"] [:: std :: mem :: offset_of ! (imaxdiv_t , quot) - 0usize] ; ["Offset of field: imaxdiv_t::rem"] [:: std :: mem :: offset_of ! (imaxdiv_t , rem) - 8usize] ; } ; unsafe extern "C" { pub fn imaxabs (__n : intmax_t) -> intmax_t ; } unsafe extern "C" { pub fn imaxdiv (__numer : intmax_t , __denom : intmax_t) -> imaxdiv_t ; } unsafe extern "C" { pub fn strtoimax (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> intmax_t ; } unsafe extern "C" { pub fn strtoumax (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> uintmax_t ; } unsafe extern "C" { pub fn wcstoimax (__nptr : * const __gwchar_t , __endptr : * mut * mut __gwchar_t , __base : :: std :: os :: raw :: c_int) -> intmax_t ; } unsafe extern "C" { pub fn wcstoumax (__nptr : * const __gwchar_t , __endptr : * mut * mut __gwchar_t , __base : :: std :: os :: raw :: c_int) -> uintmax_t ; } # [doc = "=============================================================================\n                      Compiler and Platform Features\n============================================================================="] pub type i8_ = i8 ; pub type u8_ = u8 ; pub type i16_ = i16 ; pub type u16_ = u16 ; pub type i32_ = i32 ; pub type u32_ = u32 ; pub type i64_ = i64 ; pub type u64_ = u64 ; pub type f32_ = f32 ; pub type f64_ = f64 ; # [doc = "=============================================================================\n                               Xoroshiro 128\n============================================================================="] # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Xoroshiro { pub lo : u64 , pub hi : u64 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Xoroshiro"] [:: std :: mem :: size_of :: < Xoroshiro > () - 16usize] ; ["Alignment of Xoroshiro"] [:: std :: mem :: align_of :: < Xoroshiro > () - 8usize] ; ["Offset of field: Xoroshiro::lo"] [:: std :: mem :: offset_of ! (Xoroshiro , lo) - 0usize] ; ["Offset of field: Xoroshiro::hi"] [:: std :: mem :: offset_of ! (Xoroshiro , hi) - 8usize] ; } ; pub type float_t = f32 ; pub type double_t = f64 ; unsafe extern "C" { pub fn __fpclassify (__value : f64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __signbit (__value : f64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __isinf (__value : f64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __finite (__value : f64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __isnan (__value : f64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __iseqsig (__x : f64 , __y : f64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __issignaling (__value : f64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn acos (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __acos (__x : f64) -> f64 ; } unsafe extern "C" { pub fn asin (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __asin (__x : f64) -> f64 ; } unsafe extern "C" { pub fn atan (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __atan (__x : f64) -> f64 ; } unsafe extern "C" { pub fn atan2 (__y : f64 , __x : f64) -> f64 ; } unsafe extern "C" { pub fn __atan2 (__y : f64 , __x : f64) -> f64 ; } unsafe extern "C" { pub fn cos (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __cos (__x : f64) -> f64 ; } unsafe extern "C" { pub fn sin (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __sin (__x : f64) -> f64 ; } unsafe extern "C" { pub fn tan (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __tan (__x : f64) -> f64 ; } unsafe extern "C" { pub fn cosh (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __cosh (__x : f64) -> f64 ; } unsafe extern "C" { pub fn sinh (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __sinh (__x : f64) -> f64 ; } unsafe extern "C" { pub fn tanh (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __tanh (__x : f64) -> f64 ; } unsafe extern "C" { pub fn acosh (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __acosh (__x : f64) -> f64 ; } unsafe extern "C" { pub fn asinh (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __asinh (__x : f64) -> f64 ; } unsafe extern "C" { pub fn atanh (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __atanh (__x : f64) -> f64 ; } unsafe extern "C" { pub fn exp (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __exp (__x : f64) -> f64 ; } unsafe extern "C" { pub fn frexp (__x : f64 , __exponent : * mut :: std :: os :: raw :: c_int) -> f64 ; } unsafe extern "C" { pub fn __frexp (__x : f64 , __exponent : * mut :: std :: os :: raw :: c_int) -> f64 ; } unsafe extern "C" { pub fn ldexp (__x : f64 , __exponent : :: std :: os :: raw :: c_int) -> f64 ; } unsafe extern "C" { pub fn __ldexp (__x : f64 , __exponent : :: std :: os :: raw :: c_int) -> f64 ; } unsafe extern "C" { pub fn log (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __log (__x : f64) -> f64 ; } unsafe extern "C" { pub fn log10 (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __log10 (__x : f64) -> f64 ; } unsafe extern "C" { pub fn modf (__x : f64 , __iptr : * mut f64) -> f64 ; } unsafe extern "C" { pub fn __modf (__x : f64 , __iptr : * mut f64) -> f64 ; } unsafe extern "C" { pub fn expm1 (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __expm1 (__x : f64) -> f64 ; } unsafe extern "C" { pub fn log1p (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __log1p (__x : f64) -> f64 ; } unsafe extern "C" { pub fn logb (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __logb (__x : f64) -> f64 ; } unsafe extern "C" { pub fn exp2 (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __exp2 (__x : f64) -> f64 ; } unsafe extern "C" { pub fn log2 (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __log2 (__x : f64) -> f64 ; } unsafe extern "C" { pub fn pow (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn __pow (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn sqrt (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __sqrt (__x : f64) -> f64 ; } unsafe extern "C" { pub fn hypot (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn __hypot (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn cbrt (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __cbrt (__x : f64) -> f64 ; } unsafe extern "C" { pub fn ceil (__x : f64) -> f64 ; } unsafe extern "C" { pub fn fabs (__x : f64) -> f64 ; } unsafe extern "C" { pub fn floor (__x : f64) -> f64 ; } unsafe extern "C" { pub fn fmod (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn __fmod (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn isinf (__value : f64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn finite (__value : f64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn drem (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn __drem (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn significand (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __significand (__x : f64) -> f64 ; } unsafe extern "C" { pub fn copysign (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn nan (__tagb : * const :: std :: os :: raw :: c_char) -> f64 ; } unsafe extern "C" { pub fn __nan (__tagb : * const :: std :: os :: raw :: c_char) -> f64 ; } unsafe extern "C" { pub fn isnan (__value : f64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn j0 (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn __j0 (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn j1 (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn __j1 (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn jn (arg1 : :: std :: os :: raw :: c_int , arg2 : f64) -> f64 ; } unsafe extern "C" { pub fn __jn (arg1 : :: std :: os :: raw :: c_int , arg2 : f64) -> f64 ; } unsafe extern "C" { pub fn y0 (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn __y0 (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn y1 (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn __y1 (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn yn (arg1 : :: std :: os :: raw :: c_int , arg2 : f64) -> f64 ; } unsafe extern "C" { pub fn __yn (arg1 : :: std :: os :: raw :: c_int , arg2 : f64) -> f64 ; } unsafe extern "C" { pub fn erf (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn __erf (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn erfc (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn __erfc (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn lgamma (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn __lgamma (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn tgamma (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn __tgamma (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn gamma (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn __gamma (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn lgamma_r (arg1 : f64 , __signgamp : * mut :: std :: os :: raw :: c_int) -> f64 ; } unsafe extern "C" { pub fn __lgamma_r (arg1 : f64 , __signgamp : * mut :: std :: os :: raw :: c_int) -> f64 ; } unsafe extern "C" { pub fn rint (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __rint (__x : f64) -> f64 ; } unsafe extern "C" { pub fn nextafter (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn __nextafter (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn nexttoward (__x : f64 , __y : u128) -> f64 ; } unsafe extern "C" { pub fn __nexttoward (__x : f64 , __y : u128) -> f64 ; } unsafe extern "C" { pub fn remainder (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn __remainder (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn scalbn (__x : f64 , __n : :: std :: os :: raw :: c_int) -> f64 ; } unsafe extern "C" { pub fn __scalbn (__x : f64 , __n : :: std :: os :: raw :: c_int) -> f64 ; } unsafe extern "C" { pub fn ilogb (__x : f64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __ilogb (__x : f64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn scalbln (__x : f64 , __n : :: std :: os :: raw :: c_long) -> f64 ; } unsafe extern "C" { pub fn __scalbln (__x : f64 , __n : :: std :: os :: raw :: c_long) -> f64 ; } unsafe extern "C" { pub fn nearbyint (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __nearbyint (__x : f64) -> f64 ; } unsafe extern "C" { pub fn round (__x : f64) -> f64 ; } unsafe extern "C" { pub fn trunc (__x : f64) -> f64 ; } unsafe extern "C" { pub fn remquo (__x : f64 , __y : f64 , __quo : * mut :: std :: os :: raw :: c_int) -> f64 ; } unsafe extern "C" { pub fn __remquo (__x : f64 , __y : f64 , __quo : * mut :: std :: os :: raw :: c_int) -> f64 ; } unsafe extern "C" { pub fn lrint (__x : f64) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn __lrint (__x : f64) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn llrint (__x : f64) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn __llrint (__x : f64) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn lround (__x : f64) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn __lround (__x : f64) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn llround (__x : f64) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn __llround (__x : f64) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn fdim (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn __fdim (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn fmax (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn fmin (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn fma (__x : f64 , __y : f64 , __z : f64) -> f64 ; } unsafe extern "C" { pub fn __fma (__x : f64 , __y : f64 , __z : f64) -> f64 ; } unsafe extern "C" { pub fn scalb (__x : f64 , __n : f64) -> f64 ; } unsafe extern "C" { pub fn __scalb (__x : f64 , __n : f64) -> f64 ; } unsafe extern "C" { pub fn __fpclassifyf (__value : f32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __signbitf (__value : f32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __isinff (__value : f32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __finitef (__value : f32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __isnanf (__value : f32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __iseqsigf (__x : f32 , __y : f32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __issignalingf (__value : f32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn acosf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __acosf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn asinf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __asinf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn atanf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __atanf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn atan2f (__y : f32 , __x : f32) -> f32 ; } unsafe extern "C" { pub fn __atan2f (__y : f32 , __x : f32) -> f32 ; } unsafe extern "C" { pub fn cosf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __cosf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn sinf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __sinf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn tanf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __tanf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn coshf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __coshf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn sinhf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __sinhf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn tanhf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __tanhf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn acoshf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __acoshf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn asinhf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __asinhf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn atanhf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __atanhf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn expf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __expf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn frexpf (__x : f32 , __exponent : * mut :: std :: os :: raw :: c_int) -> f32 ; } unsafe extern "C" { pub fn __frexpf (__x : f32 , __exponent : * mut :: std :: os :: raw :: c_int) -> f32 ; } unsafe extern "C" { pub fn ldexpf (__x : f32 , __exponent : :: std :: os :: raw :: c_int) -> f32 ; } unsafe extern "C" { pub fn __ldexpf (__x : f32 , __exponent : :: std :: os :: raw :: c_int) -> f32 ; } unsafe extern "C" { pub fn logf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __logf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn log10f (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __log10f (__x : f32) -> f32 ; } unsafe extern "C" { pub fn modff (__x : f32 , __iptr : * mut f32) -> f32 ; } unsafe extern "C" { pub fn __modff (__x : f32 , __iptr : * mut f32) -> f32 ; } unsafe extern "C" { pub fn expm1f (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __expm1f (__x : f32) -> f32 ; } unsafe extern "C" { pub fn log1pf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __log1pf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn logbf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __logbf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn exp2f (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __exp2f (__x : f32) -> f32 ; } unsafe extern "C" { pub fn log2f (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __log2f (__x : f32) -> f32 ; } unsafe extern "C" { pub fn powf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn __powf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn sqrtf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __sqrtf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn hypotf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn __hypotf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn cbrtf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __cbrtf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn ceilf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn fabsf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn floorf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn fmodf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn __fmodf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn isinff (__value : f32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn finitef (__value : f32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn dremf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn __dremf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn significandf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __significandf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn copysignf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn nanf (__tagb : * const :: std :: os :: raw :: c_char) -> f32 ; } unsafe extern "C" { pub fn __nanf (__tagb : * const :: std :: os :: raw :: c_char) -> f32 ; } unsafe extern "C" { pub fn isnanf (__value : f32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn j0f (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn __j0f (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn j1f (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn __j1f (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn jnf (arg1 : :: std :: os :: raw :: c_int , arg2 : f32) -> f32 ; } unsafe extern "C" { pub fn __jnf (arg1 : :: std :: os :: raw :: c_int , arg2 : f32) -> f32 ; } unsafe extern "C" { pub fn y0f (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn __y0f (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn y1f (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn __y1f (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn ynf (arg1 : :: std :: os :: raw :: c_int , arg2 : f32) -> f32 ; } unsafe extern "C" { pub fn __ynf (arg1 : :: std :: os :: raw :: c_int , arg2 : f32) -> f32 ; } unsafe extern "C" { pub fn erff (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn __erff (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn erfcf (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn __erfcf (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn lgammaf (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn __lgammaf (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn tgammaf (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn __tgammaf (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn gammaf (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn __gammaf (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn lgammaf_r (arg1 : f32 , __signgamp : * mut :: std :: os :: raw :: c_int) -> f32 ; } unsafe extern "C" { pub fn __lgammaf_r (arg1 : f32 , __signgamp : * mut :: std :: os :: raw :: c_int) -> f32 ; } unsafe extern "C" { pub fn rintf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __rintf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn nextafterf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn __nextafterf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn nexttowardf (__x : f32 , __y : u128) -> f32 ; } unsafe extern "C" { pub fn __nexttowardf (__x : f32 , __y : u128) -> f32 ; } unsafe extern "C" { pub fn remainderf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn __remainderf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn scalbnf (__x : f32 , __n : :: std :: os :: raw :: c_int) -> f32 ; } unsafe extern "C" { pub fn __scalbnf (__x : f32 , __n : :: std :: os :: raw :: c_int) -> f32 ; } unsafe extern "C" { pub fn ilogbf (__x : f32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __ilogbf (__x : f32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn scalblnf (__x : f32 , __n : :: std :: os :: raw :: c_long) -> f32 ; } unsafe extern "C" { pub fn __scalblnf (__x : f32 , __n : :: std :: os :: raw :: c_long) -> f32 ; } unsafe extern "C" { pub fn nearbyintf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __nearbyintf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn roundf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn truncf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn remquof (__x : f32 , __y : f32 , __quo : * mut :: std :: os :: raw :: c_int) -> f32 ; } unsafe extern "C" { pub fn __remquof (__x : f32 , __y : f32 , __quo : * mut :: std :: os :: raw :: c_int) -> f32 ; } unsafe extern "C" { pub fn lrintf (__x : f32) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn __lrintf (__x : f32) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn llrintf (__x : f32) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn __llrintf (__x : f32) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn lroundf (__x : f32) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn __lroundf (__x : f32) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn llroundf (__x : f32) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn __llroundf (__x : f32) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn fdimf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn __fdimf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn fmaxf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn fminf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn fmaf (__x : f32 , __y : f32 , __z : f32) -> f32 ; } unsafe extern "C" { pub fn __fmaf (__x : f32 , __y : f32 , __z : f32) -> f32 ; } unsafe extern "C" { pub fn scalbf (__x : f32 , __n : f32) -> f32 ; } unsafe extern "C" { pub fn __scalbf (__x : f32 , __n : f32) -> f32 ; } unsafe extern "C" { pub fn __fpclassifyl (__value : u128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __signbitl (__value : u128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __isinfl (__value : u128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __finitel (__value : u128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __isnanl (__value : u128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __iseqsigl (__x : u128 , __y : u128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __issignalingl (__value : u128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn acosl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __acosl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn asinl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __asinl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn atanl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __atanl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn atan2l (__y : u128 , __x : u128) -> u128 ; } unsafe extern "C" { pub fn __atan2l (__y : u128 , __x : u128) -> u128 ; } unsafe extern "C" { pub fn cosl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __cosl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn sinl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __sinl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn tanl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __tanl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn coshl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __coshl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn sinhl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __sinhl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn tanhl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __tanhl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn acoshl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __acoshl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn asinhl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __asinhl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn atanhl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __atanhl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn expl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __expl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn frexpl (__x : u128 , __exponent : * mut :: std :: os :: raw :: c_int) -> u128 ; } unsafe extern "C" { pub fn __frexpl (__x : u128 , __exponent : * mut :: std :: os :: raw :: c_int) -> u128 ; } unsafe extern "C" { pub fn ldexpl (__x : u128 , __exponent : :: std :: os :: raw :: c_int) -> u128 ; } unsafe extern "C" { pub fn __ldexpl (__x : u128 , __exponent : :: std :: os :: raw :: c_int) -> u128 ; } unsafe extern "C" { pub fn logl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __logl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn log10l (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __log10l (__x : u128) -> u128 ; } unsafe extern "C" { pub fn modfl (__x : u128 , __iptr : * mut u128) -> u128 ; } unsafe extern "C" { pub fn __modfl (__x : u128 , __iptr : * mut u128) -> u128 ; } unsafe extern "C" { pub fn expm1l (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __expm1l (__x : u128) -> u128 ; } unsafe extern "C" { pub fn log1pl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __log1pl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn logbl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __logbl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn exp2l (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __exp2l (__x : u128) -> u128 ; } unsafe extern "C" { pub fn log2l (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __log2l (__x : u128) -> u128 ; } unsafe extern "C" { pub fn powl (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn __powl (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn sqrtl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __sqrtl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn hypotl (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn __hypotl (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn cbrtl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __cbrtl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn ceill (__x : u128) -> u128 ; } unsafe extern "C" { pub fn fabsl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn floorl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn fmodl (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn __fmodl (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn isinfl (__value : u128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn finitel (__value : u128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn dreml (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn __dreml (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn significandl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __significandl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn copysignl (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn nanl (__tagb : * const :: std :: os :: raw :: c_char) -> u128 ; } unsafe extern "C" { pub fn __nanl (__tagb : * const :: std :: os :: raw :: c_char) -> u128 ; } unsafe extern "C" { pub fn isnanl (__value : u128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn j0l (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn __j0l (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn j1l (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn __j1l (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn jnl (arg1 : :: std :: os :: raw :: c_int , arg2 : u128) -> u128 ; } unsafe extern "C" { pub fn __jnl (arg1 : :: std :: os :: raw :: c_int , arg2 : u128) -> u128 ; } unsafe extern "C" { pub fn y0l (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn __y0l (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn y1l (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn __y1l (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn ynl (arg1 : :: std :: os :: raw :: c_int , arg2 : u128) -> u128 ; } unsafe extern "C" { pub fn __ynl (arg1 : :: std :: os :: raw :: c_int , arg2 : u128) -> u128 ; } unsafe extern "C" { pub fn erfl (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn __erfl (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn erfcl (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn __erfcl (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn lgammal (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn __lgammal (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn tgammal (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn __tgammal (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn gammal (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn __gammal (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn lgammal_r (arg1 : u128 , __signgamp : * mut :: std :: os :: raw :: c_int) -> u128 ; } unsafe extern "C" { pub fn __lgammal_r (arg1 : u128 , __signgamp : * mut :: std :: os :: raw :: c_int) -> u128 ; } unsafe extern "C" { pub fn rintl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __rintl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn nextafterl (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn __nextafterl (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn nexttowardl (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn __nexttowardl (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn remainderl (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn __remainderl (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn scalbnl (__x : u128 , __n : :: std :: os :: raw :: c_int) -> u128 ; } unsafe extern "C" { pub fn __scalbnl (__x : u128 , __n : :: std :: os :: raw :: c_int) -> u128 ; } unsafe extern "C" { pub fn ilogbl (__x : u128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __ilogbl (__x : u128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn scalblnl (__x : u128 , __n : :: std :: os :: raw :: c_long) -> u128 ; } unsafe extern "C" { pub fn __scalblnl (__x : u128 , __n : :: std :: os :: raw :: c_long) -> u128 ; } unsafe extern "C" { pub fn nearbyintl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __nearbyintl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn roundl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn truncl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn remquol (__x : u128 , __y : u128 , __quo : * mut :: std :: os :: raw :: c_int) -> u128 ; } unsafe extern "C" { pub fn __remquol (__x : u128 , __y : u128 , __quo : * mut :: std :: os :: raw :: c_int) -> u128 ; } unsafe extern "C" { pub fn lrintl (__x : u128) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn __lrintl (__x : u128) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn llrintl (__x : u128) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn __llrintl (__x : u128) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn lroundl (__x : u128) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn __lroundl (__x : u128) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn llroundl (__x : u128) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn __llroundl (__x : u128) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn fdiml (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn __fdiml (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn fmaxl (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn fminl (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn fmal (__x : u128 , __y : u128 , __z : u128) -> u128 ; } unsafe extern "C" { pub fn __fmal (__x : u128 , __y : u128 , __z : u128) -> u128 ; } unsafe extern "C" { pub fn scalbl (__x : u128 , __n : u128) -> u128 ; } unsafe extern "C" { pub fn __scalbl (__x : u128 , __n : u128) -> u128 ; } unsafe extern "C" { pub fn __fpclassifyf128 (__value : _Float128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __signbitf128 (__value : _Float128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __isinff128 (__value : _Float128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __finitef128 (__value : _Float128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __isnanf128 (__value : _Float128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __iseqsigf128 (__x : _Float128 , __y : _Float128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __issignalingf128 (__value : _Float128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub static mut signgam : :: std :: os :: raw :: c_int ; } pub const FP_NAN : _bindgen_ty_1 = _bindgen_ty_1 (0) ; pub const FP_INFINITE : _bindgen_ty_1 = _bindgen_ty_1 (1) ; pub const FP_ZERO : _bindgen_ty_1 = _bindgen_ty_1 (2) ; pub const FP_SUBNORMAL : _bindgen_ty_1 = _bindgen_ty_1 (3) ; pub const FP_NORMAL : _bindgen_ty_1 = _bindgen_ty_1 (4) ; # [repr (transparent)] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct _bindgen_ty_1 (pub :: std :: os :: raw :: c_uint) ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct PerlinNoise { pub d : [u8 ; 257usize] , pub h2 : u8 , pub a : f64 , pub b : f64 , pub c : f64 , pub amplitude : f64 , pub lacunarity : f64 , pub d2 : f64 , pub t2 : f64 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of PerlinNoise"] [:: std :: mem :: size_of :: < PerlinNoise > () - 320usize] ; ["Alignment of PerlinNoise"] [:: std :: mem :: align_of :: < PerlinNoise > () - 8usize] ; ["Offset of field: PerlinNoise::d"] [:: std :: mem :: offset_of ! (PerlinNoise , d) - 0usize] ; ["Offset of field: PerlinNoise::h2"] [:: std :: mem :: offset_of ! (PerlinNoise , h2) - 257usize] ; ["Offset of field: PerlinNoise::a"] [:: std :: mem :: offset_of ! (PerlinNoise , a) - 264usize] ; ["Offset of field: PerlinNoise::b"] [:: std :: mem :: offset_of ! (PerlinNoise , b) - 272usize] ; ["Offset of field: PerlinNoise::c"] [:: std :: mem :: offset_of ! (PerlinNoise , c) - 280usize] ; ["Offset of field: PerlinNoise::amplitude"] [:: std :: mem :: offset_of ! (PerlinNoise , amplitude) - 288usize] ; ["Offset of field: PerlinNoise::lacunarity"] [:: std :: mem :: offset_of ! (PerlinNoise , lacunarity) - 296usize] ; ["Offset of field: PerlinNoise::d2"] [:: std :: mem :: offset_of ! (PerlinNoise , d2) - 304usize] ; ["Offset of field: PerlinNoise::t2"] [:: std :: mem :: offset_of ! (PerlinNoise , t2) - 312usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct OctaveNoise { pub octcnt : :: std :: os :: raw :: c_int , pub octaves : * mut PerlinNoise , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of OctaveNoise"] [:: std :: mem :: size_of :: < OctaveNoise > () - 16usize] ; ["Alignment of OctaveNoise"] [:: std :: mem :: align_of :: < OctaveNoise > () - 8usize] ; ["Offset of field: OctaveNoise::octcnt"] [:: std :: mem :: offset_of ! (OctaveNoise , octcnt) - 0usize] ; ["Offset of field: OctaveNoise::octaves"] [:: std :: mem :: offset_of ! (OctaveNoise , octaves) - 8usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct DoublePerlinNoise { pub amplitude : f64 , pub octA : OctaveNoise , pub octB : OctaveNoise , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of DoublePerlinNoise"] [:: std :: mem :: size_of :: < DoublePerlinNoise > () - 40usize] ; ["Alignment of DoublePerlinNoise"] [:: std :: mem :: align_of :: < DoublePerlinNoise > () - 8usize] ; ["Offset of field: DoublePerlinNoise::amplitude"] [:: std :: mem :: offset_of ! (DoublePerlinNoise , amplitude) - 0usize] ; ["Offset of field: DoublePerlinNoise::octA"] [:: std :: mem :: offset_of ! (DoublePerlinNoise , octA) - 8usize] ; ["Offset of field: DoublePerlinNoise::octB"] [:: std :: mem :: offset_of ! (DoublePerlinNoise , octB) - 24usize] ; } ; unsafe extern "C" { # [doc = " Perlin noise"] pub fn perlinInit (noise : * mut PerlinNoise , seed : * mut u64) ; } unsafe extern "C" { pub fn xPerlinInit (noise : * mut PerlinNoise , xr : * mut Xoroshiro) ; } unsafe extern "C" { pub fn samplePerlin (noise : * const PerlinNoise , x : f64 , y : f64 , z : f64 , yamp : f64 , ymin : f64) -> f64 ; } unsafe extern "C" { pub fn sampleSimplex2D (noise : * const PerlinNoise , x : f64 , y : f64) -> f64 ; } unsafe extern "C" { # [doc = " Perlin Octaves"] pub fn octaveInit (noise : * mut OctaveNoise , seed : * mut u64 , octaves : * mut PerlinNoise , omin : :: std :: os :: raw :: c_int , len : :: std :: os :: raw :: c_int) ; } unsafe extern "C" { pub fn octaveInitBeta (noise : * mut OctaveNoise , seed : * mut u64 , octaves : * mut PerlinNoise , octcnt : :: std :: os :: raw :: c_int , lac : f64 , lacMul : f64 , persist : f64 , persistMul : f64) ; } unsafe extern "C" { pub fn xOctaveInit (noise : * mut OctaveNoise , xr : * mut Xoroshiro , octaves : * mut PerlinNoise , amplitudes : * const f64 , omin : :: std :: os :: raw :: c_int , len : :: std :: os :: raw :: c_int , nmax : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn sampleOctave (noise : * const OctaveNoise , x : f64 , y : f64 , z : f64) -> f64 ; } unsafe extern "C" { pub fn sampleOctaveAmp (noise : * const OctaveNoise , x : f64 , y : f64 , z : f64 , yamp : f64 , ymin : f64 , ydefault : :: std :: os :: raw :: c_int) -> f64 ; } unsafe extern "C" { pub fn sampleOctave2D (noise : * const OctaveNoise , x : f64 , z : f64) -> f64 ; } unsafe extern "C" { pub fn sampleOctaveBeta17Biome (noise : * const OctaveNoise , x : f64 , z : f64) -> f64 ; } unsafe extern "C" { pub fn sampleOctaveBeta17Terrain (noise : * const OctaveNoise , v : * mut f64 , x : f64 , z : f64 , yLacFlag : :: std :: os :: raw :: c_int , lacmin : f64) ; } unsafe extern "C" { # [doc = " Double Perlin"] pub fn doublePerlinInit (noise : * mut DoublePerlinNoise , seed : * mut u64 , octavesA : * mut PerlinNoise , octavesB : * mut PerlinNoise , omin : :: std :: os :: raw :: c_int , len : :: std :: os :: raw :: c_int) ; } unsafe extern "C" { pub fn xDoublePerlinInit (noise : * mut DoublePerlinNoise , xr : * mut Xoroshiro , octaves : * mut PerlinNoise , amplitudes : * const f64 , omin : :: std :: os :: raw :: c_int , len : :: std :: os :: raw :: c_int , nmax : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn sampleDoublePerlin (noise : * const DoublePerlinNoise , x : f64 , y : f64 , z : f64) -> f64 ; } impl MCVersion { pub const MC_UNDEF : MCVersion = MCVersion (0) ; } impl MCVersion { pub const MC_B1_7 : MCVersion = MCVersion (1) ; } impl MCVersion { pub const MC_B1_8 : MCVersion = MCVersion (2) ; } impl MCVersion { pub const MC_1_0_0 : MCVersion = MCVersion (3) ; } impl MCVersion { pub const MC_1_0 : MCVersion = MCVersion (3) ; } impl MCVersion { pub const MC_1_1_0 : MCVersion = MCVersion (4) ; } impl MCVersion { pub const MC_1_1 : MCVersion = MCVersion (4) ; } impl MCVersion { pub const MC_1_2_5 : MCVersion = MCVersion (5) ; } impl MCVersion { pub const MC_1_2 : MCVersion = MCVersion (5) ; } impl MCVersion { pub const MC_1_3_2 : MCVersion = MCVersion (6) ; } impl MCVersion { pub const MC_1_3 : MCVersion = MCVersion (6) ; } impl MCVersion { pub const MC_1_4_7 : MCVersion = MCVersion (7) ; } impl MCVersion { pub const MC_1_4 : MCVersion = MCVersion (7) ; } impl MCVersion { pub const MC_1_5_2 : MCVersion = MCVersion (8) ; } impl MCVersion { pub const MC_1_5 : MCVersion = MCVersion (8) ; } impl MCVersion { pub const MC_1_6_4 : MCVersion = MCVersion (9) ; } impl MCVersion { pub const MC_1_6 : MCVersion = MCVersion (9) ; } impl MCVersion { pub const MC_1_7_10 : MCVersion = MCVersion (10) ; } impl MCVersion { pub const MC_1_7 : MCVersion = MCVersion (10) ; } impl MCVersion { pub const MC_1_8_9 : MCVersion = MCVersion (11) ; } impl MCVersion { pub const MC_1_8 : MCVersion = MCVersion (11) ; } impl MCVersion { pub const MC_1_9_4 : MCVersion = MCVersion (12) ; } impl MCVersion { pub const MC_1_9 : MCVersion = MCVersion (12) ; } impl MCVersion { pub const MC_1_10_2 : MCVersion = MCVersion (13) ; } impl MCVersion { pub const MC_1_10 : MCVersion = MCVersion (13) ; } impl MCVersion { pub const MC_1_11_2 : MCVersion = MCVersion (14) ; } impl MCVersion { pub const MC_1_11 : MCVersion = MCVersion (14) ; } impl MCVersion { pub const MC_1_12_2 : MCVersion = MCVersion (15) ; } impl MCVersion { pub const MC_1_12 : MCVersion = MCVersion (15) ; } impl MCVersion { pub const MC_1_13_2 : MCVersion = MCVersion (16) ; } impl MCVersion { pub const MC_1_13 : MCVersion = MCVersion (16) ; } impl MCVersion { pub const MC_1_14_4 : MCVersion = MCVersion (17) ; } impl MCVersion { pub const MC_1_14 : MCVersion = MCVersion (17) ; } impl MCVersion { pub const MC_1_15_2 : MCVersion = MCVersion (18) ; } impl MCVersion { pub const MC_1_15 : MCVersion = MCVersion (18) ; } impl MCVersion { pub const MC_1_16_1 : MCVersion = MCVersion (19) ; } impl MCVersion { pub const MC_1_16_5 : MCVersion = MCVersion (20) ; } impl MCVersion { pub const MC_1_16 : MCVersion = MCVersion (20) ; } impl MCVersion { pub const MC_1_17_1 : MCVersion = MCVersion (21) ; } impl MCVersion { pub const MC_1_17 : MCVersion = MCVersion (21) ; } impl MCVersion { pub const MC_1_18_2 : MCVersion = MCVersion (22) ; } impl MCVersion { pub const MC_1_18 : MCVersion = MCVersion (22) ; } impl MCVersion { pub const MC_1_19_2 : MCVersion = MCVersion (23) ; } impl MCVersion { pub const MC_1_19_4 : MCVersion = MCVersion (24) ; } impl MCVersion { pub const MC_1_19 : MCVersion = MCVersion (24) ; } impl MCVersion { pub const MC_1_20_6 : MCVersion = MCVersion (25) ; } impl MCVersion { pub const MC_1_20 : MCVersion = MCVersion (25) ; } impl MCVersion { pub const MC_1_21_1 : MCVersion = MCVersion (26) ; } impl MCVersion { pub const MC_1_21_3 : MCVersion = MCVersion (27) ; } impl MCVersion { pub const MC_1_21_WD : MCVersion = MCVersion (28) ; } impl MCVersion { pub const MC_1_21 : MCVersion = MCVersion (28) ; } impl MCVersion { pub const MC_NEWEST : MCVersion = MCVersion (28) ; } # [repr (transparent)] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct MCVersion (pub :: std :: os :: raw :: c_uint) ; impl Dimension { pub const DIM_NETHER : Dimension = Dimension (- 1) ; } impl Dimension { pub const DIM_OVERWORLD : Dimension = Dimension (0) ; } impl Dimension { pub const DIM_END : Dimension = Dimension (1) ; } impl Dimension { pub const DIM_UNDEF : Dimension = Dimension (1000) ; } # [repr (transparent)] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct Dimension (pub :: std :: os :: raw :: c_int) ; impl BiomeID { pub const none : BiomeID = BiomeID (- 1) ; } impl BiomeID { pub const ocean : BiomeID = BiomeID (0) ; } impl BiomeID { pub const plains : BiomeID = BiomeID (1) ; } impl BiomeID { pub const desert : BiomeID = BiomeID (2) ; } impl BiomeID { pub const mountains : BiomeID = BiomeID (3) ; } impl BiomeID { pub const extremeHills : BiomeID = BiomeID (3) ; } impl BiomeID { pub const forest : BiomeID = BiomeID (4) ; } impl BiomeID { pub const taiga : BiomeID = BiomeID (5) ; } impl BiomeID { pub const swamp : BiomeID = BiomeID (6) ; } impl BiomeID { pub const swampland : BiomeID = BiomeID (6) ; } impl BiomeID { pub const river : BiomeID = BiomeID (7) ; } impl BiomeID { pub const nether_wastes : BiomeID = BiomeID (8) ; } impl BiomeID { pub const hell : BiomeID = BiomeID (8) ; } impl BiomeID { pub const the_end : BiomeID = BiomeID (9) ; } impl BiomeID { pub const sky : BiomeID = BiomeID (9) ; } impl BiomeID { pub const frozen_ocean : BiomeID = BiomeID (10) ; } impl BiomeID { pub const frozenOcean : BiomeID = BiomeID (10) ; } impl BiomeID { pub const frozen_river : BiomeID = BiomeID (11) ; } impl BiomeID { pub const frozenRiver : BiomeID = BiomeID (11) ; } impl BiomeID { pub const snowy_tundra : BiomeID = BiomeID (12) ; } impl BiomeID { pub const icePlains : BiomeID = BiomeID (12) ; } impl BiomeID { pub const snowy_mountains : BiomeID = BiomeID (13) ; } impl BiomeID { pub const iceMountains : BiomeID = BiomeID (13) ; } impl BiomeID { pub const mushroom_fields : BiomeID = BiomeID (14) ; } impl BiomeID { pub const mushroomIsland : BiomeID = BiomeID (14) ; } impl BiomeID { pub const mushroom_field_shore : BiomeID = BiomeID (15) ; } impl BiomeID { pub const mushroomIslandShore : BiomeID = BiomeID (15) ; } impl BiomeID { pub const beach : BiomeID = BiomeID (16) ; } impl BiomeID { pub const desert_hills : BiomeID = BiomeID (17) ; } impl BiomeID { pub const desertHills : BiomeID = BiomeID (17) ; } impl BiomeID { pub const wooded_hills : BiomeID = BiomeID (18) ; } impl BiomeID { pub const forestHills : BiomeID = BiomeID (18) ; } impl BiomeID { pub const taiga_hills : BiomeID = BiomeID (19) ; } impl BiomeID { pub const taigaHills : BiomeID = BiomeID (19) ; } impl BiomeID { pub const mountain_edge : BiomeID = BiomeID (20) ; } impl BiomeID { pub const extremeHillsEdge : BiomeID = BiomeID (20) ; } impl BiomeID { pub const jungle : BiomeID = BiomeID (21) ; } impl BiomeID { pub const jungle_hills : BiomeID = BiomeID (22) ; } impl BiomeID { pub const jungleHills : BiomeID = BiomeID (22) ; } impl BiomeID { pub const jungle_edge : BiomeID = BiomeID (23) ; } impl BiomeID { pub const jungleEdge : BiomeID = BiomeID (23) ; } impl BiomeID { pub const deep_ocean : BiomeID = BiomeID (24) ; } impl BiomeID { pub const deepOcean : BiomeID = BiomeID (24) ; } impl BiomeID { pub const stone_shore : BiomeID = BiomeID (25) ; } impl BiomeID { pub const stoneBeach : BiomeID = BiomeID (25) ; } impl BiomeID { pub const snowy_beach : BiomeID = BiomeID (26) ; } impl BiomeID { pub const coldBeach : BiomeID = BiomeID (26) ; } impl BiomeID { pub const birch_forest : BiomeID = BiomeID (27) ; } impl BiomeID { pub const birchForest : BiomeID = BiomeID (27) ; } impl BiomeID { pub const birch_forest_hills : BiomeID = BiomeID (28) ; } impl BiomeID { pub const birchForestHills : BiomeID = BiomeID (28) ; } impl BiomeID { pub const dark_forest : BiomeID = BiomeID (29) ; } impl BiomeID { pub const roofedForest : BiomeID = BiomeID (29) ; } impl BiomeID { pub const snowy_taiga : BiomeID = BiomeID (30) ; } impl BiomeID { pub const coldTaiga : BiomeID = BiomeID (30) ; } impl BiomeID { pub const snowy_taiga_hills : BiomeID = BiomeID (31) ; } impl BiomeID { pub const coldTaigaHills : BiomeID = BiomeID (31) ; } impl BiomeID { pub const giant_tree_taiga : BiomeID = BiomeID (32) ; } impl BiomeID { pub const megaTaiga : BiomeID = BiomeID (32) ; } impl BiomeID { pub const giant_tree_taiga_hills : BiomeID = BiomeID (33) ; } impl BiomeID { pub const megaTaigaHills : BiomeID = BiomeID (33) ; } impl BiomeID { pub const wooded_mountains : BiomeID = BiomeID (34) ; } impl BiomeID { pub const extremeHillsPlus : BiomeID = BiomeID (34) ; } impl BiomeID { pub const savanna : BiomeID = BiomeID (35) ; } impl BiomeID { pub const savanna_plateau : BiomeID = BiomeID (36) ; } impl BiomeID { pub const savannaPlateau : BiomeID = BiomeID (36) ; } impl BiomeID { pub const badlands : BiomeID = BiomeID (37) ; } impl BiomeID { pub const mesa : BiomeID = BiomeID (37) ; } impl BiomeID { pub const wooded_badlands_plateau : BiomeID = BiomeID (38) ; } impl BiomeID { pub const mesaPlateau_F : BiomeID = BiomeID (38) ; } impl BiomeID { pub const badlands_plateau : BiomeID = BiomeID (39) ; } impl BiomeID { pub const mesaPlateau : BiomeID = BiomeID (39) ; } impl BiomeID { pub const small_end_islands : BiomeID = BiomeID (40) ; } impl BiomeID { pub const end_midlands : BiomeID = BiomeID (41) ; } impl BiomeID { pub const end_highlands : BiomeID = BiomeID (42) ; } impl BiomeID { pub const end_barrens : BiomeID = BiomeID (43) ; } impl BiomeID { pub const warm_ocean : BiomeID = BiomeID (44) ; } impl BiomeID { pub const warmOcean : BiomeID = BiomeID (44) ; } impl BiomeID { pub const lukewarm_ocean : BiomeID = BiomeID (45) ; } impl BiomeID { pub const lukewarmOcean : BiomeID = BiomeID (45) ; } impl BiomeID { pub const cold_ocean : BiomeID = BiomeID (46) ; } impl BiomeID { pub const coldOcean : BiomeID = BiomeID (46) ; } impl BiomeID { pub const deep_warm_ocean : BiomeID = BiomeID (47) ; } impl BiomeID { pub const warmDeepOcean : BiomeID = BiomeID (47) ; } impl BiomeID { pub const deep_lukewarm_ocean : BiomeID = BiomeID (48) ; } impl BiomeID { pub const lukewarmDeepOcean : BiomeID = BiomeID (48) ; } impl BiomeID { pub const deep_cold_ocean : BiomeID = BiomeID (49) ; } impl BiomeID { pub const coldDeepOcean : BiomeID = BiomeID (49) ; } impl BiomeID { pub const deep_frozen_ocean : BiomeID = BiomeID (50) ; } impl BiomeID { pub const frozenDeepOcean : BiomeID = BiomeID (50) ; } impl BiomeID { pub const seasonal_forest : BiomeID = BiomeID (51) ; } impl BiomeID { pub const rainforest : BiomeID = BiomeID (52) ; } impl BiomeID { pub const shrubland : BiomeID = BiomeID (53) ; } impl BiomeID { pub const the_void : BiomeID = BiomeID (127) ; } impl BiomeID { pub const sunflower_plains : BiomeID = BiomeID (129) ; } impl BiomeID { pub const desert_lakes : BiomeID = BiomeID (130) ; } impl BiomeID { pub const gravelly_mountains : BiomeID = BiomeID (131) ; } impl BiomeID { pub const flower_forest : BiomeID = BiomeID (132) ; } impl BiomeID { pub const taiga_mountains : BiomeID = BiomeID (133) ; } impl BiomeID { pub const swamp_hills : BiomeID = BiomeID (134) ; } impl BiomeID { pub const ice_spikes : BiomeID = BiomeID (140) ; } impl BiomeID { pub const modified_jungle : BiomeID = BiomeID (149) ; } impl BiomeID { pub const modified_jungle_edge : BiomeID = BiomeID (151) ; } impl BiomeID { pub const tall_birch_forest : BiomeID = BiomeID (155) ; } impl BiomeID { pub const tall_birch_hills : BiomeID = BiomeID (156) ; } impl BiomeID { pub const dark_forest_hills : BiomeID = BiomeID (157) ; } impl BiomeID { pub const snowy_taiga_mountains : BiomeID = BiomeID (158) ; } impl BiomeID { pub const giant_spruce_taiga : BiomeID = BiomeID (160) ; } impl BiomeID { pub const giant_spruce_taiga_hills : BiomeID = BiomeID (161) ; } impl BiomeID { pub const modified_gravelly_mountains : BiomeID = BiomeID (162) ; } impl BiomeID { pub const shattered_savanna : BiomeID = BiomeID (163) ; } impl BiomeID { pub const shattered_savanna_plateau : BiomeID = BiomeID (164) ; } impl BiomeID { pub const eroded_badlands : BiomeID = BiomeID (165) ; } impl BiomeID { pub const modified_wooded_badlands_plateau : BiomeID = BiomeID (166) ; } impl BiomeID { pub const modified_badlands_plateau : BiomeID = BiomeID (167) ; } impl BiomeID { pub const bamboo_jungle : BiomeID = BiomeID (168) ; } impl BiomeID { pub const bamboo_jungle_hills : BiomeID = BiomeID (169) ; } impl BiomeID { pub const soul_sand_valley : BiomeID = BiomeID (170) ; } impl BiomeID { pub const crimson_forest : BiomeID = BiomeID (171) ; } impl BiomeID { pub const warped_forest : BiomeID = BiomeID (172) ; } impl BiomeID { pub const basalt_deltas : BiomeID = BiomeID (173) ; } impl BiomeID { pub const dripstone_caves : BiomeID = BiomeID (174) ; } impl BiomeID { pub const lush_caves : BiomeID = BiomeID (175) ; } impl BiomeID { pub const meadow : BiomeID = BiomeID (177) ; } impl BiomeID { pub const grove : BiomeID = BiomeID (178) ; } impl BiomeID { pub const snowy_slopes : BiomeID = BiomeID (179) ; } impl BiomeID { pub const jagged_peaks : BiomeID = BiomeID (180) ; } impl BiomeID { pub const frozen_peaks : BiomeID = BiomeID (181) ; } impl BiomeID { pub const stony_peaks : BiomeID = BiomeID (182) ; } impl BiomeID { pub const old_growth_birch_forest : BiomeID = BiomeID (155) ; } impl BiomeID { pub const old_growth_pine_taiga : BiomeID = BiomeID (32) ; } impl BiomeID { pub const old_growth_spruce_taiga : BiomeID = BiomeID (160) ; } impl BiomeID { pub const snowy_plains : BiomeID = BiomeID (12) ; } impl BiomeID { pub const sparse_jungle : BiomeID = BiomeID (23) ; } impl BiomeID { pub const stony_shore : BiomeID = BiomeID (25) ; } impl BiomeID { pub const windswept_hills : BiomeID = BiomeID (3) ; } impl BiomeID { pub const windswept_forest : BiomeID = BiomeID (34) ; } impl BiomeID { pub const windswept_gravelly_hills : BiomeID = BiomeID (131) ; } impl BiomeID { pub const windswept_savanna : BiomeID = BiomeID (163) ; } impl BiomeID { pub const wooded_badlands : BiomeID = BiomeID (38) ; } impl BiomeID { pub const deep_dark : BiomeID = BiomeID (183) ; } impl BiomeID { pub const mangrove_swamp : BiomeID = BiomeID (184) ; } impl BiomeID { pub const cherry_grove : BiomeID = BiomeID (185) ; } impl BiomeID { pub const pale_garden : BiomeID = BiomeID (186) ; } # [repr (transparent)] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct BiomeID (pub :: std :: os :: raw :: c_int) ; unsafe extern "C" { pub fn biomeExists (mc : :: std :: os :: raw :: c_int , id : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn isOverworld (mc : :: std :: os :: raw :: c_int , id : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getDimension (id : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getMutated (mc : :: std :: os :: raw :: c_int , id : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getCategory (mc : :: std :: os :: raw :: c_int , id : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn areSimilar (mc : :: std :: os :: raw :: c_int , id1 : :: std :: os :: raw :: c_int , id2 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn isMesa (id : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn isShallowOcean (id : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn isDeepOcean (id : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn isOceanic (id : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn isSnowy (id : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } impl BiomeTempCategory { pub const Oceanic : BiomeTempCategory = BiomeTempCategory (0) ; } impl BiomeTempCategory { pub const Warm : BiomeTempCategory = BiomeTempCategory (1) ; } impl BiomeTempCategory { pub const Lush : BiomeTempCategory = BiomeTempCategory (2) ; } impl BiomeTempCategory { pub const Cold : BiomeTempCategory = BiomeTempCategory (3) ; } impl BiomeTempCategory { pub const Freezing : BiomeTempCategory = BiomeTempCategory (4) ; } impl BiomeTempCategory { pub const Special : BiomeTempCategory = BiomeTempCategory (5) ; } # [repr (transparent)] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct BiomeTempCategory (pub :: std :: os :: raw :: c_uint) ; impl LayerId { pub const L_CONTINENT_4096 : LayerId = LayerId (0) ; } impl LayerId { pub const L_ISLAND_4096 : LayerId = LayerId (0) ; } impl LayerId { pub const L_ZOOM_4096 : LayerId = LayerId (1) ; } impl LayerId { pub const L_LAND_4096 : LayerId = LayerId (2) ; } impl LayerId { pub const L_ZOOM_2048 : LayerId = LayerId (3) ; } impl LayerId { pub const L_LAND_2048 : LayerId = LayerId (4) ; } impl LayerId { pub const L_ADD_ISLAND_2048 : LayerId = LayerId (4) ; } impl LayerId { pub const L_ZOOM_1024 : LayerId = LayerId (5) ; } impl LayerId { pub const L_LAND_1024_A : LayerId = LayerId (6) ; } impl LayerId { pub const L_ADD_ISLAND_1024A : LayerId = LayerId (6) ; } impl LayerId { pub const L_LAND_1024_B : LayerId = LayerId (7) ; } impl LayerId { pub const L_ADD_ISLAND_1024B : LayerId = LayerId (7) ; } impl LayerId { pub const L_LAND_1024_C : LayerId = LayerId (8) ; } impl LayerId { pub const L_ADD_ISLAND_1024C : LayerId = LayerId (8) ; } impl LayerId { pub const L_ISLAND_1024 : LayerId = LayerId (9) ; } impl LayerId { pub const L_REMOVE_OCEAN_1024 : LayerId = LayerId (9) ; } impl LayerId { pub const L_SNOW_1024 : LayerId = LayerId (10) ; } impl LayerId { pub const L_ADD_SNOW_1024 : LayerId = LayerId (10) ; } impl LayerId { pub const L_LAND_1024_D : LayerId = LayerId (11) ; } impl LayerId { pub const L_ADD_ISLAND_1024D : LayerId = LayerId (11) ; } impl LayerId { pub const L_COOL_1024 : LayerId = LayerId (12) ; } impl LayerId { pub const L_COOL_WARM_1024 : LayerId = LayerId (12) ; } impl LayerId { pub const L_HEAT_1024 : LayerId = LayerId (13) ; } impl LayerId { pub const L_HEAT_ICE_1024 : LayerId = LayerId (13) ; } impl LayerId { pub const L_SPECIAL_1024 : LayerId = LayerId (14) ; } impl LayerId { pub const L_ZOOM_512 : LayerId = LayerId (15) ; } impl LayerId { pub const L_LAND_512 : LayerId = LayerId (16) ; } impl LayerId { pub const L_ZOOM_256 : LayerId = LayerId (17) ; } impl LayerId { pub const L_LAND_256 : LayerId = LayerId (18) ; } impl LayerId { pub const L_ADD_ISLAND_256 : LayerId = LayerId (18) ; } impl LayerId { pub const L_MUSHROOM_256 : LayerId = LayerId (19) ; } impl LayerId { pub const L_ADD_MUSHROOM_256 : LayerId = LayerId (19) ; } impl LayerId { pub const L_DEEP_OCEAN_256 : LayerId = LayerId (20) ; } impl LayerId { pub const L_BIOME_256 : LayerId = LayerId (21) ; } impl LayerId { pub const L_BAMBOO_256 : LayerId = LayerId (22) ; } impl LayerId { pub const L14_BAMBOO_256 : LayerId = LayerId (22) ; } impl LayerId { pub const L_ZOOM_128 : LayerId = LayerId (23) ; } impl LayerId { pub const L_ZOOM_64 : LayerId = LayerId (24) ; } impl LayerId { pub const L_BIOME_EDGE_64 : LayerId = LayerId (25) ; } impl LayerId { pub const L_NOISE_256 : LayerId = LayerId (26) ; } impl LayerId { pub const L_RIVER_INIT_256 : LayerId = LayerId (26) ; } impl LayerId { pub const L_ZOOM_128_HILLS : LayerId = LayerId (27) ; } impl LayerId { pub const L_ZOOM_64_HILLS : LayerId = LayerId (28) ; } impl LayerId { pub const L_HILLS_64 : LayerId = LayerId (29) ; } impl LayerId { pub const L_SUNFLOWER_64 : LayerId = LayerId (30) ; } impl LayerId { pub const L_RARE_BIOME_64 : LayerId = LayerId (30) ; } impl LayerId { pub const L_ZOOM_32 : LayerId = LayerId (31) ; } impl LayerId { pub const L_LAND_32 : LayerId = LayerId (32) ; } impl LayerId { pub const L_ADD_ISLAND_32 : LayerId = LayerId (32) ; } impl LayerId { pub const L_ZOOM_16 : LayerId = LayerId (33) ; } impl LayerId { pub const L_SHORE_16 : LayerId = LayerId (34) ; } impl LayerId { pub const L_SWAMP_RIVER_16 : LayerId = LayerId (35) ; } impl LayerId { pub const L_ZOOM_8 : LayerId = LayerId (36) ; } impl LayerId { pub const L_ZOOM_4 : LayerId = LayerId (37) ; } impl LayerId { pub const L_SMOOTH_4 : LayerId = LayerId (38) ; } impl LayerId { pub const L_ZOOM_128_RIVER : LayerId = LayerId (39) ; } impl LayerId { pub const L_ZOOM_64_RIVER : LayerId = LayerId (40) ; } impl LayerId { pub const L_ZOOM_32_RIVER : LayerId = LayerId (41) ; } impl LayerId { pub const L_ZOOM_16_RIVER : LayerId = LayerId (42) ; } impl LayerId { pub const L_ZOOM_8_RIVER : LayerId = LayerId (43) ; } impl LayerId { pub const L_ZOOM_4_RIVER : LayerId = LayerId (44) ; } impl LayerId { pub const L_RIVER_4 : LayerId = LayerId (45) ; } impl LayerId { pub const L_SMOOTH_4_RIVER : LayerId = LayerId (46) ; } impl LayerId { pub const L_RIVER_MIX_4 : LayerId = LayerId (47) ; } impl LayerId { pub const L_OCEAN_TEMP_256 : LayerId = LayerId (48) ; } impl LayerId { pub const L13_OCEAN_TEMP_256 : LayerId = LayerId (48) ; } impl LayerId { pub const L_ZOOM_128_OCEAN : LayerId = LayerId (49) ; } impl LayerId { pub const L13_ZOOM_128 : LayerId = LayerId (49) ; } impl LayerId { pub const L_ZOOM_64_OCEAN : LayerId = LayerId (50) ; } impl LayerId { pub const L13_ZOOM_64 : LayerId = LayerId (50) ; } impl LayerId { pub const L_ZOOM_32_OCEAN : LayerId = LayerId (51) ; } impl LayerId { pub const L13_ZOOM_32 : LayerId = LayerId (51) ; } impl LayerId { pub const L_ZOOM_16_OCEAN : LayerId = LayerId (52) ; } impl LayerId { pub const L13_ZOOM_16 : LayerId = LayerId (52) ; } impl LayerId { pub const L_ZOOM_8_OCEAN : LayerId = LayerId (53) ; } impl LayerId { pub const L13_ZOOM_8 : LayerId = LayerId (53) ; } impl LayerId { pub const L_ZOOM_4_OCEAN : LayerId = LayerId (54) ; } impl LayerId { pub const L13_ZOOM_4 : LayerId = LayerId (54) ; } impl LayerId { pub const L_OCEAN_MIX_4 : LayerId = LayerId (55) ; } impl LayerId { pub const L13_OCEAN_MIX_4 : LayerId = LayerId (55) ; } impl LayerId { pub const L_VORONOI_1 : LayerId = LayerId (56) ; } impl LayerId { pub const L_VORONOI_ZOOM_1 : LayerId = LayerId (56) ; } impl LayerId { pub const L_ZOOM_LARGE_A : LayerId = LayerId (57) ; } impl LayerId { pub const L_ZOOM_LARGE_B : LayerId = LayerId (58) ; } impl LayerId { pub const L_ZOOM_L_RIVER_A : LayerId = LayerId (59) ; } impl LayerId { pub const L_ZOOM_L_RIVER_B : LayerId = LayerId (60) ; } impl LayerId { pub const L_NUM : LayerId = LayerId (61) ; } # [repr (transparent)] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct LayerId (pub :: std :: os :: raw :: c_uint) ; pub type mapfunc_t = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Layer { pub getMap : mapfunc_t , pub mc : i8 , pub zoom : i8 , pub edge : i8 , pub scale : :: std :: os :: raw :: c_int , pub layerSalt : u64 , pub startSalt : u64 , pub startSeed : u64 , pub noise : * mut :: std :: os :: raw :: c_void , pub data : * mut :: std :: os :: raw :: c_void , pub p : * mut Layer , pub p2 : * mut Layer , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Layer"] [:: std :: mem :: size_of :: < Layer > () - 72usize] ; ["Alignment of Layer"] [:: std :: mem :: align_of :: < Layer > () - 8usize] ; ["Offset of field: Layer::getMap"] [:: std :: mem :: offset_of ! (Layer , getMap) - 0usize] ; ["Offset of field: Layer::mc"] [:: std :: mem :: offset_of ! (Layer , mc) - 8usize] ; ["Offset of field: Layer::zoom"] [:: std :: mem :: offset_of ! (Layer , zoom) - 9usize] ; ["Offset of field: Layer::edge"] [:: std :: mem :: offset_of ! (Layer , edge) - 10usize] ; ["Offset of field: Layer::scale"] [:: std :: mem :: offset_of ! (Layer , scale) - 12usize] ; ["Offset of field: Layer::layerSalt"] [:: std :: mem :: offset_of ! (Layer , layerSalt) - 16usize] ; ["Offset of field: Layer::startSalt"] [:: std :: mem :: offset_of ! (Layer , startSalt) - 24usize] ; ["Offset of field: Layer::startSeed"] [:: std :: mem :: offset_of ! (Layer , startSeed) - 32usize] ; ["Offset of field: Layer::noise"] [:: std :: mem :: offset_of ! (Layer , noise) - 40usize] ; ["Offset of field: Layer::data"] [:: std :: mem :: offset_of ! (Layer , data) - 48usize] ; ["Offset of field: Layer::p"] [:: std :: mem :: offset_of ! (Layer , p) - 56usize] ; ["Offset of field: Layer::p2"] [:: std :: mem :: offset_of ! (Layer , p2) - 64usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct LayerStack { pub layers : [Layer ; 61usize] , pub entry_1 : * mut Layer , pub entry_4 : * mut Layer , pub entry_16 : * mut Layer , pub entry_64 : * mut Layer , pub entry_256 : * mut Layer , pub oceanRnd : PerlinNoise , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of LayerStack"] [:: std :: mem :: size_of :: < LayerStack > () - 4752usize] ; ["Alignment of LayerStack"] [:: std :: mem :: align_of :: < LayerStack > () - 8usize] ; ["Offset of field: LayerStack::layers"] [:: std :: mem :: offset_of ! (LayerStack , layers) - 0usize] ; ["Offset of field: LayerStack::entry_1"] [:: std :: mem :: offset_of ! (LayerStack , entry_1) - 4392usize] ; ["Offset of field: LayerStack::entry_4"] [:: std :: mem :: offset_of ! (LayerStack , entry_4) - 4400usize] ; ["Offset of field: LayerStack::entry_16"] [:: std :: mem :: offset_of ! (LayerStack , entry_16) - 4408usize] ; ["Offset of field: LayerStack::entry_64"] [:: std :: mem :: offset_of ! (LayerStack , entry_64) - 4416usize] ; ["Offset of field: LayerStack::entry_256"] [:: std :: mem :: offset_of ! (LayerStack , entry_256) - 4424usize] ; ["Offset of field: LayerStack::oceanRnd"] [:: std :: mem :: offset_of ! (LayerStack , oceanRnd) - 4432usize] ; } ; unsafe extern "C" { pub fn setLayerSeed (layer : * mut Layer , worldSeed : u64) ; } unsafe extern "C" { pub fn mapContinent (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapZoomFuzzy (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapZoom (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapLand (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapLand16 (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapLandB18 (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapIsland (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapSnow (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapSnow16 (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapCool (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapHeat (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapSpecial (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapMushroom (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapDeepOcean (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapBiome (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapBamboo (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapNoise (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapBiomeEdge (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapHills (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapRiver (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapSmooth (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapSunflower (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapShore (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapSwampRiver (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapRiverMix (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapOceanTemp (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapOceanMix (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapVoronoi (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapVoronoi114 (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getVoronoiSHA (worldSeed : u64) -> u64 ; } unsafe extern "C" { pub fn voronoiAccess3D (sha : u64 , x : :: std :: os :: raw :: c_int , y : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , x4 : * mut :: std :: os :: raw :: c_int , y4 : * mut :: std :: os :: raw :: c_int , z4 : * mut :: std :: os :: raw :: c_int) ; } unsafe extern "C" { pub fn mapVoronoiPlane (sha : u64 , out : * mut :: std :: os :: raw :: c_int , src : * mut :: std :: os :: raw :: c_int , x : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , w : :: std :: os :: raw :: c_int , h : :: std :: os :: raw :: c_int , y : :: std :: os :: raw :: c_int , px : :: std :: os :: raw :: c_int , pz : :: std :: os :: raw :: c_int , pw : :: std :: os :: raw :: c_int , ph : :: std :: os :: raw :: c_int) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Range { pub scale : :: std :: os :: raw :: c_int , pub x : :: std :: os :: raw :: c_int , pub z : :: std :: os :: raw :: c_int , pub sx : :: std :: os :: raw :: c_int , pub sz : :: std :: os :: raw :: c_int , pub y : :: std :: os :: raw :: c_int , pub sy : :: std :: os :: raw :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Range"] [:: std :: mem :: size_of :: < Range > () - 28usize] ; ["Alignment of Range"] [:: std :: mem :: align_of :: < Range > () - 4usize] ; ["Offset of field: Range::scale"] [:: std :: mem :: offset_of ! (Range , scale) - 0usize] ; ["Offset of field: Range::x"] [:: std :: mem :: offset_of ! (Range , x) - 4usize] ; ["Offset of field: Range::z"] [:: std :: mem :: offset_of ! (Range , z) - 8usize] ; ["Offset of field: Range::sx"] [:: std :: mem :: offset_of ! (Range , sx) - 12usize] ; ["Offset of field: Range::sz"] [:: std :: mem :: offset_of ! (Range , sz) - 16usize] ; ["Offset of field: Range::y"] [:: std :: mem :: offset_of ! (Range , y) - 20usize] ; ["Offset of field: Range::sy"] [:: std :: mem :: offset_of ! (Range , sy) - 24usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct NetherNoise { pub temperature : DoublePerlinNoise , pub humidity : DoublePerlinNoise , pub oct : [PerlinNoise ; 8usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of NetherNoise"] [:: std :: mem :: size_of :: < NetherNoise > () - 2640usize] ; ["Alignment of NetherNoise"] [:: std :: mem :: align_of :: < NetherNoise > () - 8usize] ; ["Offset of field: NetherNoise::temperature"] [:: std :: mem :: offset_of ! (NetherNoise , temperature) - 0usize] ; ["Offset of field: NetherNoise::humidity"] [:: std :: mem :: offset_of ! (NetherNoise , humidity) - 40usize] ; ["Offset of field: NetherNoise::oct"] [:: std :: mem :: offset_of ! (NetherNoise , oct) - 80usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct EndNoise { pub perlin : PerlinNoise , pub mc : :: std :: os :: raw :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of EndNoise"] [:: std :: mem :: size_of :: < EndNoise > () - 328usize] ; ["Alignment of EndNoise"] [:: std :: mem :: align_of :: < EndNoise > () - 8usize] ; ["Offset of field: EndNoise::perlin"] [:: std :: mem :: offset_of ! (EndNoise , perlin) - 0usize] ; ["Offset of field: EndNoise::mc"] [:: std :: mem :: offset_of ! (EndNoise , mc) - 320usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct SurfaceNoise { pub xzScale : f64 , pub yScale : f64 , pub xzFactor : f64 , pub yFactor : f64 , pub octmin : OctaveNoise , pub octmax : OctaveNoise , pub octmain : OctaveNoise , pub octsurf : OctaveNoise , pub octdepth : OctaveNoise , pub oct : [PerlinNoise ; 60usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of SurfaceNoise"] [:: std :: mem :: size_of :: < SurfaceNoise > () - 19312usize] ; ["Alignment of SurfaceNoise"] [:: std :: mem :: align_of :: < SurfaceNoise > () - 8usize] ; ["Offset of field: SurfaceNoise::xzScale"] [:: std :: mem :: offset_of ! (SurfaceNoise , xzScale) - 0usize] ; ["Offset of field: SurfaceNoise::yScale"] [:: std :: mem :: offset_of ! (SurfaceNoise , yScale) - 8usize] ; ["Offset of field: SurfaceNoise::xzFactor"] [:: std :: mem :: offset_of ! (SurfaceNoise , xzFactor) - 16usize] ; ["Offset of field: SurfaceNoise::yFactor"] [:: std :: mem :: offset_of ! (SurfaceNoise , yFactor) - 24usize] ; ["Offset of field: SurfaceNoise::octmin"] [:: std :: mem :: offset_of ! (SurfaceNoise , octmin) - 32usize] ; ["Offset of field: SurfaceNoise::octmax"] [:: std :: mem :: offset_of ! (SurfaceNoise , octmax) - 48usize] ; ["Offset of field: SurfaceNoise::octmain"] [:: std :: mem :: offset_of ! (SurfaceNoise , octmain) - 64usize] ; ["Offset of field: SurfaceNoise::octsurf"] [:: std :: mem :: offset_of ! (SurfaceNoise , octsurf) - 80usize] ; ["Offset of field: SurfaceNoise::octdepth"] [:: std :: mem :: offset_of ! (SurfaceNoise , octdepth) - 96usize] ; ["Offset of field: SurfaceNoise::oct"] [:: std :: mem :: offset_of ! (SurfaceNoise , oct) - 112usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct SurfaceNoiseBeta { pub octmin : OctaveNoise , pub octmax : OctaveNoise , pub octmain : OctaveNoise , pub octcontA : OctaveNoise , pub octcontB : OctaveNoise , pub oct : [PerlinNoise ; 66usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of SurfaceNoiseBeta"] [:: std :: mem :: size_of :: < SurfaceNoiseBeta > () - 21200usize] ; ["Alignment of SurfaceNoiseBeta"] [:: std :: mem :: align_of :: < SurfaceNoiseBeta > () - 8usize] ; ["Offset of field: SurfaceNoiseBeta::octmin"] [:: std :: mem :: offset_of ! (SurfaceNoiseBeta , octmin) - 0usize] ; ["Offset of field: SurfaceNoiseBeta::octmax"] [:: std :: mem :: offset_of ! (SurfaceNoiseBeta , octmax) - 16usize] ; ["Offset of field: SurfaceNoiseBeta::octmain"] [:: std :: mem :: offset_of ! (SurfaceNoiseBeta , octmain) - 32usize] ; ["Offset of field: SurfaceNoiseBeta::octcontA"] [:: std :: mem :: offset_of ! (SurfaceNoiseBeta , octcontA) - 48usize] ; ["Offset of field: SurfaceNoiseBeta::octcontB"] [:: std :: mem :: offset_of ! (SurfaceNoiseBeta , octcontB) - 64usize] ; ["Offset of field: SurfaceNoiseBeta::oct"] [:: std :: mem :: offset_of ! (SurfaceNoiseBeta , oct) - 80usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct SeaLevelColumnNoiseBeta { pub contASample : f64 , pub contBSample : f64 , pub minSample : [f64 ; 2usize] , pub maxSample : [f64 ; 2usize] , pub mainSample : [f64 ; 2usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of SeaLevelColumnNoiseBeta"] [:: std :: mem :: size_of :: < SeaLevelColumnNoiseBeta > () - 64usize] ; ["Alignment of SeaLevelColumnNoiseBeta"] [:: std :: mem :: align_of :: < SeaLevelColumnNoiseBeta > () - 8usize] ; ["Offset of field: SeaLevelColumnNoiseBeta::contASample"] [:: std :: mem :: offset_of ! (SeaLevelColumnNoiseBeta , contASample) - 0usize] ; ["Offset of field: SeaLevelColumnNoiseBeta::contBSample"] [:: std :: mem :: offset_of ! (SeaLevelColumnNoiseBeta , contBSample) - 8usize] ; ["Offset of field: SeaLevelColumnNoiseBeta::minSample"] [:: std :: mem :: offset_of ! (SeaLevelColumnNoiseBeta , minSample) - 16usize] ; ["Offset of field: SeaLevelColumnNoiseBeta::maxSample"] [:: std :: mem :: offset_of ! (SeaLevelColumnNoiseBeta , maxSample) - 32usize] ; ["Offset of field: SeaLevelColumnNoiseBeta::mainSample"] [:: std :: mem :: offset_of ! (SeaLevelColumnNoiseBeta , mainSample) - 48usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Spline { pub len : :: std :: os :: raw :: c_int , pub typ : :: std :: os :: raw :: c_int , pub loc : [f32 ; 12usize] , pub der : [f32 ; 12usize] , pub val : [* mut Spline ; 12usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Spline"] [:: std :: mem :: size_of :: < Spline > () - 200usize] ; ["Alignment of Spline"] [:: std :: mem :: align_of :: < Spline > () - 8usize] ; ["Offset of field: Spline::len"] [:: std :: mem :: offset_of ! (Spline , len) - 0usize] ; ["Offset of field: Spline::typ"] [:: std :: mem :: offset_of ! (Spline , typ) - 4usize] ; ["Offset of field: Spline::loc"] [:: std :: mem :: offset_of ! (Spline , loc) - 8usize] ; ["Offset of field: Spline::der"] [:: std :: mem :: offset_of ! (Spline , der) - 56usize] ; ["Offset of field: Spline::val"] [:: std :: mem :: offset_of ! (Spline , val) - 104usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FixSpline { pub len : :: std :: os :: raw :: c_int , pub val : f32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of FixSpline"] [:: std :: mem :: size_of :: < FixSpline > () - 8usize] ; ["Alignment of FixSpline"] [:: std :: mem :: align_of :: < FixSpline > () - 4usize] ; ["Offset of field: FixSpline::len"] [:: std :: mem :: offset_of ! (FixSpline , len) - 0usize] ; ["Offset of field: FixSpline::val"] [:: std :: mem :: offset_of ! (FixSpline , val) - 4usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct SplineStack { pub stack : [Spline ; 42usize] , pub fstack : [FixSpline ; 151usize] , pub len : :: std :: os :: raw :: c_int , pub flen : :: std :: os :: raw :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of SplineStack"] [:: std :: mem :: size_of :: < SplineStack > () - 9616usize] ; ["Alignment of SplineStack"] [:: std :: mem :: align_of :: < SplineStack > () - 8usize] ; ["Offset of field: SplineStack::stack"] [:: std :: mem :: offset_of ! (SplineStack , stack) - 0usize] ; ["Offset of field: SplineStack::fstack"] [:: std :: mem :: offset_of ! (SplineStack , fstack) - 8400usize] ; ["Offset of field: SplineStack::len"] [:: std :: mem :: offset_of ! (SplineStack , len) - 9608usize] ; ["Offset of field: SplineStack::flen"] [:: std :: mem :: offset_of ! (SplineStack , flen) - 9612usize] ; } ; pub const NP_TEMPERATURE : _bindgen_ty_2 = _bindgen_ty_2 (0) ; pub const NP_HUMIDITY : _bindgen_ty_2 = _bindgen_ty_2 (1) ; pub const NP_CONTINENTALNESS : _bindgen_ty_2 = _bindgen_ty_2 (2) ; pub const NP_EROSION : _bindgen_ty_2 = _bindgen_ty_2 (3) ; pub const NP_SHIFT : _bindgen_ty_2 = _bindgen_ty_2 (4) ; pub const NP_DEPTH : _bindgen_ty_2 = _bindgen_ty_2 (4) ; pub const NP_WEIRDNESS : _bindgen_ty_2 = _bindgen_ty_2 (5) ; pub const NP_MAX : _bindgen_ty_2 = _bindgen_ty_2 (6) ; # [repr (transparent)] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct _bindgen_ty_2 (pub :: std :: os :: raw :: c_uint) ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct BiomeNoise { pub climate : [DoublePerlinNoise ; 6usize] , pub oct : [PerlinNoise ; 46usize] , pub sp : * mut Spline , pub ss : SplineStack , pub nptype : :: std :: os :: raw :: c_int , pub mc : :: std :: os :: raw :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of BiomeNoise"] [:: std :: mem :: size_of :: < BiomeNoise > () - 24592usize] ; ["Alignment of BiomeNoise"] [:: std :: mem :: align_of :: < BiomeNoise > () - 8usize] ; ["Offset of field: BiomeNoise::climate"] [:: std :: mem :: offset_of ! (BiomeNoise , climate) - 0usize] ; ["Offset of field: BiomeNoise::oct"] [:: std :: mem :: offset_of ! (BiomeNoise , oct) - 240usize] ; ["Offset of field: BiomeNoise::sp"] [:: std :: mem :: offset_of ! (BiomeNoise , sp) - 14960usize] ; ["Offset of field: BiomeNoise::ss"] [:: std :: mem :: offset_of ! (BiomeNoise , ss) - 14968usize] ; ["Offset of field: BiomeNoise::nptype"] [:: std :: mem :: offset_of ! (BiomeNoise , nptype) - 24584usize] ; ["Offset of field: BiomeNoise::mc"] [:: std :: mem :: offset_of ! (BiomeNoise , mc) - 24588usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct BiomeNoiseBeta { pub climate : [OctaveNoise ; 3usize] , pub oct : [PerlinNoise ; 10usize] , pub nptype : :: std :: os :: raw :: c_int , pub mc : :: std :: os :: raw :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of BiomeNoiseBeta"] [:: std :: mem :: size_of :: < BiomeNoiseBeta > () - 3256usize] ; ["Alignment of BiomeNoiseBeta"] [:: std :: mem :: align_of :: < BiomeNoiseBeta > () - 8usize] ; ["Offset of field: BiomeNoiseBeta::climate"] [:: std :: mem :: offset_of ! (BiomeNoiseBeta , climate) - 0usize] ; ["Offset of field: BiomeNoiseBeta::oct"] [:: std :: mem :: offset_of ! (BiomeNoiseBeta , oct) - 48usize] ; ["Offset of field: BiomeNoiseBeta::nptype"] [:: std :: mem :: offset_of ! (BiomeNoiseBeta , nptype) - 3248usize] ; ["Offset of field: BiomeNoiseBeta::mc"] [:: std :: mem :: offset_of ! (BiomeNoiseBeta , mc) - 3252usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct BiomeTree { pub steps : * const u32 , pub param : * const i32 , pub nodes : * const u64 , pub order : u32 , pub len : u32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of BiomeTree"] [:: std :: mem :: size_of :: < BiomeTree > () - 32usize] ; ["Alignment of BiomeTree"] [:: std :: mem :: align_of :: < BiomeTree > () - 8usize] ; ["Offset of field: BiomeTree::steps"] [:: std :: mem :: offset_of ! (BiomeTree , steps) - 0usize] ; ["Offset of field: BiomeTree::param"] [:: std :: mem :: offset_of ! (BiomeTree , param) - 8usize] ; ["Offset of field: BiomeTree::nodes"] [:: std :: mem :: offset_of ! (BiomeTree , nodes) - 16usize] ; ["Offset of field: BiomeTree::order"] [:: std :: mem :: offset_of ! (BiomeTree , order) - 24usize] ; ["Offset of field: BiomeTree::len"] [:: std :: mem :: offset_of ! (BiomeTree , len) - 28usize] ; } ; unsafe extern "C" { pub fn initSurfaceNoise (sn : * mut SurfaceNoise , dim : :: std :: os :: raw :: c_int , seed : u64) ; } unsafe extern "C" { pub fn initSurfaceNoiseBeta (snb : * mut SurfaceNoiseBeta , seed : u64) ; } unsafe extern "C" { pub fn sampleSurfaceNoise (sn : * const SurfaceNoise , x : :: std :: os :: raw :: c_int , y : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int) -> f64 ; } unsafe extern "C" { pub fn sampleSurfaceNoiseBetween (sn : * const SurfaceNoise , x : :: std :: os :: raw :: c_int , y : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , noiseMin : f64 , noiseMax : f64) -> f64 ; } unsafe extern "C" { # [doc = " Nether biomes are 3D, and generated at scale 1:4. Use voronoiAccess3D() to\n convert coordinates at 1:1 scale to their 1:4 access. Biome checks for\n structures are generally done at y=0.\n\n The function getNetherBiome() determines the nether biome at a given\n coordinate at scale 1:4. The parameter 'ndel' is an output noise delta for\n optimization purposes and can be ignored (nullable).\n\n Use mapNether2D() to get a 2D area of nether biomes at y=0, scale 1:4.\n\n The mapNether3D() function attempts to optimize the generation of a volume\n at scale 1:4. The output is indexed as:\n out[i_y*(r.sx*r.sz) + i_z*r.sx + i_x].\n If the optimization parameter 'confidence' has a value less than 1.0, the\n generation will generally be faster, but can yield incorrect results in some\n circumstances.\n\n The output buffer for the map-functions need only be of sufficient size to\n hold the generated area (i.e. w*h or r.sx*r.sy*r.sz)."] pub fn setNetherSeed (nn : * mut NetherNoise , seed : u64) ; } unsafe extern "C" { pub fn getNetherBiome (nn : * const NetherNoise , x : :: std :: os :: raw :: c_int , y : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , ndel : * mut f32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapNether2D (nn : * const NetherNoise , out : * mut :: std :: os :: raw :: c_int , x : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , w : :: std :: os :: raw :: c_int , h : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapNether3D (nn : * const NetherNoise , out : * mut :: std :: os :: raw :: c_int , r : Range , confidence : f32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " The scaled Nether generation supports scales 1, 4, 16, 64, and 256.\n It is similar to mapNether3D(), but applies voronoi zoom if necessary, and\n fills the output buffer with nether_wastes for versions older than 1.16."] pub fn genNetherScaled (nn : * const NetherNoise , out : * mut :: std :: os :: raw :: c_int , r : Range , mc : :: std :: os :: raw :: c_int , sha : u64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " End biome generation is based on simplex noise and varies only at a 1:16\n chunk scale which can be generated with mapEndBiome(). The function mapEnd()\n is a variation which also scales this up on a regular grid to 1:4. The final\n access at a 1:1 scale uses voronoi."] pub fn setEndSeed (en : * mut EndNoise , mc : :: std :: os :: raw :: c_int , seed : u64) ; } unsafe extern "C" { pub fn mapEndBiome (en : * const EndNoise , out : * mut :: std :: os :: raw :: c_int , x : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , w : :: std :: os :: raw :: c_int , h : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapEnd (en : * const EndNoise , out : * mut :: std :: os :: raw :: c_int , x : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , w : :: std :: os :: raw :: c_int , h : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getEndSurfaceHeight (mc : :: std :: os :: raw :: c_int , seed : u64 , x : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapEndSurfaceHeight (y : * mut f32 , en : * const EndNoise , sn : * const SurfaceNoise , x : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , w : :: std :: os :: raw :: c_int , h : :: std :: os :: raw :: c_int , scale : :: std :: os :: raw :: c_int , ymin : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " The scaled End generation supports scales 1, 4, 16, and 64.\n The End biomes are usually 2D, but in 1.15+ there is 3D voronoi noise, which\n is controlled by the 'sha' hash of the seed. For scales higher than 1:1, and\n versions up to 1.14, 'sha' is ignored."] pub fn genEndScaled (en : * const EndNoise , out : * mut :: std :: os :: raw :: c_int , r : Range , mc : :: std :: os :: raw :: c_int , sha : u64) -> :: std :: os :: raw :: c_int ; } pub const SAMPLE_NO_SHIFT : _bindgen_ty_3 = _bindgen_ty_3 (1) ; pub const SAMPLE_NO_DEPTH : _bindgen_ty_3 = _bindgen_ty_3 (2) ; pub const SAMPLE_NO_BIOME : _bindgen_ty_3 = _bindgen_ty_3 (4) ; # [repr (transparent)] # [doc = " In 1.18 the Overworld uses a new noise map system for the biome generation.\n The random number generation also has updated to a Xiroshiro128 algorithm.\n The scale is 1:4, and is sampled at each point individually as there is\n currently not much benefit from generating a volume as a whole.\n\n The 1.18 End generation remains similar to 1.17 and does NOT use the\n biome noise."] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct _bindgen_ty_3 (pub :: std :: os :: raw :: c_uint) ; unsafe extern "C" { pub fn initBiomeNoise (bn : * mut BiomeNoise , mc : :: std :: os :: raw :: c_int) ; } unsafe extern "C" { pub fn setBiomeSeed (bn : * mut BiomeNoise , seed : u64 , large : :: std :: os :: raw :: c_int) ; } unsafe extern "C" { pub fn setBetaBiomeSeed (bnb : * mut BiomeNoiseBeta , seed : u64) ; } unsafe extern "C" { pub fn sampleBiomeNoise (bn : * const BiomeNoise , np : * mut i64 , x : :: std :: os :: raw :: c_int , y : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , dat : * mut u64 , sample_flags : u32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn sampleBiomeNoiseBeta (bnb : * const BiomeNoiseBeta , np : * mut i64 , nv : * mut f64 , x : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn approxSurfaceBeta (bnb : * const BiomeNoiseBeta , snb : * const SurfaceNoiseBeta , x : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int) -> f64 ; } unsafe extern "C" { # [doc = " (Alpha 1.2 - Beta 1.7)\n Temperature and humidity values to biome."] pub fn getOldBetaBiome (t : f32 , h : f32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " Uses the global biome tree definitions (see tables/btreeXX.h)\n to map a noise point (i.e. climate) to the corresponding overworld biome."] pub fn climateToBiome (mc : :: std :: os :: raw :: c_int , np : * const u64 , dat : * mut u64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " Initialize BiomeNoise for only a single climate parameter.\n If nptype == NP_DEPTH, the value is sampled at y=0. Note that this value\n changes linearly with the height (i.e. -= y/128).\n A maximum of nmax octaves is set, initializing only the most contributing\n octaves up to that point. Use -1 for a full initialization."] pub fn setClimateParaSeed (bn : * mut BiomeNoise , seed : u64 , large : :: std :: os :: raw :: c_int , nptype : :: std :: os :: raw :: c_int , nmax : :: std :: os :: raw :: c_int) ; } unsafe extern "C" { pub fn sampleClimatePara (bn : * const BiomeNoise , np : * mut i64 , x : f64 , z : f64) -> f64 ; } unsafe extern "C" { # [doc = " Currently, in 1.18, we have to generate biomes one chunk at a time to get an\n accurate mapping of the biomes in the level storage, as there is no longer a\n unique mapping from noise points to biomes (MC-241546). Note that the results\n from this are not suitable for chunk population/structure generation.\n The output is in the form out[x][y][z] for the 64 biome points in the chunk\n section. The coordinates {cx,cy,cz} are all at scale 1:16 and the 'dat'\n argument should be the previous noise sampling and can be left NULL."] pub fn genBiomeNoiseChunkSection (bn : * const BiomeNoise , out : * mut [[:: std :: os :: raw :: c_int ; 4usize] ; 4usize] , cx : :: std :: os :: raw :: c_int , cy : :: std :: os :: raw :: c_int , cz : :: std :: os :: raw :: c_int , dat : * mut u64) ; } unsafe extern "C" { # [doc = " The scaled biome noise generation applies for the Overworld version 1.18+.\n The 'sha' hash of the seed is only required for voronoi at scale 1:1.\n A scale of zero is interpreted as the default 1:4 scale."] pub fn genBiomeNoiseScaled (bn : * const BiomeNoise , out : * mut :: std :: os :: raw :: c_int , r : Range , sha : u64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " Generates the biomes for Beta 1.7, the surface noise is optional and enables\n ocean mapping in areas that fall below the sea level."] pub fn genBiomeNoiseBetaScaled (bnb : * const BiomeNoiseBeta , snb : * const SurfaceNoiseBeta , out : * mut :: std :: os :: raw :: c_int , r : Range) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getBiomeDepthAndScale (id : :: std :: os :: raw :: c_int , depth : * mut f64 , scale : * mut f64 , grass : * mut :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getVoronoiSrcRange (r : Range) -> Range ; } pub const LARGE_BIOMES : _bindgen_ty_4 = _bindgen_ty_4 (1) ; pub const NO_BETA_OCEAN : _bindgen_ty_4 = _bindgen_ty_4 (2) ; pub const FORCE_OCEAN_VARIANTS : _bindgen_ty_4 = _bindgen_ty_4 (4) ; # [repr (transparent)] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct _bindgen_ty_4 (pub :: std :: os :: raw :: c_uint) ; # [repr (C)] # [derive (Copy , Clone)] pub struct Generator { pub mc : :: std :: os :: raw :: c_int , pub dim : :: std :: os :: raw :: c_int , pub flags : u32 , pub seed : u64 , pub sha : u64 , pub __bindgen_anon_1 : Generator__bindgen_ty_1 , pub nn : NetherNoise , pub en : EndNoise , } # [repr (C)] # [derive (Copy , Clone)] pub union Generator__bindgen_ty_1 { pub __bindgen_anon_1 : Generator__bindgen_ty_1__bindgen_ty_1 , pub __bindgen_anon_2 : Generator__bindgen_ty_1__bindgen_ty_2 , pub __bindgen_anon_3 : Generator__bindgen_ty_1__bindgen_ty_3 , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Generator__bindgen_ty_1__bindgen_ty_1 { pub ls : LayerStack , pub xlayer : [Layer ; 5usize] , pub entry : * mut Layer , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Generator__bindgen_ty_1__bindgen_ty_1"] [:: std :: mem :: size_of :: < Generator__bindgen_ty_1__bindgen_ty_1 > () - 5120usize] ; ["Alignment of Generator__bindgen_ty_1__bindgen_ty_1"] [:: std :: mem :: align_of :: < Generator__bindgen_ty_1__bindgen_ty_1 > () - 8usize] ; ["Offset of field: Generator__bindgen_ty_1__bindgen_ty_1::ls"] [:: std :: mem :: offset_of ! (Generator__bindgen_ty_1__bindgen_ty_1 , ls) - 0usize] ; ["Offset of field: Generator__bindgen_ty_1__bindgen_ty_1::xlayer"] [:: std :: mem :: offset_of ! (Generator__bindgen_ty_1__bindgen_ty_1 , xlayer) - 4752usize] ; ["Offset of field: Generator__bindgen_ty_1__bindgen_ty_1::entry"] [:: std :: mem :: offset_of ! (Generator__bindgen_ty_1__bindgen_ty_1 , entry) - 5112usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Generator__bindgen_ty_1__bindgen_ty_2 { pub bn : BiomeNoise , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Generator__bindgen_ty_1__bindgen_ty_2"] [:: std :: mem :: size_of :: < Generator__bindgen_ty_1__bindgen_ty_2 > () - 24592usize] ; ["Alignment of Generator__bindgen_ty_1__bindgen_ty_2"] [:: std :: mem :: align_of :: < Generator__bindgen_ty_1__bindgen_ty_2 > () - 8usize] ; ["Offset of field: Generator__bindgen_ty_1__bindgen_ty_2::bn"] [:: std :: mem :: offset_of ! (Generator__bindgen_ty_1__bindgen_ty_2 , bn) - 0usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Generator__bindgen_ty_1__bindgen_ty_3 { pub bnb : BiomeNoiseBeta , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Generator__bindgen_ty_1__bindgen_ty_3"] [:: std :: mem :: size_of :: < Generator__bindgen_ty_1__bindgen_ty_3 > () - 3256usize] ; ["Alignment of Generator__bindgen_ty_1__bindgen_ty_3"] [:: std :: mem :: align_of :: < Generator__bindgen_ty_1__bindgen_ty_3 > () - 8usize] ; ["Offset of field: Generator__bindgen_ty_1__bindgen_ty_3::bnb"] [:: std :: mem :: offset_of ! (Generator__bindgen_ty_1__bindgen_ty_3 , bnb) - 0usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Generator__bindgen_ty_1"] [:: std :: mem :: size_of :: < Generator__bindgen_ty_1 > () - 24592usize] ; ["Alignment of Generator__bindgen_ty_1"] [:: std :: mem :: align_of :: < Generator__bindgen_ty_1 > () - 8usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Generator"] [:: std :: mem :: size_of :: < Generator > () - 27592usize] ; ["Alignment of Generator"] [:: std :: mem :: align_of :: < Generator > () - 8usize] ; ["Offset of field: Generator::mc"] [:: std :: mem :: offset_of ! (Generator , mc) - 0usize] ; ["Offset of field: Generator::dim"] [:: std :: mem :: offset_of ! (Generator , dim) - 4usize] ; ["Offset of field: Generator::flags"] [:: std :: mem :: offset_of ! (Generator , flags) - 8usize] ; ["Offset of field: Generator::seed"] [:: std :: mem :: offset_of ! (Generator , seed) - 16usize] ; ["Offset of field: Generator::sha"] [:: std :: mem :: offset_of ! (Generator , sha) - 24usize] ; ["Offset of field: Generator::nn"] [:: std :: mem :: offset_of ! (Generator , nn) - 24624usize] ; ["Offset of field: Generator::en"] [:: std :: mem :: offset_of ! (Generator , en) - 27264usize] ; } ; unsafe extern "C" { # [doc = " Sets up a biome generator for a given MC version. The 'flags' can be used to\n control LARGE_BIOMES or to FORCE_OCEAN_VARIANTS to enable ocean variants at\n scales higher than normal."] pub fn setupGenerator (g : * mut Generator , mc : :: std :: os :: raw :: c_int , flags : u32) ; } unsafe extern "C" { # [doc = " Initializes the generator for a given dimension and seed.\n dim=0:   Overworld\n dim=-1:  Nether\n dim=+1:  End"] pub fn applySeed (g : * mut Generator , dim : :: std :: os :: raw :: c_int , seed : u64) ; } unsafe extern "C" { # [doc = " Calculates the buffer size (number of ints) required to generate a cuboidal\n volume of size (sx, sy, sz). If 'sy' is zero the buffer is calculated for a\n 2D plane (which is equivalent to sy=1 here).\n The function allocCache() can be used to allocate the corresponding int\n buffer using malloc()."] pub fn getMinCacheSize (g : * const Generator , scale : :: std :: os :: raw :: c_int , sx : :: std :: os :: raw :: c_int , sy : :: std :: os :: raw :: c_int , sz : :: std :: os :: raw :: c_int) -> usize ; } unsafe extern "C" { pub fn allocCache (g : * const Generator , r : Range) -> * mut :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " Generates the biomes for a cuboidal scaled range given by 'r'.\n (See description of Range for more detail.)\n\n The output is generated inside the cache. Upon success the biome ids can be\n accessed by indexing as:\n  cache[ y*r.sx*r.sz + z*r.sx + x ]\n where (x,y,z) is an relative position inside the range cuboid.\n\n The required length of the cache can be determined with getMinCacheSize().\n\n The return value is zero upon success."] pub fn genBiomes (g : * const Generator , cache : * mut :: std :: os :: raw :: c_int , r : Range) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " Gets the biome for a specified scaled position. Note that the scale should\n be either 1 or 4, for block or biome coordinates respectively.\n Returns none (-1) upon failure."] pub fn getBiomeAt (g : * const Generator , scale : :: std :: os :: raw :: c_int , x : :: std :: os :: raw :: c_int , y : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " Returns the default layer that corresponds to the given scale.\n Supported scales are {0, 1, 4, 16, 64, 256}. A scale of zero indicates the\n custom entry layer 'g->entry'.\n (Overworld, MC <= 1.17)"] pub fn getLayerForScale (g : * const Generator , scale : :: std :: os :: raw :: c_int) -> * const Layer ; } unsafe extern "C" { # [doc = "=============================================================================\n Layered Biome Generation (old interface up to 1.17)\n============================================================================="] pub fn setupLayerStack (g : * mut LayerStack , mc : :: std :: os :: raw :: c_int , largeBiomes : :: std :: os :: raw :: c_int) ; } unsafe extern "C" { pub fn getMinLayerCacheSize (layer : * const Layer , sizeX : :: std :: os :: raw :: c_int , sizeZ : :: std :: os :: raw :: c_int) -> usize ; } unsafe extern "C" { pub fn setupLayer (l : * mut Layer , map : mapfunc_t , mc : :: std :: os :: raw :: c_int , zoom : i8 , edge : i8 , saltbase : u64 , p : * mut Layer , p2 : * mut Layer) -> * mut Layer ; } unsafe extern "C" { pub fn genArea (layer : * const Layer , out : * mut :: std :: os :: raw :: c_int , areaX : :: std :: os :: raw :: c_int , areaZ : :: std :: os :: raw :: c_int , areaWidth : :: std :: os :: raw :: c_int , areaHeight : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " Map an approximation of the Overworld surface height.\n The horizontal scaling is 1:4. If non-null, the ids are filled with the\n biomes of the area. The height (written to y) is in blocks."] pub fn mapApproxHeight (y : * mut f32 , ids : * mut :: std :: os :: raw :: c_int , g : * const Generator , sn : * const SurfaceNoise , x : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , w : :: std :: os :: raw :: c_int , h : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } impl StructureType { pub const Feature : StructureType = StructureType (0) ; } impl StructureType { pub const Desert_Pyramid : StructureType = StructureType (1) ; } impl StructureType { pub const Jungle_Temple : StructureType = StructureType (2) ; } impl StructureType { pub const Jungle_Pyramid : StructureType = StructureType (2) ; } impl StructureType { pub const Swamp_Hut : StructureType = StructureType (3) ; } impl StructureType { pub const Igloo : StructureType = StructureType (4) ; } impl StructureType { pub const Village : StructureType = StructureType (5) ; } impl StructureType { pub const Ocean_Ruin : StructureType = StructureType (6) ; } impl StructureType { pub const Shipwreck : StructureType = StructureType (7) ; } impl StructureType { pub const Monument : StructureType = StructureType (8) ; } impl StructureType { pub const Mansion : StructureType = StructureType (9) ; } impl StructureType { pub const Outpost : StructureType = StructureType (10) ; } impl StructureType { pub const Ruined_Portal : StructureType = StructureType (11) ; } impl StructureType { pub const Ruined_Portal_N : StructureType = StructureType (12) ; } impl StructureType { pub const Ancient_City : StructureType = StructureType (13) ; } impl StructureType { pub const Treasure : StructureType = StructureType (14) ; } impl StructureType { pub const Mineshaft : StructureType = StructureType (15) ; } impl StructureType { pub const Desert_Well : StructureType = StructureType (16) ; } impl StructureType { pub const Geode : StructureType = StructureType (17) ; } impl StructureType { pub const Fortress : StructureType = StructureType (18) ; } impl StructureType { pub const Bastion : StructureType = StructureType (19) ; } impl StructureType { pub const End_City : StructureType = StructureType (20) ; } impl StructureType { pub const End_Gateway : StructureType = StructureType (21) ; } impl StructureType { pub const End_Island : StructureType = StructureType (22) ; } impl StructureType { pub const Trail_Ruins : StructureType = StructureType (23) ; } impl StructureType { pub const Trial_Chambers : StructureType = StructureType (24) ; } impl StructureType { pub const FEATURE_NUM : StructureType = StructureType (25) ; } # [repr (transparent)] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct StructureType (pub :: std :: os :: raw :: c_uint) ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct StructureConfig { pub salt : i32 , pub regionSize : i8 , pub chunkRange : i8 , pub structType : u8 , pub dim : i8 , pub rarity : f32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of StructureConfig"] [:: std :: mem :: size_of :: < StructureConfig > () - 12usize] ; ["Alignment of StructureConfig"] [:: std :: mem :: align_of :: < StructureConfig > () - 4usize] ; ["Offset of field: StructureConfig::salt"] [:: std :: mem :: offset_of ! (StructureConfig , salt) - 0usize] ; ["Offset of field: StructureConfig::regionSize"] [:: std :: mem :: offset_of ! (StructureConfig , regionSize) - 4usize] ; ["Offset of field: StructureConfig::chunkRange"] [:: std :: mem :: offset_of ! (StructureConfig , chunkRange) - 5usize] ; ["Offset of field: StructureConfig::structType"] [:: std :: mem :: offset_of ! (StructureConfig , structType) - 6usize] ; ["Offset of field: StructureConfig::dim"] [:: std :: mem :: offset_of ! (StructureConfig , dim) - 7usize] ; ["Offset of field: StructureConfig::rarity"] [:: std :: mem :: offset_of ! (StructureConfig , rarity) - 8usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Pos { pub x : :: std :: os :: raw :: c_int , pub z : :: std :: os :: raw :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Pos"] [:: std :: mem :: size_of :: < Pos > () - 8usize] ; ["Alignment of Pos"] [:: std :: mem :: align_of :: < Pos > () - 4usize] ; ["Offset of field: Pos::x"] [:: std :: mem :: offset_of ! (Pos , x) - 0usize] ; ["Offset of field: Pos::z"] [:: std :: mem :: offset_of ! (Pos , z) - 4usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Pos3 { pub x : :: std :: os :: raw :: c_int , pub y : :: std :: os :: raw :: c_int , pub z : :: std :: os :: raw :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Pos3"] [:: std :: mem :: size_of :: < Pos3 > () - 12usize] ; ["Alignment of Pos3"] [:: std :: mem :: align_of :: < Pos3 > () - 4usize] ; ["Offset of field: Pos3::x"] [:: std :: mem :: offset_of ! (Pos3 , x) - 0usize] ; ["Offset of field: Pos3::y"] [:: std :: mem :: offset_of ! (Pos3 , y) - 4usize] ; ["Offset of field: Pos3::z"] [:: std :: mem :: offset_of ! (Pos3 , z) - 8usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct StrongholdIter { pub pos : Pos , pub nextapprox : Pos , pub index : :: std :: os :: raw :: c_int , pub ringnum : :: std :: os :: raw :: c_int , pub ringmax : :: std :: os :: raw :: c_int , pub ringidx : :: std :: os :: raw :: c_int , pub angle : f64 , pub dist : f64 , pub rnds : u64 , pub mc : :: std :: os :: raw :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of StrongholdIter"] [:: std :: mem :: size_of :: < StrongholdIter > () - 64usize] ; ["Alignment of StrongholdIter"] [:: std :: mem :: align_of :: < StrongholdIter > () - 8usize] ; ["Offset of field: StrongholdIter::pos"] [:: std :: mem :: offset_of ! (StrongholdIter , pos) - 0usize] ; ["Offset of field: StrongholdIter::nextapprox"] [:: std :: mem :: offset_of ! (StrongholdIter , nextapprox) - 8usize] ; ["Offset of field: StrongholdIter::index"] [:: std :: mem :: offset_of ! (StrongholdIter , index) - 16usize] ; ["Offset of field: StrongholdIter::ringnum"] [:: std :: mem :: offset_of ! (StrongholdIter , ringnum) - 20usize] ; ["Offset of field: StrongholdIter::ringmax"] [:: std :: mem :: offset_of ! (StrongholdIter , ringmax) - 24usize] ; ["Offset of field: StrongholdIter::ringidx"] [:: std :: mem :: offset_of ! (StrongholdIter , ringidx) - 28usize] ; ["Offset of field: StrongholdIter::angle"] [:: std :: mem :: offset_of ! (StrongholdIter , angle) - 32usize] ; ["Offset of field: StrongholdIter::dist"] [:: std :: mem :: offset_of ! (StrongholdIter , dist) - 40usize] ; ["Offset of field: StrongholdIter::rnds"] [:: std :: mem :: offset_of ! (StrongholdIter , rnds) - 48usize] ; ["Offset of field: StrongholdIter::mc"] [:: std :: mem :: offset_of ! (StrongholdIter , mc) - 56usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct StructureVariant { pub _bitfield_align_1 : [u8 ; 0] , pub _bitfield_1 : __BindgenBitfieldUnit < [u8 ; 1usize] > , pub size : u8 , pub start : u8 , pub biome : :: std :: os :: raw :: c_short , pub rotation : u8 , pub mirror : u8 , pub x : i16 , pub y : i16 , pub z : i16 , pub sx : i16 , pub sy : i16 , pub sz : i16 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of StructureVariant"] [:: std :: mem :: size_of :: < StructureVariant > () - 20usize] ; ["Alignment of StructureVariant"] [:: std :: mem :: align_of :: < StructureVariant > () - 2usize] ; ["Offset of field: StructureVariant::size"] [:: std :: mem :: offset_of ! (StructureVariant , size) - 1usize] ; ["Offset of field: StructureVariant::start"] [:: std :: mem :: offset_of ! (StructureVariant , start) - 2usize] ; ["Offset of field: StructureVariant::biome"] [:: std :: mem :: offset_of ! (StructureVariant , biome) - 4usize] ; ["Offset of field: StructureVariant::rotation"] [:: std :: mem :: offset_of ! (StructureVariant , rotation) - 6usize] ; ["Offset of field: StructureVariant::mirror"] [:: std :: mem :: offset_of ! (StructureVariant , mirror) - 7usize] ; ["Offset of field: StructureVariant::x"] [:: std :: mem :: offset_of ! (StructureVariant , x) - 8usize] ; ["Offset of field: StructureVariant::y"] [:: std :: mem :: offset_of ! (StructureVariant , y) - 10usize] ; ["Offset of field: StructureVariant::z"] [:: std :: mem :: offset_of ! (StructureVariant , z) - 12usize] ; ["Offset of field: StructureVariant::sx"] [:: std :: mem :: offset_of ! (StructureVariant , sx) - 14usize] ; ["Offset of field: StructureVariant::sy"] [:: std :: mem :: offset_of ! (StructureVariant , sy) - 16usize] ; ["Offset of field: StructureVariant::sz"] [:: std :: mem :: offset_of ! (StructureVariant , sz) - 18usize] ; } ; impl StructureVariant { # [inline] pub fn abandoned (& self) -> u8 { unsafe { :: std :: mem :: transmute (self . _bitfield_1 . get (0usize , 1u8) as u8) } } # [inline] pub fn set_abandoned (& mut self , val : u8) { unsafe { let val : u8 = :: std :: mem :: transmute (val) ; self . _bitfield_1 . set (0usize , 1u8 , val as u64) } } # [inline] pub unsafe fn abandoned_raw (this : * const Self) -> u8 { unsafe { :: std :: mem :: transmute (< __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_get (:: std :: ptr :: addr_of ! ((* this) . _bitfield_1) , 0usize , 1u8 ,) as u8) } } # [inline] pub unsafe fn set_abandoned_raw (this : * mut Self , val : u8) { unsafe { let val : u8 = :: std :: mem :: transmute (val) ; < __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_set (:: std :: ptr :: addr_of_mut ! ((* this) . _bitfield_1) , 0usize , 1u8 , val as u64 ,) } } # [inline] pub fn giant (& self) -> u8 { unsafe { :: std :: mem :: transmute (self . _bitfield_1 . get (1usize , 1u8) as u8) } } # [inline] pub fn set_giant (& mut self , val : u8) { unsafe { let val : u8 = :: std :: mem :: transmute (val) ; self . _bitfield_1 . set (1usize , 1u8 , val as u64) } } # [inline] pub unsafe fn giant_raw (this : * const Self) -> u8 { unsafe { :: std :: mem :: transmute (< __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_get (:: std :: ptr :: addr_of ! ((* this) . _bitfield_1) , 1usize , 1u8 ,) as u8) } } # [inline] pub unsafe fn set_giant_raw (this : * mut Self , val : u8) { unsafe { let val : u8 = :: std :: mem :: transmute (val) ; < __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_set (:: std :: ptr :: addr_of_mut ! ((* this) . _bitfield_1) , 1usize , 1u8 , val as u64 ,) } } # [inline] pub fn underground (& self) -> u8 { unsafe { :: std :: mem :: transmute (self . _bitfield_1 . get (2usize , 1u8) as u8) } } # [inline] pub fn set_underground (& mut self , val : u8) { unsafe { let val : u8 = :: std :: mem :: transmute (val) ; self . _bitfield_1 . set (2usize , 1u8 , val as u64) } } # [inline] pub unsafe fn underground_raw (this : * const Self) -> u8 { unsafe { :: std :: mem :: transmute (< __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_get (:: std :: ptr :: addr_of ! ((* this) . _bitfield_1) , 2usize , 1u8 ,) as u8) } } # [inline] pub unsafe fn set_underground_raw (this : * mut Self , val : u8) { unsafe { let val : u8 = :: std :: mem :: transmute (val) ; < __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_set (:: std :: ptr :: addr_of_mut ! ((* this) . _bitfield_1) , 2usize , 1u8 , val as u64 ,) } } # [inline] pub fn airpocket (& self) -> u8 { unsafe { :: std :: mem :: transmute (self . _bitfield_1 . get (3usize , 1u8) as u8) } } # [inline] pub fn set_airpocket (& mut self , val : u8) { unsafe { let val : u8 = :: std :: mem :: transmute (val) ; self . _bitfield_1 . set (3usize , 1u8 , val as u64) } } # [inline] pub unsafe fn airpocket_raw (this : * const Self) -> u8 { unsafe { :: std :: mem :: transmute (< __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_get (:: std :: ptr :: addr_of ! ((* this) . _bitfield_1) , 3usize , 1u8 ,) as u8) } } # [inline] pub unsafe fn set_airpocket_raw (this : * mut Self , val : u8) { unsafe { let val : u8 = :: std :: mem :: transmute (val) ; < __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_set (:: std :: ptr :: addr_of_mut ! ((* this) . _bitfield_1) , 3usize , 1u8 , val as u64 ,) } } # [inline] pub fn basement (& self) -> u8 { unsafe { :: std :: mem :: transmute (self . _bitfield_1 . get (4usize , 1u8) as u8) } } # [inline] pub fn set_basement (& mut self , val : u8) { unsafe { let val : u8 = :: std :: mem :: transmute (val) ; self . _bitfield_1 . set (4usize , 1u8 , val as u64) } } # [inline] pub unsafe fn basement_raw (this : * const Self) -> u8 { unsafe { :: std :: mem :: transmute (< __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_get (:: std :: ptr :: addr_of ! ((* this) . _bitfield_1) , 4usize , 1u8 ,) as u8) } } # [inline] pub unsafe fn set_basement_raw (this : * mut Self , val : u8) { unsafe { let val : u8 = :: std :: mem :: transmute (val) ; < __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_set (:: std :: ptr :: addr_of_mut ! ((* this) . _bitfield_1) , 4usize , 1u8 , val as u64 ,) } } # [inline] pub fn cracked (& self) -> u8 { unsafe { :: std :: mem :: transmute (self . _bitfield_1 . get (5usize , 1u8) as u8) } } # [inline] pub fn set_cracked (& mut self , val : u8) { unsafe { let val : u8 = :: std :: mem :: transmute (val) ; self . _bitfield_1 . set (5usize , 1u8 , val as u64) } } # [inline] pub unsafe fn cracked_raw (this : * const Self) -> u8 { unsafe { :: std :: mem :: transmute (< __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_get (:: std :: ptr :: addr_of ! ((* this) . _bitfield_1) , 5usize , 1u8 ,) as u8) } } # [inline] pub unsafe fn set_cracked_raw (this : * mut Self , val : u8) { unsafe { let val : u8 = :: std :: mem :: transmute (val) ; < __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_set (:: std :: ptr :: addr_of_mut ! ((* this) . _bitfield_1) , 5usize , 1u8 , val as u64 ,) } } # [inline] pub fn new_bitfield_1 (abandoned : u8 , giant : u8 , underground : u8 , airpocket : u8 , basement : u8 , cracked : u8) -> __BindgenBitfieldUnit < [u8 ; 1usize] > { let mut __bindgen_bitfield_unit : __BindgenBitfieldUnit < [u8 ; 1usize] > = Default :: default () ; __bindgen_bitfield_unit . set (0usize , 1u8 , { let abandoned : u8 = unsafe { :: std :: mem :: transmute (abandoned) } ; abandoned as u64 }) ; __bindgen_bitfield_unit . set (1usize , 1u8 , { let giant : u8 = unsafe { :: std :: mem :: transmute (giant) } ; giant as u64 }) ; __bindgen_bitfield_unit . set (2usize , 1u8 , { let underground : u8 = unsafe { :: std :: mem :: transmute (underground) } ; underground as u64 }) ; __bindgen_bitfield_unit . set (3usize , 1u8 , { let airpocket : u8 = unsafe { :: std :: mem :: transmute (airpocket) } ; airpocket as u64 }) ; __bindgen_bitfield_unit . set (4usize , 1u8 , { let basement : u8 = unsafe { :: std :: mem :: transmute (basement) } ; basement as u64 }) ; __bindgen_bitfield_unit . set (5usize , 1u8 , { let cracked : u8 = unsafe { :: std :: mem :: transmute (cracked) } ; cracked as u64 }) ; __bindgen_bitfield_unit } } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Piece { pub name : * const :: std :: os :: raw :: c_char , pub pos : Pos3 , pub bb0 : Pos3 , pub bb1 : Pos3 , pub rot : u8 , pub depth : i8 , pub type_ : i8 , pub next : * mut Piece , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Piece"] [:: std :: mem :: size_of :: < Piece > () - 56usize] ; ["Alignment of Piece"] [:: std :: mem :: align_of :: < Piece > () - 8usize] ; ["Offset of field: Piece::name"] [:: std :: mem :: offset_of ! (Piece , name) - 0usize] ; ["Offset of field: Piece::pos"] [:: std :: mem :: offset_of ! (Piece , pos) - 8usize] ; ["Offset of field: Piece::bb0"] [:: std :: mem :: offset_of ! (Piece , bb0) - 20usize] ; ["Offset of field: Piece::bb1"] [:: std :: mem :: offset_of ! (Piece , bb1) - 32usize] ; ["Offset of field: Piece::rot"] [:: std :: mem :: offset_of ! (Piece , rot) - 44usize] ; ["Offset of field: Piece::depth"] [:: std :: mem :: offset_of ! (Piece , depth) - 45usize] ; ["Offset of field: Piece::type_"] [:: std :: mem :: offset_of ! (Piece , type_) - 46usize] ; ["Offset of field: Piece::next"] [:: std :: mem :: offset_of ! (Piece , next) - 48usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct EndIsland { pub x : :: std :: os :: raw :: c_int , pub y : :: std :: os :: raw :: c_int , pub z : :: std :: os :: raw :: c_int , pub r : :: std :: os :: raw :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of EndIsland"] [:: std :: mem :: size_of :: < EndIsland > () - 16usize] ; ["Alignment of EndIsland"] [:: std :: mem :: align_of :: < EndIsland > () - 4usize] ; ["Offset of field: EndIsland::x"] [:: std :: mem :: offset_of ! (EndIsland , x) - 0usize] ; ["Offset of field: EndIsland::y"] [:: std :: mem :: offset_of ! (EndIsland , y) - 4usize] ; ["Offset of field: EndIsland::z"] [:: std :: mem :: offset_of ! (EndIsland , z) - 8usize] ; ["Offset of field: EndIsland::r"] [:: std :: mem :: offset_of ! (EndIsland , r) - 12usize] ; } ; pub const BF_APPROX : _bindgen_ty_5 = _bindgen_ty_5 (1) ; pub const BF_FORCED_OCEAN : _bindgen_ty_5 = _bindgen_ty_5 (4) ; # [repr (transparent)] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct _bindgen_ty_5 (pub :: std :: os :: raw :: c_uint) ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct BiomeFilter { pub tempsToFind : u64 , pub otempToFind : u64 , pub majorToFind : u64 , pub edgesToFind : u64 , pub raresToFind : u64 , pub raresToFindM : u64 , pub shoreToFind : u64 , pub shoreToFindM : u64 , pub riverToFind : u64 , pub riverToFindM : u64 , pub oceanToFind : u64 , pub specialCnt : :: std :: os :: raw :: c_int , pub flags : u32 , pub tempsToExcl : u64 , pub majorToExcl : u64 , pub edgesToExcl : u64 , pub raresToExcl : u64 , pub raresToExclM : u64 , pub shoreToExcl : u64 , pub shoreToExclM : u64 , pub riverToExcl : u64 , pub riverToExclM : u64 , pub biomeToExcl : u64 , pub biomeToExclM : u64 , pub biomeToFind : u64 , pub biomeToFindM : u64 , pub biomeToPick : u64 , pub biomeToPickM : u64 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of BiomeFilter"] [:: std :: mem :: size_of :: < BiomeFilter > () - 216usize] ; ["Alignment of BiomeFilter"] [:: std :: mem :: align_of :: < BiomeFilter > () - 8usize] ; ["Offset of field: BiomeFilter::tempsToFind"] [:: std :: mem :: offset_of ! (BiomeFilter , tempsToFind) - 0usize] ; ["Offset of field: BiomeFilter::otempToFind"] [:: std :: mem :: offset_of ! (BiomeFilter , otempToFind) - 8usize] ; ["Offset of field: BiomeFilter::majorToFind"] [:: std :: mem :: offset_of ! (BiomeFilter , majorToFind) - 16usize] ; ["Offset of field: BiomeFilter::edgesToFind"] [:: std :: mem :: offset_of ! (BiomeFilter , edgesToFind) - 24usize] ; ["Offset of field: BiomeFilter::raresToFind"] [:: std :: mem :: offset_of ! (BiomeFilter , raresToFind) - 32usize] ; ["Offset of field: BiomeFilter::raresToFindM"] [:: std :: mem :: offset_of ! (BiomeFilter , raresToFindM) - 40usize] ; ["Offset of field: BiomeFilter::shoreToFind"] [:: std :: mem :: offset_of ! (BiomeFilter , shoreToFind) - 48usize] ; ["Offset of field: BiomeFilter::shoreToFindM"] [:: std :: mem :: offset_of ! (BiomeFilter , shoreToFindM) - 56usize] ; ["Offset of field: BiomeFilter::riverToFind"] [:: std :: mem :: offset_of ! (BiomeFilter , riverToFind) - 64usize] ; ["Offset of field: BiomeFilter::riverToFindM"] [:: std :: mem :: offset_of ! (BiomeFilter , riverToFindM) - 72usize] ; ["Offset of field: BiomeFilter::oceanToFind"] [:: std :: mem :: offset_of ! (BiomeFilter , oceanToFind) - 80usize] ; ["Offset of field: BiomeFilter::specialCnt"] [:: std :: mem :: offset_of ! (BiomeFilter , specialCnt) - 88usize] ; ["Offset of field: BiomeFilter::flags"] [:: std :: mem :: offset_of ! (BiomeFilter , flags) - 92usize] ; ["Offset of field: BiomeFilter::tempsToExcl"] [:: std :: mem :: offset_of ! (BiomeFilter , tempsToExcl) - 96usize] ; ["Offset of field: BiomeFilter::majorToExcl"] [:: std :: mem :: offset_of ! (BiomeFilter , majorToExcl) - 104usize] ; ["Offset of field: BiomeFilter::edgesToExcl"] [:: std :: mem :: offset_of ! (BiomeFilter , edgesToExcl) - 112usize] ; ["Offset of field: BiomeFilter::raresToExcl"] [:: std :: mem :: offset_of ! (BiomeFilter , raresToExcl) - 120usize] ; ["Offset of field: BiomeFilter::raresToExclM"] [:: std :: mem :: offset_of ! (BiomeFilter , raresToExclM) - 128usize] ; ["Offset of field: BiomeFilter::shoreToExcl"] [:: std :: mem :: offset_of ! (BiomeFilter , shoreToExcl) - 136usize] ; ["Offset of field: BiomeFilter::shoreToExclM"] [:: std :: mem :: offset_of ! (BiomeFilter , shoreToExclM) - 144usize] ; ["Offset of field: BiomeFilter::riverToExcl"] [:: std :: mem :: offset_of ! (BiomeFilter , riverToExcl) - 152usize] ; ["Offset of field: BiomeFilter::riverToExclM"] [:: std :: mem :: offset_of ! (BiomeFilter , riverToExclM) - 160usize] ; ["Offset of field: BiomeFilter::biomeToExcl"] [:: std :: mem :: offset_of ! (BiomeFilter , biomeToExcl) - 168usize] ; ["Offset of field: BiomeFilter::biomeToExclM"] [:: std :: mem :: offset_of ! (BiomeFilter , biomeToExclM) - 176usize] ; ["Offset of field: BiomeFilter::biomeToFind"] [:: std :: mem :: offset_of ! (BiomeFilter , biomeToFind) - 184usize] ; ["Offset of field: BiomeFilter::biomeToFindM"] [:: std :: mem :: offset_of ! (BiomeFilter , biomeToFindM) - 192usize] ; ["Offset of field: BiomeFilter::biomeToPick"] [:: std :: mem :: offset_of ! (BiomeFilter , biomeToPick) - 200usize] ; ["Offset of field: BiomeFilter::biomeToPickM"] [:: std :: mem :: offset_of ! (BiomeFilter , biomeToPickM) - 208usize] ; } ; unsafe extern "C" { pub fn getStructureConfig (structureType : :: std :: os :: raw :: c_int , mc : :: std :: os :: raw :: c_int , sconf : * mut StructureConfig) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getStructurePos (structureType : :: std :: os :: raw :: c_int , mc : :: std :: os :: raw :: c_int , seed : u64 , regX : :: std :: os :: raw :: c_int , regZ : :: std :: os :: raw :: c_int , pos : * mut Pos) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getMineshafts (mc : :: std :: os :: raw :: c_int , seed : u64 , chunkX : :: std :: os :: raw :: c_int , chunkZ : :: std :: os :: raw :: c_int , chunkW : :: std :: os :: raw :: c_int , chunkH : :: std :: os :: raw :: c_int , out : * mut Pos , nout : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getEndIslands (islands : * mut EndIsland , mc : :: std :: os :: raw :: c_int , seed : u64 , chunkX : :: std :: os :: raw :: c_int , chunkZ : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapEndIslandHeight (y : * mut f32 , en : * const EndNoise , seed : u64 , x : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , w : :: std :: os :: raw :: c_int , h : :: std :: os :: raw :: c_int , scale : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn isEndChunkEmpty (en : * const EndNoise , sn : * const SurfaceNoise , seed : u64 , chunkX : :: std :: os :: raw :: c_int , chunkZ : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn initFirstStronghold (sh : * mut StrongholdIter , mc : :: std :: os :: raw :: c_int , s48 : u64) -> Pos ; } unsafe extern "C" { pub fn nextStronghold (sh : * mut StrongholdIter , g : * const Generator) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn estimateSpawn (g : * const Generator , rng : * mut u64) -> Pos ; } unsafe extern "C" { pub fn getSpawn (g : * const Generator) -> Pos ; } unsafe extern "C" { pub fn locateBiome (g : * const Generator , x : :: std :: os :: raw :: c_int , y : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , radius : :: std :: os :: raw :: c_int , validB : u64 , validM : u64 , rng : * mut u64 , passes : * mut :: std :: os :: raw :: c_int) -> Pos ; } unsafe extern "C" { pub fn isViableStructurePos (structType : :: std :: os :: raw :: c_int , g : * mut Generator , blockX : :: std :: os :: raw :: c_int , blockZ : :: std :: os :: raw :: c_int , flags : u32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn isViableFeatureBiome (mc : :: std :: os :: raw :: c_int , structureType : :: std :: os :: raw :: c_int , biomeID : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn isViableStructureTerrain (structType : :: std :: os :: raw :: c_int , g : * mut Generator , blockX : :: std :: os :: raw :: c_int , blockZ : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn isViableEndCityTerrain (g : * const Generator , sn : * const SurfaceNoise , blockX : :: std :: os :: raw :: c_int , blockZ : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getVariant (sv : * mut StructureVariant , structType : :: std :: os :: raw :: c_int , mc : :: std :: os :: raw :: c_int , seed : u64 , blockX : :: std :: os :: raw :: c_int , blockZ : :: std :: os :: raw :: c_int , biomeID : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getEndCityPieces (pieces : * mut Piece , seed : u64 , chunkX : :: std :: os :: raw :: c_int , chunkZ : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } pub const BASE_FLOOR : _bindgen_ty_6 = _bindgen_ty_6 (0) ; pub const BASE_ROOF : _bindgen_ty_6 = _bindgen_ty_6 (1) ; pub const BRIDGE_END : _bindgen_ty_6 = _bindgen_ty_6 (2) ; pub const BRIDGE_GENTLE_STAIRS : _bindgen_ty_6 = _bindgen_ty_6 (3) ; pub const BRIDGE_PIECE : _bindgen_ty_6 = _bindgen_ty_6 (4) ; pub const BRIDGE_STEEP_STAIRS : _bindgen_ty_6 = _bindgen_ty_6 (5) ; pub const FAT_TOWER_BASE : _bindgen_ty_6 = _bindgen_ty_6 (6) ; pub const FAT_TOWER_MIDDLE : _bindgen_ty_6 = _bindgen_ty_6 (7) ; pub const FAT_TOWER_TOP : _bindgen_ty_6 = _bindgen_ty_6 (8) ; pub const SECOND_FLOOR_1 : _bindgen_ty_6 = _bindgen_ty_6 (9) ; pub const SECOND_FLOOR_2 : _bindgen_ty_6 = _bindgen_ty_6 (10) ; pub const SECOND_ROOF : _bindgen_ty_6 = _bindgen_ty_6 (11) ; pub const END_SHIP : _bindgen_ty_6 = _bindgen_ty_6 (12) ; pub const THIRD_FLOOR_1 : _bindgen_ty_6 = _bindgen_ty_6 (13) ; pub const THIRD_FLOOR_2 : _bindgen_ty_6 = _bindgen_ty_6 (14) ; pub const THIRD_ROOF : _bindgen_ty_6 = _bindgen_ty_6 (15) ; pub const TOWER_BASE : _bindgen_ty_6 = _bindgen_ty_6 (16) ; pub const TOWER_FLOOR : _bindgen_ty_6 = _bindgen_ty_6 (17) ; pub const TOWER_PIECE : _bindgen_ty_6 = _bindgen_ty_6 (18) ; pub const TOWER_TOP : _bindgen_ty_6 = _bindgen_ty_6 (19) ; pub const END_CITY_PIECES_MAX : _bindgen_ty_6 = _bindgen_ty_6 (421) ; # [repr (transparent)] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct _bindgen_ty_6 (pub :: std :: os :: raw :: c_uint) ; unsafe extern "C" { pub fn getFortressPieces (list : * mut Piece , n : :: std :: os :: raw :: c_int , mc : :: std :: os :: raw :: c_int , seed : u64 , chunkX : :: std :: os :: raw :: c_int , chunkZ : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } pub const FORTRESS_START : _bindgen_ty_7 = _bindgen_ty_7 (0) ; pub const BRIDGE_STRAIGHT : _bindgen_ty_7 = _bindgen_ty_7 (1) ; pub const BRIDGE_CROSSING : _bindgen_ty_7 = _bindgen_ty_7 (2) ; pub const BRIDGE_FORTIFIED_CROSSING : _bindgen_ty_7 = _bindgen_ty_7 (3) ; pub const BRIDGE_STAIRS : _bindgen_ty_7 = _bindgen_ty_7 (4) ; pub const BRIDGE_SPAWNER : _bindgen_ty_7 = _bindgen_ty_7 (5) ; pub const BRIDGE_CORRIDOR_ENTRANCE : _bindgen_ty_7 = _bindgen_ty_7 (6) ; pub const CORRIDOR_STRAIGHT : _bindgen_ty_7 = _bindgen_ty_7 (7) ; pub const CORRIDOR_CROSSING : _bindgen_ty_7 = _bindgen_ty_7 (8) ; pub const CORRIDOR_TURN_RIGHT : _bindgen_ty_7 = _bindgen_ty_7 (9) ; pub const CORRIDOR_TURN_LEFT : _bindgen_ty_7 = _bindgen_ty_7 (10) ; pub const CORRIDOR_STAIRS : _bindgen_ty_7 = _bindgen_ty_7 (11) ; pub const CORRIDOR_T_CROSSING : _bindgen_ty_7 = _bindgen_ty_7 (12) ; pub const CORRIDOR_NETHER_WART : _bindgen_ty_7 = _bindgen_ty_7 (13) ; pub const FORTRESS_END : _bindgen_ty_7 = _bindgen_ty_7 (14) ; pub const PIECE_COUNT : _bindgen_ty_7 = _bindgen_ty_7 (15) ; # [repr (transparent)] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct _bindgen_ty_7 (pub :: std :: os :: raw :: c_uint) ; unsafe extern "C" { pub fn getFixedEndGateways (mc : :: std :: os :: raw :: c_int , seed : u64 , src : * mut Pos) ; } unsafe extern "C" { pub fn getLinkedGatewayChunk (en : * const EndNoise , sn : * const SurfaceNoise , seed : u64 , src : Pos , dst : * mut Pos) -> Pos ; } unsafe extern "C" { pub fn getLinkedGatewayPos (en : * const EndNoise , sn : * const SurfaceNoise , seed : u64 , src : Pos) -> Pos ; } pub const HouseSmall : _bindgen_ty_8 = _bindgen_ty_8 (0) ; pub const Church : _bindgen_ty_8 = _bindgen_ty_8 (1) ; pub const Library : _bindgen_ty_8 = _bindgen_ty_8 (2) ; pub const WoodHut : _bindgen_ty_8 = _bindgen_ty_8 (3) ; pub const Butcher : _bindgen_ty_8 = _bindgen_ty_8 (4) ; pub const FarmLarge : _bindgen_ty_8 = _bindgen_ty_8 (5) ; pub const FarmSmall : _bindgen_ty_8 = _bindgen_ty_8 (6) ; pub const Blacksmith : _bindgen_ty_8 = _bindgen_ty_8 (7) ; pub const HouseLarge : _bindgen_ty_8 = _bindgen_ty_8 (8) ; pub const HOUSE_NUM : _bindgen_ty_8 = _bindgen_ty_8 (9) ; # [repr (transparent)] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct _bindgen_ty_8 (pub :: std :: os :: raw :: c_uint) ; unsafe extern "C" { pub fn getHouseList (houses : * mut :: std :: os :: raw :: c_int , seed : u64 , chunkX : :: std :: os :: raw :: c_int , chunkZ : :: std :: os :: raw :: c_int) -> u64 ; } unsafe extern "C" { pub fn monteCarloBiomes (g : * mut Generator , r : Range , rng : * mut u64 , coverage : f64 , confidence : f64 , eval : :: std :: option :: Option < unsafe extern "C" fn (g : * mut Generator , scale : :: std :: os :: raw :: c_int , x : :: std :: os :: raw :: c_int , y : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , data : * mut :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int > , data : * mut :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn setupBiomeFilter (bf : * mut BiomeFilter , mc : :: std :: os :: raw :: c_int , flags : u32 , required : * const :: std :: os :: raw :: c_int , requiredLen : :: std :: os :: raw :: c_int , excluded : * const :: std :: os :: raw :: c_int , excludedLen : :: std :: os :: raw :: c_int , matchany : * const :: std :: os :: raw :: c_int , matchanyLen : :: std :: os :: raw :: c_int) ; } unsafe extern "C" { pub fn checkForBiomes (g : * mut Generator , cache : * mut :: std :: os :: raw :: c_int , r : Range , dim : :: std :: os :: raw :: c_int , seed : u64 , filter : * const BiomeFilter , stop : * mut :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn checkForBiomesAtLayer (ls : * mut LayerStack , entry : * mut Layer , cache : * mut :: std :: os :: raw :: c_int , seed : u64 , x : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , w : :: std :: os :: raw :: c_uint , h : :: std :: os :: raw :: c_uint , filter : * const BiomeFilter) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn checkForTemps (g : * mut LayerStack , seed : u64 , x : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , w : :: std :: os :: raw :: c_int , h : :: std :: os :: raw :: c_int , tc : * const :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getBiomeCenters (pos : * mut Pos , siz : * mut :: std :: os :: raw :: c_int , nmax : :: std :: os :: raw :: c_int , g : * mut Generator , r : Range , match_ : :: std :: os :: raw :: c_int , minsiz : :: std :: os :: raw :: c_int , tol : :: std :: os :: raw :: c_int , stop : * mut :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn canBiomeGenerate (layerId : :: std :: os :: raw :: c_int , mc : :: std :: os :: raw :: c_int , flags : u32 , biomeID : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn genPotential (mL : * mut u64 , mM : * mut u64 , layerId : :: std :: os :: raw :: c_int , mc : :: std :: os :: raw :: c_int , flags : u32 , biomeID : :: std :: os :: raw :: c_int) ; } unsafe extern "C" { pub fn getAvailableBiomes (mL : * mut u64 , mM : * mut u64 , layerId : :: std :: os :: raw :: c_int , mc : :: std :: os :: raw :: c_int , flags : u32) ; } unsafe extern "C" { # [doc = " Runs a gradient descent towards the minimum of the noise parameter times a\n given factor. The algorithm is restricted to the area (x,z,w,h) and starts\n at (i0,j0) relative to (x,z). The iteration is terminated when either\n 1) a fix point has been reached,\n 2) maxiter iterations have been completed,\n 3) or the sampling position has moved more than maxrad away from (i0,j0).\n\n Alpha is an optimization argument that is used to determine the length of\n large steps based on the current gradient.\n\n Optionally, the iteration can also call the custom function:\n  func(data, x, z, factor*para_noise(x,z));\n\n The return value is the minimum value reached."] pub fn getParaDescent (para : * const DoublePerlinNoise , factor : f64 , x : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , w : :: std :: os :: raw :: c_int , h : :: std :: os :: raw :: c_int , i0 : :: std :: os :: raw :: c_int , j0 : :: std :: os :: raw :: c_int , maxrad : :: std :: os :: raw :: c_int , maxiter : :: std :: os :: raw :: c_int , alpha : f64 , data : * mut :: std :: os :: raw :: c_void , func : :: std :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: std :: os :: raw :: c_void , arg2 : :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : f64) -> :: std :: os :: raw :: c_int >) -> f64 ; } unsafe extern "C" { # [doc = " Determines the value range of a climate noise parameter over the given area.\n The sampling has scale 1:4 and sampling shift is not considered, so biomes\n could potentially *leak* in at the boarders.\n An optional function:\n  func(data, x, z, climate_noise(x,z))\n is called in each gradient descent iteration. If this function returns\n non-zero the search is aborted, the results are undefined and a non-zero\n error is returned.\n\n The results are written to pmin and pmax (which would be cast to an integer\n during boime mapping). Nullable, to look for minima and maxima separately."] pub fn getParaRange (para : * const DoublePerlinNoise , pmin : * mut f64 , pmax : * mut f64 , x : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , w : :: std :: os :: raw :: c_int , h : :: std :: os :: raw :: c_int , data : * mut :: std :: os :: raw :: c_void , func : :: std :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: std :: os :: raw :: c_void , arg2 : :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : f64) -> :: std :: os :: raw :: c_int >) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " Gets the min/max parameter values within which a biome change can occur."] pub fn getBiomeParaExtremes (mc : :: std :: os :: raw :: c_int) -> * const :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " Gets the min/max possible noise parameter values at which the given biome\n can generate. The values are in min/max pairs in order of:\n temperature, humidity, continentalness, erosion, depth, weirdness."] pub fn getBiomeParaLimits (mc : :: std :: os :: raw :: c_int , id : :: std :: os :: raw :: c_int) -> * const :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " Determines which biomes are able to generate given a set of climate\n parameter limits. Possible biomes are marked non-zero in the 'ids'."] pub fn getPossibleBiomesForLimits (ids : * mut :: std :: os :: raw :: c_char , mc : :: std :: os :: raw :: c_int , limits : * mut [:: std :: os :: raw :: c_int ; 2usize]) ; } unsafe extern "C" { # [doc = " Find the largest rectangle in ids[sx][sz] which consists only of 'match'.\n The limit corners are written to p0 and p1. Returned is the rectangle's area."] pub fn getLargestRec (match_ : :: std :: os :: raw :: c_int , ids : * const :: std :: os :: raw :: c_int , sx : :: std :: os :: raw :: c_int , sz : :: std :: os :: raw :: c_int , p0 : * mut Pos , p1 : * mut Pos) -> :: std :: os :: raw :: c_int ; } pub type __gnuc_va_list = __builtin_va_list ; # [repr (C)] # [derive (Copy , Clone)] pub struct __mbstate_t { pub __count : :: std :: os :: raw :: c_int , pub __value : __mbstate_t__bindgen_ty_1 , } # [repr (C)] # [derive (Copy , Clone)] pub union __mbstate_t__bindgen_ty_1 { pub __wch : :: std :: os :: raw :: c_uint , pub __wchb : [:: std :: os :: raw :: c_char ; 4usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __mbstate_t__bindgen_ty_1"] [:: std :: mem :: size_of :: < __mbstate_t__bindgen_ty_1 > () - 4usize] ; ["Alignment of __mbstate_t__bindgen_ty_1"] [:: std :: mem :: align_of :: < __mbstate_t__bindgen_ty_1 > () - 4usize] ; ["Offset of field: __mbstate_t__bindgen_ty_1::__wch"] [:: std :: mem :: offset_of ! (__mbstate_t__bindgen_ty_1 , __wch) - 0usize] ; ["Offset of field: __mbstate_t__bindgen_ty_1::__wchb"] [:: std :: mem :: offset_of ! (__mbstate_t__bindgen_ty_1 , __wchb) - 0usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __mbstate_t"] [:: std :: mem :: size_of :: < __mbstate_t > () - 8usize] ; ["Alignment of __mbstate_t"] [:: std :: mem :: align_of :: < __mbstate_t > () - 4usize] ; ["Offset of field: __mbstate_t::__count"] [:: std :: mem :: offset_of ! (__mbstate_t , __count) - 0usize] ; ["Offset of field: __mbstate_t::__value"] [:: std :: mem :: offset_of ! (__mbstate_t , __value) - 4usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub struct _G_fpos_t { pub __pos : __off_t , pub __state : __mbstate_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of _G_fpos_t"] [:: std :: mem :: size_of :: < _G_fpos_t > () - 16usize] ; ["Alignment of _G_fpos_t"] [:: std :: mem :: align_of :: < _G_fpos_t > () - 8usize] ; ["Offset of field: _G_fpos_t::__pos"] [:: std :: mem :: offset_of ! (_G_fpos_t , __pos) - 0usize] ; ["Offset of field: _G_fpos_t::__state"] [:: std :: mem :: offset_of ! (_G_fpos_t , __state) - 8usize] ; } ; pub type __fpos_t = _G_fpos_t ; # [repr (C)] # [derive (Copy , Clone)] pub struct _G_fpos64_t { pub __pos : __off64_t , pub __state : __mbstate_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of _G_fpos64_t"] [:: std :: mem :: size_of :: < _G_fpos64_t > () - 16usize] ; ["Alignment of _G_fpos64_t"] [:: std :: mem :: align_of :: < _G_fpos64_t > () - 8usize] ; ["Offset of field: _G_fpos64_t::__pos"] [:: std :: mem :: offset_of ! (_G_fpos64_t , __pos) - 0usize] ; ["Offset of field: _G_fpos64_t::__state"] [:: std :: mem :: offset_of ! (_G_fpos64_t , __state) - 8usize] ; } ; pub type __fpos64_t = _G_fpos64_t ; pub type __FILE = _IO_FILE ; pub type FILE = _IO_FILE ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_marker { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_codecvt { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_wide_data { _unused : [u8 ; 0] , } pub type _IO_lock_t = :: std :: os :: raw :: c_void ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_FILE { pub _flags : :: std :: os :: raw :: c_int , pub _IO_read_ptr : * mut :: std :: os :: raw :: c_char , pub _IO_read_end : * mut :: std :: os :: raw :: c_char , pub _IO_read_base : * mut :: std :: os :: raw :: c_char , pub _IO_write_base : * mut :: std :: os :: raw :: c_char , pub _IO_write_ptr : * mut :: std :: os :: raw :: c_char , pub _IO_write_end : * mut :: std :: os :: raw :: c_char , pub _IO_buf_base : * mut :: std :: os :: raw :: c_char , pub _IO_buf_end : * mut :: std :: os :: raw :: c_char , pub _IO_save_base : * mut :: std :: os :: raw :: c_char , pub _IO_backup_base : * mut :: std :: os :: raw :: c_char , pub _IO_save_end : * mut :: std :: os :: raw :: c_char , pub _markers : * mut _IO_marker , pub _chain : * mut _IO_FILE , pub _fileno : :: std :: os :: raw :: c_int , pub _bitfield_align_1 : [u32 ; 0] , pub _bitfield_1 : __BindgenBitfieldUnit < [u8 ; 3usize] > , pub _short_backupbuf : [:: std :: os :: raw :: c_char ; 1usize] , pub _old_offset : __off_t , pub _cur_column : :: std :: os :: raw :: c_ushort , pub _vtable_offset : :: std :: os :: raw :: c_schar , pub _shortbuf : [:: std :: os :: raw :: c_char ; 1usize] , pub _lock : * mut _IO_lock_t , pub _offset : __off64_t , pub _codecvt : * mut _IO_codecvt , pub _wide_data : * mut _IO_wide_data , pub _freeres_list : * mut _IO_FILE , pub _freeres_buf : * mut :: std :: os :: raw :: c_void , pub _prevchain : * mut * mut _IO_FILE , pub _mode : :: std :: os :: raw :: c_int , pub _unused3 : :: std :: os :: raw :: c_int , pub _total_written : __uint64_t , pub _unused2 : [:: std :: os :: raw :: c_char ; 8usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of _IO_FILE"] [:: std :: mem :: size_of :: < _IO_FILE > () - 216usize] ; ["Alignment of _IO_FILE"] [:: std :: mem :: align_of :: < _IO_FILE > () - 8usize] ; ["Offset of field: _IO_FILE::_flags"] [:: std :: mem :: offset_of ! (_IO_FILE , _flags) - 0usize] ; ["Offset of field: _IO_FILE::_IO_read_ptr"] [:: std :: mem :: offset_of ! (_IO_FILE , _IO_read_ptr) - 8usize] ; ["Offset of field: _IO_FILE::_IO_read_end"] [:: std :: mem :: offset_of ! (_IO_FILE , _IO_read_end) - 16usize] ; ["Offset of field: _IO_FILE::_IO_read_base"] [:: std :: mem :: offset_of ! (_IO_FILE , _IO_read_base) - 24usize] ; ["Offset of field: _IO_FILE::_IO_write_base"] [:: std :: mem :: offset_of ! (_IO_FILE , _IO_write_base) - 32usize] ; ["Offset of field: _IO_FILE::_IO_write_ptr"] [:: std :: mem :: offset_of ! (_IO_FILE , _IO_write_ptr) - 40usize] ; ["Offset of field: _IO_FILE::_IO_write_end"] [:: std :: mem :: offset_of ! (_IO_FILE , _IO_write_end) - 48usize] ; ["Offset of field: _IO_FILE::_IO_buf_base"] [:: std :: mem :: offset_of ! (_IO_FILE , _IO_buf_base) - 56usize] ; ["Offset of field: _IO_FILE::_IO_buf_end"] [:: std :: mem :: offset_of ! (_IO_FILE , _IO_buf_end) - 64usize] ; ["Offset of field: _IO_FILE::_IO_save_base"] [:: std :: mem :: offset_of ! (_IO_FILE , _IO_save_base) - 72usize] ; ["Offset of field: _IO_FILE::_IO_backup_base"] [:: std :: mem :: offset_of ! (_IO_FILE , _IO_backup_base) - 80usize] ; ["Offset of field: _IO_FILE::_IO_save_end"] [:: std :: mem :: offset_of ! (_IO_FILE , _IO_save_end) - 88usize] ; ["Offset of field: _IO_FILE::_markers"] [:: std :: mem :: offset_of ! (_IO_FILE , _markers) - 96usize] ; ["Offset of field: _IO_FILE::_chain"] [:: std :: mem :: offset_of ! (_IO_FILE , _chain) - 104usize] ; ["Offset of field: _IO_FILE::_fileno"] [:: std :: mem :: offset_of ! (_IO_FILE , _fileno) - 112usize] ; ["Offset of field: _IO_FILE::_short_backupbuf"] [:: std :: mem :: offset_of ! (_IO_FILE , _short_backupbuf) - 119usize] ; ["Offset of field: _IO_FILE::_old_offset"] [:: std :: mem :: offset_of ! (_IO_FILE , _old_offset) - 120usize] ; ["Offset of field: _IO_FILE::_cur_column"] [:: std :: mem :: offset_of ! (_IO_FILE , _cur_column) - 128usize] ; ["Offset of field: _IO_FILE::_vtable_offset"] [:: std :: mem :: offset_of ! (_IO_FILE , _vtable_offset) - 130usize] ; ["Offset of field: _IO_FILE::_shortbuf"] [:: std :: mem :: offset_of ! (_IO_FILE , _shortbuf) - 131usize] ; ["Offset of field: _IO_FILE::_lock"] [:: std :: mem :: offset_of ! (_IO_FILE , _lock) - 136usize] ; ["Offset of field: _IO_FILE::_offset"] [:: std :: mem :: offset_of ! (_IO_FILE , _offset) - 144usize] ; ["Offset of field: _IO_FILE::_codecvt"] [:: std :: mem :: offset_of ! (_IO_FILE , _codecvt) - 152usize] ; ["Offset of field: _IO_FILE::_wide_data"] [:: std :: mem :: offset_of ! (_IO_FILE , _wide_data) - 160usize] ; ["Offset of field: _IO_FILE::_freeres_list"] [:: std :: mem :: offset_of ! (_IO_FILE , _freeres_list) - 168usize] ; ["Offset of field: _IO_FILE::_freeres_buf"] [:: std :: mem :: offset_of ! (_IO_FILE , _freeres_buf) - 176usize] ; ["Offset of field: _IO_FILE::_prevchain"] [:: std :: mem :: offset_of ! (_IO_FILE , _prevchain) - 184usize] ; ["Offset of field: _IO_FILE::_mode"] [:: std :: mem :: offset_of ! (_IO_FILE , _mode) - 192usize] ; ["Offset of field: _IO_FILE::_unused3"] [:: std :: mem :: offset_of ! (_IO_FILE , _unused3) - 196usize] ; ["Offset of field: _IO_FILE::_total_written"] [:: std :: mem :: offset_of ! (_IO_FILE , _total_written) - 200usize] ; ["Offset of field: _IO_FILE::_unused2"] [:: std :: mem :: offset_of ! (_IO_FILE , _unused2) - 208usize] ; } ; impl _IO_FILE { # [inline] pub fn _flags2 (& self) -> :: std :: os :: raw :: c_int { unsafe { u32::cast_signed (self . _bitfield_1 . get (0usize , 24u8) as u32) } } # [inline] pub fn set__flags2 (& mut self , val : :: std :: os :: raw :: c_int) { unsafe { let val : u32 = :: std :: mem :: transmute (val) ; self . _bitfield_1 . set (0usize , 24u8 , val as u64) } } # [inline] pub unsafe fn _flags2_raw (this : * const Self) -> :: std :: os :: raw :: c_int { unsafe { :: std :: mem :: transmute (< __BindgenBitfieldUnit < [u8 ; 3usize] > > :: raw_get (:: std :: ptr :: addr_of ! ((* this) . _bitfield_1) , 0usize , 24u8 ,) as u32) } } # [inline] pub unsafe fn set__flags2_raw (this : * mut Self , val : :: std :: os :: raw :: c_int) { unsafe { let val : u32 = :: std :: mem :: transmute (val) ; < __BindgenBitfieldUnit < [u8 ; 3usize] > > :: raw_set (:: std :: ptr :: addr_of_mut ! ((* this) . _bitfield_1) , 0usize , 24u8 , val as u64 ,) } } # [inline] pub fn new_bitfield_1 (_flags2 : :: std :: os :: raw :: c_int) -> __BindgenBitfieldUnit < [u8 ; 3usize] > { let mut __bindgen_bitfield_unit : __BindgenBitfieldUnit < [u8 ; 3usize] > = Default :: default () ; __bindgen_bitfield_unit . set (0usize , 24u8 , { let _flags2 : u32 = unsafe { :: std :: mem :: transmute (_flags2) } ; _flags2 as u64 }) ; __bindgen_bitfield_unit } } pub type cookie_read_function_t = :: std :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: std :: os :: raw :: c_void , __buf : * mut :: std :: os :: raw :: c_char , __nbytes : usize) -> __ssize_t > ; pub type cookie_write_function_t = :: std :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: std :: os :: raw :: c_void , __buf : * const :: std :: os :: raw :: c_char , __nbytes : usize) -> __ssize_t > ; pub type cookie_seek_function_t = :: std :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: std :: os :: raw :: c_void , __pos : * mut __off64_t , __w : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int > ; pub type cookie_close_function_t = :: std :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_cookie_io_functions_t { pub read : cookie_read_function_t , pub write : cookie_write_function_t , pub seek : cookie_seek_function_t , pub close : cookie_close_function_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of _IO_cookie_io_functions_t"] [:: std :: mem :: size_of :: < _IO_cookie_io_functions_t > () - 32usize] ; ["Alignment of _IO_cookie_io_functions_t"] [:: std :: mem :: align_of :: < _IO_cookie_io_functions_t > () - 8usize] ; ["Offset of field: _IO_cookie_io_functions_t::read"] [:: std :: mem :: offset_of ! (_IO_cookie_io_functions_t , read) - 0usize] ; ["Offset of field: _IO_cookie_io_functions_t::write"] [:: std :: mem :: offset_of ! (_IO_cookie_io_functions_t , write) - 8usize] ; ["Offset of field: _IO_cookie_io_functions_t::seek"] [:: std :: mem :: offset_of ! (_IO_cookie_io_functions_t , seek) - 16usize] ; ["Offset of field: _IO_cookie_io_functions_t::close"] [:: std :: mem :: offset_of ! (_IO_cookie_io_functions_t , close) - 24usize] ; } ; pub type cookie_io_functions_t = _IO_cookie_io_functions_t ; pub type va_list = __gnuc_va_list ; pub type fpos_t = __fpos_t ; unsafe extern "C" { pub static mut stdin : * mut FILE ; } unsafe extern "C" { pub static mut stdout : * mut FILE ; } unsafe extern "C" { pub static mut stderr : * mut FILE ; } unsafe extern "C" { pub fn remove (__filename : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn rename (__old : * const :: std :: os :: raw :: c_char , __new : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn renameat (__oldfd : :: std :: os :: raw :: c_int , __old : * const :: std :: os :: raw :: c_char , __newfd : :: std :: os :: raw :: c_int , __new : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn fclose (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn tmpfile () -> * mut FILE ; } unsafe extern "C" { pub fn tmpnam (arg1 : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn tmpnam_r (__s : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn tempnam (__dir : * const :: std :: os :: raw :: c_char , __pfx : * const :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn fflush (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn fflush_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn fopen (__filename : * const :: std :: os :: raw :: c_char , __modes : * const :: std :: os :: raw :: c_char) -> * mut FILE ; } unsafe extern "C" { pub fn freopen (__filename : * const :: std :: os :: raw :: c_char , __modes : * const :: std :: os :: raw :: c_char , __stream : * mut FILE) -> * mut FILE ; } unsafe extern "C" { pub fn fdopen (__fd : :: std :: os :: raw :: c_int , __modes : * const :: std :: os :: raw :: c_char) -> * mut FILE ; } unsafe extern "C" { pub fn fopencookie (__magic_cookie : * mut :: std :: os :: raw :: c_void , __modes : * const :: std :: os :: raw :: c_char , __io_funcs : cookie_io_functions_t) -> * mut FILE ; } unsafe extern "C" { pub fn fmemopen (__s : * mut :: std :: os :: raw :: c_void , __len : usize , __modes : * const :: std :: os :: raw :: c_char) -> * mut FILE ; } unsafe extern "C" { pub fn open_memstream (__bufloc : * mut * mut :: std :: os :: raw :: c_char , __sizeloc : * mut usize) -> * mut FILE ; } unsafe extern "C" { pub fn setbuf (__stream : * mut FILE , __buf : * mut :: std :: os :: raw :: c_char) ; } unsafe extern "C" { pub fn setvbuf (__stream : * mut FILE , __buf : * mut :: std :: os :: raw :: c_char , __modes : :: std :: os :: raw :: c_int , __n : usize) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn setbuffer (__stream : * mut FILE , __buf : * mut :: std :: os :: raw :: c_char , __size : usize) ; } unsafe extern "C" { pub fn setlinebuf (__stream : * mut FILE) ; } unsafe extern "C" { pub fn fprintf (__stream : * mut FILE , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn printf (__format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn sprintf (__s : * mut :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn vfprintf (__s : * mut FILE , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn vprintf (__format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn vsprintf (__s : * mut :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn snprintf (__s : * mut :: std :: os :: raw :: c_char , __maxlen : :: std :: os :: raw :: c_ulong , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn vsnprintf (__s : * mut :: std :: os :: raw :: c_char , __maxlen : :: std :: os :: raw :: c_ulong , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn vasprintf (__ptr : * mut * mut :: std :: os :: raw :: c_char , __f : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __asprintf (__ptr : * mut * mut :: std :: os :: raw :: c_char , __fmt : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn asprintf (__ptr : * mut * mut :: std :: os :: raw :: c_char , __fmt : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn vdprintf (__fd : :: std :: os :: raw :: c_int , __fmt : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn dprintf (__fd : :: std :: os :: raw :: c_int , __fmt : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn fscanf (__stream : * mut FILE , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn scanf (__format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn sscanf (__s : * const :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [link_name = "\u{1}__isoc99_fscanf"] pub fn fscanf1 (__stream : * mut FILE , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [link_name = "\u{1}__isoc99_scanf"] pub fn scanf1 (__format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [link_name = "\u{1}__isoc99_sscanf"] pub fn sscanf1 (__s : * const :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn vfscanf (__s : * mut FILE , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn vscanf (__format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn vsscanf (__s : * const :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [link_name = "\u{1}__isoc99_vfscanf"] pub fn vfscanf1 (__s : * mut FILE , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [link_name = "\u{1}__isoc99_vscanf"] pub fn vscanf1 (__format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [link_name = "\u{1}__isoc99_vsscanf"] pub fn vsscanf1 (__s : * const :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn fgetc (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getc (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getchar () -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getc_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getchar_unlocked () -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn fgetc_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn fputc (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn putc (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn putchar (__c : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn fputc_unlocked (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn putc_unlocked (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn putchar_unlocked (__c : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getw (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn putw (__w : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn fgets (__s : * mut :: std :: os :: raw :: c_char , __n : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn __getdelim (__lineptr : * mut * mut :: std :: os :: raw :: c_char , __n : * mut usize , __delimiter : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> __ssize_t ; } unsafe extern "C" { pub fn getdelim (__lineptr : * mut * mut :: std :: os :: raw :: c_char , __n : * mut usize , __delimiter : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> __ssize_t ; } unsafe extern "C" { pub fn getline (__lineptr : * mut * mut :: std :: os :: raw :: c_char , __n : * mut usize , __stream : * mut FILE) -> __ssize_t ; } unsafe extern "C" { pub fn fputs (__s : * const :: std :: os :: raw :: c_char , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn puts (__s : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn ungetc (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn fread (__ptr : * mut :: std :: os :: raw :: c_void , __size : :: std :: os :: raw :: c_ulong , __n : :: std :: os :: raw :: c_ulong , __stream : * mut FILE) -> :: std :: os :: raw :: c_ulong ; } unsafe extern "C" { pub fn fwrite (__ptr : * const :: std :: os :: raw :: c_void , __size : :: std :: os :: raw :: c_ulong , __n : :: std :: os :: raw :: c_ulong , __s : * mut FILE) -> :: std :: os :: raw :: c_ulong ; } unsafe extern "C" { pub fn fread_unlocked (__ptr : * mut :: std :: os :: raw :: c_void , __size : usize , __n : usize , __stream : * mut FILE) -> usize ; } unsafe extern "C" { pub fn fwrite_unlocked (__ptr : * const :: std :: os :: raw :: c_void , __size : usize , __n : usize , __stream : * mut FILE) -> usize ; } unsafe extern "C" { pub fn fseek (__stream : * mut FILE , __off : :: std :: os :: raw :: c_long , __whence : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn ftell (__stream : * mut FILE) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn rewind (__stream : * mut FILE) ; } unsafe extern "C" { pub fn fseeko (__stream : * mut FILE , __off : __off_t , __whence : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn ftello (__stream : * mut FILE) -> __off_t ; } unsafe extern "C" { pub fn fgetpos (__stream : * mut FILE , __pos : * mut fpos_t) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn fsetpos (__stream : * mut FILE , __pos : * const fpos_t) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn clearerr (__stream : * mut FILE) ; } unsafe extern "C" { pub fn feof (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn ferror (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn clearerr_unlocked (__stream : * mut FILE) ; } unsafe extern "C" { pub fn feof_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn ferror_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn perror (__s : * const :: std :: os :: raw :: c_char) ; } unsafe extern "C" { pub fn fileno (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn fileno_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn pclose (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn popen (__command : * const :: std :: os :: raw :: c_char , __modes : * const :: std :: os :: raw :: c_char) -> * mut FILE ; } unsafe extern "C" { pub fn ctermid (__s : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn flockfile (__stream : * mut FILE) ; } unsafe extern "C" { pub fn ftrylockfile (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn funlockfile (__stream : * mut FILE) ; } unsafe extern "C" { pub fn __uflow (arg1 : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __overflow (arg1 : * mut FILE , arg2 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " Quad-Witch-Huts\n\n  For a quad-structure, we mainly care about relative positioning, so we can\n  get away with just checking the regions near the origin: (0,0),(0,1),(1,0)\n  and (1,1) and then move the structures to the desired position.\n\n  Futhermore, the PRNG that determines the chunk positions inside each region,\n  performs some modular arithmatic on the 48-bit numbers which causes some\n  restrictions on the lower bits when looking for near perfect structure\n  positions. This is difficult to prove, but can be used to reduce the number\n  of free bits to 28 which can be comfortably brute-forced to get the entire\n  set of quad-structure candidates. Each of the seeds found this way\n  describes entire set of possible quad-witch-huts (with degrees of freedom\n  for region-transposition, as well as the top 16-bit bits)."] pub static low20QuadIdeal : [u64 ; 4usize] ; } unsafe extern "C" { pub static low20QuadClassic : [u64 ; 5usize] ; } unsafe extern "C" { pub static low20QuadHutNormal : [u64 ; 11usize] ; } unsafe extern "C" { pub static low20QuadHutBarely : [u64 ; 29usize] ; } pub const CST_NONE : _bindgen_ty_9 = _bindgen_ty_9 (0) ; pub const CST_IDEAL : _bindgen_ty_9 = _bindgen_ty_9 (1) ; pub const CST_CLASSIC : _bindgen_ty_9 = _bindgen_ty_9 (2) ; pub const CST_NORMAL : _bindgen_ty_9 = _bindgen_ty_9 (3) ; pub const CST_BARELY : _bindgen_ty_9 = _bindgen_ty_9 (4) ; # [repr (transparent)] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct _bindgen_ty_9 (pub :: std :: os :: raw :: c_uint) ; unsafe extern "C" { pub fn getQuadHutCst (low20 : u64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn searchAll48 (seedbuf : * mut * mut u64 , buflen : * mut u64 , path : * const :: std :: os :: raw :: c_char , threads : :: std :: os :: raw :: c_int , lowBits : * const u64 , lowBitN : :: std :: os :: raw :: c_int , check : :: std :: option :: Option < unsafe extern "C" fn (s48 : u64 , data : * mut :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int > , data : * mut :: std :: os :: raw :: c_void , stop : * mut :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getOptimalAfk (p : * mut Pos , ax : :: std :: os :: raw :: c_int , ay : :: std :: os :: raw :: c_int , az : :: std :: os :: raw :: c_int , spcnt : * mut :: std :: os :: raw :: c_int) -> Pos ; } unsafe extern "C" { pub fn scanForQuads (sconf : StructureConfig , radius : :: std :: os :: raw :: c_int , s48 : u64 , lowBits : * const u64 , lowBitN : :: std :: os :: raw :: c_int , salt : u64 , x : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , w : :: std :: os :: raw :: c_int , h : :: std :: os :: raw :: c_int , qplist : * mut Pos , n : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn loadSavedSeeds (fnam : * const :: std :: os :: raw :: c_char , scnt : * mut u64) -> * mut u64 ; } unsafe extern "C" { # [doc = " convert between version enum and text"] pub fn mc2str (mc : :: std :: os :: raw :: c_int) -> * const :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn str2mc (s : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " get the resource id name for a biome (for versions 1.13+)"] pub fn biome2str (mc : :: std :: os :: raw :: c_int , id : :: std :: os :: raw :: c_int) -> * const :: std :: os :: raw :: c_char ; } unsafe extern "C" { # [doc = " get the resource id name for a structure"] pub fn struct2str (stype : :: std :: os :: raw :: c_int) -> * const :: std :: os :: raw :: c_char ; } unsafe extern "C" { # [doc = " initialize a biome colormap with some defaults"] pub fn initBiomeColors (biomeColors : * mut [:: std :: os :: raw :: c_uchar ; 3usize]) ; } unsafe extern "C" { pub fn initBiomeTypeColors (biomeColors : * mut [:: std :: os :: raw :: c_uchar ; 3usize]) ; } unsafe extern "C" { pub fn parseBiomeColors (biomeColors : * mut [:: std :: os :: raw :: c_uchar ; 3usize] , buf : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn biomesToImage (pixels : * mut :: std :: os :: raw :: c_uchar , biomeColors : * mut [:: std :: os :: raw :: c_uchar ; 3usize] , biomes : * const :: std :: os :: raw :: c_int , sx : :: std :: os :: raw :: c_uint , sy : :: std :: os :: raw :: c_uint , pixscale : :: std :: os :: raw :: c_uint , flip : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn savePPM (path : * const :: std :: os :: raw :: c_char , pixels : * const :: std :: os :: raw :: c_uchar , sx : :: std :: os :: raw :: c_uint , sy : :: std :: os :: raw :: c_uint) -> :: std :: os :: raw :: c_int ; } pub type __builtin_va_list = [__va_list_tag ; 1usize] ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __va_list_tag { pub gp_offset : :: std :: os :: raw :: c_uint , pub fp_offset : :: std :: os :: raw :: c_uint , pub overflow_arg_area : * mut :: std :: os :: raw :: c_void , pub reg_save_area : * mut :: std :: os :: raw :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __va_list_tag"] [:: std :: mem :: size_of :: < __va_list_tag > () - 24usize] ; ["Alignment of __va_list_tag"] [:: std :: mem :: align_of :: < __va_list_tag > () - 8usize] ; ["Offset of field: __va_list_tag::gp_offset"] [:: std :: mem :: offset_of ! (__va_list_tag , gp_offset) - 0usize] ; ["Offset of field: __va_list_tag::fp_offset"] [:: std :: mem :: offset_of ! (__va_list_tag , fp_offset) - 4usize] ; ["Offset of field: __va_list_tag::overflow_arg_area"] [:: std :: mem :: offset_of ! (__va_list_tag , overflow_arg_area) - 8usize] ; ["Offset of field: __va_list_tag::reg_save_area"] [:: std :: mem :: offset_of ! (__va_list_tag , reg_save_area) - 16usize] ; } ;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary transmute
[INFO] [stdout]  --> /opt/rustwide/target/debug/build/cubiomes-sys-067509f04bd29817/out/bindings.rs:3:215400
[INFO] [stdout]   |
[INFO] [stdout] 3 | ...: os :: raw :: c_int) { unsafe { let val : u32 = :: std :: mem :: transmute (val) ; self . _bitfield_1 . set (0usize , 24u8 , val ...
[INFO] [stdout]   |                                                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout] help: replace this with
[INFO] [stdout]   |
[INFO] [stdout] 3 - # [repr (C)] # [derive (Copy , Clone , Debug , Default , Eq , Hash , Ord , PartialEq , PartialOrd)] pub struct __BindgenBitfieldUnit < Storage > { storage : Storage , } impl < Storage > __BindgenBitfieldUnit < Storage > { # [inline] pub const fn new (storage : Storage) -> Self { Self { storage } } } impl < Storage > __BindgenBitfieldUnit < Storage > where Storage : AsRef < [u8] > + AsMut < [u8] >, { # [inline] fn extract_bit (byte : u8 , index : usize) -> bool { let bit_index = if cfg ! (target_endian = "big") { 7 - (index % 8) } else { index % 8 } ; let mask = 1 << bit_index ; byte & mask == mask } # [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] ; Self :: extract_bit (byte , index) } # [inline] pub unsafe fn raw_get_bit (this : * const Self , index : usize) -> bool { debug_assert ! (index / 8 < core :: mem :: size_of ::< Storage > ()) ; let byte_index = index / 8 ; let byte = * (core :: ptr :: addr_of ! ((* this) . storage) as * const u8) . offset (byte_index as isize) ; Self :: extract_bit (byte , index) } # [inline] fn change_bit (byte : u8 , index : usize , val : bool) -> u8 { let bit_index = if cfg ! (target_endian = "big") { 7 - (index % 8) } else { index % 8 } ; let mask = 1 << bit_index ; if val { byte | mask } else { byte & ! 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] ; * byte = Self :: change_bit (* byte , index , val) ; } # [inline] pub unsafe fn raw_set_bit (this : * mut Self , index : usize , val : bool) { debug_assert ! (index / 8 < core :: mem :: size_of ::< Storage > ()) ; let byte_index = index / 8 ; let byte = (core :: ptr :: addr_of_mut ! ((* this) . storage) as * mut u8) . offset (byte_index as isize) ; * byte = Self :: change_bit (* byte , index , val) ; } # [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) { let index = if cfg ! (target_endian = "big") { bit_width as usize - 1 - i } else { i } ; val |= 1 << index ; } } val } # [inline] pub unsafe fn raw_get (this : * const Self , bit_offset : usize , bit_width : u8 ,) -> u64 { debug_assert ! (bit_width <= 64) ; debug_assert ! (bit_offset / 8 < core :: mem :: size_of ::< Storage > ()) ; debug_assert ! ((bit_offset + (bit_width as usize)) / 8 <= core :: mem :: size_of ::< Storage > ()) ; let mut val = 0 ; for i in 0 .. (bit_width as usize) { if Self :: raw_get_bit (this , i + bit_offset) { let index = if cfg ! (target_endian = "big") { bit_width as usize - 1 - i } else { i } ; val |= 1 << index ; } } 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 ; let index = if cfg ! (target_endian = "big") { bit_width as usize - 1 - i } else { i } ; self . set_bit (index + bit_offset , val_bit_is_set) ; } } # [inline] pub unsafe fn raw_set (this : * mut Self , bit_offset : usize , bit_width : u8 , val : u64 ,) { debug_assert ! (bit_width <= 64) ; debug_assert ! (bit_offset / 8 < core :: mem :: size_of ::< Storage > ()) ; debug_assert ! ((bit_offset + (bit_width as usize)) / 8 <= core :: mem :: size_of ::< Storage > ()) ; for i in 0 .. (bit_width as usize) { let mask = 1 << i ; let val_bit_is_set = val & mask == mask ; let index = if cfg ! (target_endian = "big") { bit_width as usize - 1 - i } else { i } ; Self :: raw_set_bit (this , index + bit_offset , val_bit_is_set) ; } } } # [derive (PartialEq , Copy , Clone , Hash , Debug , Default)] # [repr (C)] pub struct __BindgenComplex < T > { pub re : T , pub im : T } pub const __STDC_FORMAT_MACROS : u32 = 1 ; pub const _FEATURES_H : u32 = 1 ; pub const _DEFAULT_SOURCE : u32 = 1 ; pub const __GLIBC_USE_ISOC2Y : u32 = 0 ; pub const __GLIBC_USE_ISOC23 : u32 = 0 ; pub const __USE_ISOC11 : u32 = 1 ; pub const __USE_ISOC99 : u32 = 1 ; pub const __USE_ISOC95 : u32 = 1 ; pub const __USE_POSIX_IMPLICITLY : u32 = 1 ; pub const _POSIX_SOURCE : u32 = 1 ; pub const _POSIX_C_SOURCE : u32 = 202405 ; pub const __USE_POSIX : u32 = 1 ; pub const __USE_POSIX2 : u32 = 1 ; pub const __USE_POSIX199309 : u32 = 1 ; pub const __USE_POSIX199506 : u32 = 1 ; pub const __USE_XOPEN2K : u32 = 1 ; pub const __USE_XOPEN2K8 : u32 = 1 ; pub const _ATFILE_SOURCE : u32 = 1 ; pub const __USE_XOPEN2K24 : u32 = 1 ; pub const __WORDSIZE : u32 = 64 ; pub const __WORDSIZE_TIME64_COMPAT32 : u32 = 1 ; pub const __SYSCALL_WORDSIZE : u32 = 64 ; pub const __TIMESIZE : u32 = 64 ; pub const __USE_TIME_BITS64 : u32 = 1 ; pub const __USE_MISC : u32 = 1 ; pub const __USE_ATFILE : u32 = 1 ; pub const __USE_FORTIFY_LEVEL : u32 = 0 ; pub const __GLIBC_USE_DEPRECATED_GETS : u32 = 0 ; pub const __GLIBC_USE_DEPRECATED_SCANF : u32 = 0 ; pub const __GLIBC_USE_C23_STRTOL : u32 = 0 ; pub const _STDC_PREDEF_H : u32 = 1 ; pub const __STDC_IEC_559__ : u32 = 1 ; pub const __STDC_IEC_60559_BFP__ : u32 = 201404 ; pub const __STDC_IEC_559_COMPLEX__ : u32 = 1 ; pub const __STDC_IEC_60559_COMPLEX__ : u32 = 201404 ; pub const __STDC_ISO_10646__ : u32 = 201706 ; pub const __GNU_LIBRARY__ : u32 = 6 ; pub const __GLIBC__ : u32 = 2 ; pub const __GLIBC_MINOR__ : u32 = 43 ; pub const _SYS_CDEFS_H : u32 = 1 ; pub const __glibc_c99_flexarr_available : u32 = 1 ; pub const __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI : u32 = 0 ; pub const __HAVE_GENERIC_SELECTION : u32 = 1 ; pub const __GLIBC_USE_LIB_EXT2 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_BFP_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_BFP_EXT_C23 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_FUNCS_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_FUNCS_EXT_C23 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_TYPES_EXT : u32 = 0 ; pub const _STDLIB_H : u32 = 1 ; pub const WNOHANG : u32 = 1 ; pub const WUNTRACED : u32 = 2 ; pub const WSTOPPED : u32 = 2 ; pub const WEXITED : u32 = 4 ; pub const WCONTINUED : u32 = 8 ; pub const WNOWAIT : u32 = 16777216 ; pub const __WNOTHREAD : u32 = 536870912 ; pub const __WALL : u32 = 1073741824 ; pub const __WCLONE : u32 = 2147483648 ; pub const __W_CONTINUED : u32 = 65535 ; pub const __WCOREFLAG : u32 = 128 ; pub const __HAVE_FLOAT128 : u32 = 1 ; pub const __HAVE_DISTINCT_FLOAT128 : u32 = 1 ; pub const __HAVE_FLOAT64X : u32 = 1 ; pub const __HAVE_FLOAT64X_LONG_DOUBLE : u32 = 1 ; pub const __HAVE_FLOAT16 : u32 = 0 ; pub const __HAVE_FLOAT32 : u32 = 1 ; pub const __HAVE_FLOAT64 : u32 = 1 ; pub const __HAVE_FLOAT32X : u32 = 1 ; pub const __HAVE_FLOAT128X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT16 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT32 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT64 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT32X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT64X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT128X : u32 = 0 ; pub const __HAVE_FLOATN_NOT_TYPEDEF : u32 = 0 ; pub const __ldiv_t_defined : u32 = 1 ; pub const __lldiv_t_defined : u32 = 1 ; pub const RAND_MAX : u32 = 2147483647 ; pub const EXIT_FAILURE : u32 = 1 ; pub const EXIT_SUCCESS : u32 = 0 ; pub const _SYS_TYPES_H : u32 = 1 ; pub const _BITS_TYPES_H : u32 = 1 ; pub const _BITS_TYPESIZES_H : u32 = 1 ; pub const __OFF_T_MATCHES_OFF64_T : u32 = 1 ; pub const __INO_T_MATCHES_INO64_T : u32 = 1 ; pub const __RLIM_T_MATCHES_RLIM64_T : u32 = 1 ; pub const __STATFS_MATCHES_STATFS64 : u32 = 1 ; pub const __KERNEL_OLD_TIMEVAL_MATCHES_TIMEVAL64 : u32 = 1 ; pub const __FD_SETSIZE : u32 = 1024 ; pub const _BITS_TIME64_H : u32 = 1 ; pub const __clock_t_defined : u32 = 1 ; pub const __clockid_t_defined : u32 = 1 ; pub const __time_t_defined : u32 = 1 ; pub const __timer_t_defined : u32 = 1 ; pub const _BITS_STDINT_INTN_H : u32 = 1 ; pub const __BIT_TYPES_DEFINED__ : u32 = 1 ; pub const _ENDIAN_H : u32 = 1 ; pub const _BITS_ENDIAN_H : u32 = 1 ; pub const __LITTLE_ENDIAN : u32 = 1234 ; pub const __BIG_ENDIAN : u32 = 4321 ; pub const __PDP_ENDIAN : u32 = 3412 ; pub const _BITS_ENDIANNESS_H : u32 = 1 ; pub const __BYTE_ORDER : u32 = 1234 ; pub const __FLOAT_WORD_ORDER : u32 = 1234 ; pub const LITTLE_ENDIAN : u32 = 1234 ; pub const BIG_ENDIAN : u32 = 4321 ; pub const PDP_ENDIAN : u32 = 3412 ; pub const BYTE_ORDER : u32 = 1234 ; pub const _BITS_BYTESWAP_H : u32 = 1 ; pub const _BITS_UINTN_IDENTITY_H : u32 = 1 ; pub const _SYS_SELECT_H : u32 = 1 ; pub const __sigset_t_defined : u32 = 1 ; pub const __timeval_defined : u32 = 1 ; pub const _STRUCT_TIMESPEC : u32 = 1 ; pub const FD_SETSIZE : u32 = 1024 ; pub const _BITS_PTHREADTYPES_COMMON_H : u32 = 1 ; pub const _THREAD_SHARED_TYPES_H : u32 = 1 ; pub const _BITS_PTHREADTYPES_ARCH_H : u32 = 1 ; pub const __SIZEOF_PTHREAD_MUTEX_T : u32 = 40 ; pub const __SIZEOF_PTHREAD_ATTR_T : u32 = 56 ; pub const __SIZEOF_PTHREAD_RWLOCK_T : u32 = 56 ; pub const __SIZEOF_PTHREAD_BARRIER_T : u32 = 32 ; pub const __SIZEOF_PTHREAD_MUTEXATTR_T : u32 = 4 ; pub const __SIZEOF_PTHREAD_COND_T : u32 = 48 ; pub const __SIZEOF_PTHREAD_CONDATTR_T : u32 = 4 ; pub const __SIZEOF_PTHREAD_RWLOCKATTR_T : u32 = 8 ; pub const __SIZEOF_PTHREAD_BARRIERATTR_T : u32 = 4 ; pub const _THREAD_MUTEX_INTERNAL_H : u32 = 1 ; pub const __PTHREAD_MUTEX_HAVE_PREV : u32 = 1 ; pub const __have_pthread_attr_t : u32 = 1 ; pub const _ALLOCA_H : u32 = 1 ; pub const _INTTYPES_H : u32 = 1 ; pub const _STDINT_H : u32 = 1 ; pub const _BITS_WCHAR_H : u32 = 1 ; pub const _BITS_STDINT_UINTN_H : u32 = 1 ; pub const _BITS_STDINT_LEAST_H : u32 = 1 ; pub const INT8_MIN : i32 = - 128 ; pub const INT16_MIN : i32 = - 32768 ; pub const INT32_MIN : i32 = - 2147483648 ; pub const INT8_MAX : u32 = 127 ; pub const INT16_MAX : u32 = 32767 ; pub const INT32_MAX : u32 = 2147483647 ; pub const UINT8_MAX : u32 = 255 ; pub const UINT16_MAX : u32 = 65535 ; pub const UINT32_MAX : u32 = 4294967295 ; pub const INT_LEAST8_MIN : i32 = - 128 ; pub const INT_LEAST16_MIN : i32 = - 32768 ; pub const INT_LEAST32_MIN : i32 = - 2147483648 ; pub const INT_LEAST8_MAX : u32 = 127 ; pub const INT_LEAST16_MAX : u32 = 32767 ; pub const INT_LEAST32_MAX : u32 = 2147483647 ; pub const UINT_LEAST8_MAX : u32 = 255 ; pub const UINT_LEAST16_MAX : u32 = 65535 ; pub const UINT_LEAST32_MAX : u32 = 4294967295 ; pub const INT_FAST8_MIN : i32 = - 128 ; pub const INT_FAST16_MIN : i64 = - 9223372036854775808 ; pub const INT_FAST32_MIN : i64 = - 9223372036854775808 ; pub const INT_FAST8_MAX : u32 = 127 ; pub const INT_FAST16_MAX : u64 = 9223372036854775807 ; pub const INT_FAST32_MAX : u64 = 9223372036854775807 ; pub const UINT_FAST8_MAX : u32 = 255 ; pub const UINT_FAST16_MAX : i32 = - 1 ; pub const UINT_FAST32_MAX : i32 = - 1 ; pub const INTPTR_MIN : i64 = - 9223372036854775808 ; pub const INTPTR_MAX : u64 = 9223372036854775807 ; pub const UINTPTR_MAX : i32 = - 1 ; pub const PTRDIFF_MIN : i64 = - 9223372036854775808 ; pub const PTRDIFF_MAX : u64 = 9223372036854775807 ; pub const SIG_ATOMIC_MIN : i32 = - 2147483648 ; pub const SIG_ATOMIC_MAX : u32 = 2147483647 ; pub const SIZE_MAX : i32 = - 1 ; pub const WINT_MIN : u32 = 0 ; pub const WINT_MAX : u32 = 4294967295 ; pub const ____gwchar_t_defined : u32 = 1 ; pub const __PRI64_PREFIX : & [u8 ; 2] = b"l\0" ; pub const __PRIPTR_PREFIX : & [u8 ; 2] = b"l\0" ; pub const PRId8 : & [u8 ; 4] = b"hhd\0" ; pub const PRId16 : & [u8 ; 3] = b"hd\0" ; pub const PRId32 : & [u8 ; 2] = b"d\0" ; pub const PRId64 : & [u8 ; 3] = b"ld\0" ; pub const PRIdLEAST8 : & [u8 ; 4] = b"hhd\0" ; pub const PRIdLEAST16 : & [u8 ; 3] = b"hd\0" ; pub const PRIdLEAST32 : & [u8 ; 2] = b"d\0" ; pub const PRIdLEAST64 : & [u8 ; 3] = b"ld\0" ; pub const PRIdFAST8 : & [u8 ; 4] = b"hhd\0" ; pub const PRIdFAST16 : & [u8 ; 3] = b"ld\0" ; pub const PRIdFAST32 : & [u8 ; 3] = b"ld\0" ; pub const PRIdFAST64 : & [u8 ; 3] = b"ld\0" ; pub const PRIi8 : & [u8 ; 4] = b"hhi\0" ; pub const PRIi16 : & [u8 ; 3] = b"hi\0" ; pub const PRIi32 : & [u8 ; 2] = b"i\0" ; pub const PRIi64 : & [u8 ; 3] = b"li\0" ; pub const PRIiLEAST8 : & [u8 ; 4] = b"hhi\0" ; pub const PRIiLEAST16 : & [u8 ; 3] = b"hi\0" ; pub const PRIiLEAST32 : & [u8 ; 2] = b"i\0" ; pub const PRIiLEAST64 : & [u8 ; 3] = b"li\0" ; pub const PRIiFAST8 : & [u8 ; 4] = b"hhi\0" ; pub const PRIiFAST16 : & [u8 ; 3] = b"li\0" ; pub const PRIiFAST32 : & [u8 ; 3] = b"li\0" ; pub const PRIiFAST64 : & [u8 ; 3] = b"li\0" ; pub const PRIo8 : & [u8 ; 4] = b"hho\0" ; pub const PRIo16 : & [u8 ; 3] = b"ho\0" ; pub const PRIo32 : & [u8 ; 2] = b"o\0" ; pub const PRIo64 : & [u8 ; 3] = b"lo\0" ; pub const PRIoLEAST8 : & [u8 ; 4] = b"hho\0" ; pub const PRIoLEAST16 : & [u8 ; 3] = b"ho\0" ; pub const PRIoLEAST32 : & [u8 ; 2] = b"o\0" ; pub const PRIoLEAST64 : & [u8 ; 3] = b"lo\0" ; pub const PRIoFAST8 : & [u8 ; 4] = b"hho\0" ; pub const PRIoFAST16 : & [u8 ; 3] = b"lo\0" ; pub const PRIoFAST32 : & [u8 ; 3] = b"lo\0" ; pub const PRIoFAST64 : & [u8 ; 3] = b"lo\0" ; pub const PRIu8 : & [u8 ; 4] = b"hhu\0" ; pub const PRIu16 : & [u8 ; 3] = b"hu\0" ; pub const PRIu32 : & [u8 ; 2] = b"u\0" ; pub const PRIu64 : & [u8 ; 3] = b"lu\0" ; pub const PRIuLEAST8 : & [u8 ; 4] = b"hhu\0" ; pub const PRIuLEAST16 : & [u8 ; 3] = b"hu\0" ; pub const PRIuLEAST32 : & [u8 ; 2] = b"u\0" ; pub const PRIuLEAST64 : & [u8 ; 3] = b"lu\0" ; pub const PRIuFAST8 : & [u8 ; 4] = b"hhu\0" ; pub const PRIuFAST16 : & [u8 ; 3] = b"lu\0" ; pub const PRIuFAST32 : & [u8 ; 3] = b"lu\0" ; pub const PRIuFAST64 : & [u8 ; 3] = b"lu\0" ; pub const PRIx8 : & [u8 ; 4] = b"hhx\0" ; pub const PRIx16 : & [u8 ; 3] = b"hx\0" ; pub const PRIx32 : & [u8 ; 2] = b"x\0" ; pub const PRIx64 : & [u8 ; 3] = b"lx\0" ; pub const PRIxLEAST8 : & [u8 ; 4] = b"hhx\0" ; pub const PRIxLEAST16 : & [u8 ; 3] = b"hx\0" ; pub const PRIxLEAST32 : & [u8 ; 2] = b"x\0" ; pub const PRIxLEAST64 : & [u8 ; 3] = b"lx\0" ; pub const PRIxFAST8 : & [u8 ; 4] = b"hhx\0" ; pub const PRIxFAST16 : & [u8 ; 3] = b"lx\0" ; pub const PRIxFAST32 : & [u8 ; 3] = b"lx\0" ; pub const PRIxFAST64 : & [u8 ; 3] = b"lx\0" ; pub const PRIX8 : & [u8 ; 4] = b"hhX\0" ; pub const PRIX16 : & [u8 ; 3] = b"hX\0" ; pub const PRIX32 : & [u8 ; 2] = b"X\0" ; pub const PRIX64 : & [u8 ; 3] = b"lX\0" ; pub const PRIXLEAST8 : & [u8 ; 4] = b"hhX\0" ; pub const PRIXLEAST16 : & [u8 ; 3] = b"hX\0" ; pub const PRIXLEAST32 : & [u8 ; 2] = b"X\0" ; pub const PRIXLEAST64 : & [u8 ; 3] = b"lX\0" ; pub const PRIXFAST8 : & [u8 ; 4] = b"hhX\0" ; pub const PRIXFAST16 : & [u8 ; 3] = b"lX\0" ; pub const PRIXFAST32 : & [u8 ; 3] = b"lX\0" ; pub const PRIXFAST64 : & [u8 ; 3] = b"lX\0" ; pub const PRIdMAX : & [u8 ; 3] = b"ld\0" ; pub const PRIiMAX : & [u8 ; 3] = b"li\0" ; pub const PRIoMAX : & [u8 ; 3] = b"lo\0" ; pub const PRIuMAX : & [u8 ; 3] = b"lu\0" ; pub const PRIxMAX : & [u8 ; 3] = b"lx\0" ; pub const PRIXMAX : & [u8 ; 3] = b"lX\0" ; pub const PRIdPTR : & [u8 ; 3] = b"ld\0" ; pub const PRIiPTR : & [u8 ; 3] = b"li\0" ; pub const PRIoPTR : & [u8 ; 3] = b"lo\0" ; pub const PRIuPTR : & [u8 ; 3] = b"lu\0" ; pub const PRIxPTR : & [u8 ; 3] = b"lx\0" ; pub const PRIXPTR : & [u8 ; 3] = b"lX\0" ; pub const SCNd8 : & [u8 ; 4] = b"hhd\0" ; pub const SCNd16 : & [u8 ; 3] = b"hd\0" ; pub const SCNd32 : & [u8 ; 2] = b"d\0" ; pub const SCNd64 : & [u8 ; 3] = b"ld\0" ; pub const SCNdLEAST8 : & [u8 ; 4] = b"hhd\0" ; pub const SCNdLEAST16 : & [u8 ; 3] = b"hd\0" ; pub const SCNdLEAST32 : & [u8 ; 2] = b"d\0" ; pub const SCNdLEAST64 : & [u8 ; 3] = b"ld\0" ; pub const SCNdFAST8 : & [u8 ; 4] = b"hhd\0" ; pub const SCNdFAST16 : & [u8 ; 3] = b"ld\0" ; pub const SCNdFAST32 : & [u8 ; 3] = b"ld\0" ; pub const SCNdFAST64 : & [u8 ; 3] = b"ld\0" ; pub const SCNi8 : & [u8 ; 4] = b"hhi\0" ; pub const SCNi16 : & [u8 ; 3] = b"hi\0" ; pub const SCNi32 : & [u8 ; 2] = b"i\0" ; pub const SCNi64 : & [u8 ; 3] = b"li\0" ; pub const SCNiLEAST8 : & [u8 ; 4] = b"hhi\0" ; pub const SCNiLEAST16 : & [u8 ; 3] = b"hi\0" ; pub const SCNiLEAST32 : & [u8 ; 2] = b"i\0" ; pub const SCNiLEAST64 : & [u8 ; 3] = b"li\0" ; pub const SCNiFAST8 : & [u8 ; 4] = b"hhi\0" ; pub const SCNiFAST16 : & [u8 ; 3] = b"li\0" ; pub const SCNiFAST32 : & [u8 ; 3] = b"li\0" ; pub const SCNiFAST64 : & [u8 ; 3] = b"li\0" ; pub const SCNu8 : & [u8 ; 4] = b"hhu\0" ; pub const SCNu16 : & [u8 ; 3] = b"hu\0" ; pub const SCNu32 : & [u8 ; 2] = b"u\0" ; pub const SCNu64 : & [u8 ; 3] = b"lu\0" ; pub const SCNuLEAST8 : & [u8 ; 4] = b"hhu\0" ; pub const SCNuLEAST16 : & [u8 ; 3] = b"hu\0" ; pub const SCNuLEAST32 : & [u8 ; 2] = b"u\0" ; pub const SCNuLEAST64 : & [u8 ; 3] = b"lu\0" ; pub const SCNuFAST8 : & [u8 ; 4] = b"hhu\0" ; pub const SCNuFAST16 : & [u8 ; 3] = b"lu\0" ; pub const SCNuFAST32 : & [u8 ; 3] = b"lu\0" ; pub const SCNuFAST64 : & [u8 ; 3] = b"lu\0" ; pub const SCNo8 : & [u8 ; 4] = b"hho\0" ; pub const SCNo16 : & [u8 ; 3] = b"ho\0" ; pub const SCNo32 : & [u8 ; 2] = b"o\0" ; pub const SCNo64 : & [u8 ; 3] = b"lo\0" ; pub const SCNoLEAST8 : & [u8 ; 4] = b"hho\0" ; pub const SCNoLEAST16 : & [u8 ; 3] = b"ho\0" ; pub const SCNoLEAST32 : & [u8 ; 2] = b"o\0" ; pub const SCNoLEAST64 : & [u8 ; 3] = b"lo\0" ; pub const SCNoFAST8 : & [u8 ; 4] = b"hho\0" ; pub const SCNoFAST16 : & [u8 ; 3] = b"lo\0" ; pub const SCNoFAST32 : & [u8 ; 3] = b"lo\0" ; pub const SCNoFAST64 : & [u8 ; 3] = b"lo\0" ; pub const SCNx8 : & [u8 ; 4] = b"hhx\0" ; pub const SCNx16 : & [u8 ; 3] = b"hx\0" ; pub const SCNx32 : & [u8 ; 2] = b"x\0" ; pub const SCNx64 : & [u8 ; 3] = b"lx\0" ; pub const SCNxLEAST8 : & [u8 ; 4] = b"hhx\0" ; pub const SCNxLEAST16 : & [u8 ; 3] = b"hx\0" ; pub const SCNxLEAST32 : & [u8 ; 2] = b"x\0" ; pub const SCNxLEAST64 : & [u8 ; 3] = b"lx\0" ; pub const SCNxFAST8 : & [u8 ; 4] = b"hhx\0" ; pub const SCNxFAST16 : & [u8 ; 3] = b"lx\0" ; pub const SCNxFAST32 : & [u8 ; 3] = b"lx\0" ; pub const SCNxFAST64 : & [u8 ; 3] = b"lx\0" ; pub const SCNdMAX : & [u8 ; 3] = b"ld\0" ; pub const SCNiMAX : & [u8 ; 3] = b"li\0" ; pub const SCNoMAX : & [u8 ; 3] = b"lo\0" ; pub const SCNuMAX : & [u8 ; 3] = b"lu\0" ; pub const SCNxMAX : & [u8 ; 3] = b"lx\0" ; pub const SCNdPTR : & [u8 ; 3] = b"ld\0" ; pub const SCNiPTR : & [u8 ; 3] = b"li\0" ; pub const SCNoPTR : & [u8 ; 3] = b"lo\0" ; pub const SCNuPTR : & [u8 ; 3] = b"lu\0" ; pub const SCNxPTR : & [u8 ; 3] = b"lx\0" ; pub const _MATH_H : u32 = 1 ; pub const _BITS_LIBM_SIMD_DECL_STUBS_H : u32 = 1 ; pub const __FP_LOGB0_IS_MIN : u32 = 1 ; pub const __FP_LOGBNAN_IS_MIN : u32 = 1 ; pub const FP_ILOGB0 : i32 = - 2147483648 ; pub const FP_ILOGBNAN : i32 = - 2147483648 ; pub const __MATH_DECLARING_DOUBLE : u32 = 1 ; pub const __MATH_DECLARING_FLOATN : u32 = 0 ; pub const __MATH_DECLARE_LDOUBLE : u32 = 1 ; pub const MATH_ERRNO : u32 = 1 ; pub const MATH_ERREXCEPT : u32 = 2 ; pub const math_errhandling : u32 = 3 ; pub const M_E : f64 = 2.718281828459045 ; pub const M_LOG2E : f64 = 1.4426950408889634 ; pub const M_LOG10E : f64 = 0.4342944819032518 ; pub const M_LN2 : f64 = 0.6931471805599453 ; pub const M_LN10 : f64 = 2.302585092994046 ; pub const M_PI : f64 = 3.141592653589793 ; pub const M_PI_2 : f64 = 1.5707963267948966 ; pub const M_PI_4 : f64 = 0.7853981633974483 ; pub const M_1_PI : f64 = 0.3183098861837907 ; pub const M_2_PI : f64 = 0.6366197723675814 ; pub const M_2_SQRTPI : f64 = 1.1283791670955126 ; pub const M_SQRT2 : f64 = 1.4142135623730951 ; pub const M_SQRT1_2 : f64 = 0.7071067811865476 ; pub const LAYER_INIT_SHA : i32 = - 1 ; pub const _STDIO_H : u32 = 1 ; pub const _____fpos_t_defined : u32 = 1 ; pub const ____mbstate_t_defined : u32 = 1 ; pub const _____fpos64_t_defined : u32 = 1 ; pub const ____FILE_defined : u32 = 1 ; pub const __FILE_defined : u32 = 1 ; pub const __struct_FILE_defined : u32 = 1 ; pub const _IO_EOF_SEEN : u32 = 16 ; pub const _IO_ERR_SEEN : u32 = 32 ; pub const _IO_USER_LOCK : u32 = 32768 ; pub const __cookie_io_functions_t_defined : u32 = 1 ; pub const _IOFBF : u32 = 0 ; pub const _IOLBF : u32 = 1 ; pub const _IONBF : u32 = 2 ; pub const BUFSIZ : u32 = 8192 ; pub const EOF : i32 = - 1 ; pub const SEEK_SET : u32 = 0 ; pub const SEEK_CUR : u32 = 1 ; pub const SEEK_END : u32 = 2 ; pub const P_tmpdir : & [u8 ; 5] = b"/tmp\0" ; pub const L_tmpnam : u32 = 20 ; pub const TMP_MAX : u32 = 238328 ; pub const _BITS_STDIO_LIM_H : u32 = 1 ; pub const FILENAME_MAX : u32 = 4096 ; pub const L_ctermid : u32 = 9 ; pub const FOPEN_MAX : u32 = 16 ; pub type wchar_t = :: std :: os :: raw :: c_int ; pub type __cfloat128 = __BindgenComplex < u128 > ; pub type _Float128 = u128 ; pub type _Float32 = f32 ; pub type _Float64 = f64 ; pub type _Float32x = f64 ; pub type _Float64x = u128 ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct div_t { pub quot : :: std :: os :: raw :: c_int , pub rem : :: std :: os :: raw :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of div_t"] [:: std :: mem :: size_of :: < div_t > () - 8usize] ; ["Alignment of div_t"] [:: std :: mem :: align_of :: < div_t > () - 4usize] ; ["Offset of field: div_t::quot"] [:: std :: mem :: offset_of ! (div_t , quot) - 0usize] ; ["Offset of field: div_t::rem"] [:: std :: mem :: offset_of ! (div_t , rem) - 4usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ldiv_t { pub quot : :: std :: os :: raw :: c_long , pub rem : :: std :: os :: raw :: c_long , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ldiv_t"] [:: std :: mem :: size_of :: < ldiv_t > () - 16usize] ; ["Alignment of ldiv_t"] [:: std :: mem :: align_of :: < ldiv_t > () - 8usize] ; ["Offset of field: ldiv_t::quot"] [:: std :: mem :: offset_of ! (ldiv_t , quot) - 0usize] ; ["Offset of field: ldiv_t::rem"] [:: std :: mem :: offset_of ! (ldiv_t , rem) - 8usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct lldiv_t { pub quot : :: std :: os :: raw :: c_longlong , pub rem : :: std :: os :: raw :: c_longlong , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of lldiv_t"] [:: std :: mem :: size_of :: < lldiv_t > () - 16usize] ; ["Alignment of lldiv_t"] [:: std :: mem :: align_of :: < lldiv_t > () - 8usize] ; ["Offset of field: lldiv_t::quot"] [:: std :: mem :: offset_of ! (lldiv_t , quot) - 0usize] ; ["Offset of field: lldiv_t::rem"] [:: std :: mem :: offset_of ! (lldiv_t , rem) - 8usize] ; } ; unsafe extern "C" { pub fn __ctype_get_mb_cur_max () -> usize ; } unsafe extern "C" { pub fn atof (__nptr : * const :: std :: os :: raw :: c_char) -> f64 ; } unsafe extern "C" { pub fn atoi (__nptr : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn atol (__nptr : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn atoll (__nptr : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn strtod (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char) -> f64 ; } unsafe extern "C" { pub fn strtof (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char) -> f32 ; } unsafe extern "C" { pub fn strtold (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char) -> u128 ; } unsafe extern "C" { pub fn strtol (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn strtoul (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_ulong ; } unsafe extern "C" { pub fn strtoq (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn strtouq (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_ulonglong ; } unsafe extern "C" { pub fn strtoll (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn strtoull (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_ulonglong ; } unsafe extern "C" { pub fn l64a (__n : :: std :: os :: raw :: c_long) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn a64l (__s : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_long ; } pub type __u_char = :: std :: os :: raw :: c_uchar ; pub type __u_short = :: std :: os :: raw :: c_ushort ; pub type __u_int = :: std :: os :: raw :: c_uint ; pub type __u_long = :: std :: os :: raw :: c_ulong ; 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_long ; pub type __uint64_t = :: std :: os :: raw :: c_ulong ; pub type __int_least8_t = __int8_t ; pub type __uint_least8_t = __uint8_t ; pub type __int_least16_t = __int16_t ; pub type __uint_least16_t = __uint16_t ; pub type __int_least32_t = __int32_t ; pub type __uint_least32_t = __uint32_t ; pub type __int_least64_t = __int64_t ; pub type __uint_least64_t = __uint64_t ; pub type __quad_t = :: std :: os :: raw :: c_long ; pub type __u_quad_t = :: std :: os :: raw :: c_ulong ; pub type __intmax_t = :: std :: os :: raw :: c_long ; pub type __uintmax_t = :: std :: os :: raw :: c_ulong ; pub type __dev_t = :: std :: os :: raw :: c_ulong ; pub type __uid_t = :: std :: os :: raw :: c_uint ; pub type __gid_t = :: std :: os :: raw :: c_uint ; pub type __ino_t = :: std :: os :: raw :: c_ulong ; pub type __ino64_t = :: std :: os :: raw :: c_ulong ; pub type __mode_t = :: std :: os :: raw :: c_uint ; pub type __nlink_t = :: std :: os :: raw :: c_ulong ; pub type __off_t = :: std :: os :: raw :: c_long ; pub type __off64_t = :: std :: os :: raw :: c_long ; pub type __pid_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [:: std :: os :: raw :: c_int ; 2usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __fsid_t"] [:: std :: mem :: size_of :: < __fsid_t > () - 8usize] ; ["Alignment of __fsid_t"] [:: std :: mem :: align_of :: < __fsid_t > () - 4usize] ; ["Offset of field: __fsid_t::__val"] [:: std :: mem :: offset_of ! (__fsid_t , __val) - 0usize] ; } ; pub type __clock_t = :: std :: os :: raw :: c_long ; pub type __rlim_t = :: std :: os :: raw :: c_ulong ; pub type __rlim64_t = :: std :: os :: raw :: c_ulong ; pub type __id_t = :: std :: os :: raw :: c_uint ; pub type __time_t = :: std :: os :: raw :: c_long ; pub type __useconds_t = :: std :: os :: raw :: c_uint ; pub type __suseconds_t = :: std :: os :: raw :: c_long ; pub type __suseconds64_t = :: std :: os :: raw :: c_long ; pub type __daddr_t = :: std :: os :: raw :: c_int ; pub type __key_t = :: std :: os :: raw :: c_int ; pub type __clockid_t = :: std :: os :: raw :: c_int ; pub type __timer_t = * mut :: std :: os :: raw :: c_void ; pub type __blksize_t = :: std :: os :: raw :: c_long ; pub type __blkcnt_t = :: std :: os :: raw :: c_long ; pub type __blkcnt64_t = :: std :: os :: raw :: c_long ; pub type __fsblkcnt_t = :: std :: os :: raw :: c_ulong ; pub type __fsblkcnt64_t = :: std :: os :: raw :: c_ulong ; pub type __fsfilcnt_t = :: std :: os :: raw :: c_ulong ; pub type __fsfilcnt64_t = :: std :: os :: raw :: c_ulong ; pub type __fsword_t = :: std :: os :: raw :: c_long ; pub type __ssize_t = :: std :: os :: raw :: c_long ; pub type __syscall_slong_t = :: std :: os :: raw :: c_long ; pub type __syscall_ulong_t = :: std :: os :: raw :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut :: std :: os :: raw :: c_char ; pub type __intptr_t = :: std :: os :: raw :: c_long ; pub type __socklen_t = :: std :: os :: raw :: c_uint ; pub type __sig_atomic_t = :: std :: os :: raw :: c_int ; pub type u_char = __u_char ; pub type u_short = __u_short ; pub type u_int = __u_int ; pub type u_long = __u_long ; pub type quad_t = __quad_t ; pub type u_quad_t = __u_quad_t ; pub type fsid_t = __fsid_t ; pub type loff_t = __loff_t ; pub type ino_t = __ino_t ; pub type dev_t = __dev_t ; pub type gid_t = __gid_t ; pub type mode_t = __mode_t ; pub type nlink_t = __nlink_t ; pub type uid_t = __uid_t ; pub type off_t = __off_t ; pub type pid_t = __pid_t ; pub type id_t = __id_t ; pub type daddr_t = __daddr_t ; pub type caddr_t = __caddr_t ; pub type key_t = __key_t ; pub type clock_t = __clock_t ; pub type clockid_t = __clockid_t ; pub type time_t = __time_t ; pub type timer_t = __timer_t ; pub type ulong = :: std :: os :: raw :: c_ulong ; pub type ushort = :: std :: os :: raw :: c_ushort ; pub type uint = :: std :: os :: raw :: c_uint ; pub type u_int8_t = __uint8_t ; pub type u_int16_t = __uint16_t ; pub type u_int32_t = __uint32_t ; pub type u_int64_t = __uint64_t ; pub type register_t = :: std :: os :: raw :: c_long ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __sigset_t { pub __val : [:: std :: os :: raw :: c_ulong ; 16usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __sigset_t"] [:: std :: mem :: size_of :: < __sigset_t > () - 128usize] ; ["Alignment of __sigset_t"] [:: std :: mem :: align_of :: < __sigset_t > () - 8usize] ; ["Offset of field: __sigset_t::__val"] [:: std :: mem :: offset_of ! (__sigset_t , __val) - 0usize] ; } ; pub type sigset_t = __sigset_t ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct timeval { pub tv_sec : __time_t , pub tv_usec : __suseconds_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of timeval"] [:: std :: mem :: size_of :: < timeval > () - 16usize] ; ["Alignment of timeval"] [:: std :: mem :: align_of :: < timeval > () - 8usize] ; ["Offset of field: timeval::tv_sec"] [:: std :: mem :: offset_of ! (timeval , tv_sec) - 0usize] ; ["Offset of field: timeval::tv_usec"] [:: std :: mem :: offset_of ! (timeval , tv_usec) - 8usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct timespec { pub tv_sec : __time_t , pub tv_nsec : __syscall_slong_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of timespec"] [:: std :: mem :: size_of :: < timespec > () - 16usize] ; ["Alignment of timespec"] [:: std :: mem :: align_of :: < timespec > () - 8usize] ; ["Offset of field: timespec::tv_sec"] [:: std :: mem :: offset_of ! (timespec , tv_sec) - 0usize] ; ["Offset of field: timespec::tv_nsec"] [:: std :: mem :: offset_of ! (timespec , tv_nsec) - 8usize] ; } ; pub type suseconds_t = __suseconds_t ; pub type __fd_mask = :: std :: os :: raw :: c_long ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct fd_set { pub __fds_bits : [__fd_mask ; 16usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of fd_set"] [:: std :: mem :: size_of :: < fd_set > () - 128usize] ; ["Alignment of fd_set"] [:: std :: mem :: align_of :: < fd_set > () - 8usize] ; ["Offset of field: fd_set::__fds_bits"] [:: std :: mem :: offset_of ! (fd_set , __fds_bits) - 0usize] ; } ; pub type fd_mask = __fd_mask ; unsafe extern "C" { pub fn select (__nfds : :: std :: os :: raw :: c_int , __readfds : * mut fd_set , __writefds : * mut fd_set , __exceptfds : * mut fd_set , __timeout : * mut timeval) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn pselect (__nfds : :: std :: os :: raw :: c_int , __readfds : * mut fd_set , __writefds : * mut fd_set , __exceptfds : * mut fd_set , __timeout : * const timespec , __sigmask : * const __sigset_t) -> :: std :: os :: raw :: c_int ; } pub type blksize_t = __blksize_t ; pub type blkcnt_t = __blkcnt_t ; pub type fsblkcnt_t = __fsblkcnt_t ; pub type fsfilcnt_t = __fsfilcnt_t ; # [repr (C)] # [derive (Copy , Clone)] pub union __atomic_wide_counter { pub __value64 : :: std :: os :: raw :: c_ulonglong , pub __value32 : __atomic_wide_counter__bindgen_ty_1 , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __atomic_wide_counter__bindgen_ty_1 { pub __low : :: std :: os :: raw :: c_uint , pub __high : :: std :: os :: raw :: c_uint , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __atomic_wide_counter__bindgen_ty_1"] [:: std :: mem :: size_of :: < __atomic_wide_counter__bindgen_ty_1 > () - 8usize] ; ["Alignment of __atomic_wide_counter__bindgen_ty_1"] [:: std :: mem :: align_of :: < __atomic_wide_counter__bindgen_ty_1 > () - 4usize] ; ["Offset of field: __atomic_wide_counter__bindgen_ty_1::__low"] [:: std :: mem :: offset_of ! (__atomic_wide_counter__bindgen_ty_1 , __low) - 0usize] ; ["Offset of field: __atomic_wide_counter__bindgen_ty_1::__high"] [:: std :: mem :: offset_of ! (__atomic_wide_counter__bindgen_ty_1 , __high) - 4usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __atomic_wide_counter"] [:: std :: mem :: size_of :: < __atomic_wide_counter > () - 8usize] ; ["Alignment of __atomic_wide_counter"] [:: std :: mem :: align_of :: < __atomic_wide_counter > () - 8usize] ; ["Offset of field: __atomic_wide_counter::__value64"] [:: std :: mem :: offset_of ! (__atomic_wide_counter , __value64) - 0usize] ; ["Offset of field: __atomic_wide_counter::__value32"] [:: std :: mem :: offset_of ! (__atomic_wide_counter , __value32) - 0usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_internal_list { pub __prev : * mut __pthread_internal_list , pub __next : * mut __pthread_internal_list , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __pthread_internal_list"] [:: std :: mem :: size_of :: < __pthread_internal_list > () - 16usize] ; ["Alignment of __pthread_internal_list"] [:: std :: mem :: align_of :: < __pthread_internal_list > () - 8usize] ; ["Offset of field: __pthread_internal_list::__prev"] [:: std :: mem :: offset_of ! (__pthread_internal_list , __prev) - 0usize] ; ["Offset of field: __pthread_internal_list::__next"] [:: std :: mem :: offset_of ! (__pthread_internal_list , __next) - 8usize] ; } ; pub type __pthread_list_t = __pthread_internal_list ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_internal_slist { pub __next : * mut __pthread_internal_slist , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __pthread_internal_slist"] [:: std :: mem :: size_of :: < __pthread_internal_slist > () - 8usize] ; ["Alignment of __pthread_internal_slist"] [:: std :: mem :: align_of :: < __pthread_internal_slist > () - 8usize] ; ["Offset of field: __pthread_internal_slist::__next"] [:: std :: mem :: offset_of ! (__pthread_internal_slist , __next) - 0usize] ; } ; pub type __pthread_slist_t = __pthread_internal_slist ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_mutex_s { pub __lock : :: std :: os :: raw :: c_int , pub __count : :: std :: os :: raw :: c_uint , pub __owner : :: std :: os :: raw :: c_int , pub __nusers : :: std :: os :: raw :: c_uint , pub __kind : :: std :: os :: raw :: c_int , pub __spins : :: std :: os :: raw :: c_short , pub __unused : :: std :: os :: raw :: c_short , pub __list : __pthread_list_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __pthread_mutex_s"] [:: std :: mem :: size_of :: < __pthread_mutex_s > () - 40usize] ; ["Alignment of __pthread_mutex_s"] [:: std :: mem :: align_of :: < __pthread_mutex_s > () - 8usize] ; ["Offset of field: __pthread_mutex_s::__lock"] [:: std :: mem :: offset_of ! (__pthread_mutex_s , __lock) - 0usize] ; ["Offset of field: __pthread_mutex_s::__count"] [:: std :: mem :: offset_of ! (__pthread_mutex_s , __count) - 4usize] ; ["Offset of field: __pthread_mutex_s::__owner"] [:: std :: mem :: offset_of ! (__pthread_mutex_s , __owner) - 8usize] ; ["Offset of field: __pthread_mutex_s::__nusers"] [:: std :: mem :: offset_of ! (__pthread_mutex_s , __nusers) - 12usize] ; ["Offset of field: __pthread_mutex_s::__kind"] [:: std :: mem :: offset_of ! (__pthread_mutex_s , __kind) - 16usize] ; ["Offset of field: __pthread_mutex_s::__spins"] [:: std :: mem :: offset_of ! (__pthread_mutex_s , __spins) - 20usize] ; ["Offset of field: __pthread_mutex_s::__unused"] [:: std :: mem :: offset_of ! (__pthread_mutex_s , __unused) - 22usize] ; ["Offset of field: __pthread_mutex_s::__list"] [:: std :: mem :: offset_of ! (__pthread_mutex_s , __list) - 24usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_rwlock_arch_t { pub __readers : :: std :: os :: raw :: c_uint , pub __writers : :: std :: os :: raw :: c_uint , pub __wrphase_futex : :: std :: os :: raw :: c_uint , pub __writers_futex : :: std :: os :: raw :: c_uint , pub __pad3 : :: std :: os :: raw :: c_uint , pub __pad4 : :: std :: os :: raw :: c_uint , pub __cur_writer : :: std :: os :: raw :: c_int , pub __shared : :: std :: os :: raw :: c_int , pub __pad1 : :: std :: os :: raw :: c_ulong , pub __pad2 : :: std :: os :: raw :: c_ulong , pub __flags : :: std :: os :: raw :: c_uint , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __pthread_rwlock_arch_t"] [:: std :: mem :: size_of :: < __pthread_rwlock_arch_t > () - 56usize] ; ["Alignment of __pthread_rwlock_arch_t"] [:: std :: mem :: align_of :: < __pthread_rwlock_arch_t > () - 8usize] ; ["Offset of field: __pthread_rwlock_arch_t::__readers"] [:: std :: mem :: offset_of ! (__pthread_rwlock_arch_t , __readers) - 0usize] ; ["Offset of field: __pthread_rwlock_arch_t::__writers"] [:: std :: mem :: offset_of ! (__pthread_rwlock_arch_t , __writers) - 4usize] ; ["Offset of field: __pthread_rwlock_arch_t::__wrphase_futex"] [:: std :: mem :: offset_of ! (__pthread_rwlock_arch_t , __wrphase_futex) - 8usize] ; ["Offset of field: __pthread_rwlock_arch_t::__writers_futex"] [:: std :: mem :: offset_of ! (__pthread_rwlock_arch_t , __writers_futex) - 12usize] ; ["Offset of field: __pthread_rwlock_arch_t::__pad3"] [:: std :: mem :: offset_of ! (__pthread_rwlock_arch_t , __pad3) - 16usize] ; ["Offset of field: __pthread_rwlock_arch_t::__pad4"] [:: std :: mem :: offset_of ! (__pthread_rwlock_arch_t , __pad4) - 20usize] ; ["Offset of field: __pthread_rwlock_arch_t::__cur_writer"] [:: std :: mem :: offset_of ! (__pthread_rwlock_arch_t , __cur_writer) - 24usize] ; ["Offset of field: __pthread_rwlock_arch_t::__shared"] [:: std :: mem :: offset_of ! (__pthread_rwlock_arch_t , __shared) - 28usize] ; ["Offset of field: __pthread_rwlock_arch_t::__pad1"] [:: std :: mem :: offset_of ! (__pthread_rwlock_arch_t , __pad1) - 32usize] ; ["Offset of field: __pthread_rwlock_arch_t::__pad2"] [:: std :: mem :: offset_of ! (__pthread_rwlock_arch_t , __pad2) - 40usize] ; ["Offset of field: __pthread_rwlock_arch_t::__flags"] [:: std :: mem :: offset_of ! (__pthread_rwlock_arch_t , __flags) - 48usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub struct __pthread_cond_s { pub __wseq : __atomic_wide_counter , pub __g1_start : __atomic_wide_counter , pub __g_size : [:: std :: os :: raw :: c_uint ; 2usize] , pub __g1_orig_size : :: std :: os :: raw :: c_uint , pub __wrefs : :: std :: os :: raw :: c_uint , pub __g_signals : [:: std :: os :: raw :: c_uint ; 2usize] , pub __unused_initialized_1 : :: std :: os :: raw :: c_uint , pub __unused_initialized_2 : :: std :: os :: raw :: c_uint , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __pthread_cond_s"] [:: std :: mem :: size_of :: < __pthread_cond_s > () - 48usize] ; ["Alignment of __pthread_cond_s"] [:: std :: mem :: align_of :: < __pthread_cond_s > () - 8usize] ; ["Offset of field: __pthread_cond_s::__wseq"] [:: std :: mem :: offset_of ! (__pthread_cond_s , __wseq) - 0usize] ; ["Offset of field: __pthread_cond_s::__g1_start"] [:: std :: mem :: offset_of ! (__pthread_cond_s , __g1_start) - 8usize] ; ["Offset of field: __pthread_cond_s::__g_size"] [:: std :: mem :: offset_of ! (__pthread_cond_s , __g_size) - 16usize] ; ["Offset of field: __pthread_cond_s::__g1_orig_size"] [:: std :: mem :: offset_of ! (__pthread_cond_s , __g1_orig_size) - 24usize] ; ["Offset of field: __pthread_cond_s::__wrefs"] [:: std :: mem :: offset_of ! (__pthread_cond_s , __wrefs) - 28usize] ; ["Offset of field: __pthread_cond_s::__g_signals"] [:: std :: mem :: offset_of ! (__pthread_cond_s , __g_signals) - 32usize] ; ["Offset of field: __pthread_cond_s::__unused_initialized_1"] [:: std :: mem :: offset_of ! (__pthread_cond_s , __unused_initialized_1) - 40usize] ; ["Offset of field: __pthread_cond_s::__unused_initialized_2"] [:: std :: mem :: offset_of ! (__pthread_cond_s , __unused_initialized_2) - 44usize] ; } ; pub type __tss_t = :: std :: os :: raw :: c_uint ; pub type __thrd_t = :: std :: os :: raw :: c_ulong ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __once_flag { pub __data : :: std :: os :: raw :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __once_flag"] [:: std :: mem :: size_of :: < __once_flag > () - 4usize] ; ["Alignment of __once_flag"] [:: std :: mem :: align_of :: < __once_flag > () - 4usize] ; ["Offset of field: __once_flag::__data"] [:: std :: mem :: offset_of ! (__once_flag , __data) - 0usize] ; } ; pub type pthread_t = :: std :: os :: raw :: c_ulong ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_mutexattr_t { pub __size : [:: std :: os :: raw :: c_char ; 4usize] , pub __align : :: std :: os :: raw :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_mutexattr_t"] [:: std :: mem :: size_of :: < pthread_mutexattr_t > () - 4usize] ; ["Alignment of pthread_mutexattr_t"] [:: std :: mem :: align_of :: < pthread_mutexattr_t > () - 4usize] ; ["Offset of field: pthread_mutexattr_t::__size"] [:: std :: mem :: offset_of ! (pthread_mutexattr_t , __size) - 0usize] ; ["Offset of field: pthread_mutexattr_t::__align"] [:: std :: mem :: offset_of ! (pthread_mutexattr_t , __align) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_condattr_t { pub __size : [:: std :: os :: raw :: c_char ; 4usize] , pub __align : :: std :: os :: raw :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_condattr_t"] [:: std :: mem :: size_of :: < pthread_condattr_t > () - 4usize] ; ["Alignment of pthread_condattr_t"] [:: std :: mem :: align_of :: < pthread_condattr_t > () - 4usize] ; ["Offset of field: pthread_condattr_t::__size"] [:: std :: mem :: offset_of ! (pthread_condattr_t , __size) - 0usize] ; ["Offset of field: pthread_condattr_t::__align"] [:: std :: mem :: offset_of ! (pthread_condattr_t , __align) - 0usize] ; } ; pub type pthread_key_t = :: std :: os :: raw :: c_uint ; pub type pthread_once_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_attr_t { pub __size : [:: std :: os :: raw :: c_char ; 56usize] , pub __align : :: std :: os :: raw :: c_long , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_attr_t"] [:: std :: mem :: size_of :: < pthread_attr_t > () - 56usize] ; ["Alignment of pthread_attr_t"] [:: std :: mem :: align_of :: < pthread_attr_t > () - 8usize] ; ["Offset of field: pthread_attr_t::__size"] [:: std :: mem :: offset_of ! (pthread_attr_t , __size) - 0usize] ; ["Offset of field: pthread_attr_t::__align"] [:: std :: mem :: offset_of ! (pthread_attr_t , __align) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_mutex_t { pub __data : __pthread_mutex_s , pub __size : [:: std :: os :: raw :: c_char ; 40usize] , pub __align : :: std :: os :: raw :: c_long , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_mutex_t"] [:: std :: mem :: size_of :: < pthread_mutex_t > () - 40usize] ; ["Alignment of pthread_mutex_t"] [:: std :: mem :: align_of :: < pthread_mutex_t > () - 8usize] ; ["Offset of field: pthread_mutex_t::__data"] [:: std :: mem :: offset_of ! (pthread_mutex_t , __data) - 0usize] ; ["Offset of field: pthread_mutex_t::__size"] [:: std :: mem :: offset_of ! (pthread_mutex_t , __size) - 0usize] ; ["Offset of field: pthread_mutex_t::__align"] [:: std :: mem :: offset_of ! (pthread_mutex_t , __align) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_cond_t { pub __data : __pthread_cond_s , pub __size : [:: std :: os :: raw :: c_char ; 48usize] , pub __align : :: std :: os :: raw :: c_longlong , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_cond_t"] [:: std :: mem :: size_of :: < pthread_cond_t > () - 48usize] ; ["Alignment of pthread_cond_t"] [:: std :: mem :: align_of :: < pthread_cond_t > () - 8usize] ; ["Offset of field: pthread_cond_t::__data"] [:: std :: mem :: offset_of ! (pthread_cond_t , __data) - 0usize] ; ["Offset of field: pthread_cond_t::__size"] [:: std :: mem :: offset_of ! (pthread_cond_t , __size) - 0usize] ; ["Offset of field: pthread_cond_t::__align"] [:: std :: mem :: offset_of ! (pthread_cond_t , __align) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_rwlock_t { pub __data : __pthread_rwlock_arch_t , pub __size : [:: std :: os :: raw :: c_char ; 56usize] , pub __align : :: std :: os :: raw :: c_long , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_rwlock_t"] [:: std :: mem :: size_of :: < pthread_rwlock_t > () - 56usize] ; ["Alignment of pthread_rwlock_t"] [:: std :: mem :: align_of :: < pthread_rwlock_t > () - 8usize] ; ["Offset of field: pthread_rwlock_t::__data"] [:: std :: mem :: offset_of ! (pthread_rwlock_t , __data) - 0usize] ; ["Offset of field: pthread_rwlock_t::__size"] [:: std :: mem :: offset_of ! (pthread_rwlock_t , __size) - 0usize] ; ["Offset of field: pthread_rwlock_t::__align"] [:: std :: mem :: offset_of ! (pthread_rwlock_t , __align) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_rwlockattr_t { pub __size : [:: std :: os :: raw :: c_char ; 8usize] , pub __align : :: std :: os :: raw :: c_long , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_rwlockattr_t"] [:: std :: mem :: size_of :: < pthread_rwlockattr_t > () - 8usize] ; ["Alignment of pthread_rwlockattr_t"] [:: std :: mem :: align_of :: < pthread_rwlockattr_t > () - 8usize] ; ["Offset of field: pthread_rwlockattr_t::__size"] [:: std :: mem :: offset_of ! (pthread_rwlockattr_t , __size) - 0usize] ; ["Offset of field: pthread_rwlockattr_t::__align"] [:: std :: mem :: offset_of ! (pthread_rwlockattr_t , __align) - 0usize] ; } ; pub type pthread_spinlock_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_barrier_t { pub __size : [:: std :: os :: raw :: c_char ; 32usize] , pub __align : :: std :: os :: raw :: c_long , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_barrier_t"] [:: std :: mem :: size_of :: < pthread_barrier_t > () - 32usize] ; ["Alignment of pthread_barrier_t"] [:: std :: mem :: align_of :: < pthread_barrier_t > () - 8usize] ; ["Offset of field: pthread_barrier_t::__size"] [:: std :: mem :: offset_of ! (pthread_barrier_t , __size) - 0usize] ; ["Offset of field: pthread_barrier_t::__align"] [:: std :: mem :: offset_of ! (pthread_barrier_t , __align) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_barrierattr_t { pub __size : [:: std :: os :: raw :: c_char ; 4usize] , pub __align : :: std :: os :: raw :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_barrierattr_t"] [:: std :: mem :: size_of :: < pthread_barrierattr_t > () - 4usize] ; ["Alignment of pthread_barrierattr_t"] [:: std :: mem :: align_of :: < pthread_barrierattr_t > () - 4usize] ; ["Offset of field: pthread_barrierattr_t::__size"] [:: std :: mem :: offset_of ! (pthread_barrierattr_t , __size) - 0usize] ; ["Offset of field: pthread_barrierattr_t::__align"] [:: std :: mem :: offset_of ! (pthread_barrierattr_t , __align) - 0usize] ; } ; unsafe extern "C" { pub fn random () -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn srandom (__seed : :: std :: os :: raw :: c_uint) ; } unsafe extern "C" { pub fn initstate (__seed : :: std :: os :: raw :: c_uint , __statebuf : * mut :: std :: os :: raw :: c_char , __statelen : usize) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn setstate (__statebuf : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct random_data { pub fptr : * mut i32 , pub rptr : * mut i32 , pub state : * mut i32 , pub rand_type : :: std :: os :: raw :: c_int , pub rand_deg : :: std :: os :: raw :: c_int , pub rand_sep : :: std :: os :: raw :: c_int , pub end_ptr : * mut i32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of random_data"] [:: std :: mem :: size_of :: < random_data > () - 48usize] ; ["Alignment of random_data"] [:: std :: mem :: align_of :: < random_data > () - 8usize] ; ["Offset of field: random_data::fptr"] [:: std :: mem :: offset_of ! (random_data , fptr) - 0usize] ; ["Offset of field: random_data::rptr"] [:: std :: mem :: offset_of ! (random_data , rptr) - 8usize] ; ["Offset of field: random_data::state"] [:: std :: mem :: offset_of ! (random_data , state) - 16usize] ; ["Offset of field: random_data::rand_type"] [:: std :: mem :: offset_of ! (random_data , rand_type) - 24usize] ; ["Offset of field: random_data::rand_deg"] [:: std :: mem :: offset_of ! (random_data , rand_deg) - 28usize] ; ["Offset of field: random_data::rand_sep"] [:: std :: mem :: offset_of ! (random_data , rand_sep) - 32usize] ; ["Offset of field: random_data::end_ptr"] [:: std :: mem :: offset_of ! (random_data , end_ptr) - 40usize] ; } ; unsafe extern "C" { pub fn random_r (__buf : * mut random_data , __result : * mut i32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn srandom_r (__seed : :: std :: os :: raw :: c_uint , __buf : * mut random_data) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn initstate_r (__seed : :: std :: os :: raw :: c_uint , __statebuf : * mut :: std :: os :: raw :: c_char , __statelen : usize , __buf : * mut random_data) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn setstate_r (__statebuf : * mut :: std :: os :: raw :: c_char , __buf : * mut random_data) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn rand () -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn srand (__seed : :: std :: os :: raw :: c_uint) ; } unsafe extern "C" { pub fn rand_r (__seed : * mut :: std :: os :: raw :: c_uint) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn drand48 () -> f64 ; } unsafe extern "C" { pub fn erand48 (__xsubi : * mut :: std :: os :: raw :: c_ushort) -> f64 ; } unsafe extern "C" { pub fn lrand48 () -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn nrand48 (__xsubi : * mut :: std :: os :: raw :: c_ushort) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn mrand48 () -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn jrand48 (__xsubi : * mut :: std :: os :: raw :: c_ushort) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn srand48 (__seedval : :: std :: os :: raw :: c_long) ; } unsafe extern "C" { pub fn seed48 (__seed16v : * mut :: std :: os :: raw :: c_ushort) -> * mut :: std :: os :: raw :: c_ushort ; } unsafe extern "C" { pub fn lcong48 (__param : * mut :: std :: os :: raw :: c_ushort) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct drand48_data { pub __x : [:: std :: os :: raw :: c_ushort ; 3usize] , pub __old_x : [:: std :: os :: raw :: c_ushort ; 3usize] , pub __c : :: std :: os :: raw :: c_ushort , pub __init : :: std :: os :: raw :: c_ushort , pub __a : :: std :: os :: raw :: c_ulonglong , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of drand48_data"] [:: std :: mem :: size_of :: < drand48_data > () - 24usize] ; ["Alignment of drand48_data"] [:: std :: mem :: align_of :: < drand48_data > () - 8usize] ; ["Offset of field: drand48_data::__x"] [:: std :: mem :: offset_of ! (drand48_data , __x) - 0usize] ; ["Offset of field: drand48_data::__old_x"] [:: std :: mem :: offset_of ! (drand48_data , __old_x) - 6usize] ; ["Offset of field: drand48_data::__c"] [:: std :: mem :: offset_of ! (drand48_data , __c) - 12usize] ; ["Offset of field: drand48_data::__init"] [:: std :: mem :: offset_of ! (drand48_data , __init) - 14usize] ; ["Offset of field: drand48_data::__a"] [:: std :: mem :: offset_of ! (drand48_data , __a) - 16usize] ; } ; unsafe extern "C" { pub fn drand48_r (__buffer : * mut drand48_data , __result : * mut f64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn erand48_r (__xsubi : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data , __result : * mut f64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn lrand48_r (__buffer : * mut drand48_data , __result : * mut :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn nrand48_r (__xsubi : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data , __result : * mut :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mrand48_r (__buffer : * mut drand48_data , __result : * mut :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn jrand48_r (__xsubi : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data , __result : * mut :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn srand48_r (__seedval : :: std :: os :: raw :: c_long , __buffer : * mut drand48_data) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn seed48_r (__seed16v : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn lcong48_r (__param : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn arc4random () -> __uint32_t ; } unsafe extern "C" { pub fn arc4random_buf (__buf : * mut :: std :: os :: raw :: c_void , __size : usize) ; } unsafe extern "C" { pub fn arc4random_uniform (__upper_bound : __uint32_t) -> __uint32_t ; } unsafe extern "C" { pub fn malloc (__size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } unsafe extern "C" { pub fn calloc (__nmemb : :: std :: os :: raw :: c_ulong , __size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } unsafe extern "C" { pub fn realloc (__ptr : * mut :: std :: os :: raw :: c_void , __size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } unsafe extern "C" { pub fn free (__ptr : * mut :: std :: os :: raw :: c_void) ; } unsafe extern "C" { pub fn reallocarray (__ptr : * mut :: std :: os :: raw :: c_void , __nmemb : usize , __size : usize) -> * mut :: std :: os :: raw :: c_void ; } unsafe extern "C" { pub fn alloca (__size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } unsafe extern "C" { pub fn valloc (__size : usize) -> * mut :: std :: os :: raw :: c_void ; } unsafe extern "C" { pub fn posix_memalign (__memptr : * mut * mut :: std :: os :: raw :: c_void , __alignment : usize , __size : usize) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn aligned_alloc (__alignment : :: std :: os :: raw :: c_ulong , __size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } unsafe extern "C" { pub fn abort () -> ! ; } unsafe extern "C" { pub fn atexit (__func : :: std :: option :: Option < unsafe extern "C" fn () >) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn at_quick_exit (__func : :: std :: option :: Option < unsafe extern "C" fn () >) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn on_exit (__func : :: std :: option :: Option < unsafe extern "C" fn (__status : :: std :: os :: raw :: c_int , __arg : * mut :: std :: os :: raw :: c_void) > , __arg : * mut :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn exit (__status : :: std :: os :: raw :: c_int) -> ! ; } unsafe extern "C" { pub fn quick_exit (__status : :: std :: os :: raw :: c_int) -> ! ; } unsafe extern "C" { pub fn _Exit (__status : :: std :: os :: raw :: c_int) -> ! ; } unsafe extern "C" { pub fn getenv (__name : * const :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn putenv (__string : * mut :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn setenv (__name : * const :: std :: os :: raw :: c_char , __value : * const :: std :: os :: raw :: c_char , __replace : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn unsetenv (__name : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn clearenv () -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mktemp (__template : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn mkstemp (__template : * mut :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mkstemps (__template : * mut :: std :: os :: raw :: c_char , __suffixlen : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mkdtemp (__template : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn system (__command : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn realpath (__name : * const :: std :: os :: raw :: c_char , __resolved : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } pub type __compar_fn_t = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * const :: std :: os :: raw :: c_void , arg2 : * const :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int > ; unsafe extern "C" { pub fn bsearch (__key : * const :: std :: os :: raw :: c_void , __base : * const :: std :: os :: raw :: c_void , __nmemb : usize , __size : usize , __compar : __compar_fn_t) -> * mut :: std :: os :: raw :: c_void ; } unsafe extern "C" { pub fn qsort (__base : * mut :: std :: os :: raw :: c_void , __nmemb : usize , __size : usize , __compar : __compar_fn_t) ; } unsafe extern "C" { pub fn abs (__x : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn labs (__x : :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn llabs (__x : :: std :: os :: raw :: c_longlong) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn div (__numer : :: std :: os :: raw :: c_int , __denom : :: std :: os :: raw :: c_int) -> div_t ; } unsafe extern "C" { pub fn ldiv (__numer : :: std :: os :: raw :: c_long , __denom : :: std :: os :: raw :: c_long) -> ldiv_t ; } unsafe extern "C" { pub fn lldiv (__numer : :: std :: os :: raw :: c_longlong , __denom : :: std :: os :: raw :: c_longlong) -> lldiv_t ; } unsafe extern "C" { pub fn ecvt (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn fcvt (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn gcvt (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn qecvt (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn qfcvt (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn qgcvt (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn ecvt_r (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char , __len : usize) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn fcvt_r (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char , __len : usize) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn qecvt_r (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char , __len : usize) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn qfcvt_r (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char , __len : usize) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mblen (__s : * const :: std :: os :: raw :: c_char , __n : usize) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mbtowc (__pwc : * mut wchar_t , __s : * const :: std :: os :: raw :: c_char , __n : usize) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn wctomb (__s : * mut :: std :: os :: raw :: c_char , __wchar : wchar_t) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mbstowcs (__pwcs : * mut wchar_t , __s : * const :: std :: os :: raw :: c_char , __n : usize) -> usize ; } unsafe extern "C" { pub fn wcstombs (__s : * mut :: std :: os :: raw :: c_char , __pwcs : * const wchar_t , __n : usize) -> usize ; } unsafe extern "C" { pub fn rpmatch (__response : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getsubopt (__optionp : * mut * mut :: std :: os :: raw :: c_char , __tokens : * const * mut :: std :: os :: raw :: c_char , __valuep : * mut * mut :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getloadavg (__loadavg : * mut f64 , __nelem : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } # [repr (C)] # [repr (align (16))] # [derive (Debug , Copy , Clone)] pub struct max_align_t { pub __clang_max_align_nonce1 : :: std :: os :: raw :: c_longlong , pub __bindgen_padding_0 : u64 , pub __clang_max_align_nonce2 : u128 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of max_align_t"] [:: std :: mem :: size_of :: < max_align_t > () - 32usize] ; ["Alignment of max_align_t"] [:: std :: mem :: align_of :: < max_align_t > () - 16usize] ; ["Offset of field: max_align_t::__clang_max_align_nonce1"] [:: std :: mem :: offset_of ! (max_align_t , __clang_max_align_nonce1) - 0usize] ; ["Offset of field: max_align_t::__clang_max_align_nonce2"] [:: std :: mem :: offset_of ! (max_align_t , __clang_max_align_nonce2) - 16usize] ; } ; pub type int_least8_t = __int_least8_t ; pub type int_least16_t = __int_least16_t ; pub type int_least32_t = __int_least32_t ; pub type int_least64_t = __int_least64_t ; pub type uint_least8_t = __uint_least8_t ; pub type uint_least16_t = __uint_least16_t ; pub type uint_least32_t = __uint_least32_t ; pub type uint_least64_t = __uint_least64_t ; pub type int_fast8_t = :: std :: os :: raw :: c_schar ; pub type int_fast16_t = :: std :: os :: raw :: c_long ; pub type int_fast32_t = :: std :: os :: raw :: c_long ; pub type int_fast64_t = :: std :: os :: raw :: c_long ; pub type uint_fast8_t = :: std :: os :: raw :: c_uchar ; pub type uint_fast16_t = :: std :: os :: raw :: c_ulong ; pub type uint_fast32_t = :: std :: os :: raw :: c_ulong ; pub type uint_fast64_t = :: std :: os :: raw :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub type __gwchar_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct imaxdiv_t { pub quot : :: std :: os :: raw :: c_long , pub rem : :: std :: os :: raw :: c_long , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of imaxdiv_t"] [:: std :: mem :: size_of :: < imaxdiv_t > () - 16usize] ; ["Alignment of imaxdiv_t"] [:: std :: mem :: align_of :: < imaxdiv_t > () - 8usize] ; ["Offset of field: imaxdiv_t::quot"] [:: std :: mem :: offset_of ! (imaxdiv_t , quot) - 0usize] ; ["Offset of field: imaxdiv_t::rem"] [:: std :: mem :: offset_of ! (imaxdiv_t , rem) - 8usize] ; } ; unsafe extern "C" { pub fn imaxabs (__n : intmax_t) -> intmax_t ; } unsafe extern "C" { pub fn imaxdiv (__numer : intmax_t , __denom : intmax_t) -> imaxdiv_t ; } unsafe extern "C" { pub fn strtoimax (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> intmax_t ; } unsafe extern "C" { pub fn strtoumax (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> uintmax_t ; } unsafe extern "C" { pub fn wcstoimax (__nptr : * const __gwchar_t , __endptr : * mut * mut __gwchar_t , __base : :: std :: os :: raw :: c_int) -> intmax_t ; } unsafe extern "C" { pub fn wcstoumax (__nptr : * const __gwchar_t , __endptr : * mut * mut __gwchar_t , __base : :: std :: os :: raw :: c_int) -> uintmax_t ; } # [doc = "=============================================================================\n                      Compiler and Platform Features\n============================================================================="] pub type i8_ = i8 ; pub type u8_ = u8 ; pub type i16_ = i16 ; pub type u16_ = u16 ; pub type i32_ = i32 ; pub type u32_ = u32 ; pub type i64_ = i64 ; pub type u64_ = u64 ; pub type f32_ = f32 ; pub type f64_ = f64 ; # [doc = "=============================================================================\n                               Xoroshiro 128\n============================================================================="] # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Xoroshiro { pub lo : u64 , pub hi : u64 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Xoroshiro"] [:: std :: mem :: size_of :: < Xoroshiro > () - 16usize] ; ["Alignment of Xoroshiro"] [:: std :: mem :: align_of :: < Xoroshiro > () - 8usize] ; ["Offset of field: Xoroshiro::lo"] [:: std :: mem :: offset_of ! (Xoroshiro , lo) - 0usize] ; ["Offset of field: Xoroshiro::hi"] [:: std :: mem :: offset_of ! (Xoroshiro , hi) - 8usize] ; } ; pub type float_t = f32 ; pub type double_t = f64 ; unsafe extern "C" { pub fn __fpclassify (__value : f64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __signbit (__value : f64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __isinf (__value : f64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __finite (__value : f64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __isnan (__value : f64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __iseqsig (__x : f64 , __y : f64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __issignaling (__value : f64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn acos (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __acos (__x : f64) -> f64 ; } unsafe extern "C" { pub fn asin (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __asin (__x : f64) -> f64 ; } unsafe extern "C" { pub fn atan (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __atan (__x : f64) -> f64 ; } unsafe extern "C" { pub fn atan2 (__y : f64 , __x : f64) -> f64 ; } unsafe extern "C" { pub fn __atan2 (__y : f64 , __x : f64) -> f64 ; } unsafe extern "C" { pub fn cos (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __cos (__x : f64) -> f64 ; } unsafe extern "C" { pub fn sin (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __sin (__x : f64) -> f64 ; } unsafe extern "C" { pub fn tan (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __tan (__x : f64) -> f64 ; } unsafe extern "C" { pub fn cosh (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __cosh (__x : f64) -> f64 ; } unsafe extern "C" { pub fn sinh (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __sinh (__x : f64) -> f64 ; } unsafe extern "C" { pub fn tanh (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __tanh (__x : f64) -> f64 ; } unsafe extern "C" { pub fn acosh (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __acosh (__x : f64) -> f64 ; } unsafe extern "C" { pub fn asinh (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __asinh (__x : f64) -> f64 ; } unsafe extern "C" { pub fn atanh (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __atanh (__x : f64) -> f64 ; } unsafe extern "C" { pub fn exp (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __exp (__x : f64) -> f64 ; } unsafe extern "C" { pub fn frexp (__x : f64 , __exponent : * mut :: std :: os :: raw :: c_int) -> f64 ; } unsafe extern "C" { pub fn __frexp (__x : f64 , __exponent : * mut :: std :: os :: raw :: c_int) -> f64 ; } unsafe extern "C" { pub fn ldexp (__x : f64 , __exponent : :: std :: os :: raw :: c_int) -> f64 ; } unsafe extern "C" { pub fn __ldexp (__x : f64 , __exponent : :: std :: os :: raw :: c_int) -> f64 ; } unsafe extern "C" { pub fn log (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __log (__x : f64) -> f64 ; } unsafe extern "C" { pub fn log10 (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __log10 (__x : f64) -> f64 ; } unsafe extern "C" { pub fn modf (__x : f64 , __iptr : * mut f64) -> f64 ; } unsafe extern "C" { pub fn __modf (__x : f64 , __iptr : * mut f64) -> f64 ; } unsafe extern "C" { pub fn expm1 (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __expm1 (__x : f64) -> f64 ; } unsafe extern "C" { pub fn log1p (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __log1p (__x : f64) -> f64 ; } unsafe extern "C" { pub fn logb (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __logb (__x : f64) -> f64 ; } unsafe extern "C" { pub fn exp2 (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __exp2 (__x : f64) -> f64 ; } unsafe extern "C" { pub fn log2 (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __log2 (__x : f64) -> f64 ; } unsafe extern "C" { pub fn pow (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn __pow (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn sqrt (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __sqrt (__x : f64) -> f64 ; } unsafe extern "C" { pub fn hypot (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn __hypot (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn cbrt (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __cbrt (__x : f64) -> f64 ; } unsafe extern "C" { pub fn ceil (__x : f64) -> f64 ; } unsafe extern "C" { pub fn fabs (__x : f64) -> f64 ; } unsafe extern "C" { pub fn floor (__x : f64) -> f64 ; } unsafe extern "C" { pub fn fmod (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn __fmod (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn isinf (__value : f64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn finite (__value : f64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn drem (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn __drem (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn significand (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __significand (__x : f64) -> f64 ; } unsafe extern "C" { pub fn copysign (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn nan (__tagb : * const :: std :: os :: raw :: c_char) -> f64 ; } unsafe extern "C" { pub fn __nan (__tagb : * const :: std :: os :: raw :: c_char) -> f64 ; } unsafe extern "C" { pub fn isnan (__value : f64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn j0 (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn __j0 (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn j1 (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn __j1 (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn jn (arg1 : :: std :: os :: raw :: c_int , arg2 : f64) -> f64 ; } unsafe extern "C" { pub fn __jn (arg1 : :: std :: os :: raw :: c_int , arg2 : f64) -> f64 ; } unsafe extern "C" { pub fn y0 (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn __y0 (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn y1 (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn __y1 (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn yn (arg1 : :: std :: os :: raw :: c_int , arg2 : f64) -> f64 ; } unsafe extern "C" { pub fn __yn (arg1 : :: std :: os :: raw :: c_int , arg2 : f64) -> f64 ; } unsafe extern "C" { pub fn erf (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn __erf (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn erfc (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn __erfc (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn lgamma (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn __lgamma (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn tgamma (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn __tgamma (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn gamma (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn __gamma (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn lgamma_r (arg1 : f64 , __signgamp : * mut :: std :: os :: raw :: c_int) -> f64 ; } unsafe extern "C" { pub fn __lgamma_r (arg1 : f64 , __signgamp : * mut :: std :: os :: raw :: c_int) -> f64 ; } unsafe extern "C" { pub fn rint (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __rint (__x : f64) -> f64 ; } unsafe extern "C" { pub fn nextafter (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn __nextafter (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn nexttoward (__x : f64 , __y : u128) -> f64 ; } unsafe extern "C" { pub fn __nexttoward (__x : f64 , __y : u128) -> f64 ; } unsafe extern "C" { pub fn remainder (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn __remainder (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn scalbn (__x : f64 , __n : :: std :: os :: raw :: c_int) -> f64 ; } unsafe extern "C" { pub fn __scalbn (__x : f64 , __n : :: std :: os :: raw :: c_int) -> f64 ; } unsafe extern "C" { pub fn ilogb (__x : f64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __ilogb (__x : f64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn scalbln (__x : f64 , __n : :: std :: os :: raw :: c_long) -> f64 ; } unsafe extern "C" { pub fn __scalbln (__x : f64 , __n : :: std :: os :: raw :: c_long) -> f64 ; } unsafe extern "C" { pub fn nearbyint (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __nearbyint (__x : f64) -> f64 ; } unsafe extern "C" { pub fn round (__x : f64) -> f64 ; } unsafe extern "C" { pub fn trunc (__x : f64) -> f64 ; } unsafe extern "C" { pub fn remquo (__x : f64 , __y : f64 , __quo : * mut :: std :: os :: raw :: c_int) -> f64 ; } unsafe extern "C" { pub fn __remquo (__x : f64 , __y : f64 , __quo : * mut :: std :: os :: raw :: c_int) -> f64 ; } unsafe extern "C" { pub fn lrint (__x : f64) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn __lrint (__x : f64) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn llrint (__x : f64) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn __llrint (__x : f64) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn lround (__x : f64) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn __lround (__x : f64) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn llround (__x : f64) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn __llround (__x : f64) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn fdim (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn __fdim (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn fmax (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn fmin (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn fma (__x : f64 , __y : f64 , __z : f64) -> f64 ; } unsafe extern "C" { pub fn __fma (__x : f64 , __y : f64 , __z : f64) -> f64 ; } unsafe extern "C" { pub fn scalb (__x : f64 , __n : f64) -> f64 ; } unsafe extern "C" { pub fn __scalb (__x : f64 , __n : f64) -> f64 ; } unsafe extern "C" { pub fn __fpclassifyf (__value : f32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __signbitf (__value : f32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __isinff (__value : f32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __finitef (__value : f32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __isnanf (__value : f32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __iseqsigf (__x : f32 , __y : f32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __issignalingf (__value : f32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn acosf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __acosf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn asinf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __asinf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn atanf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __atanf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn atan2f (__y : f32 , __x : f32) -> f32 ; } unsafe extern "C" { pub fn __atan2f (__y : f32 , __x : f32) -> f32 ; } unsafe extern "C" { pub fn cosf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __cosf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn sinf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __sinf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn tanf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __tanf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn coshf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __coshf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn sinhf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __sinhf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn tanhf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __tanhf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn acoshf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __acoshf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn asinhf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __asinhf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn atanhf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __atanhf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn expf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __expf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn frexpf (__x : f32 , __exponent : * mut :: std :: os :: raw :: c_int) -> f32 ; } unsafe extern "C" { pub fn __frexpf (__x : f32 , __exponent : * mut :: std :: os :: raw :: c_int) -> f32 ; } unsafe extern "C" { pub fn ldexpf (__x : f32 , __exponent : :: std :: os :: raw :: c_int) -> f32 ; } unsafe extern "C" { pub fn __ldexpf (__x : f32 , __exponent : :: std :: os :: raw :: c_int) -> f32 ; } unsafe extern "C" { pub fn logf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __logf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn log10f (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __log10f (__x : f32) -> f32 ; } unsafe extern "C" { pub fn modff (__x : f32 , __iptr : * mut f32) -> f32 ; } unsafe extern "C" { pub fn __modff (__x : f32 , __iptr : * mut f32) -> f32 ; } unsafe extern "C" { pub fn expm1f (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __expm1f (__x : f32) -> f32 ; } unsafe extern "C" { pub fn log1pf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __log1pf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn logbf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __logbf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn exp2f (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __exp2f (__x : f32) -> f32 ; } unsafe extern "C" { pub fn log2f (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __log2f (__x : f32) -> f32 ; } unsafe extern "C" { pub fn powf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn __powf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn sqrtf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __sqrtf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn hypotf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn __hypotf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn cbrtf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __cbrtf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn ceilf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn fabsf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn floorf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn fmodf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn __fmodf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn isinff (__value : f32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn finitef (__value : f32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn dremf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn __dremf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn significandf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __significandf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn copysignf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn nanf (__tagb : * const :: std :: os :: raw :: c_char) -> f32 ; } unsafe extern "C" { pub fn __nanf (__tagb : * const :: std :: os :: raw :: c_char) -> f32 ; } unsafe extern "C" { pub fn isnanf (__value : f32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn j0f (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn __j0f (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn j1f (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn __j1f (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn jnf (arg1 : :: std :: os :: raw :: c_int , arg2 : f32) -> f32 ; } unsafe extern "C" { pub fn __jnf (arg1 : :: std :: os :: raw :: c_int , arg2 : f32) -> f32 ; } unsafe extern "C" { pub fn y0f (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn __y0f (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn y1f (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn __y1f (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn ynf (arg1 : :: std :: os :: raw :: c_int , arg2 : f32) -> f32 ; } unsafe extern "C" { pub fn __ynf (arg1 : :: std :: os :: raw :: c_int , arg2 : f32) -> f32 ; } unsafe extern "C" { pub fn erff (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn __erff (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn erfcf (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn __erfcf (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn lgammaf (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn __lgammaf (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn tgammaf (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn __tgammaf (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn gammaf (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn __gammaf (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn lgammaf_r (arg1 : f32 , __signgamp : * mut :: std :: os :: raw :: c_int) -> f32 ; } unsafe extern "C" { pub fn __lgammaf_r (arg1 : f32 , __signgamp : * mut :: std :: os :: raw :: c_int) -> f32 ; } unsafe extern "C" { pub fn rintf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __rintf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn nextafterf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn __nextafterf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn nexttowardf (__x : f32 , __y : u128) -> f32 ; } unsafe extern "C" { pub fn __nexttowardf (__x : f32 , __y : u128) -> f32 ; } unsafe extern "C" { pub fn remainderf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn __remainderf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn scalbnf (__x : f32 , __n : :: std :: os :: raw :: c_int) -> f32 ; } unsafe extern "C" { pub fn __scalbnf (__x : f32 , __n : :: std :: os :: raw :: c_int) -> f32 ; } unsafe extern "C" { pub fn ilogbf (__x : f32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __ilogbf (__x : f32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn scalblnf (__x : f32 , __n : :: std :: os :: raw :: c_long) -> f32 ; } unsafe extern "C" { pub fn __scalblnf (__x : f32 , __n : :: std :: os :: raw :: c_long) -> f32 ; } unsafe extern "C" { pub fn nearbyintf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __nearbyintf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn roundf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn truncf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn remquof (__x : f32 , __y : f32 , __quo : * mut :: std :: os :: raw :: c_int) -> f32 ; } unsafe extern "C" { pub fn __remquof (__x : f32 , __y : f32 , __quo : * mut :: std :: os :: raw :: c_int) -> f32 ; } unsafe extern "C" { pub fn lrintf (__x : f32) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn __lrintf (__x : f32) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn llrintf (__x : f32) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn __llrintf (__x : f32) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn lroundf (__x : f32) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn __lroundf (__x : f32) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn llroundf (__x : f32) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn __llroundf (__x : f32) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn fdimf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn __fdimf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn fmaxf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn fminf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn fmaf (__x : f32 , __y : f32 , __z : f32) -> f32 ; } unsafe extern "C" { pub fn __fmaf (__x : f32 , __y : f32 , __z : f32) -> f32 ; } unsafe extern "C" { pub fn scalbf (__x : f32 , __n : f32) -> f32 ; } unsafe extern "C" { pub fn __scalbf (__x : f32 , __n : f32) -> f32 ; } unsafe extern "C" { pub fn __fpclassifyl (__value : u128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __signbitl (__value : u128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __isinfl (__value : u128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __finitel (__value : u128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __isnanl (__value : u128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __iseqsigl (__x : u128 , __y : u128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __issignalingl (__value : u128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn acosl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __acosl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn asinl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __asinl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn atanl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __atanl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn atan2l (__y : u128 , __x : u128) -> u128 ; } unsafe extern "C" { pub fn __atan2l (__y : u128 , __x : u128) -> u128 ; } unsafe extern "C" { pub fn cosl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __cosl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn sinl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __sinl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn tanl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __tanl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn coshl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __coshl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn sinhl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __sinhl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn tanhl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __tanhl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn acoshl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __acoshl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn asinhl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __asinhl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn atanhl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __atanhl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn expl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __expl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn frexpl (__x : u128 , __exponent : * mut :: std :: os :: raw :: c_int) -> u128 ; } unsafe extern "C" { pub fn __frexpl (__x : u128 , __exponent : * mut :: std :: os :: raw :: c_int) -> u128 ; } unsafe extern "C" { pub fn ldexpl (__x : u128 , __exponent : :: std :: os :: raw :: c_int) -> u128 ; } unsafe extern "C" { pub fn __ldexpl (__x : u128 , __exponent : :: std :: os :: raw :: c_int) -> u128 ; } unsafe extern "C" { pub fn logl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __logl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn log10l (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __log10l (__x : u128) -> u128 ; } unsafe extern "C" { pub fn modfl (__x : u128 , __iptr : * mut u128) -> u128 ; } unsafe extern "C" { pub fn __modfl (__x : u128 , __iptr : * mut u128) -> u128 ; } unsafe extern "C" { pub fn expm1l (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __expm1l (__x : u128) -> u128 ; } unsafe extern "C" { pub fn log1pl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __log1pl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn logbl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __logbl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn exp2l (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __exp2l (__x : u128) -> u128 ; } unsafe extern "C" { pub fn log2l (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __log2l (__x : u128) -> u128 ; } unsafe extern "C" { pub fn powl (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn __powl (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn sqrtl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __sqrtl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn hypotl (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn __hypotl (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn cbrtl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __cbrtl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn ceill (__x : u128) -> u128 ; } unsafe extern "C" { pub fn fabsl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn floorl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn fmodl (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn __fmodl (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn isinfl (__value : u128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn finitel (__value : u128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn dreml (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn __dreml (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn significandl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __significandl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn copysignl (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn nanl (__tagb : * const :: std :: os :: raw :: c_char) -> u128 ; } unsafe extern "C" { pub fn __nanl (__tagb : * const :: std :: os :: raw :: c_char) -> u128 ; } unsafe extern "C" { pub fn isnanl (__value : u128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn j0l (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn __j0l (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn j1l (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn __j1l (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn jnl (arg1 : :: std :: os :: raw :: c_int , arg2 : u128) -> u128 ; } unsafe extern "C" { pub fn __jnl (arg1 : :: std :: os :: raw :: c_int , arg2 : u128) -> u128 ; } unsafe extern "C" { pub fn y0l (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn __y0l (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn y1l (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn __y1l (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn ynl (arg1 : :: std :: os :: raw :: c_int , arg2 : u128) -> u128 ; } unsafe extern "C" { pub fn __ynl (arg1 : :: std :: os :: raw :: c_int , arg2 : u128) -> u128 ; } unsafe extern "C" { pub fn erfl (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn __erfl (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn erfcl (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn __erfcl (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn lgammal (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn __lgammal (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn tgammal (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn __tgammal (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn gammal (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn __gammal (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn lgammal_r (arg1 : u128 , __signgamp : * mut :: std :: os :: raw :: c_int) -> u128 ; } unsafe extern "C" { pub fn __lgammal_r (arg1 : u128 , __signgamp : * mut :: std :: os :: raw :: c_int) -> u128 ; } unsafe extern "C" { pub fn rintl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __rintl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn nextafterl (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn __nextafterl (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn nexttowardl (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn __nexttowardl (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn remainderl (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn __remainderl (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn scalbnl (__x : u128 , __n : :: std :: os :: raw :: c_int) -> u128 ; } unsafe extern "C" { pub fn __scalbnl (__x : u128 , __n : :: std :: os :: raw :: c_int) -> u128 ; } unsafe extern "C" { pub fn ilogbl (__x : u128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __ilogbl (__x : u128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn scalblnl (__x : u128 , __n : :: std :: os :: raw :: c_long) -> u128 ; } unsafe extern "C" { pub fn __scalblnl (__x : u128 , __n : :: std :: os :: raw :: c_long) -> u128 ; } unsafe extern "C" { pub fn nearbyintl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __nearbyintl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn roundl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn truncl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn remquol (__x : u128 , __y : u128 , __quo : * mut :: std :: os :: raw :: c_int) -> u128 ; } unsafe extern "C" { pub fn __remquol (__x : u128 , __y : u128 , __quo : * mut :: std :: os :: raw :: c_int) -> u128 ; } unsafe extern "C" { pub fn lrintl (__x : u128) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn __lrintl (__x : u128) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn llrintl (__x : u128) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn __llrintl (__x : u128) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn lroundl (__x : u128) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn __lroundl (__x : u128) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn llroundl (__x : u128) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn __llroundl (__x : u128) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn fdiml (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn __fdiml (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn fmaxl (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn fminl (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn fmal (__x : u128 , __y : u128 , __z : u128) -> u128 ; } unsafe extern "C" { pub fn __fmal (__x : u128 , __y : u128 , __z : u128) -> u128 ; } unsafe extern "C" { pub fn scalbl (__x : u128 , __n : u128) -> u128 ; } unsafe extern "C" { pub fn __scalbl (__x : u128 , __n : u128) -> u128 ; } unsafe extern "C" { pub fn __fpclassifyf128 (__value : _Float128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __signbitf128 (__value : _Float128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __isinff128 (__value : _Float128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __finitef128 (__value : _Float128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __isnanf128 (__value : _Float128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __iseqsigf128 (__x : _Float128 , __y : _Float128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __issignalingf128 (__value : _Float128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub static mut signgam : :: std :: os :: raw :: c_int ; } pub const FP_NAN : _bindgen_ty_1 = _bindgen_ty_1 (0) ; pub const FP_INFINITE : _bindgen_ty_1 = _bindgen_ty_1 (1) ; pub const FP_ZERO : _bindgen_ty_1 = _bindgen_ty_1 (2) ; pub const FP_SUBNORMAL : _bindgen_ty_1 = _bindgen_ty_1 (3) ; pub const FP_NORMAL : _bindgen_ty_1 = _bindgen_ty_1 (4) ; # [repr (transparent)] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct _bindgen_ty_1 (pub :: std :: os :: raw :: c_uint) ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct PerlinNoise { pub d : [u8 ; 257usize] , pub h2 : u8 , pub a : f64 , pub b : f64 , pub c : f64 , pub amplitude : f64 , pub lacunarity : f64 , pub d2 : f64 , pub t2 : f64 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of PerlinNoise"] [:: std :: mem :: size_of :: < PerlinNoise > () - 320usize] ; ["Alignment of PerlinNoise"] [:: std :: mem :: align_of :: < PerlinNoise > () - 8usize] ; ["Offset of field: PerlinNoise::d"] [:: std :: mem :: offset_of ! (PerlinNoise , d) - 0usize] ; ["Offset of field: PerlinNoise::h2"] [:: std :: mem :: offset_of ! (PerlinNoise , h2) - 257usize] ; ["Offset of field: PerlinNoise::a"] [:: std :: mem :: offset_of ! (PerlinNoise , a) - 264usize] ; ["Offset of field: PerlinNoise::b"] [:: std :: mem :: offset_of ! (PerlinNoise , b) - 272usize] ; ["Offset of field: PerlinNoise::c"] [:: std :: mem :: offset_of ! (PerlinNoise , c) - 280usize] ; ["Offset of field: PerlinNoise::amplitude"] [:: std :: mem :: offset_of ! (PerlinNoise , amplitude) - 288usize] ; ["Offset of field: PerlinNoise::lacunarity"] [:: std :: mem :: offset_of ! (PerlinNoise , lacunarity) - 296usize] ; ["Offset of field: PerlinNoise::d2"] [:: std :: mem :: offset_of ! (PerlinNoise , d2) - 304usize] ; ["Offset of field: PerlinNoise::t2"] [:: std :: mem :: offset_of ! (PerlinNoise , t2) - 312usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct OctaveNoise { pub octcnt : :: std :: os :: raw :: c_int , pub octaves : * mut PerlinNoise , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of OctaveNoise"] [:: std :: mem :: size_of :: < OctaveNoise > () - 16usize] ; ["Alignment of OctaveNoise"] [:: std :: mem :: align_of :: < OctaveNoise > () - 8usize] ; ["Offset of field: OctaveNoise::octcnt"] [:: std :: mem :: offset_of ! (OctaveNoise , octcnt) - 0usize] ; ["Offset of field: OctaveNoise::octaves"] [:: std :: mem :: offset_of ! (OctaveNoise , octaves) - 8usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct DoublePerlinNoise { pub amplitude : f64 , pub octA : OctaveNoise , pub octB : OctaveNoise , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of DoublePerlinNoise"] [:: std :: mem :: size_of :: < DoublePerlinNoise > () - 40usize] ; ["Alignment of DoublePerlinNoise"] [:: std :: mem :: align_of :: < DoublePerlinNoise > () - 8usize] ; ["Offset of field: DoublePerlinNoise::amplitude"] [:: std :: mem :: offset_of ! (DoublePerlinNoise , amplitude) - 0usize] ; ["Offset of field: DoublePerlinNoise::octA"] [:: std :: mem :: offset_of ! (DoublePerlinNoise , octA) - 8usize] ; ["Offset of field: DoublePerlinNoise::octB"] [:: std :: mem :: offset_of ! (DoublePerlinNoise , octB) - 24usize] ; } ; unsafe extern "C" { # [doc = " Perlin noise"] pub fn perlinInit (noise : * mut PerlinNoise , seed : * mut u64) ; } unsafe extern "C" { pub fn xPerlinInit (noise : * mut PerlinNoise , xr : * mut Xoroshiro) ; } unsafe extern "C" { pub fn samplePerlin (noise : * const PerlinNoise , x : f64 , y : f64 , z : f64 , yamp : f64 , ymin : f64) -> f64 ; } unsafe extern "C" { pub fn sampleSimplex2D (noise : * const PerlinNoise , x : f64 , y : f64) -> f64 ; } unsafe extern "C" { # [doc = " Perlin Octaves"] pub fn octaveInit (noise : * mut OctaveNoise , seed : * mut u64 , octaves : * mut PerlinNoise , omin : :: std :: os :: raw :: c_int , len : :: std :: os :: raw :: c_int) ; } unsafe extern "C" { pub fn octaveInitBeta (noise : * mut OctaveNoise , seed : * mut u64 , octaves : * mut PerlinNoise , octcnt : :: std :: os :: raw :: c_int , lac : f64 , lacMul : f64 , persist : f64 , persistMul : f64) ; } unsafe extern "C" { pub fn xOctaveInit (noise : * mut OctaveNoise , xr : * mut Xoroshiro , octaves : * mut PerlinNoise , amplitudes : * const f64 , omin : :: std :: os :: raw :: c_int , len : :: std :: os :: raw :: c_int , nmax : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn sampleOctave (noise : * const OctaveNoise , x : f64 , y : f64 , z : f64) -> f64 ; } unsafe extern "C" { pub fn sampleOctaveAmp (noise : * const OctaveNoise , x : f64 , y : f64 , z : f64 , yamp : f64 , ymin : f64 , ydefault : :: std :: os :: raw :: c_int) -> f64 ; } unsafe extern "C" { pub fn sampleOctave2D (noise : * const OctaveNoise , x : f64 , z : f64) -> f64 ; } unsafe extern "C" { pub fn sampleOctaveBeta17Biome (noise : * const OctaveNoise , x : f64 , z : f64) -> f64 ; } unsafe extern "C" { pub fn sampleOctaveBeta17Terrain (noise : * const OctaveNoise , v : * mut f64 , x : f64 , z : f64 , yLacFlag : :: std :: os :: raw :: c_int , lacmin : f64) ; } unsafe extern "C" { # [doc = " Double Perlin"] pub fn doublePerlinInit (noise : * mut DoublePerlinNoise , seed : * mut u64 , octavesA : * mut PerlinNoise , octavesB : * mut PerlinNoise , omin : :: std :: os :: raw :: c_int , len : :: std :: os :: raw :: c_int) ; } unsafe extern "C" { pub fn xDoublePerlinInit (noise : * mut DoublePerlinNoise , xr : * mut Xoroshiro , octaves : * mut PerlinNoise , amplitudes : * const f64 , omin : :: std :: os :: raw :: c_int , len : :: std :: os :: raw :: c_int , nmax : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn sampleDoublePerlin (noise : * const DoublePerlinNoise , x : f64 , y : f64 , z : f64) -> f64 ; } impl MCVersion { pub const MC_UNDEF : MCVersion = MCVersion (0) ; } impl MCVersion { pub const MC_B1_7 : MCVersion = MCVersion (1) ; } impl MCVersion { pub const MC_B1_8 : MCVersion = MCVersion (2) ; } impl MCVersion { pub const MC_1_0_0 : MCVersion = MCVersion (3) ; } impl MCVersion { pub const MC_1_0 : MCVersion = MCVersion (3) ; } impl MCVersion { pub const MC_1_1_0 : MCVersion = MCVersion (4) ; } impl MCVersion { pub const MC_1_1 : MCVersion = MCVersion (4) ; } impl MCVersion { pub const MC_1_2_5 : MCVersion = MCVersion (5) ; } impl MCVersion { pub const MC_1_2 : MCVersion = MCVersion (5) ; } impl MCVersion { pub const MC_1_3_2 : MCVersion = MCVersion (6) ; } impl MCVersion { pub const MC_1_3 : MCVersion = MCVersion (6) ; } impl MCVersion { pub const MC_1_4_7 : MCVersion = MCVersion (7) ; } impl MCVersion { pub const MC_1_4 : MCVersion = MCVersion (7) ; } impl MCVersion { pub const MC_1_5_2 : MCVersion = MCVersion (8) ; } impl MCVersion { pub const MC_1_5 : MCVersion = MCVersion (8) ; } impl MCVersion { pub const MC_1_6_4 : MCVersion = MCVersion (9) ; } impl MCVersion { pub const MC_1_6 : MCVersion = MCVersion (9) ; } impl MCVersion { pub const MC_1_7_10 : MCVersion = MCVersion (10) ; } impl MCVersion { pub const MC_1_7 : MCVersion = MCVersion (10) ; } impl MCVersion { pub const MC_1_8_9 : MCVersion = MCVersion (11) ; } impl MCVersion { pub const MC_1_8 : MCVersion = MCVersion (11) ; } impl MCVersion { pub const MC_1_9_4 : MCVersion = MCVersion (12) ; } impl MCVersion { pub const MC_1_9 : MCVersion = MCVersion (12) ; } impl MCVersion { pub const MC_1_10_2 : MCVersion = MCVersion (13) ; } impl MCVersion { pub const MC_1_10 : MCVersion = MCVersion (13) ; } impl MCVersion { pub const MC_1_11_2 : MCVersion = MCVersion (14) ; } impl MCVersion { pub const MC_1_11 : MCVersion = MCVersion (14) ; } impl MCVersion { pub const MC_1_12_2 : MCVersion = MCVersion (15) ; } impl MCVersion { pub const MC_1_12 : MCVersion = MCVersion (15) ; } impl MCVersion { pub const MC_1_13_2 : MCVersion = MCVersion (16) ; } impl MCVersion { pub const MC_1_13 : MCVersion = MCVersion (16) ; } impl MCVersion { pub const MC_1_14_4 : MCVersion = MCVersion (17) ; } impl MCVersion { pub const MC_1_14 : MCVersion = MCVersion (17) ; } impl MCVersion { pub const MC_1_15_2 : MCVersion = MCVersion (18) ; } impl MCVersion { pub const MC_1_15 : MCVersion = MCVersion (18) ; } impl MCVersion { pub const MC_1_16_1 : MCVersion = MCVersion (19) ; } impl MCVersion { pub const MC_1_16_5 : MCVersion = MCVersion (20) ; } impl MCVersion { pub const MC_1_16 : MCVersion = MCVersion (20) ; } impl MCVersion { pub const MC_1_17_1 : MCVersion = MCVersion (21) ; } impl MCVersion { pub const MC_1_17 : MCVersion = MCVersion (21) ; } impl MCVersion { pub const MC_1_18_2 : MCVersion = MCVersion (22) ; } impl MCVersion { pub const MC_1_18 : MCVersion = MCVersion (22) ; } impl MCVersion { pub const MC_1_19_2 : MCVersion = MCVersion (23) ; } impl MCVersion { pub const MC_1_19_4 : MCVersion = MCVersion (24) ; } impl MCVersion { pub const MC_1_19 : MCVersion = MCVersion (24) ; } impl MCVersion { pub const MC_1_20_6 : MCVersion = MCVersion (25) ; } impl MCVersion { pub const MC_1_20 : MCVersion = MCVersion (25) ; } impl MCVersion { pub const MC_1_21_1 : MCVersion = MCVersion (26) ; } impl MCVersion { pub const MC_1_21_3 : MCVersion = MCVersion (27) ; } impl MCVersion { pub const MC_1_21_WD : MCVersion = MCVersion (28) ; } impl MCVersion { pub const MC_1_21 : MCVersion = MCVersion (28) ; } impl MCVersion { pub const MC_NEWEST : MCVersion = MCVersion (28) ; } # [repr (transparent)] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct MCVersion (pub :: std :: os :: raw :: c_uint) ; impl Dimension { pub const DIM_NETHER : Dimension = Dimension (- 1) ; } impl Dimension { pub const DIM_OVERWORLD : Dimension = Dimension (0) ; } impl Dimension { pub const DIM_END : Dimension = Dimension (1) ; } impl Dimension { pub const DIM_UNDEF : Dimension = Dimension (1000) ; } # [repr (transparent)] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct Dimension (pub :: std :: os :: raw :: c_int) ; impl BiomeID { pub const none : BiomeID = BiomeID (- 1) ; } impl BiomeID { pub const ocean : BiomeID = BiomeID (0) ; } impl BiomeID { pub const plains : BiomeID = BiomeID (1) ; } impl BiomeID { pub const desert : BiomeID = BiomeID (2) ; } impl BiomeID { pub const mountains : BiomeID = BiomeID (3) ; } impl BiomeID { pub const extremeHills : BiomeID = BiomeID (3) ; } impl BiomeID { pub const forest : BiomeID = BiomeID (4) ; } impl BiomeID { pub const taiga : BiomeID = BiomeID (5) ; } impl BiomeID { pub const swamp : BiomeID = BiomeID (6) ; } impl BiomeID { pub const swampland : BiomeID = BiomeID (6) ; } impl BiomeID { pub const river : BiomeID = BiomeID (7) ; } impl BiomeID { pub const nether_wastes : BiomeID = BiomeID (8) ; } impl BiomeID { pub const hell : BiomeID = BiomeID (8) ; } impl BiomeID { pub const the_end : BiomeID = BiomeID (9) ; } impl BiomeID { pub const sky : BiomeID = BiomeID (9) ; } impl BiomeID { pub const frozen_ocean : BiomeID = BiomeID (10) ; } impl BiomeID { pub const frozenOcean : BiomeID = BiomeID (10) ; } impl BiomeID { pub const frozen_river : BiomeID = BiomeID (11) ; } impl BiomeID { pub const frozenRiver : BiomeID = BiomeID (11) ; } impl BiomeID { pub const snowy_tundra : BiomeID = BiomeID (12) ; } impl BiomeID { pub const icePlains : BiomeID = BiomeID (12) ; } impl BiomeID { pub const snowy_mountains : BiomeID = BiomeID (13) ; } impl BiomeID { pub const iceMountains : BiomeID = BiomeID (13) ; } impl BiomeID { pub const mushroom_fields : BiomeID = BiomeID (14) ; } impl BiomeID { pub const mushroomIsland : BiomeID = BiomeID (14) ; } impl BiomeID { pub const mushroom_field_shore : BiomeID = BiomeID (15) ; } impl BiomeID { pub const mushroomIslandShore : BiomeID = BiomeID (15) ; } impl BiomeID { pub const beach : BiomeID = BiomeID (16) ; } impl BiomeID { pub const desert_hills : BiomeID = BiomeID (17) ; } impl BiomeID { pub const desertHills : BiomeID = BiomeID (17) ; } impl BiomeID { pub const wooded_hills : BiomeID = BiomeID (18) ; } impl BiomeID { pub const forestHills : BiomeID = BiomeID (18) ; } impl BiomeID { pub const taiga_hills : BiomeID = BiomeID (19) ; } impl BiomeID { pub const taigaHills : BiomeID = BiomeID (19) ; } impl BiomeID { pub const mountain_edge : BiomeID = BiomeID (20) ; } impl BiomeID { pub const extremeHillsEdge : BiomeID = BiomeID (20) ; } impl BiomeID { pub const jungle : BiomeID = BiomeID (21) ; } impl BiomeID { pub const jungle_hills : BiomeID = BiomeID (22) ; } impl BiomeID { pub const jungleHills : BiomeID = BiomeID (22) ; } impl BiomeID { pub const jungle_edge : BiomeID = BiomeID (23) ; } impl BiomeID { pub const jungleEdge : BiomeID = BiomeID (23) ; } impl BiomeID { pub const deep_ocean : BiomeID = BiomeID (24) ; } impl BiomeID { pub const deepOcean : BiomeID = BiomeID (24) ; } impl BiomeID { pub const stone_shore : BiomeID = BiomeID (25) ; } impl BiomeID { pub const stoneBeach : BiomeID = BiomeID (25) ; } impl BiomeID { pub const snowy_beach : BiomeID = BiomeID (26) ; } impl BiomeID { pub const coldBeach : BiomeID = BiomeID (26) ; } impl BiomeID { pub const birch_forest : BiomeID = BiomeID (27) ; } impl BiomeID { pub const birchForest : BiomeID = BiomeID (27) ; } impl BiomeID { pub const birch_forest_hills : BiomeID = BiomeID (28) ; } impl BiomeID { pub const birchForestHills : BiomeID = BiomeID (28) ; } impl BiomeID { pub const dark_forest : BiomeID = BiomeID (29) ; } impl BiomeID { pub const roofedForest : BiomeID = BiomeID (29) ; } impl BiomeID { pub const snowy_taiga : BiomeID = BiomeID (30) ; } impl BiomeID { pub const coldTaiga : BiomeID = BiomeID (30) ; } impl BiomeID { pub const snowy_taiga_hills : BiomeID = BiomeID (31) ; } impl BiomeID { pub const coldTaigaHills : BiomeID = BiomeID (31) ; } impl BiomeID { pub const giant_tree_taiga : BiomeID = BiomeID (32) ; } impl BiomeID { pub const megaTaiga : BiomeID = BiomeID (32) ; } impl BiomeID { pub const giant_tree_taiga_hills : BiomeID = BiomeID (33) ; } impl BiomeID { pub const megaTaigaHills : BiomeID = BiomeID (33) ; } impl BiomeID { pub const wooded_mountains : BiomeID = BiomeID (34) ; } impl BiomeID { pub const extremeHillsPlus : BiomeID = BiomeID (34) ; } impl BiomeID { pub const savanna : BiomeID = BiomeID (35) ; } impl BiomeID { pub const savanna_plateau : BiomeID = BiomeID (36) ; } impl BiomeID { pub const savannaPlateau : BiomeID = BiomeID (36) ; } impl BiomeID { pub const badlands : BiomeID = BiomeID (37) ; } impl BiomeID { pub const mesa : BiomeID = BiomeID (37) ; } impl BiomeID { pub const wooded_badlands_plateau : BiomeID = BiomeID (38) ; } impl BiomeID { pub const mesaPlateau_F : BiomeID = BiomeID (38) ; } impl BiomeID { pub const badlands_plateau : BiomeID = BiomeID (39) ; } impl BiomeID { pub const mesaPlateau : BiomeID = BiomeID (39) ; } impl BiomeID { pub const small_end_islands : BiomeID = BiomeID (40) ; } impl BiomeID { pub const end_midlands : BiomeID = BiomeID (41) ; } impl BiomeID { pub const end_highlands : BiomeID = BiomeID (42) ; } impl BiomeID { pub const end_barrens : BiomeID = BiomeID (43) ; } impl BiomeID { pub const warm_ocean : BiomeID = BiomeID (44) ; } impl BiomeID { pub const warmOcean : BiomeID = BiomeID (44) ; } impl BiomeID { pub const lukewarm_ocean : BiomeID = BiomeID (45) ; } impl BiomeID { pub const lukewarmOcean : BiomeID = BiomeID (45) ; } impl BiomeID { pub const cold_ocean : BiomeID = BiomeID (46) ; } impl BiomeID { pub const coldOcean : BiomeID = BiomeID (46) ; } impl BiomeID { pub const deep_warm_ocean : BiomeID = BiomeID (47) ; } impl BiomeID { pub const warmDeepOcean : BiomeID = BiomeID (47) ; } impl BiomeID { pub const deep_lukewarm_ocean : BiomeID = BiomeID (48) ; } impl BiomeID { pub const lukewarmDeepOcean : BiomeID = BiomeID (48) ; } impl BiomeID { pub const deep_cold_ocean : BiomeID = BiomeID (49) ; } impl BiomeID { pub const coldDeepOcean : BiomeID = BiomeID (49) ; } impl BiomeID { pub const deep_frozen_ocean : BiomeID = BiomeID (50) ; } impl BiomeID { pub const frozenDeepOcean : BiomeID = BiomeID (50) ; } impl BiomeID { pub const seasonal_forest : BiomeID = BiomeID (51) ; } impl BiomeID { pub const rainforest : BiomeID = BiomeID (52) ; } impl BiomeID { pub const shrubland : BiomeID = BiomeID (53) ; } impl BiomeID { pub const the_void : BiomeID = BiomeID (127) ; } impl BiomeID { pub const sunflower_plains : BiomeID = BiomeID (129) ; } impl BiomeID { pub const desert_lakes : BiomeID = BiomeID (130) ; } impl BiomeID { pub const gravelly_mountains : BiomeID = BiomeID (131) ; } impl BiomeID { pub const flower_forest : BiomeID = BiomeID (132) ; } impl BiomeID { pub const taiga_mountains : BiomeID = BiomeID (133) ; } impl BiomeID { pub const swamp_hills : BiomeID = BiomeID (134) ; } impl BiomeID { pub const ice_spikes : BiomeID = BiomeID (140) ; } impl BiomeID { pub const modified_jungle : BiomeID = BiomeID (149) ; } impl BiomeID { pub const modified_jungle_edge : BiomeID = BiomeID (151) ; } impl BiomeID { pub const tall_birch_forest : BiomeID = BiomeID (155) ; } impl BiomeID { pub const tall_birch_hills : BiomeID = BiomeID (156) ; } impl BiomeID { pub const dark_forest_hills : BiomeID = BiomeID (157) ; } impl BiomeID { pub const snowy_taiga_mountains : BiomeID = BiomeID (158) ; } impl BiomeID { pub const giant_spruce_taiga : BiomeID = BiomeID (160) ; } impl BiomeID { pub const giant_spruce_taiga_hills : BiomeID = BiomeID (161) ; } impl BiomeID { pub const modified_gravelly_mountains : BiomeID = BiomeID (162) ; } impl BiomeID { pub const shattered_savanna : BiomeID = BiomeID (163) ; } impl BiomeID { pub const shattered_savanna_plateau : BiomeID = BiomeID (164) ; } impl BiomeID { pub const eroded_badlands : BiomeID = BiomeID (165) ; } impl BiomeID { pub const modified_wooded_badlands_plateau : BiomeID = BiomeID (166) ; } impl BiomeID { pub const modified_badlands_plateau : BiomeID = BiomeID (167) ; } impl BiomeID { pub const bamboo_jungle : BiomeID = BiomeID (168) ; } impl BiomeID { pub const bamboo_jungle_hills : BiomeID = BiomeID (169) ; } impl BiomeID { pub const soul_sand_valley : BiomeID = BiomeID (170) ; } impl BiomeID { pub const crimson_forest : BiomeID = BiomeID (171) ; } impl BiomeID { pub const warped_forest : BiomeID = BiomeID (172) ; } impl BiomeID { pub const basalt_deltas : BiomeID = BiomeID (173) ; } impl BiomeID { pub const dripstone_caves : BiomeID = BiomeID (174) ; } impl BiomeID { pub const lush_caves : BiomeID = BiomeID (175) ; } impl BiomeID { pub const meadow : BiomeID = BiomeID (177) ; } impl BiomeID { pub const grove : BiomeID = BiomeID (178) ; } impl BiomeID { pub const snowy_slopes : BiomeID = BiomeID (179) ; } impl BiomeID { pub const jagged_peaks : BiomeID = BiomeID (180) ; } impl BiomeID { pub const frozen_peaks : BiomeID = BiomeID (181) ; } impl BiomeID { pub const stony_peaks : BiomeID = BiomeID (182) ; } impl BiomeID { pub const old_growth_birch_forest : BiomeID = BiomeID (155) ; } impl BiomeID { pub const old_growth_pine_taiga : BiomeID = BiomeID (32) ; } impl BiomeID { pub const old_growth_spruce_taiga : BiomeID = BiomeID (160) ; } impl BiomeID { pub const snowy_plains : BiomeID = BiomeID (12) ; } impl BiomeID { pub const sparse_jungle : BiomeID = BiomeID (23) ; } impl BiomeID { pub const stony_shore : BiomeID = BiomeID (25) ; } impl BiomeID { pub const windswept_hills : BiomeID = BiomeID (3) ; } impl BiomeID { pub const windswept_forest : BiomeID = BiomeID (34) ; } impl BiomeID { pub const windswept_gravelly_hills : BiomeID = BiomeID (131) ; } impl BiomeID { pub const windswept_savanna : BiomeID = BiomeID (163) ; } impl BiomeID { pub const wooded_badlands : BiomeID = BiomeID (38) ; } impl BiomeID { pub const deep_dark : BiomeID = BiomeID (183) ; } impl BiomeID { pub const mangrove_swamp : BiomeID = BiomeID (184) ; } impl BiomeID { pub const cherry_grove : BiomeID = BiomeID (185) ; } impl BiomeID { pub const pale_garden : BiomeID = BiomeID (186) ; } # [repr (transparent)] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct BiomeID (pub :: std :: os :: raw :: c_int) ; unsafe extern "C" { pub fn biomeExists (mc : :: std :: os :: raw :: c_int , id : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn isOverworld (mc : :: std :: os :: raw :: c_int , id : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getDimension (id : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getMutated (mc : :: std :: os :: raw :: c_int , id : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getCategory (mc : :: std :: os :: raw :: c_int , id : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn areSimilar (mc : :: std :: os :: raw :: c_int , id1 : :: std :: os :: raw :: c_int , id2 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn isMesa (id : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn isShallowOcean (id : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn isDeepOcean (id : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn isOceanic (id : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn isSnowy (id : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } impl BiomeTempCategory { pub const Oceanic : BiomeTempCategory = BiomeTempCategory (0) ; } impl BiomeTempCategory { pub const Warm : BiomeTempCategory = BiomeTempCategory (1) ; } impl BiomeTempCategory { pub const Lush : BiomeTempCategory = BiomeTempCategory (2) ; } impl BiomeTempCategory { pub const Cold : BiomeTempCategory = BiomeTempCategory (3) ; } impl BiomeTempCategory { pub const Freezing : BiomeTempCategory = BiomeTempCategory (4) ; } impl BiomeTempCategory { pub const Special : BiomeTempCategory = BiomeTempCategory (5) ; } # [repr (transparent)] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct BiomeTempCategory (pub :: std :: os :: raw :: c_uint) ; impl LayerId { pub const L_CONTINENT_4096 : LayerId = LayerId (0) ; } impl LayerId { pub const L_ISLAND_4096 : LayerId = LayerId (0) ; } impl LayerId { pub const L_ZOOM_4096 : LayerId = LayerId (1) ; } impl LayerId { pub const L_LAND_4096 : LayerId = LayerId (2) ; } impl LayerId { pub const L_ZOOM_2048 : LayerId = LayerId (3) ; } impl LayerId { pub const L_LAND_2048 : LayerId = LayerId (4) ; } impl LayerId { pub const L_ADD_ISLAND_2048 : LayerId = LayerId (4) ; } impl LayerId { pub const L_ZOOM_1024 : LayerId = LayerId (5) ; } impl LayerId { pub const L_LAND_1024_A : LayerId = LayerId (6) ; } impl LayerId { pub const L_ADD_ISLAND_1024A : LayerId = LayerId (6) ; } impl LayerId { pub const L_LAND_1024_B : LayerId = LayerId (7) ; } impl LayerId { pub const L_ADD_ISLAND_1024B : LayerId = LayerId (7) ; } impl LayerId { pub const L_LAND_1024_C : LayerId = LayerId (8) ; } impl LayerId { pub const L_ADD_ISLAND_1024C : LayerId = LayerId (8) ; } impl LayerId { pub const L_ISLAND_1024 : LayerId = LayerId (9) ; } impl LayerId { pub const L_REMOVE_OCEAN_1024 : LayerId = LayerId (9) ; } impl LayerId { pub const L_SNOW_1024 : LayerId = LayerId (10) ; } impl LayerId { pub const L_ADD_SNOW_1024 : LayerId = LayerId (10) ; } impl LayerId { pub const L_LAND_1024_D : LayerId = LayerId (11) ; } impl LayerId { pub const L_ADD_ISLAND_1024D : LayerId = LayerId (11) ; } impl LayerId { pub const L_COOL_1024 : LayerId = LayerId (12) ; } impl LayerId { pub const L_COOL_WARM_1024 : LayerId = LayerId (12) ; } impl LayerId { pub const L_HEAT_1024 : LayerId = LayerId (13) ; } impl LayerId { pub const L_HEAT_ICE_1024 : LayerId = LayerId (13) ; } impl LayerId { pub const L_SPECIAL_1024 : LayerId = LayerId (14) ; } impl LayerId { pub const L_ZOOM_512 : LayerId = LayerId (15) ; } impl LayerId { pub const L_LAND_512 : LayerId = LayerId (16) ; } impl LayerId { pub const L_ZOOM_256 : LayerId = LayerId (17) ; } impl LayerId { pub const L_LAND_256 : LayerId = LayerId (18) ; } impl LayerId { pub const L_ADD_ISLAND_256 : LayerId = LayerId (18) ; } impl LayerId { pub const L_MUSHROOM_256 : LayerId = LayerId (19) ; } impl LayerId { pub const L_ADD_MUSHROOM_256 : LayerId = LayerId (19) ; } impl LayerId { pub const L_DEEP_OCEAN_256 : LayerId = LayerId (20) ; } impl LayerId { pub const L_BIOME_256 : LayerId = LayerId (21) ; } impl LayerId { pub const L_BAMBOO_256 : LayerId = LayerId (22) ; } impl LayerId { pub const L14_BAMBOO_256 : LayerId = LayerId (22) ; } impl LayerId { pub const L_ZOOM_128 : LayerId = LayerId (23) ; } impl LayerId { pub const L_ZOOM_64 : LayerId = LayerId (24) ; } impl LayerId { pub const L_BIOME_EDGE_64 : LayerId = LayerId (25) ; } impl LayerId { pub const L_NOISE_256 : LayerId = LayerId (26) ; } impl LayerId { pub const L_RIVER_INIT_256 : LayerId = LayerId (26) ; } impl LayerId { pub const L_ZOOM_128_HILLS : LayerId = LayerId (27) ; } impl LayerId { pub const L_ZOOM_64_HILLS : LayerId = LayerId (28) ; } impl LayerId { pub const L_HILLS_64 : LayerId = LayerId (29) ; } impl LayerId { pub const L_SUNFLOWER_64 : LayerId = LayerId (30) ; } impl LayerId { pub const L_RARE_BIOME_64 : LayerId = LayerId (30) ; } impl LayerId { pub const L_ZOOM_32 : LayerId = LayerId (31) ; } impl LayerId { pub const L_LAND_32 : LayerId = LayerId (32) ; } impl LayerId { pub const L_ADD_ISLAND_32 : LayerId = LayerId (32) ; } impl LayerId { pub const L_ZOOM_16 : LayerId = LayerId (33) ; } impl LayerId { pub const L_SHORE_16 : LayerId = LayerId (34) ; } impl LayerId { pub const L_SWAMP_RIVER_16 : LayerId = LayerId (35) ; } impl LayerId { pub const L_ZOOM_8 : LayerId = LayerId (36) ; } impl LayerId { pub const L_ZOOM_4 : LayerId = LayerId (37) ; } impl LayerId { pub const L_SMOOTH_4 : LayerId = LayerId (38) ; } impl LayerId { pub const L_ZOOM_128_RIVER : LayerId = LayerId (39) ; } impl LayerId { pub const L_ZOOM_64_RIVER : LayerId = LayerId (40) ; } impl LayerId { pub const L_ZOOM_32_RIVER : LayerId = LayerId (41) ; } impl LayerId { pub const L_ZOOM_16_RIVER : LayerId = LayerId (42) ; } impl LayerId { pub const L_ZOOM_8_RIVER : LayerId = LayerId (43) ; } impl LayerId { pub const L_ZOOM_4_RIVER : LayerId = LayerId (44) ; } impl LayerId { pub const L_RIVER_4 : LayerId = LayerId (45) ; } impl LayerId { pub const L_SMOOTH_4_RIVER : LayerId = LayerId (46) ; } impl LayerId { pub const L_RIVER_MIX_4 : LayerId = LayerId (47) ; } impl LayerId { pub const L_OCEAN_TEMP_256 : LayerId = LayerId (48) ; } impl LayerId { pub const L13_OCEAN_TEMP_256 : LayerId = LayerId (48) ; } impl LayerId { pub const L_ZOOM_128_OCEAN : LayerId = LayerId (49) ; } impl LayerId { pub const L13_ZOOM_128 : LayerId = LayerId (49) ; } impl LayerId { pub const L_ZOOM_64_OCEAN : LayerId = LayerId (50) ; } impl LayerId { pub const L13_ZOOM_64 : LayerId = LayerId (50) ; } impl LayerId { pub const L_ZOOM_32_OCEAN : LayerId = LayerId (51) ; } impl LayerId { pub const L13_ZOOM_32 : LayerId = LayerId (51) ; } impl LayerId { pub const L_ZOOM_16_OCEAN : LayerId = LayerId (52) ; } impl LayerId { pub const L13_ZOOM_16 : LayerId = LayerId (52) ; } impl LayerId { pub const L_ZOOM_8_OCEAN : LayerId = LayerId (53) ; } impl LayerId { pub const L13_ZOOM_8 : LayerId = LayerId (53) ; } impl LayerId { pub const L_ZOOM_4_OCEAN : LayerId = LayerId (54) ; } impl LayerId { pub const L13_ZOOM_4 : LayerId = LayerId (54) ; } impl LayerId { pub const L_OCEAN_MIX_4 : LayerId = LayerId (55) ; } impl LayerId { pub const L13_OCEAN_MIX_4 : LayerId = LayerId (55) ; } impl LayerId { pub const L_VORONOI_1 : LayerId = LayerId (56) ; } impl LayerId { pub const L_VORONOI_ZOOM_1 : LayerId = LayerId (56) ; } impl LayerId { pub const L_ZOOM_LARGE_A : LayerId = LayerId (57) ; } impl LayerId { pub const L_ZOOM_LARGE_B : LayerId = LayerId (58) ; } impl LayerId { pub const L_ZOOM_L_RIVER_A : LayerId = LayerId (59) ; } impl LayerId { pub const L_ZOOM_L_RIVER_B : LayerId = LayerId (60) ; } impl LayerId { pub const L_NUM : LayerId = LayerId (61) ; } # [repr (transparent)] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct LayerId (pub :: std :: os :: raw :: c_uint) ; pub type mapfunc_t = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Layer { pub getMap : mapfunc_t , pub mc : i8 , pub zoom : i8 , pub edge : i8 , pub scale : :: std :: os :: raw :: c_int , pub layerSalt : u64 , pub startSalt : u64 , pub startSeed : u64 , pub noise : * mut :: std :: os :: raw :: c_void , pub data : * mut :: std :: os :: raw :: c_void , pub p : * mut Layer , pub p2 : * mut Layer , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Layer"] [:: std :: mem :: size_of :: < Layer > () - 72usize] ; ["Alignment of Layer"] [:: std :: mem :: align_of :: < Layer > () - 8usize] ; ["Offset of field: Layer::getMap"] [:: std :: mem :: offset_of ! (Layer , getMap) - 0usize] ; ["Offset of field: Layer::mc"] [:: std :: mem :: offset_of ! (Layer , mc) - 8usize] ; ["Offset of field: Layer::zoom"] [:: std :: mem :: offset_of ! (Layer , zoom) - 9usize] ; ["Offset of field: Layer::edge"] [:: std :: mem :: offset_of ! (Layer , edge) - 10usize] ; ["Offset of field: Layer::scale"] [:: std :: mem :: offset_of ! (Layer , scale) - 12usize] ; ["Offset of field: Layer::layerSalt"] [:: std :: mem :: offset_of ! (Layer , layerSalt) - 16usize] ; ["Offset of field: Layer::startSalt"] [:: std :: mem :: offset_of ! (Layer , startSalt) - 24usize] ; ["Offset of field: Layer::startSeed"] [:: std :: mem :: offset_of ! (Layer , startSeed) - 32usize] ; ["Offset of field: Layer::noise"] [:: std :: mem :: offset_of ! (Layer , noise) - 40usize] ; ["Offset of field: Layer::data"] [:: std :: mem :: offset_of ! (Layer , data) - 48usize] ; ["Offset of field: Layer::p"] [:: std :: mem :: offset_of ! (Layer , p) - 56usize] ; ["Offset of field: Layer::p2"] [:: std :: mem :: offset_of ! (Layer , p2) - 64usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct LayerStack { pub layers : [Layer ; 61usize] , pub entry_1 : * mut Layer , pub entry_4 : * mut Layer , pub entry_16 : * mut Layer , pub entry_64 : * mut Layer , pub entry_256 : * mut Layer , pub oceanRnd : PerlinNoise , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of LayerStack"] [:: std :: mem :: size_of :: < LayerStack > () - 4752usize] ; ["Alignment of LayerStack"] [:: std :: mem :: align_of :: < LayerStack > () - 8usize] ; ["Offset of field: LayerStack::layers"] [:: std :: mem :: offset_of ! (LayerStack , layers) - 0usize] ; ["Offset of field: LayerStack::entry_1"] [:: std :: mem :: offset_of ! (LayerStack , entry_1) - 4392usize] ; ["Offset of field: LayerStack::entry_4"] [:: std :: mem :: offset_of ! (LayerStack , entry_4) - 4400usize] ; ["Offset of field: LayerStack::entry_16"] [:: std :: mem :: offset_of ! (LayerStack , entry_16) - 4408usize] ; ["Offset of field: LayerStack::entry_64"] [:: std :: mem :: offset_of ! (LayerStack , entry_64) - 4416usize] ; ["Offset of field: LayerStack::entry_256"] [:: std :: mem :: offset_of ! (LayerStack , entry_256) - 4424usize] ; ["Offset of field: LayerStack::oceanRnd"] [:: std :: mem :: offset_of ! (LayerStack , oceanRnd) - 4432usize] ; } ; unsafe extern "C" { pub fn setLayerSeed (layer : * mut Layer , worldSeed : u64) ; } unsafe extern "C" { pub fn mapContinent (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapZoomFuzzy (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapZoom (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapLand (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapLand16 (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapLandB18 (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapIsland (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapSnow (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapSnow16 (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapCool (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapHeat (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapSpecial (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapMushroom (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapDeepOcean (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapBiome (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapBamboo (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapNoise (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapBiomeEdge (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapHills (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapRiver (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapSmooth (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapSunflower (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapShore (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapSwampRiver (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapRiverMix (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapOceanTemp (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapOceanMix (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapVoronoi (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapVoronoi114 (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getVoronoiSHA (worldSeed : u64) -> u64 ; } unsafe extern "C" { pub fn voronoiAccess3D (sha : u64 , x : :: std :: os :: raw :: c_int , y : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , x4 : * mut :: std :: os :: raw :: c_int , y4 : * mut :: std :: os :: raw :: c_int , z4 : * mut :: std :: os :: raw :: c_int) ; } unsafe extern "C" { pub fn mapVoronoiPlane (sha : u64 , out : * mut :: std :: os :: raw :: c_int , src : * mut :: std :: os :: raw :: c_int , x : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , w : :: std :: os :: raw :: c_int , h : :: std :: os :: raw :: c_int , y : :: std :: os :: raw :: c_int , px : :: std :: os :: raw :: c_int , pz : :: std :: os :: raw :: c_int , pw : :: std :: os :: raw :: c_int , ph : :: std :: os :: raw :: c_int) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Range { pub scale : :: std :: os :: raw :: c_int , pub x : :: std :: os :: raw :: c_int , pub z : :: std :: os :: raw :: c_int , pub sx : :: std :: os :: raw :: c_int , pub sz : :: std :: os :: raw :: c_int , pub y : :: std :: os :: raw :: c_int , pub sy : :: std :: os :: raw :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Range"] [:: std :: mem :: size_of :: < Range > () - 28usize] ; ["Alignment of Range"] [:: std :: mem :: align_of :: < Range > () - 4usize] ; ["Offset of field: Range::scale"] [:: std :: mem :: offset_of ! (Range , scale) - 0usize] ; ["Offset of field: Range::x"] [:: std :: mem :: offset_of ! (Range , x) - 4usize] ; ["Offset of field: Range::z"] [:: std :: mem :: offset_of ! (Range , z) - 8usize] ; ["Offset of field: Range::sx"] [:: std :: mem :: offset_of ! (Range , sx) - 12usize] ; ["Offset of field: Range::sz"] [:: std :: mem :: offset_of ! (Range , sz) - 16usize] ; ["Offset of field: Range::y"] [:: std :: mem :: offset_of ! (Range , y) - 20usize] ; ["Offset of field: Range::sy"] [:: std :: mem :: offset_of ! (Range , sy) - 24usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct NetherNoise { pub temperature : DoublePerlinNoise , pub humidity : DoublePerlinNoise , pub oct : [PerlinNoise ; 8usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of NetherNoise"] [:: std :: mem :: size_of :: < NetherNoise > () - 2640usize] ; ["Alignment of NetherNoise"] [:: std :: mem :: align_of :: < NetherNoise > () - 8usize] ; ["Offset of field: NetherNoise::temperature"] [:: std :: mem :: offset_of ! (NetherNoise , temperature) - 0usize] ; ["Offset of field: NetherNoise::humidity"] [:: std :: mem :: offset_of ! (NetherNoise , humidity) - 40usize] ; ["Offset of field: NetherNoise::oct"] [:: std :: mem :: offset_of ! (NetherNoise , oct) - 80usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct EndNoise { pub perlin : PerlinNoise , pub mc : :: std :: os :: raw :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of EndNoise"] [:: std :: mem :: size_of :: < EndNoise > () - 328usize] ; ["Alignment of EndNoise"] [:: std :: mem :: align_of :: < EndNoise > () - 8usize] ; ["Offset of field: EndNoise::perlin"] [:: std :: mem :: offset_of ! (EndNoise , perlin) - 0usize] ; ["Offset of field: EndNoise::mc"] [:: std :: mem :: offset_of ! (EndNoise , mc) - 320usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct SurfaceNoise { pub xzScale : f64 , pub yScale : f64 , pub xzFactor : f64 , pub yFactor : f64 , pub octmin : OctaveNoise , pub octmax : OctaveNoise , pub octmain : OctaveNoise , pub octsurf : OctaveNoise , pub octdepth : OctaveNoise , pub oct : [PerlinNoise ; 60usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of SurfaceNoise"] [:: std :: mem :: size_of :: < SurfaceNoise > () - 19312usize] ; ["Alignment of SurfaceNoise"] [:: std :: mem :: align_of :: < SurfaceNoise > () - 8usize] ; ["Offset of field: SurfaceNoise::xzScale"] [:: std :: mem :: offset_of ! (SurfaceNoise , xzScale) - 0usize] ; ["Offset of field: SurfaceNoise::yScale"] [:: std :: mem :: offset_of ! (SurfaceNoise , yScale) - 8usize] ; ["Offset of field: SurfaceNoise::xzFactor"] [:: std :: mem :: offset_of ! (SurfaceNoise , xzFactor) - 16usize] ; ["Offset of field: SurfaceNoise::yFactor"] [:: std :: mem :: offset_of ! (SurfaceNoise , yFactor) - 24usize] ; ["Offset of field: SurfaceNoise::octmin"] [:: std :: mem :: offset_of ! (SurfaceNoise , octmin) - 32usize] ; ["Offset of field: SurfaceNoise::octmax"] [:: std :: mem :: offset_of ! (SurfaceNoise , octmax) - 48usize] ; ["Offset of field: SurfaceNoise::octmain"] [:: std :: mem :: offset_of ! (SurfaceNoise , octmain) - 64usize] ; ["Offset of field: SurfaceNoise::octsurf"] [:: std :: mem :: offset_of ! (SurfaceNoise , octsurf) - 80usize] ; ["Offset of field: SurfaceNoise::octdepth"] [:: std :: mem :: offset_of ! (SurfaceNoise , octdepth) - 96usize] ; ["Offset of field: SurfaceNoise::oct"] [:: std :: mem :: offset_of ! (SurfaceNoise , oct) - 112usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct SurfaceNoiseBeta { pub octmin : OctaveNoise , pub octmax : OctaveNoise , pub octmain : OctaveNoise , pub octcontA : OctaveNoise , pub octcontB : OctaveNoise , pub oct : [PerlinNoise ; 66usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of SurfaceNoiseBeta"] [:: std :: mem :: size_of :: < SurfaceNoiseBeta > () - 21200usize] ; ["Alignment of SurfaceNoiseBeta"] [:: std :: mem :: align_of :: < SurfaceNoiseBeta > () - 8usize] ; ["Offset of field: SurfaceNoiseBeta::octmin"] [:: std :: mem :: offset_of ! (SurfaceNoiseBeta , octmin) - 0usize] ; ["Offset of field: SurfaceNoiseBeta::octmax"] [:: std :: mem :: offset_of ! (SurfaceNoiseBeta , octmax) - 16usize] ; ["Offset of field: SurfaceNoiseBeta::octmain"] [:: std :: mem :: offset_of ! (SurfaceNoiseBeta , octmain) - 32usize] ; ["Offset of field: SurfaceNoiseBeta::octcontA"] [:: std :: mem :: offset_of ! (SurfaceNoiseBeta , octcontA) - 48usize] ; ["Offset of field: SurfaceNoiseBeta::octcontB"] [:: std :: mem :: offset_of ! (SurfaceNoiseBeta , octcontB) - 64usize] ; ["Offset of field: SurfaceNoiseBeta::oct"] [:: std :: mem :: offset_of ! (SurfaceNoiseBeta , oct) - 80usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct SeaLevelColumnNoiseBeta { pub contASample : f64 , pub contBSample : f64 , pub minSample : [f64 ; 2usize] , pub maxSample : [f64 ; 2usize] , pub mainSample : [f64 ; 2usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of SeaLevelColumnNoiseBeta"] [:: std :: mem :: size_of :: < SeaLevelColumnNoiseBeta > () - 64usize] ; ["Alignment of SeaLevelColumnNoiseBeta"] [:: std :: mem :: align_of :: < SeaLevelColumnNoiseBeta > () - 8usize] ; ["Offset of field: SeaLevelColumnNoiseBeta::contASample"] [:: std :: mem :: offset_of ! (SeaLevelColumnNoiseBeta , contASample) - 0usize] ; ["Offset of field: SeaLevelColumnNoiseBeta::contBSample"] [:: std :: mem :: offset_of ! (SeaLevelColumnNoiseBeta , contBSample) - 8usize] ; ["Offset of field: SeaLevelColumnNoiseBeta::minSample"] [:: std :: mem :: offset_of ! (SeaLevelColumnNoiseBeta , minSample) - 16usize] ; ["Offset of field: SeaLevelColumnNoiseBeta::maxSample"] [:: std :: mem :: offset_of ! (SeaLevelColumnNoiseBeta , maxSample) - 32usize] ; ["Offset of field: SeaLevelColumnNoiseBeta::mainSample"] [:: std :: mem :: offset_of ! (SeaLevelColumnNoiseBeta , mainSample) - 48usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Spline { pub len : :: std :: os :: raw :: c_int , pub typ : :: std :: os :: raw :: c_int , pub loc : [f32 ; 12usize] , pub der : [f32 ; 12usize] , pub val : [* mut Spline ; 12usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Spline"] [:: std :: mem :: size_of :: < Spline > () - 200usize] ; ["Alignment of Spline"] [:: std :: mem :: align_of :: < Spline > () - 8usize] ; ["Offset of field: Spline::len"] [:: std :: mem :: offset_of ! (Spline , len) - 0usize] ; ["Offset of field: Spline::typ"] [:: std :: mem :: offset_of ! (Spline , typ) - 4usize] ; ["Offset of field: Spline::loc"] [:: std :: mem :: offset_of ! (Spline , loc) - 8usize] ; ["Offset of field: Spline::der"] [:: std :: mem :: offset_of ! (Spline , der) - 56usize] ; ["Offset of field: Spline::val"] [:: std :: mem :: offset_of ! (Spline , val) - 104usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FixSpline { pub len : :: std :: os :: raw :: c_int , pub val : f32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of FixSpline"] [:: std :: mem :: size_of :: < FixSpline > () - 8usize] ; ["Alignment of FixSpline"] [:: std :: mem :: align_of :: < FixSpline > () - 4usize] ; ["Offset of field: FixSpline::len"] [:: std :: mem :: offset_of ! (FixSpline , len) - 0usize] ; ["Offset of field: FixSpline::val"] [:: std :: mem :: offset_of ! (FixSpline , val) - 4usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct SplineStack { pub stack : [Spline ; 42usize] , pub fstack : [FixSpline ; 151usize] , pub len : :: std :: os :: raw :: c_int , pub flen : :: std :: os :: raw :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of SplineStack"] [:: std :: mem :: size_of :: < SplineStack > () - 9616usize] ; ["Alignment of SplineStack"] [:: std :: mem :: align_of :: < SplineStack > () - 8usize] ; ["Offset of field: SplineStack::stack"] [:: std :: mem :: offset_of ! (SplineStack , stack) - 0usize] ; ["Offset of field: SplineStack::fstack"] [:: std :: mem :: offset_of ! (SplineStack , fstack) - 8400usize] ; ["Offset of field: SplineStack::len"] [:: std :: mem :: offset_of ! (SplineStack , len) - 9608usize] ; ["Offset of field: SplineStack::flen"] [:: std :: mem :: offset_of ! (SplineStack , flen) - 9612usize] ; } ; pub const NP_TEMPERATURE : _bindgen_ty_2 = _bindgen_ty_2 (0) ; pub const NP_HUMIDITY : _bindgen_ty_2 = _bindgen_ty_2 (1) ; pub const NP_CONTINENTALNESS : _bindgen_ty_2 = _bindgen_ty_2 (2) ; pub const NP_EROSION : _bindgen_ty_2 = _bindgen_ty_2 (3) ; pub const NP_SHIFT : _bindgen_ty_2 = _bindgen_ty_2 (4) ; pub const NP_DEPTH : _bindgen_ty_2 = _bindgen_ty_2 (4) ; pub const NP_WEIRDNESS : _bindgen_ty_2 = _bindgen_ty_2 (5) ; pub const NP_MAX : _bindgen_ty_2 = _bindgen_ty_2 (6) ; # [repr (transparent)] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct _bindgen_ty_2 (pub :: std :: os :: raw :: c_uint) ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct BiomeNoise { pub climate : [DoublePerlinNoise ; 6usize] , pub oct : [PerlinNoise ; 46usize] , pub sp : * mut Spline , pub ss : SplineStack , pub nptype : :: std :: os :: raw :: c_int , pub mc : :: std :: os :: raw :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of BiomeNoise"] [:: std :: mem :: size_of :: < BiomeNoise > () - 24592usize] ; ["Alignment of BiomeNoise"] [:: std :: mem :: align_of :: < BiomeNoise > () - 8usize] ; ["Offset of field: BiomeNoise::climate"] [:: std :: mem :: offset_of ! (BiomeNoise , climate) - 0usize] ; ["Offset of field: BiomeNoise::oct"] [:: std :: mem :: offset_of ! (BiomeNoise , oct) - 240usize] ; ["Offset of field: BiomeNoise::sp"] [:: std :: mem :: offset_of ! (BiomeNoise , sp) - 14960usize] ; ["Offset of field: BiomeNoise::ss"] [:: std :: mem :: offset_of ! (BiomeNoise , ss) - 14968usize] ; ["Offset of field: BiomeNoise::nptype"] [:: std :: mem :: offset_of ! (BiomeNoise , nptype) - 24584usize] ; ["Offset of field: BiomeNoise::mc"] [:: std :: mem :: offset_of ! (BiomeNoise , mc) - 24588usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct BiomeNoiseBeta { pub climate : [OctaveNoise ; 3usize] , pub oct : [PerlinNoise ; 10usize] , pub nptype : :: std :: os :: raw :: c_int , pub mc : :: std :: os :: raw :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of BiomeNoiseBeta"] [:: std :: mem :: size_of :: < BiomeNoiseBeta > () - 3256usize] ; ["Alignment of BiomeNoiseBeta"] [:: std :: mem :: align_of :: < BiomeNoiseBeta > () - 8usize] ; ["Offset of field: BiomeNoiseBeta::climate"] [:: std :: mem :: offset_of ! (BiomeNoiseBeta , climate) - 0usize] ; ["Offset of field: BiomeNoiseBeta::oct"] [:: std :: mem :: offset_of ! (BiomeNoiseBeta , oct) - 48usize] ; ["Offset of field: BiomeNoiseBeta::nptype"] [:: std :: mem :: offset_of ! (BiomeNoiseBeta , nptype) - 3248usize] ; ["Offset of field: BiomeNoiseBeta::mc"] [:: std :: mem :: offset_of ! (BiomeNoiseBeta , mc) - 3252usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct BiomeTree { pub steps : * const u32 , pub param : * const i32 , pub nodes : * const u64 , pub order : u32 , pub len : u32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of BiomeTree"] [:: std :: mem :: size_of :: < BiomeTree > () - 32usize] ; ["Alignment of BiomeTree"] [:: std :: mem :: align_of :: < BiomeTree > () - 8usize] ; ["Offset of field: BiomeTree::steps"] [:: std :: mem :: offset_of ! (BiomeTree , steps) - 0usize] ; ["Offset of field: BiomeTree::param"] [:: std :: mem :: offset_of ! (BiomeTree , param) - 8usize] ; ["Offset of field: BiomeTree::nodes"] [:: std :: mem :: offset_of ! (BiomeTree , nodes) - 16usize] ; ["Offset of field: BiomeTree::order"] [:: std :: mem :: offset_of ! (BiomeTree , order) - 24usize] ; ["Offset of field: BiomeTree::len"] [:: std :: mem :: offset_of ! (BiomeTree , len) - 28usize] ; } ; unsafe extern "C" { pub fn initSurfaceNoise (sn : * mut SurfaceNoise , dim : :: std :: os :: raw :: c_int , seed : u64) ; } unsafe extern "C" { pub fn initSurfaceNoiseBeta (snb : * mut SurfaceNoiseBeta , seed : u64) ; } unsafe extern "C" { pub fn sampleSurfaceNoise (sn : * const SurfaceNoise , x : :: std :: os :: raw :: c_int , y : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int) -> f64 ; } unsafe extern "C" { pub fn sampleSurfaceNoiseBetween (sn : * const SurfaceNoise , x : :: std :: os :: raw :: c_int , y : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , noiseMin : f64 , noiseMax : f64) -> f64 ; } unsafe extern "C" { # [doc = " Nether biomes are 3D, and generated at scale 1:4. Use voronoiAccess3D() to\n convert coordinates at 1:1 scale to their 1:4 access. Biome checks for\n structures are generally done at y=0.\n\n The function getNetherBiome() determines the nether biome at a given\n coordinate at scale 1:4. The parameter 'ndel' is an output noise delta for\n optimization purposes and can be ignored (nullable).\n\n Use mapNether2D() to get a 2D area of nether biomes at y=0, scale 1:4.\n\n The mapNether3D() function attempts to optimize the generation of a volume\n at scale 1:4. The output is indexed as:\n out[i_y*(r.sx*r.sz) + i_z*r.sx + i_x].\n If the optimization parameter 'confidence' has a value less than 1.0, the\n generation will generally be faster, but can yield incorrect results in some\n circumstances.\n\n The output buffer for the map-functions need only be of sufficient size to\n hold the generated area (i.e. w*h or r.sx*r.sy*r.sz)."] pub fn setNetherSeed (nn : * mut NetherNoise , seed : u64) ; } unsafe extern "C" { pub fn getNetherBiome (nn : * const NetherNoise , x : :: std :: os :: raw :: c_int , y : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , ndel : * mut f32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapNether2D (nn : * const NetherNoise , out : * mut :: std :: os :: raw :: c_int , x : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , w : :: std :: os :: raw :: c_int , h : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapNether3D (nn : * const NetherNoise , out : * mut :: std :: os :: raw :: c_int , r : Range , confidence : f32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " The scaled Nether generation supports scales 1, 4, 16, 64, and 256.\n It is similar to mapNether3D(), but applies voronoi zoom if necessary, and\n fills the output buffer with nether_wastes for versions older than 1.16."] pub fn genNetherScaled (nn : * const NetherNoise , out : * mut :: std :: os :: raw :: c_int , r : Range , mc : :: std :: os :: raw :: c_int , sha : u64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " End biome generation is based on simplex noise and varies only at a 1:16\n chunk scale which can be generated with mapEndBiome(). The function mapEnd()\n is a variation which also scales this up on a regular grid to 1:4. The final\n access at a 1:1 scale uses voronoi."] pub fn setEndSeed (en : * mut EndNoise , mc : :: std :: os :: raw :: c_int , seed : u64) ; } unsafe extern "C" { pub fn mapEndBiome (en : * const EndNoise , out : * mut :: std :: os :: raw :: c_int , x : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , w : :: std :: os :: raw :: c_int , h : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapEnd (en : * const EndNoise , out : * mut :: std :: os :: raw :: c_int , x : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , w : :: std :: os :: raw :: c_int , h : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getEndSurfaceHeight (mc : :: std :: os :: raw :: c_int , seed : u64 , x : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapEndSurfaceHeight (y : * mut f32 , en : * const EndNoise , sn : * const SurfaceNoise , x : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , w : :: std :: os :: raw :: c_int , h : :: std :: os :: raw :: c_int , scale : :: std :: os :: raw :: c_int , ymin : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " The scaled End generation supports scales 1, 4, 16, and 64.\n The End biomes are usually 2D, but in 1.15+ there is 3D voronoi noise, which\n is controlled by the 'sha' hash of the seed. For scales higher than 1:1, and\n versions up to 1.14, 'sha' is ignored."] pub fn genEndScaled (en : * const EndNoise , out : * mut :: std :: os :: raw :: c_int , r : Range , mc : :: std :: os :: raw :: c_int , sha : u64) -> :: std :: os :: raw :: c_int ; } pub const SAMPLE_NO_SHIFT : _bindgen_ty_3 = _bindgen_ty_3 (1) ; pub const SAMPLE_NO_DEPTH : _bindgen_ty_3 = _bindgen_ty_3 (2) ; pub const SAMPLE_NO_BIOME : _bindgen_ty_3 = _bindgen_ty_3 (4) ; # [repr (transparent)] # [doc = " In 1.18 the Overworld uses a new noise map system for the biome generation.\n The random number generation also has updated to a Xiroshiro128 algorithm.\n The scale is 1:4, and is sampled at each point individually as there is\n currently not much benefit from generating a volume as a whole.\n\n The 1.18 End generation remains similar to 1.17 and does NOT use the\n biome noise."] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct _bindgen_ty_3 (pub :: std :: os :: raw :: c_uint) ; unsafe extern "C" { pub fn initBiomeNoise (bn : * mut BiomeNoise , mc : :: std :: os :: raw :: c_int) ; } unsafe extern "C" { pub fn setBiomeSeed (bn : * mut BiomeNoise , seed : u64 , large : :: std :: os :: raw :: c_int) ; } unsafe extern "C" { pub fn setBetaBiomeSeed (bnb : * mut BiomeNoiseBeta , seed : u64) ; } unsafe extern "C" { pub fn sampleBiomeNoise (bn : * const BiomeNoise , np : * mut i64 , x : :: std :: os :: raw :: c_int , y : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , dat : * mut u64 , sample_flags : u32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn sampleBiomeNoiseBeta (bnb : * const BiomeNoiseBeta , np : * mut i64 , nv : * mut f64 , x : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn approxSurfaceBeta (bnb : * const BiomeNoiseBeta , snb : * const SurfaceNoiseBeta , x : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int) -> f64 ; } unsafe extern "C" { # [doc = " (Alpha 1.2 - Beta 1.7)\n Temperature and humidity values to biome."] pub fn getOldBetaBiome (t : f32 , h : f32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " Uses the global biome tree definitions (see tables/btreeXX.h)\n to map a noise point (i.e. climate) to the corresponding overworld biome."] pub fn climateToBiome (mc : :: std :: os :: raw :: c_int , np : * const u64 , dat : * mut u64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " Initialize BiomeNoise for only a single climate parameter.\n If nptype == NP_DEPTH, the value is sampled at y=0. Note that this value\n changes linearly with the height (i.e. -= y/128).\n A maximum of nmax octaves is set, initializing only the most contributing\n octaves up to that point. Use -1 for a full initialization."] pub fn setClimateParaSeed (bn : * mut BiomeNoise , seed : u64 , large : :: std :: os :: raw :: c_int , nptype : :: std :: os :: raw :: c_int , nmax : :: std :: os :: raw :: c_int) ; } unsafe extern "C" { pub fn sampleClimatePara (bn : * const BiomeNoise , np : * mut i64 , x : f64 , z : f64) -> f64 ; } unsafe extern "C" { # [doc = " Currently, in 1.18, we have to generate biomes one chunk at a time to get an\n accurate mapping of the biomes in the level storage, as there is no longer a\n unique mapping from noise points to biomes (MC-241546). Note that the results\n from this are not suitable for chunk population/structure generation.\n The output is in the form out[x][y][z] for the 64 biome points in the chunk\n section. The coordinates {cx,cy,cz} are all at scale 1:16 and the 'dat'\n argument should be the previous noise sampling and can be left NULL."] pub fn genBiomeNoiseChunkSection (bn : * const BiomeNoise , out : * mut [[:: std :: os :: raw :: c_int ; 4usize] ; 4usize] , cx : :: std :: os :: raw :: c_int , cy : :: std :: os :: raw :: c_int , cz : :: std :: os :: raw :: c_int , dat : * mut u64) ; } unsafe extern "C" { # [doc = " The scaled biome noise generation applies for the Overworld version 1.18+.\n The 'sha' hash of the seed is only required for voronoi at scale 1:1.\n A scale of zero is interpreted as the default 1:4 scale."] pub fn genBiomeNoiseScaled (bn : * const BiomeNoise , out : * mut :: std :: os :: raw :: c_int , r : Range , sha : u64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " Generates the biomes for Beta 1.7, the surface noise is optional and enables\n ocean mapping in areas that fall below the sea level."] pub fn genBiomeNoiseBetaScaled (bnb : * const BiomeNoiseBeta , snb : * const SurfaceNoiseBeta , out : * mut :: std :: os :: raw :: c_int , r : Range) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getBiomeDepthAndScale (id : :: std :: os :: raw :: c_int , depth : * mut f64 , scale : * mut f64 , grass : * mut :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getVoronoiSrcRange (r : Range) -> Range ; } pub const LARGE_BIOMES : _bindgen_ty_4 = _bindgen_ty_4 (1) ; pub const NO_BETA_OCEAN : _bindgen_ty_4 = _bindgen_ty_4 (2) ; pub const FORCE_OCEAN_VARIANTS : _bindgen_ty_4 = _bindgen_ty_4 (4) ; # [repr (transparent)] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct _bindgen_ty_4 (pub :: std :: os :: raw :: c_uint) ; # [repr (C)] # [derive (Copy , Clone)] pub struct Generator { pub mc : :: std :: os :: raw :: c_int , pub dim : :: std :: os :: raw :: c_int , pub flags : u32 , pub seed : u64 , pub sha : u64 , pub __bindgen_anon_1 : Generator__bindgen_ty_1 , pub nn : NetherNoise , pub en : EndNoise , } # [repr (C)] # [derive (Copy , Clone)] pub union Generator__bindgen_ty_1 { pub __bindgen_anon_1 : Generator__bindgen_ty_1__bindgen_ty_1 , pub __bindgen_anon_2 : Generator__bindgen_ty_1__bindgen_ty_2 , pub __bindgen_anon_3 : Generator__bindgen_ty_1__bindgen_ty_3 , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Generator__bindgen_ty_1__bindgen_ty_1 { pub ls : LayerStack , pub xlayer : [Layer ; 5usize] , pub entry : * mut Layer , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Generator__bindgen_ty_1__bindgen_ty_1"] [:: std :: mem :: size_of :: < Generator__bindgen_ty_1__bindgen_ty_1 > () - 5120usize] ; ["Alignment of Generator__bindgen_ty_1__bindgen_ty_1"] [:: std :: mem :: align_of :: < Generator__bindgen_ty_1__bindgen_ty_1 > () - 8usize] ; ["Offset of field: Generator__bindgen_ty_1__bindgen_ty_1::ls"] [:: std :: mem :: offset_of ! (Generator__bindgen_ty_1__bindgen_ty_1 , ls) - 0usize] ; ["Offset of field: Generator__bindgen_ty_1__bindgen_ty_1::xlayer"] [:: std :: mem :: offset_of ! (Generator__bindgen_ty_1__bindgen_ty_1 , xlayer) - 4752usize] ; ["Offset of field: Generator__bindgen_ty_1__bindgen_ty_1::entry"] [:: std :: mem :: offset_of ! (Generator__bindgen_ty_1__bindgen_ty_1 , entry) - 5112usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Generator__bindgen_ty_1__bindgen_ty_2 { pub bn : BiomeNoise , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Generator__bindgen_ty_1__bindgen_ty_2"] [:: std :: mem :: size_of :: < Generator__bindgen_ty_1__bindgen_ty_2 > () - 24592usize] ; ["Alignment of Generator__bindgen_ty_1__bindgen_ty_2"] [:: std :: mem :: align_of :: < Generator__bindgen_ty_1__bindgen_ty_2 > () - 8usize] ; ["Offset of field: Generator__bindgen_ty_1__bindgen_ty_2::bn"] [:: std :: mem :: offset_of ! (Generator__bindgen_ty_1__bindgen_ty_2 , bn) - 0usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Generator__bindgen_ty_1__bindgen_ty_3 { pub bnb : BiomeNoiseBeta , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Generator__bindgen_ty_1__bindgen_ty_3"] [:: std :: mem :: size_of :: < Generator__bindgen_ty_1__bindgen_ty_3 > () - 3256usize] ; ["Alignment of Generator__bindgen_ty_1__bindgen_ty_3"] [:: std :: mem :: align_of :: < Generator__bindgen_ty_1__bindgen_ty_3 > () - 8usize] ; ["Offset of field: Generator__bindgen_ty_1__bindgen_ty_3::bnb"] [:: std :: mem :: offset_of ! (Generator__bindgen_ty_1__bindgen_ty_3 , bnb) - 0usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Generator__bindgen_ty_1"] [:: std :: mem :: size_of :: < Generator__bindgen_ty_1 > () - 24592usize] ; ["Alignment of Generator__bindgen_ty_1"] [:: std :: mem :: align_of :: < Generator__bindgen_ty_1 > () - 8usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Generator"] [:: std :: mem :: size_of :: < Generator > () - 27592usize] ; ["Alignment of Generator"] [:: std :: mem :: align_of :: < Generator > () - 8usize] ; ["Offset of field: Generator::mc"] [:: std :: mem :: offset_of ! (Generator , mc) - 0usize] ; ["Offset of field: Generator::dim"] [:: std :: mem :: offset_of ! (Generator , dim) - 4usize] ; ["Offset of field: Generator::flags"] [:: std :: mem :: offset_of ! (Generator , flags) - 8usize] ; ["Offset of field: Generator::seed"] [:: std :: mem :: offset_of ! (Generator , seed) - 16usize] ; ["Offset of field: Generator::sha"] [:: std :: mem :: offset_of ! (Generator , sha) - 24usize] ; ["Offset of field: Generator::nn"] [:: std :: mem :: offset_of ! (Generator , nn) - 24624usize] ; ["Offset of field: Generator::en"] [:: std :: mem :: offset_of ! (Generator , en) - 27264usize] ; } ; unsafe extern "C" { # [doc = " Sets up a biome generator for a given MC version. The 'flags' can be used to\n control LARGE_BIOMES or to FORCE_OCEAN_VARIANTS to enable ocean variants at\n scales higher than normal."] pub fn setupGenerator (g : * mut Generator , mc : :: std :: os :: raw :: c_int , flags : u32) ; } unsafe extern "C" { # [doc = " Initializes the generator for a given dimension and seed.\n dim=0:   Overworld\n dim=-1:  Nether\n dim=+1:  End"] pub fn applySeed (g : * mut Generator , dim : :: std :: os :: raw :: c_int , seed : u64) ; } unsafe extern "C" { # [doc = " Calculates the buffer size (number of ints) required to generate a cuboidal\n volume of size (sx, sy, sz). If 'sy' is zero the buffer is calculated for a\n 2D plane (which is equivalent to sy=1 here).\n The function allocCache() can be used to allocate the corresponding int\n buffer using malloc()."] pub fn getMinCacheSize (g : * const Generator , scale : :: std :: os :: raw :: c_int , sx : :: std :: os :: raw :: c_int , sy : :: std :: os :: raw :: c_int , sz : :: std :: os :: raw :: c_int) -> usize ; } unsafe extern "C" { pub fn allocCache (g : * const Generator , r : Range) -> * mut :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " Generates the biomes for a cuboidal scaled range given by 'r'.\n (See description of Range for more detail.)\n\n The output is generated inside the cache. Upon success the biome ids can be\n accessed by indexing as:\n  cache[ y*r.sx*r.sz + z*r.sx + x ]\n where (x,y,z) is an relative position inside the range cuboid.\n\n The required length of the cache can be determined with getMinCacheSize().\n\n The return value is zero upon success."] pub fn genBiomes (g : * const Generator , cache : * mut :: std :: os :: raw :: c_int , r : Range) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " Gets the biome for a specified scaled position. Note that the scale should\n be either 1 or 4, for block or biome coordinates respectively.\n Returns none (-1) upon failure."] pub fn getBiomeAt (g : * const Generator , scale : :: std :: os :: raw :: c_int , x : :: std :: os :: raw :: c_int , y : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " Returns the default layer that corresponds to the given scale.\n Supported scales are {0, 1, 4, 16, 64, 256}. A scale of zero indicates the\n custom entry layer 'g->entry'.\n (Overworld, MC <= 1.17)"] pub fn getLayerForScale (g : * const Generator , scale : :: std :: os :: raw :: c_int) -> * const Layer ; } unsafe extern "C" { # [doc = "=============================================================================\n Layered Biome Generation (old interface up to 1.17)\n============================================================================="] pub fn setupLayerStack (g : * mut LayerStack , mc : :: std :: os :: raw :: c_int , largeBiomes : :: std :: os :: raw :: c_int) ; } unsafe extern "C" { pub fn getMinLayerCacheSize (layer : * const Layer , sizeX : :: std :: os :: raw :: c_int , sizeZ : :: std :: os :: raw :: c_int) -> usize ; } unsafe extern "C" { pub fn setupLayer (l : * mut Layer , map : mapfunc_t , mc : :: std :: os :: raw :: c_int , zoom : i8 , edge : i8 , saltbase : u64 , p : * mut Layer , p2 : * mut Layer) -> * mut Layer ; } unsafe extern "C" { pub fn genArea (layer : * const Layer , out : * mut :: std :: os :: raw :: c_int , areaX : :: std :: os :: raw :: c_int , areaZ : :: std :: os :: raw :: c_int , areaWidth : :: std :: os :: raw :: c_int , areaHeight : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " Map an approximation of the Overworld surface height.\n The horizontal scaling is 1:4. If non-null, the ids are filled with the\n biomes of the area. The height (written to y) is in blocks."] pub fn mapApproxHeight (y : * mut f32 , ids : * mut :: std :: os :: raw :: c_int , g : * const Generator , sn : * const SurfaceNoise , x : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , w : :: std :: os :: raw :: c_int , h : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } impl StructureType { pub const Feature : StructureType = StructureType (0) ; } impl StructureType { pub const Desert_Pyramid : StructureType = StructureType (1) ; } impl StructureType { pub const Jungle_Temple : StructureType = StructureType (2) ; } impl StructureType { pub const Jungle_Pyramid : StructureType = StructureType (2) ; } impl StructureType { pub const Swamp_Hut : StructureType = StructureType (3) ; } impl StructureType { pub const Igloo : StructureType = StructureType (4) ; } impl StructureType { pub const Village : StructureType = StructureType (5) ; } impl StructureType { pub const Ocean_Ruin : StructureType = StructureType (6) ; } impl StructureType { pub const Shipwreck : StructureType = StructureType (7) ; } impl StructureType { pub const Monument : StructureType = StructureType (8) ; } impl StructureType { pub const Mansion : StructureType = StructureType (9) ; } impl StructureType { pub const Outpost : StructureType = StructureType (10) ; } impl StructureType { pub const Ruined_Portal : StructureType = StructureType (11) ; } impl StructureType { pub const Ruined_Portal_N : StructureType = StructureType (12) ; } impl StructureType { pub const Ancient_City : StructureType = StructureType (13) ; } impl StructureType { pub const Treasure : StructureType = StructureType (14) ; } impl StructureType { pub const Mineshaft : StructureType = StructureType (15) ; } impl StructureType { pub const Desert_Well : StructureType = StructureType (16) ; } impl StructureType { pub const Geode : StructureType = StructureType (17) ; } impl StructureType { pub const Fortress : StructureType = StructureType (18) ; } impl StructureType { pub const Bastion : StructureType = StructureType (19) ; } impl StructureType { pub const End_City : StructureType = StructureType (20) ; } impl StructureType { pub const End_Gateway : StructureType = StructureType (21) ; } impl StructureType { pub const End_Island : StructureType = StructureType (22) ; } impl StructureType { pub const Trail_Ruins : StructureType = StructureType (23) ; } impl StructureType { pub const Trial_Chambers : StructureType = StructureType (24) ; } impl StructureType { pub const FEATURE_NUM : StructureType = StructureType (25) ; } # [repr (transparent)] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct StructureType (pub :: std :: os :: raw :: c_uint) ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct StructureConfig { pub salt : i32 , pub regionSize : i8 , pub chunkRange : i8 , pub structType : u8 , pub dim : i8 , pub rarity : f32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of StructureConfig"] [:: std :: mem :: size_of :: < StructureConfig > () - 12usize] ; ["Alignment of StructureConfig"] [:: std :: mem :: align_of :: < StructureConfig > () - 4usize] ; ["Offset of field: StructureConfig::salt"] [:: std :: mem :: offset_of ! (StructureConfig , salt) - 0usize] ; ["Offset of field: StructureConfig::regionSize"] [:: std :: mem :: offset_of ! (StructureConfig , regionSize) - 4usize] ; ["Offset of field: StructureConfig::chunkRange"] [:: std :: mem :: offset_of ! (StructureConfig , chunkRange) - 5usize] ; ["Offset of field: StructureConfig::structType"] [:: std :: mem :: offset_of ! (StructureConfig , structType) - 6usize] ; ["Offset of field: StructureConfig::dim"] [:: std :: mem :: offset_of ! (StructureConfig , dim) - 7usize] ; ["Offset of field: StructureConfig::rarity"] [:: std :: mem :: offset_of ! (StructureConfig , rarity) - 8usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Pos { pub x : :: std :: os :: raw :: c_int , pub z : :: std :: os :: raw :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Pos"] [:: std :: mem :: size_of :: < Pos > () - 8usize] ; ["Alignment of Pos"] [:: std :: mem :: align_of :: < Pos > () - 4usize] ; ["Offset of field: Pos::x"] [:: std :: mem :: offset_of ! (Pos , x) - 0usize] ; ["Offset of field: Pos::z"] [:: std :: mem :: offset_of ! (Pos , z) - 4usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Pos3 { pub x : :: std :: os :: raw :: c_int , pub y : :: std :: os :: raw :: c_int , pub z : :: std :: os :: raw :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Pos3"] [:: std :: mem :: size_of :: < Pos3 > () - 12usize] ; ["Alignment of Pos3"] [:: std :: mem :: align_of :: < Pos3 > () - 4usize] ; ["Offset of field: Pos3::x"] [:: std :: mem :: offset_of ! (Pos3 , x) - 0usize] ; ["Offset of field: Pos3::y"] [:: std :: mem :: offset_of ! (Pos3 , y) - 4usize] ; ["Offset of field: Pos3::z"] [:: std :: mem :: offset_of ! (Pos3 , z) - 8usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct StrongholdIter { pub pos : Pos , pub nextapprox : Pos , pub index : :: std :: os :: raw :: c_int , pub ringnum : :: std :: os :: raw :: c_int , pub ringmax : :: std :: os :: raw :: c_int , pub ringidx : :: std :: os :: raw :: c_int , pub angle : f64 , pub dist : f64 , pub rnds : u64 , pub mc : :: std :: os :: raw :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of StrongholdIter"] [:: std :: mem :: size_of :: < StrongholdIter > () - 64usize] ; ["Alignment of StrongholdIter"] [:: std :: mem :: align_of :: < StrongholdIter > () - 8usize] ; ["Offset of field: StrongholdIter::pos"] [:: std :: mem :: offset_of ! (StrongholdIter , pos) - 0usize] ; ["Offset of field: StrongholdIter::nextapprox"] [:: std :: mem :: offset_of ! (StrongholdIter , nextapprox) - 8usize] ; ["Offset of field: StrongholdIter::index"] [:: std :: mem :: offset_of ! (StrongholdIter , index) - 16usize] ; ["Offset of field: StrongholdIter::ringnum"] [:: std :: mem :: offset_of ! (StrongholdIter , ringnum) - 20usize] ; ["Offset of field: StrongholdIter::ringmax"] [:: std :: mem :: offset_of ! (StrongholdIter , ringmax) - 24usize] ; ["Offset of field: StrongholdIter::ringidx"] [:: std :: mem :: offset_of ! (StrongholdIter , ringidx) - 28usize] ; ["Offset of field: StrongholdIter::angle"] [:: std :: mem :: offset_of ! (StrongholdIter , angle) - 32usize] ; ["Offset of field: StrongholdIter::dist"] [:: std :: mem :: offset_of ! (StrongholdIter , dist) - 40usize] ; ["Offset of field: StrongholdIter::rnds"] [:: std :: mem :: offset_of ! (StrongholdIter , rnds) - 48usize] ; ["Offset of field: StrongholdIter::mc"] [:: std :: mem :: offset_of ! (StrongholdIter , mc) - 56usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct StructureVariant { pub _bitfield_align_1 : [u8 ; 0] , pub _bitfield_1 : __BindgenBitfieldUnit < [u8 ; 1usize] > , pub size : u8 , pub start : u8 , pub biome : :: std :: os :: raw :: c_short , pub rotation : u8 , pub mirror : u8 , pub x : i16 , pub y : i16 , pub z : i16 , pub sx : i16 , pub sy : i16 , pub sz : i16 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of StructureVariant"] [:: std :: mem :: size_of :: < StructureVariant > () - 20usize] ; ["Alignment of StructureVariant"] [:: std :: mem :: align_of :: < StructureVariant > () - 2usize] ; ["Offset of field: StructureVariant::size"] [:: std :: mem :: offset_of ! (StructureVariant , size) - 1usize] ; ["Offset of field: StructureVariant::start"] [:: std :: mem :: offset_of ! (StructureVariant , start) - 2usize] ; ["Offset of field: StructureVariant::biome"] [:: std :: mem :: offset_of ! (StructureVariant , biome) - 4usize] ; ["Offset of field: StructureVariant::rotation"] [:: std :: mem :: offset_of ! (StructureVariant , rotation) - 6usize] ; ["Offset of field: StructureVariant::mirror"] [:: std :: mem :: offset_of ! (StructureVariant , mirror) - 7usize] ; ["Offset of field: StructureVariant::x"] [:: std :: mem :: offset_of ! (StructureVariant , x) - 8usize] ; ["Offset of field: StructureVariant::y"] [:: std :: mem :: offset_of ! (StructureVariant , y) - 10usize] ; ["Offset of field: StructureVariant::z"] [:: std :: mem :: offset_of ! (StructureVariant , z) - 12usize] ; ["Offset of field: StructureVariant::sx"] [:: std :: mem :: offset_of ! (StructureVariant , sx) - 14usize] ; ["Offset of field: StructureVariant::sy"] [:: std :: mem :: offset_of ! (StructureVariant , sy) - 16usize] ; ["Offset of field: StructureVariant::sz"] [:: std :: mem :: offset_of ! (StructureVariant , sz) - 18usize] ; } ; impl StructureVariant { # [inline] pub fn abandoned (& self) -> u8 { unsafe { :: std :: mem :: transmute (self . _bitfield_1 . get (0usize , 1u8) as u8) } } # [inline] pub fn set_abandoned (& mut self , val : u8) { unsafe { let val : u8 = :: std :: mem :: transmute (val) ; self . _bitfield_1 . set (0usize , 1u8 , val as u64) } } # [inline] pub unsafe fn abandoned_raw (this : * const Self) -> u8 { unsafe { :: std :: mem :: transmute (< __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_get (:: std :: ptr :: addr_of ! ((* this) . _bitfield_1) , 0usize , 1u8 ,) as u8) } } # [inline] pub unsafe fn set_abandoned_raw (this : * mut Self , val : u8) { unsafe { let val : u8 = :: std :: mem :: transmute (val) ; < __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_set (:: std :: ptr :: addr_of_mut ! ((* this) . _bitfield_1) , 0usize , 1u8 , val as u64 ,) } } # [inline] pub fn giant (& self) -> u8 { unsafe { :: std :: mem :: transmute (self . _bitfield_1 . get (1usize , 1u8) as u8) } } # [inline] pub fn set_giant (& mut self , val : u8) { unsafe { let val : u8 = :: std :: mem :: transmute (val) ; self . _bitfield_1 . set (1usize , 1u8 , val as u64) } } # [inline] pub unsafe fn giant_raw (this : * const Self) -> u8 { unsafe { :: std :: mem :: transmute (< __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_get (:: std :: ptr :: addr_of ! ((* this) . _bitfield_1) , 1usize , 1u8 ,) as u8) } } # [inline] pub unsafe fn set_giant_raw (this : * mut Self , val : u8) { unsafe { let val : u8 = :: std :: mem :: transmute (val) ; < __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_set (:: std :: ptr :: addr_of_mut ! ((* this) . _bitfield_1) , 1usize , 1u8 , val as u64 ,) } } # [inline] pub fn underground (& self) -> u8 { unsafe { :: std :: mem :: transmute (self . _bitfield_1 . get (2usize , 1u8) as u8) } } # [inline] pub fn set_underground (& mut self , val : u8) { unsafe { let val : u8 = :: std :: mem :: transmute (val) ; self . _bitfield_1 . set (2usize , 1u8 , val as u64) } } # [inline] pub unsafe fn underground_raw (this : * const Self) -> u8 { unsafe { :: std :: mem :: transmute (< __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_get (:: std :: ptr :: addr_of ! ((* this) . _bitfield_1) , 2usize , 1u8 ,) as u8) } } # [inline] pub unsafe fn set_underground_raw (this : * mut Self , val : u8) { unsafe { let val : u8 = :: std :: mem :: transmute (val) ; < __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_set (:: std :: ptr :: addr_of_mut ! ((* this) . _bitfield_1) , 2usize , 1u8 , val as u64 ,) } } # [inline] pub fn airpocket (& self) -> u8 { unsafe { :: std :: mem :: transmute (self . _bitfield_1 . get (3usize , 1u8) as u8) } } # [inline] pub fn set_airpocket (& mut self , val : u8) { unsafe { let val : u8 = :: std :: mem :: transmute (val) ; self . _bitfield_1 . set (3usize , 1u8 , val as u64) } } # [inline] pub unsafe fn airpocket_raw (this : * const Self) -> u8 { unsafe { :: std :: mem :: transmute (< __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_get (:: std :: ptr :: addr_of ! ((* this) . _bitfield_1) , 3usize , 1u8 ,) as u8) } } # [inline] pub unsafe fn set_airpocket_raw (this : * mut Self , val : u8) { unsafe { let val : u8 = :: std :: mem :: transmute (val) ; < __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_set (:: std :: ptr :: addr_of_mut ! ((* this) . _bitfield_1) , 3usize , 1u8 , val as u64 ,) } } # [inline] pub fn basement (& self) -> u8 { unsafe { :: std :: mem :: transmute (self . _bitfield_1 . get (4usize , 1u8) as u8) } } # [inline] pub fn set_basement (& mut self , val : u8) { unsafe { let val : u8 = :: std :: mem :: transmute (val) ; self . _bitfield_1 . set (4usize , 1u8 , val as u64) } } # [inline] pub unsafe fn basement_raw (this : * const Self) -> u8 { unsafe { :: std :: mem :: transmute (< __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_get (:: std :: ptr :: addr_of ! ((* this) . _bitfield_1) , 4usize , 1u8 ,) as u8) } } # [inline] pub unsafe fn set_basement_raw (this : * mut Self , val : u8) { unsafe { let val : u8 = :: std :: mem :: transmute (val) ; < __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_set (:: std :: ptr :: addr_of_mut ! ((* this) . _bitfield_1) , 4usize , 1u8 , val as u64 ,) } } # [inline] pub fn cracked (& self) -> u8 { unsafe { :: std :: mem :: transmute (self . _bitfield_1 . get (5usize , 1u8) as u8) } } # [inline] pub fn set_cracked (& mut self , val : u8) { unsafe { let val : u8 = :: std :: mem :: transmute (val) ; self . _bitfield_1 . set (5usize , 1u8 , val as u64) } } # [inline] pub unsafe fn cracked_raw (this : * const Self) -> u8 { unsafe { :: std :: mem :: transmute (< __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_get (:: std :: ptr :: addr_of ! ((* this) . _bitfield_1) , 5usize , 1u8 ,) as u8) } } # [inline] pub unsafe fn set_cracked_raw (this : * mut Self , val : u8) { unsafe { let val : u8 = :: std :: mem :: transmute (val) ; < __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_set (:: std :: ptr :: addr_of_mut ! ((* this) . _bitfield_1) , 5usize , 1u8 , val as u64 ,) } } # [inline] pub fn new_bitfield_1 (abandoned : u8 , giant : u8 , underground : u8 , airpocket : u8 , basement : u8 , cracked : u8) -> __BindgenBitfieldUnit < [u8 ; 1usize] > { let mut __bindgen_bitfield_unit : __BindgenBitfieldUnit < [u8 ; 1usize] > = Default :: default () ; __bindgen_bitfield_unit . set (0usize , 1u8 , { let abandoned : u8 = unsafe { :: std :: mem :: transmute (abandoned) } ; abandoned as u64 }) ; __bindgen_bitfield_unit . set (1usize , 1u8 , { let giant : u8 = unsafe { :: std :: mem :: transmute (giant) } ; giant as u64 }) ; __bindgen_bitfield_unit . set (2usize , 1u8 , { let underground : u8 = unsafe { :: std :: mem :: transmute (underground) } ; underground as u64 }) ; __bindgen_bitfield_unit . set (3usize , 1u8 , { let airpocket : u8 = unsafe { :: std :: mem :: transmute (airpocket) } ; airpocket as u64 }) ; __bindgen_bitfield_unit . set (4usize , 1u8 , { let basement : u8 = unsafe { :: std :: mem :: transmute (basement) } ; basement as u64 }) ; __bindgen_bitfield_unit . set (5usize , 1u8 , { let cracked : u8 = unsafe { :: std :: mem :: transmute (cracked) } ; cracked as u64 }) ; __bindgen_bitfield_unit } } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Piece { pub name : * const :: std :: os :: raw :: c_char , pub pos : Pos3 , pub bb0 : Pos3 , pub bb1 : Pos3 , pub rot : u8 , pub depth : i8 , pub type_ : i8 , pub next : * mut Piece , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Piece"] [:: std :: mem :: size_of :: < Piece > () - 56usize] ; ["Alignment of Piece"] [:: std :: mem :: align_of :: < Piece > () - 8usize] ; ["Offset of field: Piece::name"] [:: std :: mem :: offset_of ! (Piece , name) - 0usize] ; ["Offset of field: Piece::pos"] [:: std :: mem :: offset_of ! (Piece , pos) - 8usize] ; ["Offset of field: Piece::bb0"] [:: std :: mem :: offset_of ! (Piece , bb0) - 20usize] ; ["Offset of field: Piece::bb1"] [:: std :: mem :: offset_of ! (Piece , bb1) - 32usize] ; ["Offset of field: Piece::rot"] [:: std :: mem :: offset_of ! (Piece , rot) - 44usize] ; ["Offset of field: Piece::depth"] [:: std :: mem :: offset_of ! (Piece , depth) - 45usize] ; ["Offset of field: Piece::type_"] [:: std :: mem :: offset_of ! (Piece , type_) - 46usize] ; ["Offset of field: Piece::next"] [:: std :: mem :: offset_of ! (Piece , next) - 48usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct EndIsland { pub x : :: std :: os :: raw :: c_int , pub y : :: std :: os :: raw :: c_int , pub z : :: std :: os :: raw :: c_int , pub r : :: std :: os :: raw :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of EndIsland"] [:: std :: mem :: size_of :: < EndIsland > () - 16usize] ; ["Alignment of EndIsland"] [:: std :: mem :: align_of :: < EndIsland > () - 4usize] ; ["Offset of field: EndIsland::x"] [:: std :: mem :: offset_of ! (EndIsland , x) - 0usize] ; ["Offset of field: EndIsland::y"] [:: std :: mem :: offset_of ! (EndIsland , y) - 4usize] ; ["Offset of field: EndIsland::z"] [:: std :: mem :: offset_of ! (EndIsland , z) - 8usize] ; ["Offset of field: EndIsland::r"] [:: std :: mem :: offset_of ! (EndIsland , r) - 12usize] ; } ; pub const BF_APPROX : _bindgen_ty_5 = _bindgen_ty_5 (1) ; pub const BF_FORCED_OCEAN : _bindgen_ty_5 = _bindgen_ty_5 (4) ; # [repr (transparent)] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct _bindgen_ty_5 (pub :: std :: os :: raw :: c_uint) ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct BiomeFilter { pub tempsToFind : u64 , pub otempToFind : u64 , pub majorToFind : u64 , pub edgesToFind : u64 , pub raresToFind : u64 , pub raresToFindM : u64 , pub shoreToFind : u64 , pub shoreToFindM : u64 , pub riverToFind : u64 , pub riverToFindM : u64 , pub oceanToFind : u64 , pub specialCnt : :: std :: os :: raw :: c_int , pub flags : u32 , pub tempsToExcl : u64 , pub majorToExcl : u64 , pub edgesToExcl : u64 , pub raresToExcl : u64 , pub raresToExclM : u64 , pub shoreToExcl : u64 , pub shoreToExclM : u64 , pub riverToExcl : u64 , pub riverToExclM : u64 , pub biomeToExcl : u64 , pub biomeToExclM : u64 , pub biomeToFind : u64 , pub biomeToFindM : u64 , pub biomeToPick : u64 , pub biomeToPickM : u64 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of BiomeFilter"] [:: std :: mem :: size_of :: < BiomeFilter > () - 216usize] ; ["Alignment of BiomeFilter"] [:: std :: mem :: align_of :: < BiomeFilter > () - 8usize] ; ["Offset of field: BiomeFilter::tempsToFind"] [:: std :: mem :: offset_of ! (BiomeFilter , tempsToFind) - 0usize] ; ["Offset of field: BiomeFilter::otempToFind"] [:: std :: mem :: offset_of ! (BiomeFilter , otempToFind) - 8usize] ; ["Offset of field: BiomeFilter::majorToFind"] [:: std :: mem :: offset_of ! (BiomeFilter , majorToFind) - 16usize] ; ["Offset of field: BiomeFilter::edgesToFind"] [:: std :: mem :: offset_of ! (BiomeFilter , edgesToFind) - 24usize] ; ["Offset of field: BiomeFilter::raresToFind"] [:: std :: mem :: offset_of ! (BiomeFilter , raresToFind) - 32usize] ; ["Offset of field: BiomeFilter::raresToFindM"] [:: std :: mem :: offset_of ! (BiomeFilter , raresToFindM) - 40usize] ; ["Offset of field: BiomeFilter::shoreToFind"] [:: std :: mem :: offset_of ! (BiomeFilter , shoreToFind) - 48usize] ; ["Offset of field: BiomeFilter::shoreToFindM"] [:: std :: mem :: offset_of ! (BiomeFilter , shoreToFindM) - 56usize] ; ["Offset of field: BiomeFilter::riverToFind"] [:: std :: mem :: offset_of ! (BiomeFilter , riverToFind) - 64usize] ; ["Offset of field: BiomeFilter::riverToFindM"] [:: std :: mem :: offset_of ! (BiomeFilter , riverToFindM) - 72usize] ; ["Offset of field: BiomeFilter::oceanToFind"] [:: std :: mem :: offset_of ! (BiomeFilter , oceanToFind) - 80usize] ; ["Offset of field: BiomeFilter::specialCnt"] [:: std :: mem :: offset_of ! (BiomeFilter , specialCnt) - 88usize] ; ["Offset of field: BiomeFilter::flags"] [:: std :: mem :: offset_of ! (BiomeFilter , flags) - 92usize] ; ["Offset of field: BiomeFilter::tempsToExcl"] [:: std :: mem :: offset_of ! (BiomeFilter , tempsToExcl) - 96usize] ; ["Offset of field: BiomeFilter::majorToExcl"] [:: std :: mem :: offset_of ! (BiomeFilter , majorToExcl) - 104usize] ; ["Offset of field: BiomeFilter::edgesToExcl"] [:: std :: mem :: offset_of ! (BiomeFilter , edgesToExcl) - 112usize] ; ["Offset of field: BiomeFilter::raresToExcl"] [:: std :: mem :: offset_of ! (BiomeFilter , raresToExcl) - 120usize] ; ["Offset of field: BiomeFilter::raresToExclM"] [:: std :: mem :: offset_of ! (BiomeFilter , raresToExclM) - 128usize] ; ["Offset of field: BiomeFilter::shoreToExcl"] [:: std :: mem :: offset_of ! (BiomeFilter , shoreToExcl) - 136usize] ; ["Offset of field: BiomeFilter::shoreToExclM"] [:: std :: mem :: offset_of ! (BiomeFilter , shoreToExclM) - 144usize] ; ["Offset of field: BiomeFilter::riverToExcl"] [:: std :: mem :: offset_of ! (BiomeFilter , riverToExcl) - 152usize] ; ["Offset of field: BiomeFilter::riverToExclM"] [:: std :: mem :: offset_of ! (BiomeFilter , riverToExclM) - 160usize] ; ["Offset of field: BiomeFilter::biomeToExcl"] [:: std :: mem :: offset_of ! (BiomeFilter , biomeToExcl) - 168usize] ; ["Offset of field: BiomeFilter::biomeToExclM"] [:: std :: mem :: offset_of ! (BiomeFilter , biomeToExclM) - 176usize] ; ["Offset of field: BiomeFilter::biomeToFind"] [:: std :: mem :: offset_of ! (BiomeFilter , biomeToFind) - 184usize] ; ["Offset of field: BiomeFilter::biomeToFindM"] [:: std :: mem :: offset_of ! (BiomeFilter , biomeToFindM) - 192usize] ; ["Offset of field: BiomeFilter::biomeToPick"] [:: std :: mem :: offset_of ! (BiomeFilter , biomeToPick) - 200usize] ; ["Offset of field: BiomeFilter::biomeToPickM"] [:: std :: mem :: offset_of ! (BiomeFilter , biomeToPickM) - 208usize] ; } ; unsafe extern "C" { pub fn getStructureConfig (structureType : :: std :: os :: raw :: c_int , mc : :: std :: os :: raw :: c_int , sconf : * mut StructureConfig) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getStructurePos (structureType : :: std :: os :: raw :: c_int , mc : :: std :: os :: raw :: c_int , seed : u64 , regX : :: std :: os :: raw :: c_int , regZ : :: std :: os :: raw :: c_int , pos : * mut Pos) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getMineshafts (mc : :: std :: os :: raw :: c_int , seed : u64 , chunkX : :: std :: os :: raw :: c_int , chunkZ : :: std :: os :: raw :: c_int , chunkW : :: std :: os :: raw :: c_int , chunkH : :: std :: os :: raw :: c_int , out : * mut Pos , nout : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getEndIslands (islands : * mut EndIsland , mc : :: std :: os :: raw :: c_int , seed : u64 , chunkX : :: std :: os :: raw :: c_int , chunkZ : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapEndIslandHeight (y : * mut f32 , en : * const EndNoise , seed : u64 , x : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , w : :: std :: os :: raw :: c_int , h : :: std :: os :: raw :: c_int , scale : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn isEndChunkEmpty (en : * const EndNoise , sn : * const SurfaceNoise , seed : u64 , chunkX : :: std :: os :: raw :: c_int , chunkZ : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn initFirstStronghold (sh : * mut StrongholdIter , mc : :: std :: os :: raw :: c_int , s48 : u64) -> Pos ; } unsafe extern "C" { pub fn nextStronghold (sh : * mut StrongholdIter , g : * const Generator) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn estimateSpawn (g : * const Generator , rng : * mut u64) -> Pos ; } unsafe extern "C" { pub fn getSpawn (g : * const Generator) -> Pos ; } unsafe extern "C" { pub fn locateBiome (g : * const Generator , x : :: std :: os :: raw :: c_int , y : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , radius : :: std :: os :: raw :: c_int , validB : u64 , validM : u64 , rng : * mut u64 , passes : * mut :: std :: os :: raw :: c_int) -> Pos ; } unsafe extern "C" { pub fn isViableStructurePos (structType : :: std :: os :: raw :: c_int , g : * mut Generator , blockX : :: std :: os :: raw :: c_int , blockZ : :: std :: os :: raw :: c_int , flags : u32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn isViableFeatureBiome (mc : :: std :: os :: raw :: c_int , structureType : :: std :: os :: raw :: c_int , biomeID : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn isViableStructureTerrain (structType : :: std :: os :: raw :: c_int , g : * mut Generator , blockX : :: std :: os :: raw :: c_int , blockZ : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn isViableEndCityTerrain (g : * const Generator , sn : * const SurfaceNoise , blockX : :: std :: os :: raw :: c_int , blockZ : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getVariant (sv : * mut StructureVariant , structType : :: std :: os :: raw :: c_int , mc : :: std :: os :: raw :: c_int , seed : u64 , blockX : :: std :: os :: raw :: c_int , blockZ : :: std :: os :: raw :: c_int , biomeID : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getEndCityPieces (pieces : * mut Piece , seed : u64 , chunkX : :: std :: os :: raw :: c_int , chunkZ : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } pub const BASE_FLOOR : _bindgen_ty_6 = _bindgen_ty_6 (0) ; pub const BASE_ROOF : _bindgen_ty_6 = _bindgen_ty_6 (1) ; pub const BRIDGE_END : _bindgen_ty_6 = _bindgen_ty_6 (2) ; pub const BRIDGE_GENTLE_STAIRS : _bindgen_ty_6 = _bindgen_ty_6 (3) ; pub const BRIDGE_PIECE : _bindgen_ty_6 = _bindgen_ty_6 (4) ; pub const BRIDGE_STEEP_STAIRS : _bindgen_ty_6 = _bindgen_ty_6 (5) ; pub const FAT_TOWER_BASE : _bindgen_ty_6 = _bindgen_ty_6 (6) ; pub const FAT_TOWER_MIDDLE : _bindgen_ty_6 = _bindgen_ty_6 (7) ; pub const FAT_TOWER_TOP : _bindgen_ty_6 = _bindgen_ty_6 (8) ; pub const SECOND_FLOOR_1 : _bindgen_ty_6 = _bindgen_ty_6 (9) ; pub const SECOND_FLOOR_2 : _bindgen_ty_6 = _bindgen_ty_6 (10) ; pub const SECOND_ROOF : _bindgen_ty_6 = _bindgen_ty_6 (11) ; pub const END_SHIP : _bindgen_ty_6 = _bindgen_ty_6 (12) ; pub const THIRD_FLOOR_1 : _bindgen_ty_6 = _bindgen_ty_6 (13) ; pub const THIRD_FLOOR_2 : _bindgen_ty_6 = _bindgen_ty_6 (14) ; pub const THIRD_ROOF : _bindgen_ty_6 = _bindgen_ty_6 (15) ; pub const TOWER_BASE : _bindgen_ty_6 = _bindgen_ty_6 (16) ; pub const TOWER_FLOOR : _bindgen_ty_6 = _bindgen_ty_6 (17) ; pub const TOWER_PIECE : _bindgen_ty_6 = _bindgen_ty_6 (18) ; pub const TOWER_TOP : _bindgen_ty_6 = _bindgen_ty_6 (19) ; pub const END_CITY_PIECES_MAX : _bindgen_ty_6 = _bindgen_ty_6 (421) ; # [repr (transparent)] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct _bindgen_ty_6 (pub :: std :: os :: raw :: c_uint) ; unsafe extern "C" { pub fn getFortressPieces (list : * mut Piece , n : :: std :: os :: raw :: c_int , mc : :: std :: os :: raw :: c_int , seed : u64 , chunkX : :: std :: os :: raw :: c_int , chunkZ : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } pub const FORTRESS_START : _bindgen_ty_7 = _bindgen_ty_7 (0) ; pub const BRIDGE_STRAIGHT : _bindgen_ty_7 = _bindgen_ty_7 (1) ; pub const BRIDGE_CROSSING : _bindgen_ty_7 = _bindgen_ty_7 (2) ; pub const BRIDGE_FORTIFIED_CROSSING : _bindgen_ty_7 = _bindgen_ty_7 (3) ; pub const BRIDGE_STAIRS : _bindgen_ty_7 = _bindgen_ty_7 (4) ; pub const BRIDGE_SPAWNER : _bindgen_ty_7 = _bindgen_ty_7 (5) ; pub const BRIDGE_CORRIDOR_ENTRANCE : _bindgen_ty_7 = _bindgen_ty_7 (6) ; pub const CORRIDOR_STRAIGHT : _bindgen_ty_7 = _bindgen_ty_7 (7) ; pub const CORRIDOR_CROSSING : _bindgen_ty_7 = _bindgen_ty_7 (8) ; pub const CORRIDOR_TURN_RIGHT : _bindgen_ty_7 = _bindgen_ty_7 (9) ; pub const CORRIDOR_TURN_LEFT : _bindgen_ty_7 = _bindgen_ty_7 (10) ; pub const CORRIDOR_STAIRS : _bindgen_ty_7 = _bindgen_ty_7 (11) ; pub const CORRIDOR_T_CROSSING : _bindgen_ty_7 = _bindgen_ty_7 (12) ; pub const CORRIDOR_NETHER_WART : _bindgen_ty_7 = _bindgen_ty_7 (13) ; pub const FORTRESS_END : _bindgen_ty_7 = _bindgen_ty_7 (14) ; pub const PIECE_COUNT : _bindgen_ty_7 = _bindgen_ty_7 (15) ; # [repr (transparent)] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct _bindgen_ty_7 (pub :: std :: os :: raw :: c_uint) ; unsafe extern "C" { pub fn getFixedEndGateways (mc : :: std :: os :: raw :: c_int , seed : u64 , src : * mut Pos) ; } unsafe extern "C" { pub fn getLinkedGatewayChunk (en : * const EndNoise , sn : * const SurfaceNoise , seed : u64 , src : Pos , dst : * mut Pos) -> Pos ; } unsafe extern "C" { pub fn getLinkedGatewayPos (en : * const EndNoise , sn : * const SurfaceNoise , seed : u64 , src : Pos) -> Pos ; } pub const HouseSmall : _bindgen_ty_8 = _bindgen_ty_8 (0) ; pub const Church : _bindgen_ty_8 = _bindgen_ty_8 (1) ; pub const Library : _bindgen_ty_8 = _bindgen_ty_8 (2) ; pub const WoodHut : _bindgen_ty_8 = _bindgen_ty_8 (3) ; pub const Butcher : _bindgen_ty_8 = _bindgen_ty_8 (4) ; pub const FarmLarge : _bindgen_ty_8 = _bindgen_ty_8 (5) ; pub const FarmSmall : _bindgen_ty_8 = _bindgen_ty_8 (6) ; pub const Blacksmith : _bindgen_ty_8 = _bindgen_ty_8 (7) ; pub const HouseLarge : _bindgen_ty_8 = _bindgen_ty_8 (8) ; pub const HOUSE_NUM : _bindgen_ty_8 = _bindgen_ty_8 (9) ; # [repr (transparent)] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct _bindgen_ty_8 (pub :: std :: os :: raw :: c_uint) ; unsafe extern "C" { pub fn getHouseList (houses : * mut :: std :: os :: raw :: c_int , seed : u64 , chunkX : :: std :: os :: raw :: c_int , chunkZ : :: std :: os :: raw :: c_int) -> u64 ; } unsafe extern "C" { pub fn monteCarloBiomes (g : * mut Generator , r : Range , rng : * mut u64 , coverage : f64 , confidence : f64 , eval : :: std :: option :: Option < unsafe extern "C" fn (g : * mut Generator , scale : :: std :: os :: raw :: c_int , x : :: std :: os :: raw :: c_int , y : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , data : * mut :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int > , data : * mut :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn setupBiomeFilter (bf : * mut BiomeFilter , mc : :: std :: os :: raw :: c_int , flags : u32 , required : * const :: std :: os :: raw :: c_int , requiredLen : :: std :: os :: raw :: c_int , excluded : * const :: std :: os :: raw :: c_int , excludedLen : :: std :: os :: raw :: c_int , matchany : * const :: std :: os :: raw :: c_int , matchanyLen : :: std :: os :: raw :: c_int) ; } unsafe extern "C" { pub fn checkForBiomes (g : * mut Generator , cache : * mut :: std :: os :: raw :: c_int , r : Range , dim : :: std :: os :: raw :: c_int , seed : u64 , filter : * const BiomeFilter , stop : * mut :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn checkForBiomesAtLayer (ls : * mut LayerStack , entry : * mut Layer , cache : * mut :: std :: os :: raw :: c_int , seed : u64 , x : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , w : :: std :: os :: raw :: c_uint , h : :: std :: os :: raw :: c_uint , filter : * const BiomeFilter) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn checkForTemps (g : * mut LayerStack , seed : u64 , x : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , w : :: std :: os :: raw :: c_int , h : :: std :: os :: raw :: c_int , tc : * const :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getBiomeCenters (pos : * mut Pos , siz : * mut :: std :: os :: raw :: c_int , nmax : :: std :: os :: raw :: c_int , g : * mut Generator , r : Range , match_ : :: std :: os :: raw :: c_int , minsiz : :: std :: os :: raw :: c_int , tol : :: std :: os :: raw :: c_int , stop : * mut :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn canBiomeGenerate (layerId : :: std :: os :: raw :: c_int , mc : :: std :: os :: raw :: c_int , flags : u32 , biomeID : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn genPotential (mL : * mut u64 , mM : * mut u64 , layerId : :: std :: os :: raw :: c_int , mc : :: std :: os :: raw :: c_int , flags : u32 , biomeID : :: std :: os :: raw :: c_int) ; } unsafe extern "C" { pub fn getAvailableBiomes (mL : * mut u64 , mM : * mut u64 , layerId : :: std :: os :: raw :: c_int , mc : :: std :: os :: raw :: c_int , flags : u32) ; } unsafe extern "C" { # [doc = " Runs a gradient descent towards the minimum of the noise parameter times a\n given factor. The algorithm is restricted to the area (x,z,w,h) and starts\n at (i0,j0) relative to (x,z). The iteration is terminated when either\n 1) a fix point has been reached,\n 2) maxiter iterations have been completed,\n 3) or the sampling position has moved more than maxrad away from (i0,j0).\n\n Alpha is an optimization argument that is used to determine the length of\n large steps based on the current gradient.\n\n Optionally, the iteration can also call the custom function:\n  func(data, x, z, factor*para_noise(x,z));\n\n The return value is the minimum value reached."] pub fn getParaDescent (para : * const DoublePerlinNoise , factor : f64 , x : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , w : :: std :: os :: raw :: c_int , h : :: std :: os :: raw :: c_int , i0 : :: std :: os :: raw :: c_int , j0 : :: std :: os :: raw :: c_int , maxrad : :: std :: os :: raw :: c_int , maxiter : :: std :: os :: raw :: c_int , alpha : f64 , data : * mut :: std :: os :: raw :: c_void , func : :: std :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: std :: os :: raw :: c_void , arg2 : :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : f64) -> :: std :: os :: raw :: c_int >) -> f64 ; } unsafe extern "C" { # [doc = " Determines the value range of a climate noise parameter over the given area.\n The sampling has scale 1:4 and sampling shift is not considered, so biomes\n could potentially *leak* in at the boarders.\n An optional function:\n  func(data, x, z, climate_noise(x,z))\n is called in each gradient descent iteration. If this function returns\n non-zero the search is aborted, the results are undefined and a non-zero\n error is returned.\n\n The results are written to pmin and pmax (which would be cast to an integer\n during boime mapping). Nullable, to look for minima and maxima separately."] pub fn getParaRange (para : * const DoublePerlinNoise , pmin : * mut f64 , pmax : * mut f64 , x : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , w : :: std :: os :: raw :: c_int , h : :: std :: os :: raw :: c_int , data : * mut :: std :: os :: raw :: c_void , func : :: std :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: std :: os :: raw :: c_void , arg2 : :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : f64) -> :: std :: os :: raw :: c_int >) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " Gets the min/max parameter values within which a biome change can occur."] pub fn getBiomeParaExtremes (mc : :: std :: os :: raw :: c_int) -> * const :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " Gets the min/max possible noise parameter values at which the given biome\n can generate. The values are in min/max pairs in order of:\n temperature, humidity, continentalness, erosion, depth, weirdness."] pub fn getBiomeParaLimits (mc : :: std :: os :: raw :: c_int , id : :: std :: os :: raw :: c_int) -> * const :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " Determines which biomes are able to generate given a set of climate\n parameter limits. Possible biomes are marked non-zero in the 'ids'."] pub fn getPossibleBiomesForLimits (ids : * mut :: std :: os :: raw :: c_char , mc : :: std :: os :: raw :: c_int , limits : * mut [:: std :: os :: raw :: c_int ; 2usize]) ; } unsafe extern "C" { # [doc = " Find the largest rectangle in ids[sx][sz] which consists only of 'match'.\n The limit corners are written to p0 and p1. Returned is the rectangle's area."] pub fn getLargestRec (match_ : :: std :: os :: raw :: c_int , ids : * const :: std :: os :: raw :: c_int , sx : :: std :: os :: raw :: c_int , sz : :: std :: os :: raw :: c_int , p0 : * mut Pos , p1 : * mut Pos) -> :: std :: os :: raw :: c_int ; } pub type __gnuc_va_list = __builtin_va_list ; # [repr (C)] # [derive (Copy , Clone)] pub struct __mbstate_t { pub __count : :: std :: os :: raw :: c_int , pub __value : __mbstate_t__bindgen_ty_1 , } # [repr (C)] # [derive (Copy , Clone)] pub union __mbstate_t__bindgen_ty_1 { pub __wch : :: std :: os :: raw :: c_uint , pub __wchb : [:: std :: os :: raw :: c_char ; 4usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __mbstate_t__bindgen_ty_1"] [:: std :: mem :: size_of :: < __mbstate_t__bindgen_ty_1 > () - 4usize] ; ["Alignment of __mbstate_t__bindgen_ty_1"] [:: std :: mem :: align_of :: < __mbstate_t__bindgen_ty_1 > () - 4usize] ; ["Offset of field: __mbstate_t__bindgen_ty_1::__wch"] [:: std :: mem :: offset_of ! (__mbstate_t__bindgen_ty_1 , __wch) - 0usize] ; ["Offset of field: __mbstate_t__bindgen_ty_1::__wchb"] [:: std :: mem :: offset_of ! (__mbstate_t__bindgen_ty_1 , __wchb) - 0usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __mbstate_t"] [:: std :: mem :: size_of :: < __mbstate_t > () - 8usize] ; ["Alignment of __mbstate_t"] [:: std :: mem :: align_of :: < __mbstate_t > () - 4usize] ; ["Offset of field: __mbstate_t::__count"] [:: std :: mem :: offset_of ! (__mbstate_t , __count) - 0usize] ; ["Offset of field: __mbstate_t::__value"] [:: std :: mem :: offset_of ! (__mbstate_t , __value) - 4usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub struct _G_fpos_t { pub __pos : __off_t , pub __state : __mbstate_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of _G_fpos_t"] [:: std :: mem :: size_of :: < _G_fpos_t > () - 16usize] ; ["Alignment of _G_fpos_t"] [:: std :: mem :: align_of :: < _G_fpos_t > () - 8usize] ; ["Offset of field: _G_fpos_t::__pos"] [:: std :: mem :: offset_of ! (_G_fpos_t , __pos) - 0usize] ; ["Offset of field: _G_fpos_t::__state"] [:: std :: mem :: offset_of ! (_G_fpos_t , __state) - 8usize] ; } ; pub type __fpos_t = _G_fpos_t ; # [repr (C)] # [derive (Copy , Clone)] pub struct _G_fpos64_t { pub __pos : __off64_t , pub __state : __mbstate_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of _G_fpos64_t"] [:: std :: mem :: size_of :: < _G_fpos64_t > () - 16usize] ; ["Alignment of _G_fpos64_t"] [:: std :: mem :: align_of :: < _G_fpos64_t > () - 8usize] ; ["Offset of field: _G_fpos64_t::__pos"] [:: std :: mem :: offset_of ! (_G_fpos64_t , __pos) - 0usize] ; ["Offset of field: _G_fpos64_t::__state"] [:: std :: mem :: offset_of ! (_G_fpos64_t , __state) - 8usize] ; } ; pub type __fpos64_t = _G_fpos64_t ; pub type __FILE = _IO_FILE ; pub type FILE = _IO_FILE ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_marker { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_codecvt { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_wide_data { _unused : [u8 ; 0] , } pub type _IO_lock_t = :: std :: os :: raw :: c_void ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_FILE { pub _flags : :: std :: os :: raw :: c_int , pub _IO_read_ptr : * mut :: std :: os :: raw :: c_char , pub _IO_read_end : * mut :: std :: os :: raw :: c_char , pub _IO_read_base : * mut :: std :: os :: raw :: c_char , pub _IO_write_base : * mut :: std :: os :: raw :: c_char , pub _IO_write_ptr : * mut :: std :: os :: raw :: c_char , pub _IO_write_end : * mut :: std :: os :: raw :: c_char , pub _IO_buf_base : * mut :: std :: os :: raw :: c_char , pub _IO_buf_end : * mut :: std :: os :: raw :: c_char , pub _IO_save_base : * mut :: std :: os :: raw :: c_char , pub _IO_backup_base : * mut :: std :: os :: raw :: c_char , pub _IO_save_end : * mut :: std :: os :: raw :: c_char , pub _markers : * mut _IO_marker , pub _chain : * mut _IO_FILE , pub _fileno : :: std :: os :: raw :: c_int , pub _bitfield_align_1 : [u32 ; 0] , pub _bitfield_1 : __BindgenBitfieldUnit < [u8 ; 3usize] > , pub _short_backupbuf : [:: std :: os :: raw :: c_char ; 1usize] , pub _old_offset : __off_t , pub _cur_column : :: std :: os :: raw :: c_ushort , pub _vtable_offset : :: std :: os :: raw :: c_schar , pub _shortbuf : [:: std :: os :: raw :: c_char ; 1usize] , pub _lock : * mut _IO_lock_t , pub _offset : __off64_t , pub _codecvt : * mut _IO_codecvt , pub _wide_data : * mut _IO_wide_data , pub _freeres_list : * mut _IO_FILE , pub _freeres_buf : * mut :: std :: os :: raw :: c_void , pub _prevchain : * mut * mut _IO_FILE , pub _mode : :: std :: os :: raw :: c_int , pub _unused3 : :: std :: os :: raw :: c_int , pub _total_written : __uint64_t , pub _unused2 : [:: std :: os :: raw :: c_char ; 8usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of _IO_FILE"] [:: std :: mem :: size_of :: < _IO_FILE > () - 216usize] ; ["Alignment of _IO_FILE"] [:: std :: mem :: align_of :: < _IO_FILE > () - 8usize] ; ["Offset of field: _IO_FILE::_flags"] [:: std :: mem :: offset_of ! (_IO_FILE , _flags) - 0usize] ; ["Offset of field: _IO_FILE::_IO_read_ptr"] [:: std :: mem :: offset_of ! (_IO_FILE , _IO_read_ptr) - 8usize] ; ["Offset of field: _IO_FILE::_IO_read_end"] [:: std :: mem :: offset_of ! (_IO_FILE , _IO_read_end) - 16usize] ; ["Offset of field: _IO_FILE::_IO_read_base"] [:: std :: mem :: offset_of ! (_IO_FILE , _IO_read_base) - 24usize] ; ["Offset of field: _IO_FILE::_IO_write_base"] [:: std :: mem :: offset_of ! (_IO_FILE , _IO_write_base) - 32usize] ; ["Offset of field: _IO_FILE::_IO_write_ptr"] [:: std :: mem :: offset_of ! (_IO_FILE , _IO_write_ptr) - 40usize] ; ["Offset of field: _IO_FILE::_IO_write_end"] [:: std :: mem :: offset_of ! (_IO_FILE , _IO_write_end) - 48usize] ; ["Offset of field: _IO_FILE::_IO_buf_base"] [:: std :: mem :: offset_of ! (_IO_FILE , _IO_buf_base) - 56usize] ; ["Offset of field: _IO_FILE::_IO_buf_end"] [:: std :: mem :: offset_of ! (_IO_FILE , _IO_buf_end) - 64usize] ; ["Offset of field: _IO_FILE::_IO_save_base"] [:: std :: mem :: offset_of ! (_IO_FILE , _IO_save_base) - 72usize] ; ["Offset of field: _IO_FILE::_IO_backup_base"] [:: std :: mem :: offset_of ! (_IO_FILE , _IO_backup_base) - 80usize] ; ["Offset of field: _IO_FILE::_IO_save_end"] [:: std :: mem :: offset_of ! (_IO_FILE , _IO_save_end) - 88usize] ; ["Offset of field: _IO_FILE::_markers"] [:: std :: mem :: offset_of ! (_IO_FILE , _markers) - 96usize] ; ["Offset of field: _IO_FILE::_chain"] [:: std :: mem :: offset_of ! (_IO_FILE , _chain) - 104usize] ; ["Offset of field: _IO_FILE::_fileno"] [:: std :: mem :: offset_of ! (_IO_FILE , _fileno) - 112usize] ; ["Offset of field: _IO_FILE::_short_backupbuf"] [:: std :: mem :: offset_of ! (_IO_FILE , _short_backupbuf) - 119usize] ; ["Offset of field: _IO_FILE::_old_offset"] [:: std :: mem :: offset_of ! (_IO_FILE , _old_offset) - 120usize] ; ["Offset of field: _IO_FILE::_cur_column"] [:: std :: mem :: offset_of ! (_IO_FILE , _cur_column) - 128usize] ; ["Offset of field: _IO_FILE::_vtable_offset"] [:: std :: mem :: offset_of ! (_IO_FILE , _vtable_offset) - 130usize] ; ["Offset of field: _IO_FILE::_shortbuf"] [:: std :: mem :: offset_of ! (_IO_FILE , _shortbuf) - 131usize] ; ["Offset of field: _IO_FILE::_lock"] [:: std :: mem :: offset_of ! (_IO_FILE , _lock) - 136usize] ; ["Offset of field: _IO_FILE::_offset"] [:: std :: mem :: offset_of ! (_IO_FILE , _offset) - 144usize] ; ["Offset of field: _IO_FILE::_codecvt"] [:: std :: mem :: offset_of ! (_IO_FILE , _codecvt) - 152usize] ; ["Offset of field: _IO_FILE::_wide_data"] [:: std :: mem :: offset_of ! (_IO_FILE , _wide_data) - 160usize] ; ["Offset of field: _IO_FILE::_freeres_list"] [:: std :: mem :: offset_of ! (_IO_FILE , _freeres_list) - 168usize] ; ["Offset of field: _IO_FILE::_freeres_buf"] [:: std :: mem :: offset_of ! (_IO_FILE , _freeres_buf) - 176usize] ; ["Offset of field: _IO_FILE::_prevchain"] [:: std :: mem :: offset_of ! (_IO_FILE , _prevchain) - 184usize] ; ["Offset of field: _IO_FILE::_mode"] [:: std :: mem :: offset_of ! (_IO_FILE , _mode) - 192usize] ; ["Offset of field: _IO_FILE::_unused3"] [:: std :: mem :: offset_of ! (_IO_FILE , _unused3) - 196usize] ; ["Offset of field: _IO_FILE::_total_written"] [:: std :: mem :: offset_of ! (_IO_FILE , _total_written) - 200usize] ; ["Offset of field: _IO_FILE::_unused2"] [:: std :: mem :: offset_of ! (_IO_FILE , _unused2) - 208usize] ; } ; impl _IO_FILE { # [inline] pub fn _flags2 (& self) -> :: std :: os :: raw :: c_int { unsafe { :: std :: mem :: transmute (self . _bitfield_1 . get (0usize , 24u8) as u32) } } # [inline] pub fn set__flags2 (& mut self , val : :: std :: os :: raw :: c_int) { unsafe { let val : u32 = :: std :: mem :: transmute (val) ; self . _bitfield_1 . set (0usize , 24u8 , val as u64) } } # [inline] pub unsafe fn _flags2_raw (this : * const Self) -> :: std :: os :: raw :: c_int { unsafe { :: std :: mem :: transmute (< __BindgenBitfieldUnit < [u8 ; 3usize] > > :: raw_get (:: std :: ptr :: addr_of ! ((* this) . _bitfield_1) , 0usize , 24u8 ,) as u32) } } # [inline] pub unsafe fn set__flags2_raw (this : * mut Self , val : :: std :: os :: raw :: c_int) { unsafe { let val : u32 = :: std :: mem :: transmute (val) ; < __BindgenBitfieldUnit < [u8 ; 3usize] > > :: raw_set (:: std :: ptr :: addr_of_mut ! ((* this) . _bitfield_1) , 0usize , 24u8 , val as u64 ,) } } # [inline] pub fn new_bitfield_1 (_flags2 : :: std :: os :: raw :: c_int) -> __BindgenBitfieldUnit < [u8 ; 3usize] > { let mut __bindgen_bitfield_unit : __BindgenBitfieldUnit < [u8 ; 3usize] > = Default :: default () ; __bindgen_bitfield_unit . set (0usize , 24u8 , { let _flags2 : u32 = unsafe { :: std :: mem :: transmute (_flags2) } ; _flags2 as u64 }) ; __bindgen_bitfield_unit } } pub type cookie_read_function_t = :: std :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: std :: os :: raw :: c_void , __buf : * mut :: std :: os :: raw :: c_char , __nbytes : usize) -> __ssize_t > ; pub type cookie_write_function_t = :: std :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: std :: os :: raw :: c_void , __buf : * const :: std :: os :: raw :: c_char , __nbytes : usize) -> __ssize_t > ; pub type cookie_seek_function_t = :: std :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: std :: os :: raw :: c_void , __pos : * mut __off64_t , __w : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int > ; pub type cookie_close_function_t = :: std :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_cookie_io_functions_t { pub read : cookie_read_function_t , pub write : cookie_write_function_t , pub seek : cookie_seek_function_t , pub close : cookie_close_function_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of _IO_cookie_io_functions_t"] [:: std :: mem :: size_of :: < _IO_cookie_io_functions_t > () - 32usize] ; ["Alignment of _IO_cookie_io_functions_t"] [:: std :: mem :: align_of :: < _IO_cookie_io_functions_t > () - 8usize] ; ["Offset of field: _IO_cookie_io_functions_t::read"] [:: std :: mem :: offset_of ! (_IO_cookie_io_functions_t , read) - 0usize] ; ["Offset of field: _IO_cookie_io_functions_t::write"] [:: std :: mem :: offset_of ! (_IO_cookie_io_functions_t , write) - 8usize] ; ["Offset of field: _IO_cookie_io_functions_t::seek"] [:: std :: mem :: offset_of ! (_IO_cookie_io_functions_t , seek) - 16usize] ; ["Offset of field: _IO_cookie_io_functions_t::close"] [:: std :: mem :: offset_of ! (_IO_cookie_io_functions_t , close) - 24usize] ; } ; pub type cookie_io_functions_t = _IO_cookie_io_functions_t ; pub type va_list = __gnuc_va_list ; pub type fpos_t = __fpos_t ; unsafe extern "C" { pub static mut stdin : * mut FILE ; } unsafe extern "C" { pub static mut stdout : * mut FILE ; } unsafe extern "C" { pub static mut stderr : * mut FILE ; } unsafe extern "C" { pub fn remove (__filename : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn rename (__old : * const :: std :: os :: raw :: c_char , __new : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn renameat (__oldfd : :: std :: os :: raw :: c_int , __old : * const :: std :: os :: raw :: c_char , __newfd : :: std :: os :: raw :: c_int , __new : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn fclose (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn tmpfile () -> * mut FILE ; } unsafe extern "C" { pub fn tmpnam (arg1 : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn tmpnam_r (__s : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn tempnam (__dir : * const :: std :: os :: raw :: c_char , __pfx : * const :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn fflush (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn fflush_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn fopen (__filename : * const :: std :: os :: raw :: c_char , __modes : * const :: std :: os :: raw :: c_char) -> * mut FILE ; } unsafe extern "C" { pub fn freopen (__filename : * const :: std :: os :: raw :: c_char , __modes : * const :: std :: os :: raw :: c_char , __stream : * mut FILE) -> * mut FILE ; } unsafe extern "C" { pub fn fdopen (__fd : :: std :: os :: raw :: c_int , __modes : * const :: std :: os :: raw :: c_char) -> * mut FILE ; } unsafe extern "C" { pub fn fopencookie (__magic_cookie : * mut :: std :: os :: raw :: c_void , __modes : * const :: std :: os :: raw :: c_char , __io_funcs : cookie_io_functions_t) -> * mut FILE ; } unsafe extern "C" { pub fn fmemopen (__s : * mut :: std :: os :: raw :: c_void , __len : usize , __modes : * const :: std :: os :: raw :: c_char) -> * mut FILE ; } unsafe extern "C" { pub fn open_memstream (__bufloc : * mut * mut :: std :: os :: raw :: c_char , __sizeloc : * mut usize) -> * mut FILE ; } unsafe extern "C" { pub fn setbuf (__stream : * mut FILE , __buf : * mut :: std :: os :: raw :: c_char) ; } unsafe extern "C" { pub fn setvbuf (__stream : * mut FILE , __buf : * mut :: std :: os :: raw :: c_char , __modes : :: std :: os :: raw :: c_int , __n : usize) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn setbuffer (__stream : * mut FILE , __buf : * mut :: std :: os :: raw :: c_char , __size : usize) ; } unsafe extern "C" { pub fn setlinebuf (__stream : * mut FILE) ; } unsafe extern "C" { pub fn fprintf (__stream : * mut FILE , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn printf (__format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn sprintf (__s : * mut :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn vfprintf (__s : * mut FILE , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn vprintf (__format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn vsprintf (__s : * mut :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn snprintf (__s : * mut :: std :: os :: raw :: c_char , __maxlen : :: std :: os :: raw :: c_ulong , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn vsnprintf (__s : * mut :: std :: os :: raw :: c_char , __maxlen : :: std :: os :: raw :: c_ulong , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn vasprintf (__ptr : * mut * mut :: std :: os :: raw :: c_char , __f : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __asprintf (__ptr : * mut * mut :: std :: os :: raw :: c_char , __fmt : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn asprintf (__ptr : * mut * mut :: std :: os :: raw :: c_char , __fmt : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn vdprintf (__fd : :: std :: os :: raw :: c_int , __fmt : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn dprintf (__fd : :: std :: os :: raw :: c_int , __fmt : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn fscanf (__stream : * mut FILE , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn scanf (__format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn sscanf (__s : * const :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [link_name = "\u{1}__isoc99_fscanf"] pub fn fscanf1 (__stream : * mut FILE , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [link_name = "\u{1}__isoc99_scanf"] pub fn scanf1 (__format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [link_name = "\u{1}__isoc99_sscanf"] pub fn sscanf1 (__s : * const :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn vfscanf (__s : * mut FILE , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn vscanf (__format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn vsscanf (__s : * const :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [link_name = "\u{1}__isoc99_vfscanf"] pub fn vfscanf1 (__s : * mut FILE , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [link_name = "\u{1}__isoc99_vscanf"] pub fn vscanf1 (__format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [link_name = "\u{1}__isoc99_vsscanf"] pub fn vsscanf1 (__s : * const :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn fgetc (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getc (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getchar () -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getc_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getchar_unlocked () -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn fgetc_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn fputc (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn putc (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn putchar (__c : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn fputc_unlocked (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn putc_unlocked (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn putchar_unlocked (__c : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getw (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn putw (__w : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn fgets (__s : * mut :: std :: os :: raw :: c_char , __n : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn __getdelim (__lineptr : * mut * mut :: std :: os :: raw :: c_char , __n : * mut usize , __delimiter : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> __ssize_t ; } unsafe extern "C" { pub fn getdelim (__lineptr : * mut * mut :: std :: os :: raw :: c_char , __n : * mut usize , __delimiter : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> __ssize_t ; } unsafe extern "C" { pub fn getline (__lineptr : * mut * mut :: std :: os :: raw :: c_char , __n : * mut usize , __stream : * mut FILE) -> __ssize_t ; } unsafe extern "C" { pub fn fputs (__s : * const :: std :: os :: raw :: c_char , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn puts (__s : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn ungetc (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn fread (__ptr : * mut :: std :: os :: raw :: c_void , __size : :: std :: os :: raw :: c_ulong , __n : :: std :: os :: raw :: c_ulong , __stream : * mut FILE) -> :: std :: os :: raw :: c_ulong ; } unsafe extern "C" { pub fn fwrite (__ptr : * const :: std :: os :: raw :: c_void , __size : :: std :: os :: raw :: c_ulong , __n : :: std :: os :: raw :: c_ulong , __s : * mut FILE) -> :: std :: os :: raw :: c_ulong ; } unsafe extern "C" { pub fn fread_unlocked (__ptr : * mut :: std :: os :: raw :: c_void , __size : usize , __n : usize , __stream : * mut FILE) -> usize ; } unsafe extern "C" { pub fn fwrite_unlocked (__ptr : * const :: std :: os :: raw :: c_void , __size : usize , __n : usize , __stream : * mut FILE) -> usize ; } unsafe extern "C" { pub fn fseek (__stream : * mut FILE , __off : :: std :: os :: raw :: c_long , __whence : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn ftell (__stream : * mut FILE) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn rewind (__stream : * mut FILE) ; } unsafe extern "C" { pub fn fseeko (__stream : * mut FILE , __off : __off_t , __whence : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn ftello (__stream : * mut FILE) -> __off_t ; } unsafe extern "C" { pub fn fgetpos (__stream : * mut FILE , __pos : * mut fpos_t) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn fsetpos (__stream : * mut FILE , __pos : * const fpos_t) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn clearerr (__stream : * mut FILE) ; } unsafe extern "C" { pub fn feof (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn ferror (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn clearerr_unlocked (__stream : * mut FILE) ; } unsafe extern "C" { pub fn feof_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn ferror_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn perror (__s : * const :: std :: os :: raw :: c_char) ; } unsafe extern "C" { pub fn fileno (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn fileno_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn pclose (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn popen (__command : * const :: std :: os :: raw :: c_char , __modes : * const :: std :: os :: raw :: c_char) -> * mut FILE ; } unsafe extern "C" { pub fn ctermid (__s : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn flockfile (__stream : * mut FILE) ; } unsafe extern "C" { pub fn ftrylockfile (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn funlockfile (__stream : * mut FILE) ; } unsafe extern "C" { pub fn __uflow (arg1 : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __overflow (arg1 : * mut FILE , arg2 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " Quad-Witch-Huts\n\n  For a quad-structure, we mainly care about relative positioning, so we can\n  get away with just checking the regions near the origin: (0,0),(0,1),(1,0)\n  and (1,1) and then move the structures to the desired position.\n\n  Futhermore, the PRNG that determines the chunk positions inside each region,\n  performs some modular arithmatic on the 48-bit numbers which causes some\n  restrictions on the lower bits when looking for near perfect structure\n  positions. This is difficult to prove, but can be used to reduce the number\n  of free bits to 28 which can be comfortably brute-forced to get the entire\n  set of quad-structure candidates. Each of the seeds found this way\n  describes entire set of possible quad-witch-huts (with degrees of freedom\n  for region-transposition, as well as the top 16-bit bits)."] pub static low20QuadIdeal : [u64 ; 4usize] ; } unsafe extern "C" { pub static low20QuadClassic : [u64 ; 5usize] ; } unsafe extern "C" { pub static low20QuadHutNormal : [u64 ; 11usize] ; } unsafe extern "C" { pub static low20QuadHutBarely : [u64 ; 29usize] ; } pub const CST_NONE : _bindgen_ty_9 = _bindgen_ty_9 (0) ; pub const CST_IDEAL : _bindgen_ty_9 = _bindgen_ty_9 (1) ; pub const CST_CLASSIC : _bindgen_ty_9 = _bindgen_ty_9 (2) ; pub const CST_NORMAL : _bindgen_ty_9 = _bindgen_ty_9 (3) ; pub const CST_BARELY : _bindgen_ty_9 = _bindgen_ty_9 (4) ; # [repr (transparent)] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct _bindgen_ty_9 (pub :: std :: os :: raw :: c_uint) ; unsafe extern "C" { pub fn getQuadHutCst (low20 : u64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn searchAll48 (seedbuf : * mut * mut u64 , buflen : * mut u64 , path : * const :: std :: os :: raw :: c_char , threads : :: std :: os :: raw :: c_int , lowBits : * const u64 , lowBitN : :: std :: os :: raw :: c_int , check : :: std :: option :: Option < unsafe extern "C" fn (s48 : u64 , data : * mut :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int > , data : * mut :: std :: os :: raw :: c_void , stop : * mut :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getOptimalAfk (p : * mut Pos , ax : :: std :: os :: raw :: c_int , ay : :: std :: os :: raw :: c_int , az : :: std :: os :: raw :: c_int , spcnt : * mut :: std :: os :: raw :: c_int) -> Pos ; } unsafe extern "C" { pub fn scanForQuads (sconf : StructureConfig , radius : :: std :: os :: raw :: c_int , s48 : u64 , lowBits : * const u64 , lowBitN : :: std :: os :: raw :: c_int , salt : u64 , x : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , w : :: std :: os :: raw :: c_int , h : :: std :: os :: raw :: c_int , qplist : * mut Pos , n : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn loadSavedSeeds (fnam : * const :: std :: os :: raw :: c_char , scnt : * mut u64) -> * mut u64 ; } unsafe extern "C" { # [doc = " convert between version enum and text"] pub fn mc2str (mc : :: std :: os :: raw :: c_int) -> * const :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn str2mc (s : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " get the resource id name for a biome (for versions 1.13+)"] pub fn biome2str (mc : :: std :: os :: raw :: c_int , id : :: std :: os :: raw :: c_int) -> * const :: std :: os :: raw :: c_char ; } unsafe extern "C" { # [doc = " get the resource id name for a structure"] pub fn struct2str (stype : :: std :: os :: raw :: c_int) -> * const :: std :: os :: raw :: c_char ; } unsafe extern "C" { # [doc = " initialize a biome colormap with some defaults"] pub fn initBiomeColors (biomeColors : * mut [:: std :: os :: raw :: c_uchar ; 3usize]) ; } unsafe extern "C" { pub fn initBiomeTypeColors (biomeColors : * mut [:: std :: os :: raw :: c_uchar ; 3usize]) ; } unsafe extern "C" { pub fn parseBiomeColors (biomeColors : * mut [:: std :: os :: raw :: c_uchar ; 3usize] , buf : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn biomesToImage (pixels : * mut :: std :: os :: raw :: c_uchar , biomeColors : * mut [:: std :: os :: raw :: c_uchar ; 3usize] , biomes : * const :: std :: os :: raw :: c_int , sx : :: std :: os :: raw :: c_uint , sy : :: std :: os :: raw :: c_uint , pixscale : :: std :: os :: raw :: c_uint , flip : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn savePPM (path : * const :: std :: os :: raw :: c_char , pixels : * const :: std :: os :: raw :: c_uchar , sx : :: std :: os :: raw :: c_uint , sy : :: std :: os :: raw :: c_uint) -> :: std :: os :: raw :: c_int ; } pub type __builtin_va_list = [__va_list_tag ; 1usize] ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __va_list_tag { pub gp_offset : :: std :: os :: raw :: c_uint , pub fp_offset : :: std :: os :: raw :: c_uint , pub overflow_arg_area : * mut :: std :: os :: raw :: c_void , pub reg_save_area : * mut :: std :: os :: raw :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __va_list_tag"] [:: std :: mem :: size_of :: < __va_list_tag > () - 24usize] ; ["Alignment of __va_list_tag"] [:: std :: mem :: align_of :: < __va_list_tag > () - 8usize] ; ["Offset of field: __va_list_tag::gp_offset"] [:: std :: mem :: offset_of ! (__va_list_tag , gp_offset) - 0usize] ; ["Offset of field: __va_list_tag::fp_offset"] [:: std :: mem :: offset_of ! (__va_list_tag , fp_offset) - 4usize] ; ["Offset of field: __va_list_tag::overflow_arg_area"] [:: std :: mem :: offset_of ! (__va_list_tag , overflow_arg_area) - 8usize] ; ["Offset of field: __va_list_tag::reg_save_area"] [:: std :: mem :: offset_of ! (__va_list_tag , reg_save_area) - 16usize] ; } ;
[INFO] [stdout] 3 + # [repr (C)] # [derive (Copy , Clone , Debug , Default , Eq , Hash , Ord , PartialEq , PartialOrd)] pub struct __BindgenBitfieldUnit < Storage > { storage : Storage , } impl < Storage > __BindgenBitfieldUnit < Storage > { # [inline] pub const fn new (storage : Storage) -> Self { Self { storage } } } impl < Storage > __BindgenBitfieldUnit < Storage > where Storage : AsRef < [u8] > + AsMut < [u8] >, { # [inline] fn extract_bit (byte : u8 , index : usize) -> bool { let bit_index = if cfg ! (target_endian = "big") { 7 - (index % 8) } else { index % 8 } ; let mask = 1 << bit_index ; byte & mask == mask } # [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] ; Self :: extract_bit (byte , index) } # [inline] pub unsafe fn raw_get_bit (this : * const Self , index : usize) -> bool { debug_assert ! (index / 8 < core :: mem :: size_of ::< Storage > ()) ; let byte_index = index / 8 ; let byte = * (core :: ptr :: addr_of ! ((* this) . storage) as * const u8) . offset (byte_index as isize) ; Self :: extract_bit (byte , index) } # [inline] fn change_bit (byte : u8 , index : usize , val : bool) -> u8 { let bit_index = if cfg ! (target_endian = "big") { 7 - (index % 8) } else { index % 8 } ; let mask = 1 << bit_index ; if val { byte | mask } else { byte & ! 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] ; * byte = Self :: change_bit (* byte , index , val) ; } # [inline] pub unsafe fn raw_set_bit (this : * mut Self , index : usize , val : bool) { debug_assert ! (index / 8 < core :: mem :: size_of ::< Storage > ()) ; let byte_index = index / 8 ; let byte = (core :: ptr :: addr_of_mut ! ((* this) . storage) as * mut u8) . offset (byte_index as isize) ; * byte = Self :: change_bit (* byte , index , val) ; } # [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) { let index = if cfg ! (target_endian = "big") { bit_width as usize - 1 - i } else { i } ; val |= 1 << index ; } } val } # [inline] pub unsafe fn raw_get (this : * const Self , bit_offset : usize , bit_width : u8 ,) -> u64 { debug_assert ! (bit_width <= 64) ; debug_assert ! (bit_offset / 8 < core :: mem :: size_of ::< Storage > ()) ; debug_assert ! ((bit_offset + (bit_width as usize)) / 8 <= core :: mem :: size_of ::< Storage > ()) ; let mut val = 0 ; for i in 0 .. (bit_width as usize) { if Self :: raw_get_bit (this , i + bit_offset) { let index = if cfg ! (target_endian = "big") { bit_width as usize - 1 - i } else { i } ; val |= 1 << index ; } } 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 ; let index = if cfg ! (target_endian = "big") { bit_width as usize - 1 - i } else { i } ; self . set_bit (index + bit_offset , val_bit_is_set) ; } } # [inline] pub unsafe fn raw_set (this : * mut Self , bit_offset : usize , bit_width : u8 , val : u64 ,) { debug_assert ! (bit_width <= 64) ; debug_assert ! (bit_offset / 8 < core :: mem :: size_of ::< Storage > ()) ; debug_assert ! ((bit_offset + (bit_width as usize)) / 8 <= core :: mem :: size_of ::< Storage > ()) ; for i in 0 .. (bit_width as usize) { let mask = 1 << i ; let val_bit_is_set = val & mask == mask ; let index = if cfg ! (target_endian = "big") { bit_width as usize - 1 - i } else { i } ; Self :: raw_set_bit (this , index + bit_offset , val_bit_is_set) ; } } } # [derive (PartialEq , Copy , Clone , Hash , Debug , Default)] # [repr (C)] pub struct __BindgenComplex < T > { pub re : T , pub im : T } pub const __STDC_FORMAT_MACROS : u32 = 1 ; pub const _FEATURES_H : u32 = 1 ; pub const _DEFAULT_SOURCE : u32 = 1 ; pub const __GLIBC_USE_ISOC2Y : u32 = 0 ; pub const __GLIBC_USE_ISOC23 : u32 = 0 ; pub const __USE_ISOC11 : u32 = 1 ; pub const __USE_ISOC99 : u32 = 1 ; pub const __USE_ISOC95 : u32 = 1 ; pub const __USE_POSIX_IMPLICITLY : u32 = 1 ; pub const _POSIX_SOURCE : u32 = 1 ; pub const _POSIX_C_SOURCE : u32 = 202405 ; pub const __USE_POSIX : u32 = 1 ; pub const __USE_POSIX2 : u32 = 1 ; pub const __USE_POSIX199309 : u32 = 1 ; pub const __USE_POSIX199506 : u32 = 1 ; pub const __USE_XOPEN2K : u32 = 1 ; pub const __USE_XOPEN2K8 : u32 = 1 ; pub const _ATFILE_SOURCE : u32 = 1 ; pub const __USE_XOPEN2K24 : u32 = 1 ; pub const __WORDSIZE : u32 = 64 ; pub const __WORDSIZE_TIME64_COMPAT32 : u32 = 1 ; pub const __SYSCALL_WORDSIZE : u32 = 64 ; pub const __TIMESIZE : u32 = 64 ; pub const __USE_TIME_BITS64 : u32 = 1 ; pub const __USE_MISC : u32 = 1 ; pub const __USE_ATFILE : u32 = 1 ; pub const __USE_FORTIFY_LEVEL : u32 = 0 ; pub const __GLIBC_USE_DEPRECATED_GETS : u32 = 0 ; pub const __GLIBC_USE_DEPRECATED_SCANF : u32 = 0 ; pub const __GLIBC_USE_C23_STRTOL : u32 = 0 ; pub const _STDC_PREDEF_H : u32 = 1 ; pub const __STDC_IEC_559__ : u32 = 1 ; pub const __STDC_IEC_60559_BFP__ : u32 = 201404 ; pub const __STDC_IEC_559_COMPLEX__ : u32 = 1 ; pub const __STDC_IEC_60559_COMPLEX__ : u32 = 201404 ; pub const __STDC_ISO_10646__ : u32 = 201706 ; pub const __GNU_LIBRARY__ : u32 = 6 ; pub const __GLIBC__ : u32 = 2 ; pub const __GLIBC_MINOR__ : u32 = 43 ; pub const _SYS_CDEFS_H : u32 = 1 ; pub const __glibc_c99_flexarr_available : u32 = 1 ; pub const __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI : u32 = 0 ; pub const __HAVE_GENERIC_SELECTION : u32 = 1 ; pub const __GLIBC_USE_LIB_EXT2 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_BFP_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_BFP_EXT_C23 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_FUNCS_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_FUNCS_EXT_C23 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_TYPES_EXT : u32 = 0 ; pub const _STDLIB_H : u32 = 1 ; pub const WNOHANG : u32 = 1 ; pub const WUNTRACED : u32 = 2 ; pub const WSTOPPED : u32 = 2 ; pub const WEXITED : u32 = 4 ; pub const WCONTINUED : u32 = 8 ; pub const WNOWAIT : u32 = 16777216 ; pub const __WNOTHREAD : u32 = 536870912 ; pub const __WALL : u32 = 1073741824 ; pub const __WCLONE : u32 = 2147483648 ; pub const __W_CONTINUED : u32 = 65535 ; pub const __WCOREFLAG : u32 = 128 ; pub const __HAVE_FLOAT128 : u32 = 1 ; pub const __HAVE_DISTINCT_FLOAT128 : u32 = 1 ; pub const __HAVE_FLOAT64X : u32 = 1 ; pub const __HAVE_FLOAT64X_LONG_DOUBLE : u32 = 1 ; pub const __HAVE_FLOAT16 : u32 = 0 ; pub const __HAVE_FLOAT32 : u32 = 1 ; pub const __HAVE_FLOAT64 : u32 = 1 ; pub const __HAVE_FLOAT32X : u32 = 1 ; pub const __HAVE_FLOAT128X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT16 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT32 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT64 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT32X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT64X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT128X : u32 = 0 ; pub const __HAVE_FLOATN_NOT_TYPEDEF : u32 = 0 ; pub const __ldiv_t_defined : u32 = 1 ; pub const __lldiv_t_defined : u32 = 1 ; pub const RAND_MAX : u32 = 2147483647 ; pub const EXIT_FAILURE : u32 = 1 ; pub const EXIT_SUCCESS : u32 = 0 ; pub const _SYS_TYPES_H : u32 = 1 ; pub const _BITS_TYPES_H : u32 = 1 ; pub const _BITS_TYPESIZES_H : u32 = 1 ; pub const __OFF_T_MATCHES_OFF64_T : u32 = 1 ; pub const __INO_T_MATCHES_INO64_T : u32 = 1 ; pub const __RLIM_T_MATCHES_RLIM64_T : u32 = 1 ; pub const __STATFS_MATCHES_STATFS64 : u32 = 1 ; pub const __KERNEL_OLD_TIMEVAL_MATCHES_TIMEVAL64 : u32 = 1 ; pub const __FD_SETSIZE : u32 = 1024 ; pub const _BITS_TIME64_H : u32 = 1 ; pub const __clock_t_defined : u32 = 1 ; pub const __clockid_t_defined : u32 = 1 ; pub const __time_t_defined : u32 = 1 ; pub const __timer_t_defined : u32 = 1 ; pub const _BITS_STDINT_INTN_H : u32 = 1 ; pub const __BIT_TYPES_DEFINED__ : u32 = 1 ; pub const _ENDIAN_H : u32 = 1 ; pub const _BITS_ENDIAN_H : u32 = 1 ; pub const __LITTLE_ENDIAN : u32 = 1234 ; pub const __BIG_ENDIAN : u32 = 4321 ; pub const __PDP_ENDIAN : u32 = 3412 ; pub const _BITS_ENDIANNESS_H : u32 = 1 ; pub const __BYTE_ORDER : u32 = 1234 ; pub const __FLOAT_WORD_ORDER : u32 = 1234 ; pub const LITTLE_ENDIAN : u32 = 1234 ; pub const BIG_ENDIAN : u32 = 4321 ; pub const PDP_ENDIAN : u32 = 3412 ; pub const BYTE_ORDER : u32 = 1234 ; pub const _BITS_BYTESWAP_H : u32 = 1 ; pub const _BITS_UINTN_IDENTITY_H : u32 = 1 ; pub const _SYS_SELECT_H : u32 = 1 ; pub const __sigset_t_defined : u32 = 1 ; pub const __timeval_defined : u32 = 1 ; pub const _STRUCT_TIMESPEC : u32 = 1 ; pub const FD_SETSIZE : u32 = 1024 ; pub const _BITS_PTHREADTYPES_COMMON_H : u32 = 1 ; pub const _THREAD_SHARED_TYPES_H : u32 = 1 ; pub const _BITS_PTHREADTYPES_ARCH_H : u32 = 1 ; pub const __SIZEOF_PTHREAD_MUTEX_T : u32 = 40 ; pub const __SIZEOF_PTHREAD_ATTR_T : u32 = 56 ; pub const __SIZEOF_PTHREAD_RWLOCK_T : u32 = 56 ; pub const __SIZEOF_PTHREAD_BARRIER_T : u32 = 32 ; pub const __SIZEOF_PTHREAD_MUTEXATTR_T : u32 = 4 ; pub const __SIZEOF_PTHREAD_COND_T : u32 = 48 ; pub const __SIZEOF_PTHREAD_CONDATTR_T : u32 = 4 ; pub const __SIZEOF_PTHREAD_RWLOCKATTR_T : u32 = 8 ; pub const __SIZEOF_PTHREAD_BARRIERATTR_T : u32 = 4 ; pub const _THREAD_MUTEX_INTERNAL_H : u32 = 1 ; pub const __PTHREAD_MUTEX_HAVE_PREV : u32 = 1 ; pub const __have_pthread_attr_t : u32 = 1 ; pub const _ALLOCA_H : u32 = 1 ; pub const _INTTYPES_H : u32 = 1 ; pub const _STDINT_H : u32 = 1 ; pub const _BITS_WCHAR_H : u32 = 1 ; pub const _BITS_STDINT_UINTN_H : u32 = 1 ; pub const _BITS_STDINT_LEAST_H : u32 = 1 ; pub const INT8_MIN : i32 = - 128 ; pub const INT16_MIN : i32 = - 32768 ; pub const INT32_MIN : i32 = - 2147483648 ; pub const INT8_MAX : u32 = 127 ; pub const INT16_MAX : u32 = 32767 ; pub const INT32_MAX : u32 = 2147483647 ; pub const UINT8_MAX : u32 = 255 ; pub const UINT16_MAX : u32 = 65535 ; pub const UINT32_MAX : u32 = 4294967295 ; pub const INT_LEAST8_MIN : i32 = - 128 ; pub const INT_LEAST16_MIN : i32 = - 32768 ; pub const INT_LEAST32_MIN : i32 = - 2147483648 ; pub const INT_LEAST8_MAX : u32 = 127 ; pub const INT_LEAST16_MAX : u32 = 32767 ; pub const INT_LEAST32_MAX : u32 = 2147483647 ; pub const UINT_LEAST8_MAX : u32 = 255 ; pub const UINT_LEAST16_MAX : u32 = 65535 ; pub const UINT_LEAST32_MAX : u32 = 4294967295 ; pub const INT_FAST8_MIN : i32 = - 128 ; pub const INT_FAST16_MIN : i64 = - 9223372036854775808 ; pub const INT_FAST32_MIN : i64 = - 9223372036854775808 ; pub const INT_FAST8_MAX : u32 = 127 ; pub const INT_FAST16_MAX : u64 = 9223372036854775807 ; pub const INT_FAST32_MAX : u64 = 9223372036854775807 ; pub const UINT_FAST8_MAX : u32 = 255 ; pub const UINT_FAST16_MAX : i32 = - 1 ; pub const UINT_FAST32_MAX : i32 = - 1 ; pub const INTPTR_MIN : i64 = - 9223372036854775808 ; pub const INTPTR_MAX : u64 = 9223372036854775807 ; pub const UINTPTR_MAX : i32 = - 1 ; pub const PTRDIFF_MIN : i64 = - 9223372036854775808 ; pub const PTRDIFF_MAX : u64 = 9223372036854775807 ; pub const SIG_ATOMIC_MIN : i32 = - 2147483648 ; pub const SIG_ATOMIC_MAX : u32 = 2147483647 ; pub const SIZE_MAX : i32 = - 1 ; pub const WINT_MIN : u32 = 0 ; pub const WINT_MAX : u32 = 4294967295 ; pub const ____gwchar_t_defined : u32 = 1 ; pub const __PRI64_PREFIX : & [u8 ; 2] = b"l\0" ; pub const __PRIPTR_PREFIX : & [u8 ; 2] = b"l\0" ; pub const PRId8 : & [u8 ; 4] = b"hhd\0" ; pub const PRId16 : & [u8 ; 3] = b"hd\0" ; pub const PRId32 : & [u8 ; 2] = b"d\0" ; pub const PRId64 : & [u8 ; 3] = b"ld\0" ; pub const PRIdLEAST8 : & [u8 ; 4] = b"hhd\0" ; pub const PRIdLEAST16 : & [u8 ; 3] = b"hd\0" ; pub const PRIdLEAST32 : & [u8 ; 2] = b"d\0" ; pub const PRIdLEAST64 : & [u8 ; 3] = b"ld\0" ; pub const PRIdFAST8 : & [u8 ; 4] = b"hhd\0" ; pub const PRIdFAST16 : & [u8 ; 3] = b"ld\0" ; pub const PRIdFAST32 : & [u8 ; 3] = b"ld\0" ; pub const PRIdFAST64 : & [u8 ; 3] = b"ld\0" ; pub const PRIi8 : & [u8 ; 4] = b"hhi\0" ; pub const PRIi16 : & [u8 ; 3] = b"hi\0" ; pub const PRIi32 : & [u8 ; 2] = b"i\0" ; pub const PRIi64 : & [u8 ; 3] = b"li\0" ; pub const PRIiLEAST8 : & [u8 ; 4] = b"hhi\0" ; pub const PRIiLEAST16 : & [u8 ; 3] = b"hi\0" ; pub const PRIiLEAST32 : & [u8 ; 2] = b"i\0" ; pub const PRIiLEAST64 : & [u8 ; 3] = b"li\0" ; pub const PRIiFAST8 : & [u8 ; 4] = b"hhi\0" ; pub const PRIiFAST16 : & [u8 ; 3] = b"li\0" ; pub const PRIiFAST32 : & [u8 ; 3] = b"li\0" ; pub const PRIiFAST64 : & [u8 ; 3] = b"li\0" ; pub const PRIo8 : & [u8 ; 4] = b"hho\0" ; pub const PRIo16 : & [u8 ; 3] = b"ho\0" ; pub const PRIo32 : & [u8 ; 2] = b"o\0" ; pub const PRIo64 : & [u8 ; 3] = b"lo\0" ; pub const PRIoLEAST8 : & [u8 ; 4] = b"hho\0" ; pub const PRIoLEAST16 : & [u8 ; 3] = b"ho\0" ; pub const PRIoLEAST32 : & [u8 ; 2] = b"o\0" ; pub const PRIoLEAST64 : & [u8 ; 3] = b"lo\0" ; pub const PRIoFAST8 : & [u8 ; 4] = b"hho\0" ; pub const PRIoFAST16 : & [u8 ; 3] = b"lo\0" ; pub const PRIoFAST32 : & [u8 ; 3] = b"lo\0" ; pub const PRIoFAST64 : & [u8 ; 3] = b"lo\0" ; pub const PRIu8 : & [u8 ; 4] = b"hhu\0" ; pub const PRIu16 : & [u8 ; 3] = b"hu\0" ; pub const PRIu32 : & [u8 ; 2] = b"u\0" ; pub const PRIu64 : & [u8 ; 3] = b"lu\0" ; pub const PRIuLEAST8 : & [u8 ; 4] = b"hhu\0" ; pub const PRIuLEAST16 : & [u8 ; 3] = b"hu\0" ; pub const PRIuLEAST32 : & [u8 ; 2] = b"u\0" ; pub const PRIuLEAST64 : & [u8 ; 3] = b"lu\0" ; pub const PRIuFAST8 : & [u8 ; 4] = b"hhu\0" ; pub const PRIuFAST16 : & [u8 ; 3] = b"lu\0" ; pub const PRIuFAST32 : & [u8 ; 3] = b"lu\0" ; pub const PRIuFAST64 : & [u8 ; 3] = b"lu\0" ; pub const PRIx8 : & [u8 ; 4] = b"hhx\0" ; pub const PRIx16 : & [u8 ; 3] = b"hx\0" ; pub const PRIx32 : & [u8 ; 2] = b"x\0" ; pub const PRIx64 : & [u8 ; 3] = b"lx\0" ; pub const PRIxLEAST8 : & [u8 ; 4] = b"hhx\0" ; pub const PRIxLEAST16 : & [u8 ; 3] = b"hx\0" ; pub const PRIxLEAST32 : & [u8 ; 2] = b"x\0" ; pub const PRIxLEAST64 : & [u8 ; 3] = b"lx\0" ; pub const PRIxFAST8 : & [u8 ; 4] = b"hhx\0" ; pub const PRIxFAST16 : & [u8 ; 3] = b"lx\0" ; pub const PRIxFAST32 : & [u8 ; 3] = b"lx\0" ; pub const PRIxFAST64 : & [u8 ; 3] = b"lx\0" ; pub const PRIX8 : & [u8 ; 4] = b"hhX\0" ; pub const PRIX16 : & [u8 ; 3] = b"hX\0" ; pub const PRIX32 : & [u8 ; 2] = b"X\0" ; pub const PRIX64 : & [u8 ; 3] = b"lX\0" ; pub const PRIXLEAST8 : & [u8 ; 4] = b"hhX\0" ; pub const PRIXLEAST16 : & [u8 ; 3] = b"hX\0" ; pub const PRIXLEAST32 : & [u8 ; 2] = b"X\0" ; pub const PRIXLEAST64 : & [u8 ; 3] = b"lX\0" ; pub const PRIXFAST8 : & [u8 ; 4] = b"hhX\0" ; pub const PRIXFAST16 : & [u8 ; 3] = b"lX\0" ; pub const PRIXFAST32 : & [u8 ; 3] = b"lX\0" ; pub const PRIXFAST64 : & [u8 ; 3] = b"lX\0" ; pub const PRIdMAX : & [u8 ; 3] = b"ld\0" ; pub const PRIiMAX : & [u8 ; 3] = b"li\0" ; pub const PRIoMAX : & [u8 ; 3] = b"lo\0" ; pub const PRIuMAX : & [u8 ; 3] = b"lu\0" ; pub const PRIxMAX : & [u8 ; 3] = b"lx\0" ; pub const PRIXMAX : & [u8 ; 3] = b"lX\0" ; pub const PRIdPTR : & [u8 ; 3] = b"ld\0" ; pub const PRIiPTR : & [u8 ; 3] = b"li\0" ; pub const PRIoPTR : & [u8 ; 3] = b"lo\0" ; pub const PRIuPTR : & [u8 ; 3] = b"lu\0" ; pub const PRIxPTR : & [u8 ; 3] = b"lx\0" ; pub const PRIXPTR : & [u8 ; 3] = b"lX\0" ; pub const SCNd8 : & [u8 ; 4] = b"hhd\0" ; pub const SCNd16 : & [u8 ; 3] = b"hd\0" ; pub const SCNd32 : & [u8 ; 2] = b"d\0" ; pub const SCNd64 : & [u8 ; 3] = b"ld\0" ; pub const SCNdLEAST8 : & [u8 ; 4] = b"hhd\0" ; pub const SCNdLEAST16 : & [u8 ; 3] = b"hd\0" ; pub const SCNdLEAST32 : & [u8 ; 2] = b"d\0" ; pub const SCNdLEAST64 : & [u8 ; 3] = b"ld\0" ; pub const SCNdFAST8 : & [u8 ; 4] = b"hhd\0" ; pub const SCNdFAST16 : & [u8 ; 3] = b"ld\0" ; pub const SCNdFAST32 : & [u8 ; 3] = b"ld\0" ; pub const SCNdFAST64 : & [u8 ; 3] = b"ld\0" ; pub const SCNi8 : & [u8 ; 4] = b"hhi\0" ; pub const SCNi16 : & [u8 ; 3] = b"hi\0" ; pub const SCNi32 : & [u8 ; 2] = b"i\0" ; pub const SCNi64 : & [u8 ; 3] = b"li\0" ; pub const SCNiLEAST8 : & [u8 ; 4] = b"hhi\0" ; pub const SCNiLEAST16 : & [u8 ; 3] = b"hi\0" ; pub const SCNiLEAST32 : & [u8 ; 2] = b"i\0" ; pub const SCNiLEAST64 : & [u8 ; 3] = b"li\0" ; pub const SCNiFAST8 : & [u8 ; 4] = b"hhi\0" ; pub const SCNiFAST16 : & [u8 ; 3] = b"li\0" ; pub const SCNiFAST32 : & [u8 ; 3] = b"li\0" ; pub const SCNiFAST64 : & [u8 ; 3] = b"li\0" ; pub const SCNu8 : & [u8 ; 4] = b"hhu\0" ; pub const SCNu16 : & [u8 ; 3] = b"hu\0" ; pub const SCNu32 : & [u8 ; 2] = b"u\0" ; pub const SCNu64 : & [u8 ; 3] = b"lu\0" ; pub const SCNuLEAST8 : & [u8 ; 4] = b"hhu\0" ; pub const SCNuLEAST16 : & [u8 ; 3] = b"hu\0" ; pub const SCNuLEAST32 : & [u8 ; 2] = b"u\0" ; pub const SCNuLEAST64 : & [u8 ; 3] = b"lu\0" ; pub const SCNuFAST8 : & [u8 ; 4] = b"hhu\0" ; pub const SCNuFAST16 : & [u8 ; 3] = b"lu\0" ; pub const SCNuFAST32 : & [u8 ; 3] = b"lu\0" ; pub const SCNuFAST64 : & [u8 ; 3] = b"lu\0" ; pub const SCNo8 : & [u8 ; 4] = b"hho\0" ; pub const SCNo16 : & [u8 ; 3] = b"ho\0" ; pub const SCNo32 : & [u8 ; 2] = b"o\0" ; pub const SCNo64 : & [u8 ; 3] = b"lo\0" ; pub const SCNoLEAST8 : & [u8 ; 4] = b"hho\0" ; pub const SCNoLEAST16 : & [u8 ; 3] = b"ho\0" ; pub const SCNoLEAST32 : & [u8 ; 2] = b"o\0" ; pub const SCNoLEAST64 : & [u8 ; 3] = b"lo\0" ; pub const SCNoFAST8 : & [u8 ; 4] = b"hho\0" ; pub const SCNoFAST16 : & [u8 ; 3] = b"lo\0" ; pub const SCNoFAST32 : & [u8 ; 3] = b"lo\0" ; pub const SCNoFAST64 : & [u8 ; 3] = b"lo\0" ; pub const SCNx8 : & [u8 ; 4] = b"hhx\0" ; pub const SCNx16 : & [u8 ; 3] = b"hx\0" ; pub const SCNx32 : & [u8 ; 2] = b"x\0" ; pub const SCNx64 : & [u8 ; 3] = b"lx\0" ; pub const SCNxLEAST8 : & [u8 ; 4] = b"hhx\0" ; pub const SCNxLEAST16 : & [u8 ; 3] = b"hx\0" ; pub const SCNxLEAST32 : & [u8 ; 2] = b"x\0" ; pub const SCNxLEAST64 : & [u8 ; 3] = b"lx\0" ; pub const SCNxFAST8 : & [u8 ; 4] = b"hhx\0" ; pub const SCNxFAST16 : & [u8 ; 3] = b"lx\0" ; pub const SCNxFAST32 : & [u8 ; 3] = b"lx\0" ; pub const SCNxFAST64 : & [u8 ; 3] = b"lx\0" ; pub const SCNdMAX : & [u8 ; 3] = b"ld\0" ; pub const SCNiMAX : & [u8 ; 3] = b"li\0" ; pub const SCNoMAX : & [u8 ; 3] = b"lo\0" ; pub const SCNuMAX : & [u8 ; 3] = b"lu\0" ; pub const SCNxMAX : & [u8 ; 3] = b"lx\0" ; pub const SCNdPTR : & [u8 ; 3] = b"ld\0" ; pub const SCNiPTR : & [u8 ; 3] = b"li\0" ; pub const SCNoPTR : & [u8 ; 3] = b"lo\0" ; pub const SCNuPTR : & [u8 ; 3] = b"lu\0" ; pub const SCNxPTR : & [u8 ; 3] = b"lx\0" ; pub const _MATH_H : u32 = 1 ; pub const _BITS_LIBM_SIMD_DECL_STUBS_H : u32 = 1 ; pub const __FP_LOGB0_IS_MIN : u32 = 1 ; pub const __FP_LOGBNAN_IS_MIN : u32 = 1 ; pub const FP_ILOGB0 : i32 = - 2147483648 ; pub const FP_ILOGBNAN : i32 = - 2147483648 ; pub const __MATH_DECLARING_DOUBLE : u32 = 1 ; pub const __MATH_DECLARING_FLOATN : u32 = 0 ; pub const __MATH_DECLARE_LDOUBLE : u32 = 1 ; pub const MATH_ERRNO : u32 = 1 ; pub const MATH_ERREXCEPT : u32 = 2 ; pub const math_errhandling : u32 = 3 ; pub const M_E : f64 = 2.718281828459045 ; pub const M_LOG2E : f64 = 1.4426950408889634 ; pub const M_LOG10E : f64 = 0.4342944819032518 ; pub const M_LN2 : f64 = 0.6931471805599453 ; pub const M_LN10 : f64 = 2.302585092994046 ; pub const M_PI : f64 = 3.141592653589793 ; pub const M_PI_2 : f64 = 1.5707963267948966 ; pub const M_PI_4 : f64 = 0.7853981633974483 ; pub const M_1_PI : f64 = 0.3183098861837907 ; pub const M_2_PI : f64 = 0.6366197723675814 ; pub const M_2_SQRTPI : f64 = 1.1283791670955126 ; pub const M_SQRT2 : f64 = 1.4142135623730951 ; pub const M_SQRT1_2 : f64 = 0.7071067811865476 ; pub const LAYER_INIT_SHA : i32 = - 1 ; pub const _STDIO_H : u32 = 1 ; pub const _____fpos_t_defined : u32 = 1 ; pub const ____mbstate_t_defined : u32 = 1 ; pub const _____fpos64_t_defined : u32 = 1 ; pub const ____FILE_defined : u32 = 1 ; pub const __FILE_defined : u32 = 1 ; pub const __struct_FILE_defined : u32 = 1 ; pub const _IO_EOF_SEEN : u32 = 16 ; pub const _IO_ERR_SEEN : u32 = 32 ; pub const _IO_USER_LOCK : u32 = 32768 ; pub const __cookie_io_functions_t_defined : u32 = 1 ; pub const _IOFBF : u32 = 0 ; pub const _IOLBF : u32 = 1 ; pub const _IONBF : u32 = 2 ; pub const BUFSIZ : u32 = 8192 ; pub const EOF : i32 = - 1 ; pub const SEEK_SET : u32 = 0 ; pub const SEEK_CUR : u32 = 1 ; pub const SEEK_END : u32 = 2 ; pub const P_tmpdir : & [u8 ; 5] = b"/tmp\0" ; pub const L_tmpnam : u32 = 20 ; pub const TMP_MAX : u32 = 238328 ; pub const _BITS_STDIO_LIM_H : u32 = 1 ; pub const FILENAME_MAX : u32 = 4096 ; pub const L_ctermid : u32 = 9 ; pub const FOPEN_MAX : u32 = 16 ; pub type wchar_t = :: std :: os :: raw :: c_int ; pub type __cfloat128 = __BindgenComplex < u128 > ; pub type _Float128 = u128 ; pub type _Float32 = f32 ; pub type _Float64 = f64 ; pub type _Float32x = f64 ; pub type _Float64x = u128 ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct div_t { pub quot : :: std :: os :: raw :: c_int , pub rem : :: std :: os :: raw :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of div_t"] [:: std :: mem :: size_of :: < div_t > () - 8usize] ; ["Alignment of div_t"] [:: std :: mem :: align_of :: < div_t > () - 4usize] ; ["Offset of field: div_t::quot"] [:: std :: mem :: offset_of ! (div_t , quot) - 0usize] ; ["Offset of field: div_t::rem"] [:: std :: mem :: offset_of ! (div_t , rem) - 4usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ldiv_t { pub quot : :: std :: os :: raw :: c_long , pub rem : :: std :: os :: raw :: c_long , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ldiv_t"] [:: std :: mem :: size_of :: < ldiv_t > () - 16usize] ; ["Alignment of ldiv_t"] [:: std :: mem :: align_of :: < ldiv_t > () - 8usize] ; ["Offset of field: ldiv_t::quot"] [:: std :: mem :: offset_of ! (ldiv_t , quot) - 0usize] ; ["Offset of field: ldiv_t::rem"] [:: std :: mem :: offset_of ! (ldiv_t , rem) - 8usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct lldiv_t { pub quot : :: std :: os :: raw :: c_longlong , pub rem : :: std :: os :: raw :: c_longlong , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of lldiv_t"] [:: std :: mem :: size_of :: < lldiv_t > () - 16usize] ; ["Alignment of lldiv_t"] [:: std :: mem :: align_of :: < lldiv_t > () - 8usize] ; ["Offset of field: lldiv_t::quot"] [:: std :: mem :: offset_of ! (lldiv_t , quot) - 0usize] ; ["Offset of field: lldiv_t::rem"] [:: std :: mem :: offset_of ! (lldiv_t , rem) - 8usize] ; } ; unsafe extern "C" { pub fn __ctype_get_mb_cur_max () -> usize ; } unsafe extern "C" { pub fn atof (__nptr : * const :: std :: os :: raw :: c_char) -> f64 ; } unsafe extern "C" { pub fn atoi (__nptr : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn atol (__nptr : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn atoll (__nptr : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn strtod (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char) -> f64 ; } unsafe extern "C" { pub fn strtof (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char) -> f32 ; } unsafe extern "C" { pub fn strtold (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char) -> u128 ; } unsafe extern "C" { pub fn strtol (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn strtoul (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_ulong ; } unsafe extern "C" { pub fn strtoq (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn strtouq (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_ulonglong ; } unsafe extern "C" { pub fn strtoll (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn strtoull (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_ulonglong ; } unsafe extern "C" { pub fn l64a (__n : :: std :: os :: raw :: c_long) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn a64l (__s : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_long ; } pub type __u_char = :: std :: os :: raw :: c_uchar ; pub type __u_short = :: std :: os :: raw :: c_ushort ; pub type __u_int = :: std :: os :: raw :: c_uint ; pub type __u_long = :: std :: os :: raw :: c_ulong ; 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_long ; pub type __uint64_t = :: std :: os :: raw :: c_ulong ; pub type __int_least8_t = __int8_t ; pub type __uint_least8_t = __uint8_t ; pub type __int_least16_t = __int16_t ; pub type __uint_least16_t = __uint16_t ; pub type __int_least32_t = __int32_t ; pub type __uint_least32_t = __uint32_t ; pub type __int_least64_t = __int64_t ; pub type __uint_least64_t = __uint64_t ; pub type __quad_t = :: std :: os :: raw :: c_long ; pub type __u_quad_t = :: std :: os :: raw :: c_ulong ; pub type __intmax_t = :: std :: os :: raw :: c_long ; pub type __uintmax_t = :: std :: os :: raw :: c_ulong ; pub type __dev_t = :: std :: os :: raw :: c_ulong ; pub type __uid_t = :: std :: os :: raw :: c_uint ; pub type __gid_t = :: std :: os :: raw :: c_uint ; pub type __ino_t = :: std :: os :: raw :: c_ulong ; pub type __ino64_t = :: std :: os :: raw :: c_ulong ; pub type __mode_t = :: std :: os :: raw :: c_uint ; pub type __nlink_t = :: std :: os :: raw :: c_ulong ; pub type __off_t = :: std :: os :: raw :: c_long ; pub type __off64_t = :: std :: os :: raw :: c_long ; pub type __pid_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [:: std :: os :: raw :: c_int ; 2usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __fsid_t"] [:: std :: mem :: size_of :: < __fsid_t > () - 8usize] ; ["Alignment of __fsid_t"] [:: std :: mem :: align_of :: < __fsid_t > () - 4usize] ; ["Offset of field: __fsid_t::__val"] [:: std :: mem :: offset_of ! (__fsid_t , __val) - 0usize] ; } ; pub type __clock_t = :: std :: os :: raw :: c_long ; pub type __rlim_t = :: std :: os :: raw :: c_ulong ; pub type __rlim64_t = :: std :: os :: raw :: c_ulong ; pub type __id_t = :: std :: os :: raw :: c_uint ; pub type __time_t = :: std :: os :: raw :: c_long ; pub type __useconds_t = :: std :: os :: raw :: c_uint ; pub type __suseconds_t = :: std :: os :: raw :: c_long ; pub type __suseconds64_t = :: std :: os :: raw :: c_long ; pub type __daddr_t = :: std :: os :: raw :: c_int ; pub type __key_t = :: std :: os :: raw :: c_int ; pub type __clockid_t = :: std :: os :: raw :: c_int ; pub type __timer_t = * mut :: std :: os :: raw :: c_void ; pub type __blksize_t = :: std :: os :: raw :: c_long ; pub type __blkcnt_t = :: std :: os :: raw :: c_long ; pub type __blkcnt64_t = :: std :: os :: raw :: c_long ; pub type __fsblkcnt_t = :: std :: os :: raw :: c_ulong ; pub type __fsblkcnt64_t = :: std :: os :: raw :: c_ulong ; pub type __fsfilcnt_t = :: std :: os :: raw :: c_ulong ; pub type __fsfilcnt64_t = :: std :: os :: raw :: c_ulong ; pub type __fsword_t = :: std :: os :: raw :: c_long ; pub type __ssize_t = :: std :: os :: raw :: c_long ; pub type __syscall_slong_t = :: std :: os :: raw :: c_long ; pub type __syscall_ulong_t = :: std :: os :: raw :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut :: std :: os :: raw :: c_char ; pub type __intptr_t = :: std :: os :: raw :: c_long ; pub type __socklen_t = :: std :: os :: raw :: c_uint ; pub type __sig_atomic_t = :: std :: os :: raw :: c_int ; pub type u_char = __u_char ; pub type u_short = __u_short ; pub type u_int = __u_int ; pub type u_long = __u_long ; pub type quad_t = __quad_t ; pub type u_quad_t = __u_quad_t ; pub type fsid_t = __fsid_t ; pub type loff_t = __loff_t ; pub type ino_t = __ino_t ; pub type dev_t = __dev_t ; pub type gid_t = __gid_t ; pub type mode_t = __mode_t ; pub type nlink_t = __nlink_t ; pub type uid_t = __uid_t ; pub type off_t = __off_t ; pub type pid_t = __pid_t ; pub type id_t = __id_t ; pub type daddr_t = __daddr_t ; pub type caddr_t = __caddr_t ; pub type key_t = __key_t ; pub type clock_t = __clock_t ; pub type clockid_t = __clockid_t ; pub type time_t = __time_t ; pub type timer_t = __timer_t ; pub type ulong = :: std :: os :: raw :: c_ulong ; pub type ushort = :: std :: os :: raw :: c_ushort ; pub type uint = :: std :: os :: raw :: c_uint ; pub type u_int8_t = __uint8_t ; pub type u_int16_t = __uint16_t ; pub type u_int32_t = __uint32_t ; pub type u_int64_t = __uint64_t ; pub type register_t = :: std :: os :: raw :: c_long ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __sigset_t { pub __val : [:: std :: os :: raw :: c_ulong ; 16usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __sigset_t"] [:: std :: mem :: size_of :: < __sigset_t > () - 128usize] ; ["Alignment of __sigset_t"] [:: std :: mem :: align_of :: < __sigset_t > () - 8usize] ; ["Offset of field: __sigset_t::__val"] [:: std :: mem :: offset_of ! (__sigset_t , __val) - 0usize] ; } ; pub type sigset_t = __sigset_t ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct timeval { pub tv_sec : __time_t , pub tv_usec : __suseconds_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of timeval"] [:: std :: mem :: size_of :: < timeval > () - 16usize] ; ["Alignment of timeval"] [:: std :: mem :: align_of :: < timeval > () - 8usize] ; ["Offset of field: timeval::tv_sec"] [:: std :: mem :: offset_of ! (timeval , tv_sec) - 0usize] ; ["Offset of field: timeval::tv_usec"] [:: std :: mem :: offset_of ! (timeval , tv_usec) - 8usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct timespec { pub tv_sec : __time_t , pub tv_nsec : __syscall_slong_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of timespec"] [:: std :: mem :: size_of :: < timespec > () - 16usize] ; ["Alignment of timespec"] [:: std :: mem :: align_of :: < timespec > () - 8usize] ; ["Offset of field: timespec::tv_sec"] [:: std :: mem :: offset_of ! (timespec , tv_sec) - 0usize] ; ["Offset of field: timespec::tv_nsec"] [:: std :: mem :: offset_of ! (timespec , tv_nsec) - 8usize] ; } ; pub type suseconds_t = __suseconds_t ; pub type __fd_mask = :: std :: os :: raw :: c_long ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct fd_set { pub __fds_bits : [__fd_mask ; 16usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of fd_set"] [:: std :: mem :: size_of :: < fd_set > () - 128usize] ; ["Alignment of fd_set"] [:: std :: mem :: align_of :: < fd_set > () - 8usize] ; ["Offset of field: fd_set::__fds_bits"] [:: std :: mem :: offset_of ! (fd_set , __fds_bits) - 0usize] ; } ; pub type fd_mask = __fd_mask ; unsafe extern "C" { pub fn select (__nfds : :: std :: os :: raw :: c_int , __readfds : * mut fd_set , __writefds : * mut fd_set , __exceptfds : * mut fd_set , __timeout : * mut timeval) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn pselect (__nfds : :: std :: os :: raw :: c_int , __readfds : * mut fd_set , __writefds : * mut fd_set , __exceptfds : * mut fd_set , __timeout : * const timespec , __sigmask : * const __sigset_t) -> :: std :: os :: raw :: c_int ; } pub type blksize_t = __blksize_t ; pub type blkcnt_t = __blkcnt_t ; pub type fsblkcnt_t = __fsblkcnt_t ; pub type fsfilcnt_t = __fsfilcnt_t ; # [repr (C)] # [derive (Copy , Clone)] pub union __atomic_wide_counter { pub __value64 : :: std :: os :: raw :: c_ulonglong , pub __value32 : __atomic_wide_counter__bindgen_ty_1 , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __atomic_wide_counter__bindgen_ty_1 { pub __low : :: std :: os :: raw :: c_uint , pub __high : :: std :: os :: raw :: c_uint , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __atomic_wide_counter__bindgen_ty_1"] [:: std :: mem :: size_of :: < __atomic_wide_counter__bindgen_ty_1 > () - 8usize] ; ["Alignment of __atomic_wide_counter__bindgen_ty_1"] [:: std :: mem :: align_of :: < __atomic_wide_counter__bindgen_ty_1 > () - 4usize] ; ["Offset of field: __atomic_wide_counter__bindgen_ty_1::__low"] [:: std :: mem :: offset_of ! (__atomic_wide_counter__bindgen_ty_1 , __low) - 0usize] ; ["Offset of field: __atomic_wide_counter__bindgen_ty_1::__high"] [:: std :: mem :: offset_of ! (__atomic_wide_counter__bindgen_ty_1 , __high) - 4usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __atomic_wide_counter"] [:: std :: mem :: size_of :: < __atomic_wide_counter > () - 8usize] ; ["Alignment of __atomic_wide_counter"] [:: std :: mem :: align_of :: < __atomic_wide_counter > () - 8usize] ; ["Offset of field: __atomic_wide_counter::__value64"] [:: std :: mem :: offset_of ! (__atomic_wide_counter , __value64) - 0usize] ; ["Offset of field: __atomic_wide_counter::__value32"] [:: std :: mem :: offset_of ! (__atomic_wide_counter , __value32) - 0usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_internal_list { pub __prev : * mut __pthread_internal_list , pub __next : * mut __pthread_internal_list , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __pthread_internal_list"] [:: std :: mem :: size_of :: < __pthread_internal_list > () - 16usize] ; ["Alignment of __pthread_internal_list"] [:: std :: mem :: align_of :: < __pthread_internal_list > () - 8usize] ; ["Offset of field: __pthread_internal_list::__prev"] [:: std :: mem :: offset_of ! (__pthread_internal_list , __prev) - 0usize] ; ["Offset of field: __pthread_internal_list::__next"] [:: std :: mem :: offset_of ! (__pthread_internal_list , __next) - 8usize] ; } ; pub type __pthread_list_t = __pthread_internal_list ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_internal_slist { pub __next : * mut __pthread_internal_slist , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __pthread_internal_slist"] [:: std :: mem :: size_of :: < __pthread_internal_slist > () - 8usize] ; ["Alignment of __pthread_internal_slist"] [:: std :: mem :: align_of :: < __pthread_internal_slist > () - 8usize] ; ["Offset of field: __pthread_internal_slist::__next"] [:: std :: mem :: offset_of ! (__pthread_internal_slist , __next) - 0usize] ; } ; pub type __pthread_slist_t = __pthread_internal_slist ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_mutex_s { pub __lock : :: std :: os :: raw :: c_int , pub __count : :: std :: os :: raw :: c_uint , pub __owner : :: std :: os :: raw :: c_int , pub __nusers : :: std :: os :: raw :: c_uint , pub __kind : :: std :: os :: raw :: c_int , pub __spins : :: std :: os :: raw :: c_short , pub __unused : :: std :: os :: raw :: c_short , pub __list : __pthread_list_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __pthread_mutex_s"] [:: std :: mem :: size_of :: < __pthread_mutex_s > () - 40usize] ; ["Alignment of __pthread_mutex_s"] [:: std :: mem :: align_of :: < __pthread_mutex_s > () - 8usize] ; ["Offset of field: __pthread_mutex_s::__lock"] [:: std :: mem :: offset_of ! (__pthread_mutex_s , __lock) - 0usize] ; ["Offset of field: __pthread_mutex_s::__count"] [:: std :: mem :: offset_of ! (__pthread_mutex_s , __count) - 4usize] ; ["Offset of field: __pthread_mutex_s::__owner"] [:: std :: mem :: offset_of ! (__pthread_mutex_s , __owner) - 8usize] ; ["Offset of field: __pthread_mutex_s::__nusers"] [:: std :: mem :: offset_of ! (__pthread_mutex_s , __nusers) - 12usize] ; ["Offset of field: __pthread_mutex_s::__kind"] [:: std :: mem :: offset_of ! (__pthread_mutex_s , __kind) - 16usize] ; ["Offset of field: __pthread_mutex_s::__spins"] [:: std :: mem :: offset_of ! (__pthread_mutex_s , __spins) - 20usize] ; ["Offset of field: __pthread_mutex_s::__unused"] [:: std :: mem :: offset_of ! (__pthread_mutex_s , __unused) - 22usize] ; ["Offset of field: __pthread_mutex_s::__list"] [:: std :: mem :: offset_of ! (__pthread_mutex_s , __list) - 24usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_rwlock_arch_t { pub __readers : :: std :: os :: raw :: c_uint , pub __writers : :: std :: os :: raw :: c_uint , pub __wrphase_futex : :: std :: os :: raw :: c_uint , pub __writers_futex : :: std :: os :: raw :: c_uint , pub __pad3 : :: std :: os :: raw :: c_uint , pub __pad4 : :: std :: os :: raw :: c_uint , pub __cur_writer : :: std :: os :: raw :: c_int , pub __shared : :: std :: os :: raw :: c_int , pub __pad1 : :: std :: os :: raw :: c_ulong , pub __pad2 : :: std :: os :: raw :: c_ulong , pub __flags : :: std :: os :: raw :: c_uint , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __pthread_rwlock_arch_t"] [:: std :: mem :: size_of :: < __pthread_rwlock_arch_t > () - 56usize] ; ["Alignment of __pthread_rwlock_arch_t"] [:: std :: mem :: align_of :: < __pthread_rwlock_arch_t > () - 8usize] ; ["Offset of field: __pthread_rwlock_arch_t::__readers"] [:: std :: mem :: offset_of ! (__pthread_rwlock_arch_t , __readers) - 0usize] ; ["Offset of field: __pthread_rwlock_arch_t::__writers"] [:: std :: mem :: offset_of ! (__pthread_rwlock_arch_t , __writers) - 4usize] ; ["Offset of field: __pthread_rwlock_arch_t::__wrphase_futex"] [:: std :: mem :: offset_of ! (__pthread_rwlock_arch_t , __wrphase_futex) - 8usize] ; ["Offset of field: __pthread_rwlock_arch_t::__writers_futex"] [:: std :: mem :: offset_of ! (__pthread_rwlock_arch_t , __writers_futex) - 12usize] ; ["Offset of field: __pthread_rwlock_arch_t::__pad3"] [:: std :: mem :: offset_of ! (__pthread_rwlock_arch_t , __pad3) - 16usize] ; ["Offset of field: __pthread_rwlock_arch_t::__pad4"] [:: std :: mem :: offset_of ! (__pthread_rwlock_arch_t , __pad4) - 20usize] ; ["Offset of field: __pthread_rwlock_arch_t::__cur_writer"] [:: std :: mem :: offset_of ! (__pthread_rwlock_arch_t , __cur_writer) - 24usize] ; ["Offset of field: __pthread_rwlock_arch_t::__shared"] [:: std :: mem :: offset_of ! (__pthread_rwlock_arch_t , __shared) - 28usize] ; ["Offset of field: __pthread_rwlock_arch_t::__pad1"] [:: std :: mem :: offset_of ! (__pthread_rwlock_arch_t , __pad1) - 32usize] ; ["Offset of field: __pthread_rwlock_arch_t::__pad2"] [:: std :: mem :: offset_of ! (__pthread_rwlock_arch_t , __pad2) - 40usize] ; ["Offset of field: __pthread_rwlock_arch_t::__flags"] [:: std :: mem :: offset_of ! (__pthread_rwlock_arch_t , __flags) - 48usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub struct __pthread_cond_s { pub __wseq : __atomic_wide_counter , pub __g1_start : __atomic_wide_counter , pub __g_size : [:: std :: os :: raw :: c_uint ; 2usize] , pub __g1_orig_size : :: std :: os :: raw :: c_uint , pub __wrefs : :: std :: os :: raw :: c_uint , pub __g_signals : [:: std :: os :: raw :: c_uint ; 2usize] , pub __unused_initialized_1 : :: std :: os :: raw :: c_uint , pub __unused_initialized_2 : :: std :: os :: raw :: c_uint , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __pthread_cond_s"] [:: std :: mem :: size_of :: < __pthread_cond_s > () - 48usize] ; ["Alignment of __pthread_cond_s"] [:: std :: mem :: align_of :: < __pthread_cond_s > () - 8usize] ; ["Offset of field: __pthread_cond_s::__wseq"] [:: std :: mem :: offset_of ! (__pthread_cond_s , __wseq) - 0usize] ; ["Offset of field: __pthread_cond_s::__g1_start"] [:: std :: mem :: offset_of ! (__pthread_cond_s , __g1_start) - 8usize] ; ["Offset of field: __pthread_cond_s::__g_size"] [:: std :: mem :: offset_of ! (__pthread_cond_s , __g_size) - 16usize] ; ["Offset of field: __pthread_cond_s::__g1_orig_size"] [:: std :: mem :: offset_of ! (__pthread_cond_s , __g1_orig_size) - 24usize] ; ["Offset of field: __pthread_cond_s::__wrefs"] [:: std :: mem :: offset_of ! (__pthread_cond_s , __wrefs) - 28usize] ; ["Offset of field: __pthread_cond_s::__g_signals"] [:: std :: mem :: offset_of ! (__pthread_cond_s , __g_signals) - 32usize] ; ["Offset of field: __pthread_cond_s::__unused_initialized_1"] [:: std :: mem :: offset_of ! (__pthread_cond_s , __unused_initialized_1) - 40usize] ; ["Offset of field: __pthread_cond_s::__unused_initialized_2"] [:: std :: mem :: offset_of ! (__pthread_cond_s , __unused_initialized_2) - 44usize] ; } ; pub type __tss_t = :: std :: os :: raw :: c_uint ; pub type __thrd_t = :: std :: os :: raw :: c_ulong ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __once_flag { pub __data : :: std :: os :: raw :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __once_flag"] [:: std :: mem :: size_of :: < __once_flag > () - 4usize] ; ["Alignment of __once_flag"] [:: std :: mem :: align_of :: < __once_flag > () - 4usize] ; ["Offset of field: __once_flag::__data"] [:: std :: mem :: offset_of ! (__once_flag , __data) - 0usize] ; } ; pub type pthread_t = :: std :: os :: raw :: c_ulong ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_mutexattr_t { pub __size : [:: std :: os :: raw :: c_char ; 4usize] , pub __align : :: std :: os :: raw :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_mutexattr_t"] [:: std :: mem :: size_of :: < pthread_mutexattr_t > () - 4usize] ; ["Alignment of pthread_mutexattr_t"] [:: std :: mem :: align_of :: < pthread_mutexattr_t > () - 4usize] ; ["Offset of field: pthread_mutexattr_t::__size"] [:: std :: mem :: offset_of ! (pthread_mutexattr_t , __size) - 0usize] ; ["Offset of field: pthread_mutexattr_t::__align"] [:: std :: mem :: offset_of ! (pthread_mutexattr_t , __align) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_condattr_t { pub __size : [:: std :: os :: raw :: c_char ; 4usize] , pub __align : :: std :: os :: raw :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_condattr_t"] [:: std :: mem :: size_of :: < pthread_condattr_t > () - 4usize] ; ["Alignment of pthread_condattr_t"] [:: std :: mem :: align_of :: < pthread_condattr_t > () - 4usize] ; ["Offset of field: pthread_condattr_t::__size"] [:: std :: mem :: offset_of ! (pthread_condattr_t , __size) - 0usize] ; ["Offset of field: pthread_condattr_t::__align"] [:: std :: mem :: offset_of ! (pthread_condattr_t , __align) - 0usize] ; } ; pub type pthread_key_t = :: std :: os :: raw :: c_uint ; pub type pthread_once_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_attr_t { pub __size : [:: std :: os :: raw :: c_char ; 56usize] , pub __align : :: std :: os :: raw :: c_long , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_attr_t"] [:: std :: mem :: size_of :: < pthread_attr_t > () - 56usize] ; ["Alignment of pthread_attr_t"] [:: std :: mem :: align_of :: < pthread_attr_t > () - 8usize] ; ["Offset of field: pthread_attr_t::__size"] [:: std :: mem :: offset_of ! (pthread_attr_t , __size) - 0usize] ; ["Offset of field: pthread_attr_t::__align"] [:: std :: mem :: offset_of ! (pthread_attr_t , __align) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_mutex_t { pub __data : __pthread_mutex_s , pub __size : [:: std :: os :: raw :: c_char ; 40usize] , pub __align : :: std :: os :: raw :: c_long , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_mutex_t"] [:: std :: mem :: size_of :: < pthread_mutex_t > () - 40usize] ; ["Alignment of pthread_mutex_t"] [:: std :: mem :: align_of :: < pthread_mutex_t > () - 8usize] ; ["Offset of field: pthread_mutex_t::__data"] [:: std :: mem :: offset_of ! (pthread_mutex_t , __data) - 0usize] ; ["Offset of field: pthread_mutex_t::__size"] [:: std :: mem :: offset_of ! (pthread_mutex_t , __size) - 0usize] ; ["Offset of field: pthread_mutex_t::__align"] [:: std :: mem :: offset_of ! (pthread_mutex_t , __align) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_cond_t { pub __data : __pthread_cond_s , pub __size : [:: std :: os :: raw :: c_char ; 48usize] , pub __align : :: std :: os :: raw :: c_longlong , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_cond_t"] [:: std :: mem :: size_of :: < pthread_cond_t > () - 48usize] ; ["Alignment of pthread_cond_t"] [:: std :: mem :: align_of :: < pthread_cond_t > () - 8usize] ; ["Offset of field: pthread_cond_t::__data"] [:: std :: mem :: offset_of ! (pthread_cond_t , __data) - 0usize] ; ["Offset of field: pthread_cond_t::__size"] [:: std :: mem :: offset_of ! (pthread_cond_t , __size) - 0usize] ; ["Offset of field: pthread_cond_t::__align"] [:: std :: mem :: offset_of ! (pthread_cond_t , __align) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_rwlock_t { pub __data : __pthread_rwlock_arch_t , pub __size : [:: std :: os :: raw :: c_char ; 56usize] , pub __align : :: std :: os :: raw :: c_long , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_rwlock_t"] [:: std :: mem :: size_of :: < pthread_rwlock_t > () - 56usize] ; ["Alignment of pthread_rwlock_t"] [:: std :: mem :: align_of :: < pthread_rwlock_t > () - 8usize] ; ["Offset of field: pthread_rwlock_t::__data"] [:: std :: mem :: offset_of ! (pthread_rwlock_t , __data) - 0usize] ; ["Offset of field: pthread_rwlock_t::__size"] [:: std :: mem :: offset_of ! (pthread_rwlock_t , __size) - 0usize] ; ["Offset of field: pthread_rwlock_t::__align"] [:: std :: mem :: offset_of ! (pthread_rwlock_t , __align) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_rwlockattr_t { pub __size : [:: std :: os :: raw :: c_char ; 8usize] , pub __align : :: std :: os :: raw :: c_long , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_rwlockattr_t"] [:: std :: mem :: size_of :: < pthread_rwlockattr_t > () - 8usize] ; ["Alignment of pthread_rwlockattr_t"] [:: std :: mem :: align_of :: < pthread_rwlockattr_t > () - 8usize] ; ["Offset of field: pthread_rwlockattr_t::__size"] [:: std :: mem :: offset_of ! (pthread_rwlockattr_t , __size) - 0usize] ; ["Offset of field: pthread_rwlockattr_t::__align"] [:: std :: mem :: offset_of ! (pthread_rwlockattr_t , __align) - 0usize] ; } ; pub type pthread_spinlock_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_barrier_t { pub __size : [:: std :: os :: raw :: c_char ; 32usize] , pub __align : :: std :: os :: raw :: c_long , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_barrier_t"] [:: std :: mem :: size_of :: < pthread_barrier_t > () - 32usize] ; ["Alignment of pthread_barrier_t"] [:: std :: mem :: align_of :: < pthread_barrier_t > () - 8usize] ; ["Offset of field: pthread_barrier_t::__size"] [:: std :: mem :: offset_of ! (pthread_barrier_t , __size) - 0usize] ; ["Offset of field: pthread_barrier_t::__align"] [:: std :: mem :: offset_of ! (pthread_barrier_t , __align) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_barrierattr_t { pub __size : [:: std :: os :: raw :: c_char ; 4usize] , pub __align : :: std :: os :: raw :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_barrierattr_t"] [:: std :: mem :: size_of :: < pthread_barrierattr_t > () - 4usize] ; ["Alignment of pthread_barrierattr_t"] [:: std :: mem :: align_of :: < pthread_barrierattr_t > () - 4usize] ; ["Offset of field: pthread_barrierattr_t::__size"] [:: std :: mem :: offset_of ! (pthread_barrierattr_t , __size) - 0usize] ; ["Offset of field: pthread_barrierattr_t::__align"] [:: std :: mem :: offset_of ! (pthread_barrierattr_t , __align) - 0usize] ; } ; unsafe extern "C" { pub fn random () -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn srandom (__seed : :: std :: os :: raw :: c_uint) ; } unsafe extern "C" { pub fn initstate (__seed : :: std :: os :: raw :: c_uint , __statebuf : * mut :: std :: os :: raw :: c_char , __statelen : usize) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn setstate (__statebuf : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct random_data { pub fptr : * mut i32 , pub rptr : * mut i32 , pub state : * mut i32 , pub rand_type : :: std :: os :: raw :: c_int , pub rand_deg : :: std :: os :: raw :: c_int , pub rand_sep : :: std :: os :: raw :: c_int , pub end_ptr : * mut i32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of random_data"] [:: std :: mem :: size_of :: < random_data > () - 48usize] ; ["Alignment of random_data"] [:: std :: mem :: align_of :: < random_data > () - 8usize] ; ["Offset of field: random_data::fptr"] [:: std :: mem :: offset_of ! (random_data , fptr) - 0usize] ; ["Offset of field: random_data::rptr"] [:: std :: mem :: offset_of ! (random_data , rptr) - 8usize] ; ["Offset of field: random_data::state"] [:: std :: mem :: offset_of ! (random_data , state) - 16usize] ; ["Offset of field: random_data::rand_type"] [:: std :: mem :: offset_of ! (random_data , rand_type) - 24usize] ; ["Offset of field: random_data::rand_deg"] [:: std :: mem :: offset_of ! (random_data , rand_deg) - 28usize] ; ["Offset of field: random_data::rand_sep"] [:: std :: mem :: offset_of ! (random_data , rand_sep) - 32usize] ; ["Offset of field: random_data::end_ptr"] [:: std :: mem :: offset_of ! (random_data , end_ptr) - 40usize] ; } ; unsafe extern "C" { pub fn random_r (__buf : * mut random_data , __result : * mut i32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn srandom_r (__seed : :: std :: os :: raw :: c_uint , __buf : * mut random_data) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn initstate_r (__seed : :: std :: os :: raw :: c_uint , __statebuf : * mut :: std :: os :: raw :: c_char , __statelen : usize , __buf : * mut random_data) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn setstate_r (__statebuf : * mut :: std :: os :: raw :: c_char , __buf : * mut random_data) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn rand () -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn srand (__seed : :: std :: os :: raw :: c_uint) ; } unsafe extern "C" { pub fn rand_r (__seed : * mut :: std :: os :: raw :: c_uint) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn drand48 () -> f64 ; } unsafe extern "C" { pub fn erand48 (__xsubi : * mut :: std :: os :: raw :: c_ushort) -> f64 ; } unsafe extern "C" { pub fn lrand48 () -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn nrand48 (__xsubi : * mut :: std :: os :: raw :: c_ushort) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn mrand48 () -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn jrand48 (__xsubi : * mut :: std :: os :: raw :: c_ushort) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn srand48 (__seedval : :: std :: os :: raw :: c_long) ; } unsafe extern "C" { pub fn seed48 (__seed16v : * mut :: std :: os :: raw :: c_ushort) -> * mut :: std :: os :: raw :: c_ushort ; } unsafe extern "C" { pub fn lcong48 (__param : * mut :: std :: os :: raw :: c_ushort) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct drand48_data { pub __x : [:: std :: os :: raw :: c_ushort ; 3usize] , pub __old_x : [:: std :: os :: raw :: c_ushort ; 3usize] , pub __c : :: std :: os :: raw :: c_ushort , pub __init : :: std :: os :: raw :: c_ushort , pub __a : :: std :: os :: raw :: c_ulonglong , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of drand48_data"] [:: std :: mem :: size_of :: < drand48_data > () - 24usize] ; ["Alignment of drand48_data"] [:: std :: mem :: align_of :: < drand48_data > () - 8usize] ; ["Offset of field: drand48_data::__x"] [:: std :: mem :: offset_of ! (drand48_data , __x) - 0usize] ; ["Offset of field: drand48_data::__old_x"] [:: std :: mem :: offset_of ! (drand48_data , __old_x) - 6usize] ; ["Offset of field: drand48_data::__c"] [:: std :: mem :: offset_of ! (drand48_data , __c) - 12usize] ; ["Offset of field: drand48_data::__init"] [:: std :: mem :: offset_of ! (drand48_data , __init) - 14usize] ; ["Offset of field: drand48_data::__a"] [:: std :: mem :: offset_of ! (drand48_data , __a) - 16usize] ; } ; unsafe extern "C" { pub fn drand48_r (__buffer : * mut drand48_data , __result : * mut f64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn erand48_r (__xsubi : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data , __result : * mut f64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn lrand48_r (__buffer : * mut drand48_data , __result : * mut :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn nrand48_r (__xsubi : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data , __result : * mut :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mrand48_r (__buffer : * mut drand48_data , __result : * mut :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn jrand48_r (__xsubi : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data , __result : * mut :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn srand48_r (__seedval : :: std :: os :: raw :: c_long , __buffer : * mut drand48_data) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn seed48_r (__seed16v : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn lcong48_r (__param : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn arc4random () -> __uint32_t ; } unsafe extern "C" { pub fn arc4random_buf (__buf : * mut :: std :: os :: raw :: c_void , __size : usize) ; } unsafe extern "C" { pub fn arc4random_uniform (__upper_bound : __uint32_t) -> __uint32_t ; } unsafe extern "C" { pub fn malloc (__size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } unsafe extern "C" { pub fn calloc (__nmemb : :: std :: os :: raw :: c_ulong , __size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } unsafe extern "C" { pub fn realloc (__ptr : * mut :: std :: os :: raw :: c_void , __size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } unsafe extern "C" { pub fn free (__ptr : * mut :: std :: os :: raw :: c_void) ; } unsafe extern "C" { pub fn reallocarray (__ptr : * mut :: std :: os :: raw :: c_void , __nmemb : usize , __size : usize) -> * mut :: std :: os :: raw :: c_void ; } unsafe extern "C" { pub fn alloca (__size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } unsafe extern "C" { pub fn valloc (__size : usize) -> * mut :: std :: os :: raw :: c_void ; } unsafe extern "C" { pub fn posix_memalign (__memptr : * mut * mut :: std :: os :: raw :: c_void , __alignment : usize , __size : usize) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn aligned_alloc (__alignment : :: std :: os :: raw :: c_ulong , __size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } unsafe extern "C" { pub fn abort () -> ! ; } unsafe extern "C" { pub fn atexit (__func : :: std :: option :: Option < unsafe extern "C" fn () >) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn at_quick_exit (__func : :: std :: option :: Option < unsafe extern "C" fn () >) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn on_exit (__func : :: std :: option :: Option < unsafe extern "C" fn (__status : :: std :: os :: raw :: c_int , __arg : * mut :: std :: os :: raw :: c_void) > , __arg : * mut :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn exit (__status : :: std :: os :: raw :: c_int) -> ! ; } unsafe extern "C" { pub fn quick_exit (__status : :: std :: os :: raw :: c_int) -> ! ; } unsafe extern "C" { pub fn _Exit (__status : :: std :: os :: raw :: c_int) -> ! ; } unsafe extern "C" { pub fn getenv (__name : * const :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn putenv (__string : * mut :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn setenv (__name : * const :: std :: os :: raw :: c_char , __value : * const :: std :: os :: raw :: c_char , __replace : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn unsetenv (__name : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn clearenv () -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mktemp (__template : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn mkstemp (__template : * mut :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mkstemps (__template : * mut :: std :: os :: raw :: c_char , __suffixlen : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mkdtemp (__template : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn system (__command : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn realpath (__name : * const :: std :: os :: raw :: c_char , __resolved : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } pub type __compar_fn_t = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * const :: std :: os :: raw :: c_void , arg2 : * const :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int > ; unsafe extern "C" { pub fn bsearch (__key : * const :: std :: os :: raw :: c_void , __base : * const :: std :: os :: raw :: c_void , __nmemb : usize , __size : usize , __compar : __compar_fn_t) -> * mut :: std :: os :: raw :: c_void ; } unsafe extern "C" { pub fn qsort (__base : * mut :: std :: os :: raw :: c_void , __nmemb : usize , __size : usize , __compar : __compar_fn_t) ; } unsafe extern "C" { pub fn abs (__x : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn labs (__x : :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn llabs (__x : :: std :: os :: raw :: c_longlong) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn div (__numer : :: std :: os :: raw :: c_int , __denom : :: std :: os :: raw :: c_int) -> div_t ; } unsafe extern "C" { pub fn ldiv (__numer : :: std :: os :: raw :: c_long , __denom : :: std :: os :: raw :: c_long) -> ldiv_t ; } unsafe extern "C" { pub fn lldiv (__numer : :: std :: os :: raw :: c_longlong , __denom : :: std :: os :: raw :: c_longlong) -> lldiv_t ; } unsafe extern "C" { pub fn ecvt (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn fcvt (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn gcvt (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn qecvt (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn qfcvt (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn qgcvt (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn ecvt_r (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char , __len : usize) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn fcvt_r (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char , __len : usize) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn qecvt_r (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char , __len : usize) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn qfcvt_r (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char , __len : usize) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mblen (__s : * const :: std :: os :: raw :: c_char , __n : usize) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mbtowc (__pwc : * mut wchar_t , __s : * const :: std :: os :: raw :: c_char , __n : usize) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn wctomb (__s : * mut :: std :: os :: raw :: c_char , __wchar : wchar_t) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mbstowcs (__pwcs : * mut wchar_t , __s : * const :: std :: os :: raw :: c_char , __n : usize) -> usize ; } unsafe extern "C" { pub fn wcstombs (__s : * mut :: std :: os :: raw :: c_char , __pwcs : * const wchar_t , __n : usize) -> usize ; } unsafe extern "C" { pub fn rpmatch (__response : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getsubopt (__optionp : * mut * mut :: std :: os :: raw :: c_char , __tokens : * const * mut :: std :: os :: raw :: c_char , __valuep : * mut * mut :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getloadavg (__loadavg : * mut f64 , __nelem : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } # [repr (C)] # [repr (align (16))] # [derive (Debug , Copy , Clone)] pub struct max_align_t { pub __clang_max_align_nonce1 : :: std :: os :: raw :: c_longlong , pub __bindgen_padding_0 : u64 , pub __clang_max_align_nonce2 : u128 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of max_align_t"] [:: std :: mem :: size_of :: < max_align_t > () - 32usize] ; ["Alignment of max_align_t"] [:: std :: mem :: align_of :: < max_align_t > () - 16usize] ; ["Offset of field: max_align_t::__clang_max_align_nonce1"] [:: std :: mem :: offset_of ! (max_align_t , __clang_max_align_nonce1) - 0usize] ; ["Offset of field: max_align_t::__clang_max_align_nonce2"] [:: std :: mem :: offset_of ! (max_align_t , __clang_max_align_nonce2) - 16usize] ; } ; pub type int_least8_t = __int_least8_t ; pub type int_least16_t = __int_least16_t ; pub type int_least32_t = __int_least32_t ; pub type int_least64_t = __int_least64_t ; pub type uint_least8_t = __uint_least8_t ; pub type uint_least16_t = __uint_least16_t ; pub type uint_least32_t = __uint_least32_t ; pub type uint_least64_t = __uint_least64_t ; pub type int_fast8_t = :: std :: os :: raw :: c_schar ; pub type int_fast16_t = :: std :: os :: raw :: c_long ; pub type int_fast32_t = :: std :: os :: raw :: c_long ; pub type int_fast64_t = :: std :: os :: raw :: c_long ; pub type uint_fast8_t = :: std :: os :: raw :: c_uchar ; pub type uint_fast16_t = :: std :: os :: raw :: c_ulong ; pub type uint_fast32_t = :: std :: os :: raw :: c_ulong ; pub type uint_fast64_t = :: std :: os :: raw :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub type __gwchar_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct imaxdiv_t { pub quot : :: std :: os :: raw :: c_long , pub rem : :: std :: os :: raw :: c_long , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of imaxdiv_t"] [:: std :: mem :: size_of :: < imaxdiv_t > () - 16usize] ; ["Alignment of imaxdiv_t"] [:: std :: mem :: align_of :: < imaxdiv_t > () - 8usize] ; ["Offset of field: imaxdiv_t::quot"] [:: std :: mem :: offset_of ! (imaxdiv_t , quot) - 0usize] ; ["Offset of field: imaxdiv_t::rem"] [:: std :: mem :: offset_of ! (imaxdiv_t , rem) - 8usize] ; } ; unsafe extern "C" { pub fn imaxabs (__n : intmax_t) -> intmax_t ; } unsafe extern "C" { pub fn imaxdiv (__numer : intmax_t , __denom : intmax_t) -> imaxdiv_t ; } unsafe extern "C" { pub fn strtoimax (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> intmax_t ; } unsafe extern "C" { pub fn strtoumax (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> uintmax_t ; } unsafe extern "C" { pub fn wcstoimax (__nptr : * const __gwchar_t , __endptr : * mut * mut __gwchar_t , __base : :: std :: os :: raw :: c_int) -> intmax_t ; } unsafe extern "C" { pub fn wcstoumax (__nptr : * const __gwchar_t , __endptr : * mut * mut __gwchar_t , __base : :: std :: os :: raw :: c_int) -> uintmax_t ; } # [doc = "=============================================================================\n                      Compiler and Platform Features\n============================================================================="] pub type i8_ = i8 ; pub type u8_ = u8 ; pub type i16_ = i16 ; pub type u16_ = u16 ; pub type i32_ = i32 ; pub type u32_ = u32 ; pub type i64_ = i64 ; pub type u64_ = u64 ; pub type f32_ = f32 ; pub type f64_ = f64 ; # [doc = "=============================================================================\n                               Xoroshiro 128\n============================================================================="] # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Xoroshiro { pub lo : u64 , pub hi : u64 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Xoroshiro"] [:: std :: mem :: size_of :: < Xoroshiro > () - 16usize] ; ["Alignment of Xoroshiro"] [:: std :: mem :: align_of :: < Xoroshiro > () - 8usize] ; ["Offset of field: Xoroshiro::lo"] [:: std :: mem :: offset_of ! (Xoroshiro , lo) - 0usize] ; ["Offset of field: Xoroshiro::hi"] [:: std :: mem :: offset_of ! (Xoroshiro , hi) - 8usize] ; } ; pub type float_t = f32 ; pub type double_t = f64 ; unsafe extern "C" { pub fn __fpclassify (__value : f64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __signbit (__value : f64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __isinf (__value : f64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __finite (__value : f64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __isnan (__value : f64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __iseqsig (__x : f64 , __y : f64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __issignaling (__value : f64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn acos (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __acos (__x : f64) -> f64 ; } unsafe extern "C" { pub fn asin (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __asin (__x : f64) -> f64 ; } unsafe extern "C" { pub fn atan (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __atan (__x : f64) -> f64 ; } unsafe extern "C" { pub fn atan2 (__y : f64 , __x : f64) -> f64 ; } unsafe extern "C" { pub fn __atan2 (__y : f64 , __x : f64) -> f64 ; } unsafe extern "C" { pub fn cos (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __cos (__x : f64) -> f64 ; } unsafe extern "C" { pub fn sin (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __sin (__x : f64) -> f64 ; } unsafe extern "C" { pub fn tan (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __tan (__x : f64) -> f64 ; } unsafe extern "C" { pub fn cosh (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __cosh (__x : f64) -> f64 ; } unsafe extern "C" { pub fn sinh (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __sinh (__x : f64) -> f64 ; } unsafe extern "C" { pub fn tanh (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __tanh (__x : f64) -> f64 ; } unsafe extern "C" { pub fn acosh (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __acosh (__x : f64) -> f64 ; } unsafe extern "C" { pub fn asinh (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __asinh (__x : f64) -> f64 ; } unsafe extern "C" { pub fn atanh (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __atanh (__x : f64) -> f64 ; } unsafe extern "C" { pub fn exp (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __exp (__x : f64) -> f64 ; } unsafe extern "C" { pub fn frexp (__x : f64 , __exponent : * mut :: std :: os :: raw :: c_int) -> f64 ; } unsafe extern "C" { pub fn __frexp (__x : f64 , __exponent : * mut :: std :: os :: raw :: c_int) -> f64 ; } unsafe extern "C" { pub fn ldexp (__x : f64 , __exponent : :: std :: os :: raw :: c_int) -> f64 ; } unsafe extern "C" { pub fn __ldexp (__x : f64 , __exponent : :: std :: os :: raw :: c_int) -> f64 ; } unsafe extern "C" { pub fn log (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __log (__x : f64) -> f64 ; } unsafe extern "C" { pub fn log10 (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __log10 (__x : f64) -> f64 ; } unsafe extern "C" { pub fn modf (__x : f64 , __iptr : * mut f64) -> f64 ; } unsafe extern "C" { pub fn __modf (__x : f64 , __iptr : * mut f64) -> f64 ; } unsafe extern "C" { pub fn expm1 (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __expm1 (__x : f64) -> f64 ; } unsafe extern "C" { pub fn log1p (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __log1p (__x : f64) -> f64 ; } unsafe extern "C" { pub fn logb (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __logb (__x : f64) -> f64 ; } unsafe extern "C" { pub fn exp2 (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __exp2 (__x : f64) -> f64 ; } unsafe extern "C" { pub fn log2 (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __log2 (__x : f64) -> f64 ; } unsafe extern "C" { pub fn pow (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn __pow (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn sqrt (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __sqrt (__x : f64) -> f64 ; } unsafe extern "C" { pub fn hypot (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn __hypot (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn cbrt (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __cbrt (__x : f64) -> f64 ; } unsafe extern "C" { pub fn ceil (__x : f64) -> f64 ; } unsafe extern "C" { pub fn fabs (__x : f64) -> f64 ; } unsafe extern "C" { pub fn floor (__x : f64) -> f64 ; } unsafe extern "C" { pub fn fmod (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn __fmod (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn isinf (__value : f64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn finite (__value : f64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn drem (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn __drem (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn significand (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __significand (__x : f64) -> f64 ; } unsafe extern "C" { pub fn copysign (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn nan (__tagb : * const :: std :: os :: raw :: c_char) -> f64 ; } unsafe extern "C" { pub fn __nan (__tagb : * const :: std :: os :: raw :: c_char) -> f64 ; } unsafe extern "C" { pub fn isnan (__value : f64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn j0 (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn __j0 (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn j1 (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn __j1 (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn jn (arg1 : :: std :: os :: raw :: c_int , arg2 : f64) -> f64 ; } unsafe extern "C" { pub fn __jn (arg1 : :: std :: os :: raw :: c_int , arg2 : f64) -> f64 ; } unsafe extern "C" { pub fn y0 (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn __y0 (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn y1 (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn __y1 (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn yn (arg1 : :: std :: os :: raw :: c_int , arg2 : f64) -> f64 ; } unsafe extern "C" { pub fn __yn (arg1 : :: std :: os :: raw :: c_int , arg2 : f64) -> f64 ; } unsafe extern "C" { pub fn erf (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn __erf (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn erfc (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn __erfc (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn lgamma (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn __lgamma (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn tgamma (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn __tgamma (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn gamma (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn __gamma (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn lgamma_r (arg1 : f64 , __signgamp : * mut :: std :: os :: raw :: c_int) -> f64 ; } unsafe extern "C" { pub fn __lgamma_r (arg1 : f64 , __signgamp : * mut :: std :: os :: raw :: c_int) -> f64 ; } unsafe extern "C" { pub fn rint (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __rint (__x : f64) -> f64 ; } unsafe extern "C" { pub fn nextafter (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn __nextafter (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn nexttoward (__x : f64 , __y : u128) -> f64 ; } unsafe extern "C" { pub fn __nexttoward (__x : f64 , __y : u128) -> f64 ; } unsafe extern "C" { pub fn remainder (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn __remainder (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn scalbn (__x : f64 , __n : :: std :: os :: raw :: c_int) -> f64 ; } unsafe extern "C" { pub fn __scalbn (__x : f64 , __n : :: std :: os :: raw :: c_int) -> f64 ; } unsafe extern "C" { pub fn ilogb (__x : f64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __ilogb (__x : f64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn scalbln (__x : f64 , __n : :: std :: os :: raw :: c_long) -> f64 ; } unsafe extern "C" { pub fn __scalbln (__x : f64 , __n : :: std :: os :: raw :: c_long) -> f64 ; } unsafe extern "C" { pub fn nearbyint (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __nearbyint (__x : f64) -> f64 ; } unsafe extern "C" { pub fn round (__x : f64) -> f64 ; } unsafe extern "C" { pub fn trunc (__x : f64) -> f64 ; } unsafe extern "C" { pub fn remquo (__x : f64 , __y : f64 , __quo : * mut :: std :: os :: raw :: c_int) -> f64 ; } unsafe extern "C" { pub fn __remquo (__x : f64 , __y : f64 , __quo : * mut :: std :: os :: raw :: c_int) -> f64 ; } unsafe extern "C" { pub fn lrint (__x : f64) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn __lrint (__x : f64) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn llrint (__x : f64) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn __llrint (__x : f64) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn lround (__x : f64) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn __lround (__x : f64) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn llround (__x : f64) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn __llround (__x : f64) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn fdim (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn __fdim (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn fmax (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn fmin (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn fma (__x : f64 , __y : f64 , __z : f64) -> f64 ; } unsafe extern "C" { pub fn __fma (__x : f64 , __y : f64 , __z : f64) -> f64 ; } unsafe extern "C" { pub fn scalb (__x : f64 , __n : f64) -> f64 ; } unsafe extern "C" { pub fn __scalb (__x : f64 , __n : f64) -> f64 ; } unsafe extern "C" { pub fn __fpclassifyf (__value : f32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __signbitf (__value : f32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __isinff (__value : f32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __finitef (__value : f32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __isnanf (__value : f32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __iseqsigf (__x : f32 , __y : f32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __issignalingf (__value : f32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn acosf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __acosf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn asinf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __asinf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn atanf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __atanf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn atan2f (__y : f32 , __x : f32) -> f32 ; } unsafe extern "C" { pub fn __atan2f (__y : f32 , __x : f32) -> f32 ; } unsafe extern "C" { pub fn cosf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __cosf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn sinf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __sinf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn tanf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __tanf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn coshf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __coshf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn sinhf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __sinhf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn tanhf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __tanhf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn acoshf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __acoshf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn asinhf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __asinhf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn atanhf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __atanhf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn expf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __expf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn frexpf (__x : f32 , __exponent : * mut :: std :: os :: raw :: c_int) -> f32 ; } unsafe extern "C" { pub fn __frexpf (__x : f32 , __exponent : * mut :: std :: os :: raw :: c_int) -> f32 ; } unsafe extern "C" { pub fn ldexpf (__x : f32 , __exponent : :: std :: os :: raw :: c_int) -> f32 ; } unsafe extern "C" { pub fn __ldexpf (__x : f32 , __exponent : :: std :: os :: raw :: c_int) -> f32 ; } unsafe extern "C" { pub fn logf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __logf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn log10f (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __log10f (__x : f32) -> f32 ; } unsafe extern "C" { pub fn modff (__x : f32 , __iptr : * mut f32) -> f32 ; } unsafe extern "C" { pub fn __modff (__x : f32 , __iptr : * mut f32) -> f32 ; } unsafe extern "C" { pub fn expm1f (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __expm1f (__x : f32) -> f32 ; } unsafe extern "C" { pub fn log1pf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __log1pf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn logbf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __logbf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn exp2f (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __exp2f (__x : f32) -> f32 ; } unsafe extern "C" { pub fn log2f (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __log2f (__x : f32) -> f32 ; } unsafe extern "C" { pub fn powf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn __powf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn sqrtf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __sqrtf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn hypotf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn __hypotf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn cbrtf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __cbrtf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn ceilf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn fabsf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn floorf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn fmodf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn __fmodf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn isinff (__value : f32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn finitef (__value : f32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn dremf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn __dremf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn significandf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __significandf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn copysignf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn nanf (__tagb : * const :: std :: os :: raw :: c_char) -> f32 ; } unsafe extern "C" { pub fn __nanf (__tagb : * const :: std :: os :: raw :: c_char) -> f32 ; } unsafe extern "C" { pub fn isnanf (__value : f32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn j0f (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn __j0f (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn j1f (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn __j1f (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn jnf (arg1 : :: std :: os :: raw :: c_int , arg2 : f32) -> f32 ; } unsafe extern "C" { pub fn __jnf (arg1 : :: std :: os :: raw :: c_int , arg2 : f32) -> f32 ; } unsafe extern "C" { pub fn y0f (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn __y0f (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn y1f (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn __y1f (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn ynf (arg1 : :: std :: os :: raw :: c_int , arg2 : f32) -> f32 ; } unsafe extern "C" { pub fn __ynf (arg1 : :: std :: os :: raw :: c_int , arg2 : f32) -> f32 ; } unsafe extern "C" { pub fn erff (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn __erff (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn erfcf (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn __erfcf (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn lgammaf (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn __lgammaf (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn tgammaf (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn __tgammaf (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn gammaf (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn __gammaf (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn lgammaf_r (arg1 : f32 , __signgamp : * mut :: std :: os :: raw :: c_int) -> f32 ; } unsafe extern "C" { pub fn __lgammaf_r (arg1 : f32 , __signgamp : * mut :: std :: os :: raw :: c_int) -> f32 ; } unsafe extern "C" { pub fn rintf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __rintf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn nextafterf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn __nextafterf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn nexttowardf (__x : f32 , __y : u128) -> f32 ; } unsafe extern "C" { pub fn __nexttowardf (__x : f32 , __y : u128) -> f32 ; } unsafe extern "C" { pub fn remainderf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn __remainderf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn scalbnf (__x : f32 , __n : :: std :: os :: raw :: c_int) -> f32 ; } unsafe extern "C" { pub fn __scalbnf (__x : f32 , __n : :: std :: os :: raw :: c_int) -> f32 ; } unsafe extern "C" { pub fn ilogbf (__x : f32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __ilogbf (__x : f32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn scalblnf (__x : f32 , __n : :: std :: os :: raw :: c_long) -> f32 ; } unsafe extern "C" { pub fn __scalblnf (__x : f32 , __n : :: std :: os :: raw :: c_long) -> f32 ; } unsafe extern "C" { pub fn nearbyintf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __nearbyintf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn roundf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn truncf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn remquof (__x : f32 , __y : f32 , __quo : * mut :: std :: os :: raw :: c_int) -> f32 ; } unsafe extern "C" { pub fn __remquof (__x : f32 , __y : f32 , __quo : * mut :: std :: os :: raw :: c_int) -> f32 ; } unsafe extern "C" { pub fn lrintf (__x : f32) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn __lrintf (__x : f32) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn llrintf (__x : f32) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn __llrintf (__x : f32) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn lroundf (__x : f32) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn __lroundf (__x : f32) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn llroundf (__x : f32) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn __llroundf (__x : f32) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn fdimf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn __fdimf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn fmaxf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn fminf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn fmaf (__x : f32 , __y : f32 , __z : f32) -> f32 ; } unsafe extern "C" { pub fn __fmaf (__x : f32 , __y : f32 , __z : f32) -> f32 ; } unsafe extern "C" { pub fn scalbf (__x : f32 , __n : f32) -> f32 ; } unsafe extern "C" { pub fn __scalbf (__x : f32 , __n : f32) -> f32 ; } unsafe extern "C" { pub fn __fpclassifyl (__value : u128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __signbitl (__value : u128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __isinfl (__value : u128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __finitel (__value : u128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __isnanl (__value : u128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __iseqsigl (__x : u128 , __y : u128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __issignalingl (__value : u128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn acosl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __acosl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn asinl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __asinl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn atanl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __atanl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn atan2l (__y : u128 , __x : u128) -> u128 ; } unsafe extern "C" { pub fn __atan2l (__y : u128 , __x : u128) -> u128 ; } unsafe extern "C" { pub fn cosl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __cosl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn sinl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __sinl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn tanl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __tanl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn coshl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __coshl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn sinhl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __sinhl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn tanhl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __tanhl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn acoshl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __acoshl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn asinhl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __asinhl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn atanhl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __atanhl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn expl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __expl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn frexpl (__x : u128 , __exponent : * mut :: std :: os :: raw :: c_int) -> u128 ; } unsafe extern "C" { pub fn __frexpl (__x : u128 , __exponent : * mut :: std :: os :: raw :: c_int) -> u128 ; } unsafe extern "C" { pub fn ldexpl (__x : u128 , __exponent : :: std :: os :: raw :: c_int) -> u128 ; } unsafe extern "C" { pub fn __ldexpl (__x : u128 , __exponent : :: std :: os :: raw :: c_int) -> u128 ; } unsafe extern "C" { pub fn logl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __logl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn log10l (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __log10l (__x : u128) -> u128 ; } unsafe extern "C" { pub fn modfl (__x : u128 , __iptr : * mut u128) -> u128 ; } unsafe extern "C" { pub fn __modfl (__x : u128 , __iptr : * mut u128) -> u128 ; } unsafe extern "C" { pub fn expm1l (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __expm1l (__x : u128) -> u128 ; } unsafe extern "C" { pub fn log1pl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __log1pl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn logbl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __logbl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn exp2l (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __exp2l (__x : u128) -> u128 ; } unsafe extern "C" { pub fn log2l (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __log2l (__x : u128) -> u128 ; } unsafe extern "C" { pub fn powl (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn __powl (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn sqrtl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __sqrtl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn hypotl (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn __hypotl (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn cbrtl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __cbrtl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn ceill (__x : u128) -> u128 ; } unsafe extern "C" { pub fn fabsl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn floorl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn fmodl (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn __fmodl (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn isinfl (__value : u128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn finitel (__value : u128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn dreml (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn __dreml (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn significandl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __significandl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn copysignl (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn nanl (__tagb : * const :: std :: os :: raw :: c_char) -> u128 ; } unsafe extern "C" { pub fn __nanl (__tagb : * const :: std :: os :: raw :: c_char) -> u128 ; } unsafe extern "C" { pub fn isnanl (__value : u128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn j0l (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn __j0l (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn j1l (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn __j1l (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn jnl (arg1 : :: std :: os :: raw :: c_int , arg2 : u128) -> u128 ; } unsafe extern "C" { pub fn __jnl (arg1 : :: std :: os :: raw :: c_int , arg2 : u128) -> u128 ; } unsafe extern "C" { pub fn y0l (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn __y0l (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn y1l (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn __y1l (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn ynl (arg1 : :: std :: os :: raw :: c_int , arg2 : u128) -> u128 ; } unsafe extern "C" { pub fn __ynl (arg1 : :: std :: os :: raw :: c_int , arg2 : u128) -> u128 ; } unsafe extern "C" { pub fn erfl (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn __erfl (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn erfcl (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn __erfcl (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn lgammal (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn __lgammal (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn tgammal (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn __tgammal (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn gammal (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn __gammal (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn lgammal_r (arg1 : u128 , __signgamp : * mut :: std :: os :: raw :: c_int) -> u128 ; } unsafe extern "C" { pub fn __lgammal_r (arg1 : u128 , __signgamp : * mut :: std :: os :: raw :: c_int) -> u128 ; } unsafe extern "C" { pub fn rintl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __rintl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn nextafterl (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn __nextafterl (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn nexttowardl (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn __nexttowardl (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn remainderl (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn __remainderl (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn scalbnl (__x : u128 , __n : :: std :: os :: raw :: c_int) -> u128 ; } unsafe extern "C" { pub fn __scalbnl (__x : u128 , __n : :: std :: os :: raw :: c_int) -> u128 ; } unsafe extern "C" { pub fn ilogbl (__x : u128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __ilogbl (__x : u128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn scalblnl (__x : u128 , __n : :: std :: os :: raw :: c_long) -> u128 ; } unsafe extern "C" { pub fn __scalblnl (__x : u128 , __n : :: std :: os :: raw :: c_long) -> u128 ; } unsafe extern "C" { pub fn nearbyintl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __nearbyintl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn roundl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn truncl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn remquol (__x : u128 , __y : u128 , __quo : * mut :: std :: os :: raw :: c_int) -> u128 ; } unsafe extern "C" { pub fn __remquol (__x : u128 , __y : u128 , __quo : * mut :: std :: os :: raw :: c_int) -> u128 ; } unsafe extern "C" { pub fn lrintl (__x : u128) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn __lrintl (__x : u128) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn llrintl (__x : u128) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn __llrintl (__x : u128) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn lroundl (__x : u128) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn __lroundl (__x : u128) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn llroundl (__x : u128) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn __llroundl (__x : u128) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn fdiml (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn __fdiml (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn fmaxl (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn fminl (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn fmal (__x : u128 , __y : u128 , __z : u128) -> u128 ; } unsafe extern "C" { pub fn __fmal (__x : u128 , __y : u128 , __z : u128) -> u128 ; } unsafe extern "C" { pub fn scalbl (__x : u128 , __n : u128) -> u128 ; } unsafe extern "C" { pub fn __scalbl (__x : u128 , __n : u128) -> u128 ; } unsafe extern "C" { pub fn __fpclassifyf128 (__value : _Float128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __signbitf128 (__value : _Float128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __isinff128 (__value : _Float128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __finitef128 (__value : _Float128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __isnanf128 (__value : _Float128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __iseqsigf128 (__x : _Float128 , __y : _Float128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __issignalingf128 (__value : _Float128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub static mut signgam : :: std :: os :: raw :: c_int ; } pub const FP_NAN : _bindgen_ty_1 = _bindgen_ty_1 (0) ; pub const FP_INFINITE : _bindgen_ty_1 = _bindgen_ty_1 (1) ; pub const FP_ZERO : _bindgen_ty_1 = _bindgen_ty_1 (2) ; pub const FP_SUBNORMAL : _bindgen_ty_1 = _bindgen_ty_1 (3) ; pub const FP_NORMAL : _bindgen_ty_1 = _bindgen_ty_1 (4) ; # [repr (transparent)] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct _bindgen_ty_1 (pub :: std :: os :: raw :: c_uint) ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct PerlinNoise { pub d : [u8 ; 257usize] , pub h2 : u8 , pub a : f64 , pub b : f64 , pub c : f64 , pub amplitude : f64 , pub lacunarity : f64 , pub d2 : f64 , pub t2 : f64 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of PerlinNoise"] [:: std :: mem :: size_of :: < PerlinNoise > () - 320usize] ; ["Alignment of PerlinNoise"] [:: std :: mem :: align_of :: < PerlinNoise > () - 8usize] ; ["Offset of field: PerlinNoise::d"] [:: std :: mem :: offset_of ! (PerlinNoise , d) - 0usize] ; ["Offset of field: PerlinNoise::h2"] [:: std :: mem :: offset_of ! (PerlinNoise , h2) - 257usize] ; ["Offset of field: PerlinNoise::a"] [:: std :: mem :: offset_of ! (PerlinNoise , a) - 264usize] ; ["Offset of field: PerlinNoise::b"] [:: std :: mem :: offset_of ! (PerlinNoise , b) - 272usize] ; ["Offset of field: PerlinNoise::c"] [:: std :: mem :: offset_of ! (PerlinNoise , c) - 280usize] ; ["Offset of field: PerlinNoise::amplitude"] [:: std :: mem :: offset_of ! (PerlinNoise , amplitude) - 288usize] ; ["Offset of field: PerlinNoise::lacunarity"] [:: std :: mem :: offset_of ! (PerlinNoise , lacunarity) - 296usize] ; ["Offset of field: PerlinNoise::d2"] [:: std :: mem :: offset_of ! (PerlinNoise , d2) - 304usize] ; ["Offset of field: PerlinNoise::t2"] [:: std :: mem :: offset_of ! (PerlinNoise , t2) - 312usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct OctaveNoise { pub octcnt : :: std :: os :: raw :: c_int , pub octaves : * mut PerlinNoise , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of OctaveNoise"] [:: std :: mem :: size_of :: < OctaveNoise > () - 16usize] ; ["Alignment of OctaveNoise"] [:: std :: mem :: align_of :: < OctaveNoise > () - 8usize] ; ["Offset of field: OctaveNoise::octcnt"] [:: std :: mem :: offset_of ! (OctaveNoise , octcnt) - 0usize] ; ["Offset of field: OctaveNoise::octaves"] [:: std :: mem :: offset_of ! (OctaveNoise , octaves) - 8usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct DoublePerlinNoise { pub amplitude : f64 , pub octA : OctaveNoise , pub octB : OctaveNoise , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of DoublePerlinNoise"] [:: std :: mem :: size_of :: < DoublePerlinNoise > () - 40usize] ; ["Alignment of DoublePerlinNoise"] [:: std :: mem :: align_of :: < DoublePerlinNoise > () - 8usize] ; ["Offset of field: DoublePerlinNoise::amplitude"] [:: std :: mem :: offset_of ! (DoublePerlinNoise , amplitude) - 0usize] ; ["Offset of field: DoublePerlinNoise::octA"] [:: std :: mem :: offset_of ! (DoublePerlinNoise , octA) - 8usize] ; ["Offset of field: DoublePerlinNoise::octB"] [:: std :: mem :: offset_of ! (DoublePerlinNoise , octB) - 24usize] ; } ; unsafe extern "C" { # [doc = " Perlin noise"] pub fn perlinInit (noise : * mut PerlinNoise , seed : * mut u64) ; } unsafe extern "C" { pub fn xPerlinInit (noise : * mut PerlinNoise , xr : * mut Xoroshiro) ; } unsafe extern "C" { pub fn samplePerlin (noise : * const PerlinNoise , x : f64 , y : f64 , z : f64 , yamp : f64 , ymin : f64) -> f64 ; } unsafe extern "C" { pub fn sampleSimplex2D (noise : * const PerlinNoise , x : f64 , y : f64) -> f64 ; } unsafe extern "C" { # [doc = " Perlin Octaves"] pub fn octaveInit (noise : * mut OctaveNoise , seed : * mut u64 , octaves : * mut PerlinNoise , omin : :: std :: os :: raw :: c_int , len : :: std :: os :: raw :: c_int) ; } unsafe extern "C" { pub fn octaveInitBeta (noise : * mut OctaveNoise , seed : * mut u64 , octaves : * mut PerlinNoise , octcnt : :: std :: os :: raw :: c_int , lac : f64 , lacMul : f64 , persist : f64 , persistMul : f64) ; } unsafe extern "C" { pub fn xOctaveInit (noise : * mut OctaveNoise , xr : * mut Xoroshiro , octaves : * mut PerlinNoise , amplitudes : * const f64 , omin : :: std :: os :: raw :: c_int , len : :: std :: os :: raw :: c_int , nmax : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn sampleOctave (noise : * const OctaveNoise , x : f64 , y : f64 , z : f64) -> f64 ; } unsafe extern "C" { pub fn sampleOctaveAmp (noise : * const OctaveNoise , x : f64 , y : f64 , z : f64 , yamp : f64 , ymin : f64 , ydefault : :: std :: os :: raw :: c_int) -> f64 ; } unsafe extern "C" { pub fn sampleOctave2D (noise : * const OctaveNoise , x : f64 , z : f64) -> f64 ; } unsafe extern "C" { pub fn sampleOctaveBeta17Biome (noise : * const OctaveNoise , x : f64 , z : f64) -> f64 ; } unsafe extern "C" { pub fn sampleOctaveBeta17Terrain (noise : * const OctaveNoise , v : * mut f64 , x : f64 , z : f64 , yLacFlag : :: std :: os :: raw :: c_int , lacmin : f64) ; } unsafe extern "C" { # [doc = " Double Perlin"] pub fn doublePerlinInit (noise : * mut DoublePerlinNoise , seed : * mut u64 , octavesA : * mut PerlinNoise , octavesB : * mut PerlinNoise , omin : :: std :: os :: raw :: c_int , len : :: std :: os :: raw :: c_int) ; } unsafe extern "C" { pub fn xDoublePerlinInit (noise : * mut DoublePerlinNoise , xr : * mut Xoroshiro , octaves : * mut PerlinNoise , amplitudes : * const f64 , omin : :: std :: os :: raw :: c_int , len : :: std :: os :: raw :: c_int , nmax : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn sampleDoublePerlin (noise : * const DoublePerlinNoise , x : f64 , y : f64 , z : f64) -> f64 ; } impl MCVersion { pub const MC_UNDEF : MCVersion = MCVersion (0) ; } impl MCVersion { pub const MC_B1_7 : MCVersion = MCVersion (1) ; } impl MCVersion { pub const MC_B1_8 : MCVersion = MCVersion (2) ; } impl MCVersion { pub const MC_1_0_0 : MCVersion = MCVersion (3) ; } impl MCVersion { pub const MC_1_0 : MCVersion = MCVersion (3) ; } impl MCVersion { pub const MC_1_1_0 : MCVersion = MCVersion (4) ; } impl MCVersion { pub const MC_1_1 : MCVersion = MCVersion (4) ; } impl MCVersion { pub const MC_1_2_5 : MCVersion = MCVersion (5) ; } impl MCVersion { pub const MC_1_2 : MCVersion = MCVersion (5) ; } impl MCVersion { pub const MC_1_3_2 : MCVersion = MCVersion (6) ; } impl MCVersion { pub const MC_1_3 : MCVersion = MCVersion (6) ; } impl MCVersion { pub const MC_1_4_7 : MCVersion = MCVersion (7) ; } impl MCVersion { pub const MC_1_4 : MCVersion = MCVersion (7) ; } impl MCVersion { pub const MC_1_5_2 : MCVersion = MCVersion (8) ; } impl MCVersion { pub const MC_1_5 : MCVersion = MCVersion (8) ; } impl MCVersion { pub const MC_1_6_4 : MCVersion = MCVersion (9) ; } impl MCVersion { pub const MC_1_6 : MCVersion = MCVersion (9) ; } impl MCVersion { pub const MC_1_7_10 : MCVersion = MCVersion (10) ; } impl MCVersion { pub const MC_1_7 : MCVersion = MCVersion (10) ; } impl MCVersion { pub const MC_1_8_9 : MCVersion = MCVersion (11) ; } impl MCVersion { pub const MC_1_8 : MCVersion = MCVersion (11) ; } impl MCVersion { pub const MC_1_9_4 : MCVersion = MCVersion (12) ; } impl MCVersion { pub const MC_1_9 : MCVersion = MCVersion (12) ; } impl MCVersion { pub const MC_1_10_2 : MCVersion = MCVersion (13) ; } impl MCVersion { pub const MC_1_10 : MCVersion = MCVersion (13) ; } impl MCVersion { pub const MC_1_11_2 : MCVersion = MCVersion (14) ; } impl MCVersion { pub const MC_1_11 : MCVersion = MCVersion (14) ; } impl MCVersion { pub const MC_1_12_2 : MCVersion = MCVersion (15) ; } impl MCVersion { pub const MC_1_12 : MCVersion = MCVersion (15) ; } impl MCVersion { pub const MC_1_13_2 : MCVersion = MCVersion (16) ; } impl MCVersion { pub const MC_1_13 : MCVersion = MCVersion (16) ; } impl MCVersion { pub const MC_1_14_4 : MCVersion = MCVersion (17) ; } impl MCVersion { pub const MC_1_14 : MCVersion = MCVersion (17) ; } impl MCVersion { pub const MC_1_15_2 : MCVersion = MCVersion (18) ; } impl MCVersion { pub const MC_1_15 : MCVersion = MCVersion (18) ; } impl MCVersion { pub const MC_1_16_1 : MCVersion = MCVersion (19) ; } impl MCVersion { pub const MC_1_16_5 : MCVersion = MCVersion (20) ; } impl MCVersion { pub const MC_1_16 : MCVersion = MCVersion (20) ; } impl MCVersion { pub const MC_1_17_1 : MCVersion = MCVersion (21) ; } impl MCVersion { pub const MC_1_17 : MCVersion = MCVersion (21) ; } impl MCVersion { pub const MC_1_18_2 : MCVersion = MCVersion (22) ; } impl MCVersion { pub const MC_1_18 : MCVersion = MCVersion (22) ; } impl MCVersion { pub const MC_1_19_2 : MCVersion = MCVersion (23) ; } impl MCVersion { pub const MC_1_19_4 : MCVersion = MCVersion (24) ; } impl MCVersion { pub const MC_1_19 : MCVersion = MCVersion (24) ; } impl MCVersion { pub const MC_1_20_6 : MCVersion = MCVersion (25) ; } impl MCVersion { pub const MC_1_20 : MCVersion = MCVersion (25) ; } impl MCVersion { pub const MC_1_21_1 : MCVersion = MCVersion (26) ; } impl MCVersion { pub const MC_1_21_3 : MCVersion = MCVersion (27) ; } impl MCVersion { pub const MC_1_21_WD : MCVersion = MCVersion (28) ; } impl MCVersion { pub const MC_1_21 : MCVersion = MCVersion (28) ; } impl MCVersion { pub const MC_NEWEST : MCVersion = MCVersion (28) ; } # [repr (transparent)] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct MCVersion (pub :: std :: os :: raw :: c_uint) ; impl Dimension { pub const DIM_NETHER : Dimension = Dimension (- 1) ; } impl Dimension { pub const DIM_OVERWORLD : Dimension = Dimension (0) ; } impl Dimension { pub const DIM_END : Dimension = Dimension (1) ; } impl Dimension { pub const DIM_UNDEF : Dimension = Dimension (1000) ; } # [repr (transparent)] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct Dimension (pub :: std :: os :: raw :: c_int) ; impl BiomeID { pub const none : BiomeID = BiomeID (- 1) ; } impl BiomeID { pub const ocean : BiomeID = BiomeID (0) ; } impl BiomeID { pub const plains : BiomeID = BiomeID (1) ; } impl BiomeID { pub const desert : BiomeID = BiomeID (2) ; } impl BiomeID { pub const mountains : BiomeID = BiomeID (3) ; } impl BiomeID { pub const extremeHills : BiomeID = BiomeID (3) ; } impl BiomeID { pub const forest : BiomeID = BiomeID (4) ; } impl BiomeID { pub const taiga : BiomeID = BiomeID (5) ; } impl BiomeID { pub const swamp : BiomeID = BiomeID (6) ; } impl BiomeID { pub const swampland : BiomeID = BiomeID (6) ; } impl BiomeID { pub const river : BiomeID = BiomeID (7) ; } impl BiomeID { pub const nether_wastes : BiomeID = BiomeID (8) ; } impl BiomeID { pub const hell : BiomeID = BiomeID (8) ; } impl BiomeID { pub const the_end : BiomeID = BiomeID (9) ; } impl BiomeID { pub const sky : BiomeID = BiomeID (9) ; } impl BiomeID { pub const frozen_ocean : BiomeID = BiomeID (10) ; } impl BiomeID { pub const frozenOcean : BiomeID = BiomeID (10) ; } impl BiomeID { pub const frozen_river : BiomeID = BiomeID (11) ; } impl BiomeID { pub const frozenRiver : BiomeID = BiomeID (11) ; } impl BiomeID { pub const snowy_tundra : BiomeID = BiomeID (12) ; } impl BiomeID { pub const icePlains : BiomeID = BiomeID (12) ; } impl BiomeID { pub const snowy_mountains : BiomeID = BiomeID (13) ; } impl BiomeID { pub const iceMountains : BiomeID = BiomeID (13) ; } impl BiomeID { pub const mushroom_fields : BiomeID = BiomeID (14) ; } impl BiomeID { pub const mushroomIsland : BiomeID = BiomeID (14) ; } impl BiomeID { pub const mushroom_field_shore : BiomeID = BiomeID (15) ; } impl BiomeID { pub const mushroomIslandShore : BiomeID = BiomeID (15) ; } impl BiomeID { pub const beach : BiomeID = BiomeID (16) ; } impl BiomeID { pub const desert_hills : BiomeID = BiomeID (17) ; } impl BiomeID { pub const desertHills : BiomeID = BiomeID (17) ; } impl BiomeID { pub const wooded_hills : BiomeID = BiomeID (18) ; } impl BiomeID { pub const forestHills : BiomeID = BiomeID (18) ; } impl BiomeID { pub const taiga_hills : BiomeID = BiomeID (19) ; } impl BiomeID { pub const taigaHills : BiomeID = BiomeID (19) ; } impl BiomeID { pub const mountain_edge : BiomeID = BiomeID (20) ; } impl BiomeID { pub const extremeHillsEdge : BiomeID = BiomeID (20) ; } impl BiomeID { pub const jungle : BiomeID = BiomeID (21) ; } impl BiomeID { pub const jungle_hills : BiomeID = BiomeID (22) ; } impl BiomeID { pub const jungleHills : BiomeID = BiomeID (22) ; } impl BiomeID { pub const jungle_edge : BiomeID = BiomeID (23) ; } impl BiomeID { pub const jungleEdge : BiomeID = BiomeID (23) ; } impl BiomeID { pub const deep_ocean : BiomeID = BiomeID (24) ; } impl BiomeID { pub const deepOcean : BiomeID = BiomeID (24) ; } impl BiomeID { pub const stone_shore : BiomeID = BiomeID (25) ; } impl BiomeID { pub const stoneBeach : BiomeID = BiomeID (25) ; } impl BiomeID { pub const snowy_beach : BiomeID = BiomeID (26) ; } impl BiomeID { pub const coldBeach : BiomeID = BiomeID (26) ; } impl BiomeID { pub const birch_forest : BiomeID = BiomeID (27) ; } impl BiomeID { pub const birchForest : BiomeID = BiomeID (27) ; } impl BiomeID { pub const birch_forest_hills : BiomeID = BiomeID (28) ; } impl BiomeID { pub const birchForestHills : BiomeID = BiomeID (28) ; } impl BiomeID { pub const dark_forest : BiomeID = BiomeID (29) ; } impl BiomeID { pub const roofedForest : BiomeID = BiomeID (29) ; } impl BiomeID { pub const snowy_taiga : BiomeID = BiomeID (30) ; } impl BiomeID { pub const coldTaiga : BiomeID = BiomeID (30) ; } impl BiomeID { pub const snowy_taiga_hills : BiomeID = BiomeID (31) ; } impl BiomeID { pub const coldTaigaHills : BiomeID = BiomeID (31) ; } impl BiomeID { pub const giant_tree_taiga : BiomeID = BiomeID (32) ; } impl BiomeID { pub const megaTaiga : BiomeID = BiomeID (32) ; } impl BiomeID { pub const giant_tree_taiga_hills : BiomeID = BiomeID (33) ; } impl BiomeID { pub const megaTaigaHills : BiomeID = BiomeID (33) ; } impl BiomeID { pub const wooded_mountains : BiomeID = BiomeID (34) ; } impl BiomeID { pub const extremeHillsPlus : BiomeID = BiomeID (34) ; } impl BiomeID { pub const savanna : BiomeID = BiomeID (35) ; } impl BiomeID { pub const savanna_plateau : BiomeID = BiomeID (36) ; } impl BiomeID { pub const savannaPlateau : BiomeID = BiomeID (36) ; } impl BiomeID { pub const badlands : BiomeID = BiomeID (37) ; } impl BiomeID { pub const mesa : BiomeID = BiomeID (37) ; } impl BiomeID { pub const wooded_badlands_plateau : BiomeID = BiomeID (38) ; } impl BiomeID { pub const mesaPlateau_F : BiomeID = BiomeID (38) ; } impl BiomeID { pub const badlands_plateau : BiomeID = BiomeID (39) ; } impl BiomeID { pub const mesaPlateau : BiomeID = BiomeID (39) ; } impl BiomeID { pub const small_end_islands : BiomeID = BiomeID (40) ; } impl BiomeID { pub const end_midlands : BiomeID = BiomeID (41) ; } impl BiomeID { pub const end_highlands : BiomeID = BiomeID (42) ; } impl BiomeID { pub const end_barrens : BiomeID = BiomeID (43) ; } impl BiomeID { pub const warm_ocean : BiomeID = BiomeID (44) ; } impl BiomeID { pub const warmOcean : BiomeID = BiomeID (44) ; } impl BiomeID { pub const lukewarm_ocean : BiomeID = BiomeID (45) ; } impl BiomeID { pub const lukewarmOcean : BiomeID = BiomeID (45) ; } impl BiomeID { pub const cold_ocean : BiomeID = BiomeID (46) ; } impl BiomeID { pub const coldOcean : BiomeID = BiomeID (46) ; } impl BiomeID { pub const deep_warm_ocean : BiomeID = BiomeID (47) ; } impl BiomeID { pub const warmDeepOcean : BiomeID = BiomeID (47) ; } impl BiomeID { pub const deep_lukewarm_ocean : BiomeID = BiomeID (48) ; } impl BiomeID { pub const lukewarmDeepOcean : BiomeID = BiomeID (48) ; } impl BiomeID { pub const deep_cold_ocean : BiomeID = BiomeID (49) ; } impl BiomeID { pub const coldDeepOcean : BiomeID = BiomeID (49) ; } impl BiomeID { pub const deep_frozen_ocean : BiomeID = BiomeID (50) ; } impl BiomeID { pub const frozenDeepOcean : BiomeID = BiomeID (50) ; } impl BiomeID { pub const seasonal_forest : BiomeID = BiomeID (51) ; } impl BiomeID { pub const rainforest : BiomeID = BiomeID (52) ; } impl BiomeID { pub const shrubland : BiomeID = BiomeID (53) ; } impl BiomeID { pub const the_void : BiomeID = BiomeID (127) ; } impl BiomeID { pub const sunflower_plains : BiomeID = BiomeID (129) ; } impl BiomeID { pub const desert_lakes : BiomeID = BiomeID (130) ; } impl BiomeID { pub const gravelly_mountains : BiomeID = BiomeID (131) ; } impl BiomeID { pub const flower_forest : BiomeID = BiomeID (132) ; } impl BiomeID { pub const taiga_mountains : BiomeID = BiomeID (133) ; } impl BiomeID { pub const swamp_hills : BiomeID = BiomeID (134) ; } impl BiomeID { pub const ice_spikes : BiomeID = BiomeID (140) ; } impl BiomeID { pub const modified_jungle : BiomeID = BiomeID (149) ; } impl BiomeID { pub const modified_jungle_edge : BiomeID = BiomeID (151) ; } impl BiomeID { pub const tall_birch_forest : BiomeID = BiomeID (155) ; } impl BiomeID { pub const tall_birch_hills : BiomeID = BiomeID (156) ; } impl BiomeID { pub const dark_forest_hills : BiomeID = BiomeID (157) ; } impl BiomeID { pub const snowy_taiga_mountains : BiomeID = BiomeID (158) ; } impl BiomeID { pub const giant_spruce_taiga : BiomeID = BiomeID (160) ; } impl BiomeID { pub const giant_spruce_taiga_hills : BiomeID = BiomeID (161) ; } impl BiomeID { pub const modified_gravelly_mountains : BiomeID = BiomeID (162) ; } impl BiomeID { pub const shattered_savanna : BiomeID = BiomeID (163) ; } impl BiomeID { pub const shattered_savanna_plateau : BiomeID = BiomeID (164) ; } impl BiomeID { pub const eroded_badlands : BiomeID = BiomeID (165) ; } impl BiomeID { pub const modified_wooded_badlands_plateau : BiomeID = BiomeID (166) ; } impl BiomeID { pub const modified_badlands_plateau : BiomeID = BiomeID (167) ; } impl BiomeID { pub const bamboo_jungle : BiomeID = BiomeID (168) ; } impl BiomeID { pub const bamboo_jungle_hills : BiomeID = BiomeID (169) ; } impl BiomeID { pub const soul_sand_valley : BiomeID = BiomeID (170) ; } impl BiomeID { pub const crimson_forest : BiomeID = BiomeID (171) ; } impl BiomeID { pub const warped_forest : BiomeID = BiomeID (172) ; } impl BiomeID { pub const basalt_deltas : BiomeID = BiomeID (173) ; } impl BiomeID { pub const dripstone_caves : BiomeID = BiomeID (174) ; } impl BiomeID { pub const lush_caves : BiomeID = BiomeID (175) ; } impl BiomeID { pub const meadow : BiomeID = BiomeID (177) ; } impl BiomeID { pub const grove : BiomeID = BiomeID (178) ; } impl BiomeID { pub const snowy_slopes : BiomeID = BiomeID (179) ; } impl BiomeID { pub const jagged_peaks : BiomeID = BiomeID (180) ; } impl BiomeID { pub const frozen_peaks : BiomeID = BiomeID (181) ; } impl BiomeID { pub const stony_peaks : BiomeID = BiomeID (182) ; } impl BiomeID { pub const old_growth_birch_forest : BiomeID = BiomeID (155) ; } impl BiomeID { pub const old_growth_pine_taiga : BiomeID = BiomeID (32) ; } impl BiomeID { pub const old_growth_spruce_taiga : BiomeID = BiomeID (160) ; } impl BiomeID { pub const snowy_plains : BiomeID = BiomeID (12) ; } impl BiomeID { pub const sparse_jungle : BiomeID = BiomeID (23) ; } impl BiomeID { pub const stony_shore : BiomeID = BiomeID (25) ; } impl BiomeID { pub const windswept_hills : BiomeID = BiomeID (3) ; } impl BiomeID { pub const windswept_forest : BiomeID = BiomeID (34) ; } impl BiomeID { pub const windswept_gravelly_hills : BiomeID = BiomeID (131) ; } impl BiomeID { pub const windswept_savanna : BiomeID = BiomeID (163) ; } impl BiomeID { pub const wooded_badlands : BiomeID = BiomeID (38) ; } impl BiomeID { pub const deep_dark : BiomeID = BiomeID (183) ; } impl BiomeID { pub const mangrove_swamp : BiomeID = BiomeID (184) ; } impl BiomeID { pub const cherry_grove : BiomeID = BiomeID (185) ; } impl BiomeID { pub const pale_garden : BiomeID = BiomeID (186) ; } # [repr (transparent)] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct BiomeID (pub :: std :: os :: raw :: c_int) ; unsafe extern "C" { pub fn biomeExists (mc : :: std :: os :: raw :: c_int , id : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn isOverworld (mc : :: std :: os :: raw :: c_int , id : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getDimension (id : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getMutated (mc : :: std :: os :: raw :: c_int , id : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getCategory (mc : :: std :: os :: raw :: c_int , id : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn areSimilar (mc : :: std :: os :: raw :: c_int , id1 : :: std :: os :: raw :: c_int , id2 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn isMesa (id : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn isShallowOcean (id : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn isDeepOcean (id : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn isOceanic (id : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn isSnowy (id : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } impl BiomeTempCategory { pub const Oceanic : BiomeTempCategory = BiomeTempCategory (0) ; } impl BiomeTempCategory { pub const Warm : BiomeTempCategory = BiomeTempCategory (1) ; } impl BiomeTempCategory { pub const Lush : BiomeTempCategory = BiomeTempCategory (2) ; } impl BiomeTempCategory { pub const Cold : BiomeTempCategory = BiomeTempCategory (3) ; } impl BiomeTempCategory { pub const Freezing : BiomeTempCategory = BiomeTempCategory (4) ; } impl BiomeTempCategory { pub const Special : BiomeTempCategory = BiomeTempCategory (5) ; } # [repr (transparent)] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct BiomeTempCategory (pub :: std :: os :: raw :: c_uint) ; impl LayerId { pub const L_CONTINENT_4096 : LayerId = LayerId (0) ; } impl LayerId { pub const L_ISLAND_4096 : LayerId = LayerId (0) ; } impl LayerId { pub const L_ZOOM_4096 : LayerId = LayerId (1) ; } impl LayerId { pub const L_LAND_4096 : LayerId = LayerId (2) ; } impl LayerId { pub const L_ZOOM_2048 : LayerId = LayerId (3) ; } impl LayerId { pub const L_LAND_2048 : LayerId = LayerId (4) ; } impl LayerId { pub const L_ADD_ISLAND_2048 : LayerId = LayerId (4) ; } impl LayerId { pub const L_ZOOM_1024 : LayerId = LayerId (5) ; } impl LayerId { pub const L_LAND_1024_A : LayerId = LayerId (6) ; } impl LayerId { pub const L_ADD_ISLAND_1024A : LayerId = LayerId (6) ; } impl LayerId { pub const L_LAND_1024_B : LayerId = LayerId (7) ; } impl LayerId { pub const L_ADD_ISLAND_1024B : LayerId = LayerId (7) ; } impl LayerId { pub const L_LAND_1024_C : LayerId = LayerId (8) ; } impl LayerId { pub const L_ADD_ISLAND_1024C : LayerId = LayerId (8) ; } impl LayerId { pub const L_ISLAND_1024 : LayerId = LayerId (9) ; } impl LayerId { pub const L_REMOVE_OCEAN_1024 : LayerId = LayerId (9) ; } impl LayerId { pub const L_SNOW_1024 : LayerId = LayerId (10) ; } impl LayerId { pub const L_ADD_SNOW_1024 : LayerId = LayerId (10) ; } impl LayerId { pub const L_LAND_1024_D : LayerId = LayerId (11) ; } impl LayerId { pub const L_ADD_ISLAND_1024D : LayerId = LayerId (11) ; } impl LayerId { pub const L_COOL_1024 : LayerId = LayerId (12) ; } impl LayerId { pub const L_COOL_WARM_1024 : LayerId = LayerId (12) ; } impl LayerId { pub const L_HEAT_1024 : LayerId = LayerId (13) ; } impl LayerId { pub const L_HEAT_ICE_1024 : LayerId = LayerId (13) ; } impl LayerId { pub const L_SPECIAL_1024 : LayerId = LayerId (14) ; } impl LayerId { pub const L_ZOOM_512 : LayerId = LayerId (15) ; } impl LayerId { pub const L_LAND_512 : LayerId = LayerId (16) ; } impl LayerId { pub const L_ZOOM_256 : LayerId = LayerId (17) ; } impl LayerId { pub const L_LAND_256 : LayerId = LayerId (18) ; } impl LayerId { pub const L_ADD_ISLAND_256 : LayerId = LayerId (18) ; } impl LayerId { pub const L_MUSHROOM_256 : LayerId = LayerId (19) ; } impl LayerId { pub const L_ADD_MUSHROOM_256 : LayerId = LayerId (19) ; } impl LayerId { pub const L_DEEP_OCEAN_256 : LayerId = LayerId (20) ; } impl LayerId { pub const L_BIOME_256 : LayerId = LayerId (21) ; } impl LayerId { pub const L_BAMBOO_256 : LayerId = LayerId (22) ; } impl LayerId { pub const L14_BAMBOO_256 : LayerId = LayerId (22) ; } impl LayerId { pub const L_ZOOM_128 : LayerId = LayerId (23) ; } impl LayerId { pub const L_ZOOM_64 : LayerId = LayerId (24) ; } impl LayerId { pub const L_BIOME_EDGE_64 : LayerId = LayerId (25) ; } impl LayerId { pub const L_NOISE_256 : LayerId = LayerId (26) ; } impl LayerId { pub const L_RIVER_INIT_256 : LayerId = LayerId (26) ; } impl LayerId { pub const L_ZOOM_128_HILLS : LayerId = LayerId (27) ; } impl LayerId { pub const L_ZOOM_64_HILLS : LayerId = LayerId (28) ; } impl LayerId { pub const L_HILLS_64 : LayerId = LayerId (29) ; } impl LayerId { pub const L_SUNFLOWER_64 : LayerId = LayerId (30) ; } impl LayerId { pub const L_RARE_BIOME_64 : LayerId = LayerId (30) ; } impl LayerId { pub const L_ZOOM_32 : LayerId = LayerId (31) ; } impl LayerId { pub const L_LAND_32 : LayerId = LayerId (32) ; } impl LayerId { pub const L_ADD_ISLAND_32 : LayerId = LayerId (32) ; } impl LayerId { pub const L_ZOOM_16 : LayerId = LayerId (33) ; } impl LayerId { pub const L_SHORE_16 : LayerId = LayerId (34) ; } impl LayerId { pub const L_SWAMP_RIVER_16 : LayerId = LayerId (35) ; } impl LayerId { pub const L_ZOOM_8 : LayerId = LayerId (36) ; } impl LayerId { pub const L_ZOOM_4 : LayerId = LayerId (37) ; } impl LayerId { pub const L_SMOOTH_4 : LayerId = LayerId (38) ; } impl LayerId { pub const L_ZOOM_128_RIVER : LayerId = LayerId (39) ; } impl LayerId { pub const L_ZOOM_64_RIVER : LayerId = LayerId (40) ; } impl LayerId { pub const L_ZOOM_32_RIVER : LayerId = LayerId (41) ; } impl LayerId { pub const L_ZOOM_16_RIVER : LayerId = LayerId (42) ; } impl LayerId { pub const L_ZOOM_8_RIVER : LayerId = LayerId (43) ; } impl LayerId { pub const L_ZOOM_4_RIVER : LayerId = LayerId (44) ; } impl LayerId { pub const L_RIVER_4 : LayerId = LayerId (45) ; } impl LayerId { pub const L_SMOOTH_4_RIVER : LayerId = LayerId (46) ; } impl LayerId { pub const L_RIVER_MIX_4 : LayerId = LayerId (47) ; } impl LayerId { pub const L_OCEAN_TEMP_256 : LayerId = LayerId (48) ; } impl LayerId { pub const L13_OCEAN_TEMP_256 : LayerId = LayerId (48) ; } impl LayerId { pub const L_ZOOM_128_OCEAN : LayerId = LayerId (49) ; } impl LayerId { pub const L13_ZOOM_128 : LayerId = LayerId (49) ; } impl LayerId { pub const L_ZOOM_64_OCEAN : LayerId = LayerId (50) ; } impl LayerId { pub const L13_ZOOM_64 : LayerId = LayerId (50) ; } impl LayerId { pub const L_ZOOM_32_OCEAN : LayerId = LayerId (51) ; } impl LayerId { pub const L13_ZOOM_32 : LayerId = LayerId (51) ; } impl LayerId { pub const L_ZOOM_16_OCEAN : LayerId = LayerId (52) ; } impl LayerId { pub const L13_ZOOM_16 : LayerId = LayerId (52) ; } impl LayerId { pub const L_ZOOM_8_OCEAN : LayerId = LayerId (53) ; } impl LayerId { pub const L13_ZOOM_8 : LayerId = LayerId (53) ; } impl LayerId { pub const L_ZOOM_4_OCEAN : LayerId = LayerId (54) ; } impl LayerId { pub const L13_ZOOM_4 : LayerId = LayerId (54) ; } impl LayerId { pub const L_OCEAN_MIX_4 : LayerId = LayerId (55) ; } impl LayerId { pub const L13_OCEAN_MIX_4 : LayerId = LayerId (55) ; } impl LayerId { pub const L_VORONOI_1 : LayerId = LayerId (56) ; } impl LayerId { pub const L_VORONOI_ZOOM_1 : LayerId = LayerId (56) ; } impl LayerId { pub const L_ZOOM_LARGE_A : LayerId = LayerId (57) ; } impl LayerId { pub const L_ZOOM_LARGE_B : LayerId = LayerId (58) ; } impl LayerId { pub const L_ZOOM_L_RIVER_A : LayerId = LayerId (59) ; } impl LayerId { pub const L_ZOOM_L_RIVER_B : LayerId = LayerId (60) ; } impl LayerId { pub const L_NUM : LayerId = LayerId (61) ; } # [repr (transparent)] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct LayerId (pub :: std :: os :: raw :: c_uint) ; pub type mapfunc_t = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Layer { pub getMap : mapfunc_t , pub mc : i8 , pub zoom : i8 , pub edge : i8 , pub scale : :: std :: os :: raw :: c_int , pub layerSalt : u64 , pub startSalt : u64 , pub startSeed : u64 , pub noise : * mut :: std :: os :: raw :: c_void , pub data : * mut :: std :: os :: raw :: c_void , pub p : * mut Layer , pub p2 : * mut Layer , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Layer"] [:: std :: mem :: size_of :: < Layer > () - 72usize] ; ["Alignment of Layer"] [:: std :: mem :: align_of :: < Layer > () - 8usize] ; ["Offset of field: Layer::getMap"] [:: std :: mem :: offset_of ! (Layer , getMap) - 0usize] ; ["Offset of field: Layer::mc"] [:: std :: mem :: offset_of ! (Layer , mc) - 8usize] ; ["Offset of field: Layer::zoom"] [:: std :: mem :: offset_of ! (Layer , zoom) - 9usize] ; ["Offset of field: Layer::edge"] [:: std :: mem :: offset_of ! (Layer , edge) - 10usize] ; ["Offset of field: Layer::scale"] [:: std :: mem :: offset_of ! (Layer , scale) - 12usize] ; ["Offset of field: Layer::layerSalt"] [:: std :: mem :: offset_of ! (Layer , layerSalt) - 16usize] ; ["Offset of field: Layer::startSalt"] [:: std :: mem :: offset_of ! (Layer , startSalt) - 24usize] ; ["Offset of field: Layer::startSeed"] [:: std :: mem :: offset_of ! (Layer , startSeed) - 32usize] ; ["Offset of field: Layer::noise"] [:: std :: mem :: offset_of ! (Layer , noise) - 40usize] ; ["Offset of field: Layer::data"] [:: std :: mem :: offset_of ! (Layer , data) - 48usize] ; ["Offset of field: Layer::p"] [:: std :: mem :: offset_of ! (Layer , p) - 56usize] ; ["Offset of field: Layer::p2"] [:: std :: mem :: offset_of ! (Layer , p2) - 64usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct LayerStack { pub layers : [Layer ; 61usize] , pub entry_1 : * mut Layer , pub entry_4 : * mut Layer , pub entry_16 : * mut Layer , pub entry_64 : * mut Layer , pub entry_256 : * mut Layer , pub oceanRnd : PerlinNoise , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of LayerStack"] [:: std :: mem :: size_of :: < LayerStack > () - 4752usize] ; ["Alignment of LayerStack"] [:: std :: mem :: align_of :: < LayerStack > () - 8usize] ; ["Offset of field: LayerStack::layers"] [:: std :: mem :: offset_of ! (LayerStack , layers) - 0usize] ; ["Offset of field: LayerStack::entry_1"] [:: std :: mem :: offset_of ! (LayerStack , entry_1) - 4392usize] ; ["Offset of field: LayerStack::entry_4"] [:: std :: mem :: offset_of ! (LayerStack , entry_4) - 4400usize] ; ["Offset of field: LayerStack::entry_16"] [:: std :: mem :: offset_of ! (LayerStack , entry_16) - 4408usize] ; ["Offset of field: LayerStack::entry_64"] [:: std :: mem :: offset_of ! (LayerStack , entry_64) - 4416usize] ; ["Offset of field: LayerStack::entry_256"] [:: std :: mem :: offset_of ! (LayerStack , entry_256) - 4424usize] ; ["Offset of field: LayerStack::oceanRnd"] [:: std :: mem :: offset_of ! (LayerStack , oceanRnd) - 4432usize] ; } ; unsafe extern "C" { pub fn setLayerSeed (layer : * mut Layer , worldSeed : u64) ; } unsafe extern "C" { pub fn mapContinent (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapZoomFuzzy (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapZoom (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapLand (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapLand16 (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapLandB18 (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapIsland (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapSnow (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapSnow16 (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapCool (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapHeat (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapSpecial (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapMushroom (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapDeepOcean (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapBiome (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapBamboo (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapNoise (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapBiomeEdge (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapHills (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapRiver (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapSmooth (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapSunflower (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapShore (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapSwampRiver (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapRiverMix (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapOceanTemp (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapOceanMix (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapVoronoi (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapVoronoi114 (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getVoronoiSHA (worldSeed : u64) -> u64 ; } unsafe extern "C" { pub fn voronoiAccess3D (sha : u64 , x : :: std :: os :: raw :: c_int , y : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , x4 : * mut :: std :: os :: raw :: c_int , y4 : * mut :: std :: os :: raw :: c_int , z4 : * mut :: std :: os :: raw :: c_int) ; } unsafe extern "C" { pub fn mapVoronoiPlane (sha : u64 , out : * mut :: std :: os :: raw :: c_int , src : * mut :: std :: os :: raw :: c_int , x : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , w : :: std :: os :: raw :: c_int , h : :: std :: os :: raw :: c_int , y : :: std :: os :: raw :: c_int , px : :: std :: os :: raw :: c_int , pz : :: std :: os :: raw :: c_int , pw : :: std :: os :: raw :: c_int , ph : :: std :: os :: raw :: c_int) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Range { pub scale : :: std :: os :: raw :: c_int , pub x : :: std :: os :: raw :: c_int , pub z : :: std :: os :: raw :: c_int , pub sx : :: std :: os :: raw :: c_int , pub sz : :: std :: os :: raw :: c_int , pub y : :: std :: os :: raw :: c_int , pub sy : :: std :: os :: raw :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Range"] [:: std :: mem :: size_of :: < Range > () - 28usize] ; ["Alignment of Range"] [:: std :: mem :: align_of :: < Range > () - 4usize] ; ["Offset of field: Range::scale"] [:: std :: mem :: offset_of ! (Range , scale) - 0usize] ; ["Offset of field: Range::x"] [:: std :: mem :: offset_of ! (Range , x) - 4usize] ; ["Offset of field: Range::z"] [:: std :: mem :: offset_of ! (Range , z) - 8usize] ; ["Offset of field: Range::sx"] [:: std :: mem :: offset_of ! (Range , sx) - 12usize] ; ["Offset of field: Range::sz"] [:: std :: mem :: offset_of ! (Range , sz) - 16usize] ; ["Offset of field: Range::y"] [:: std :: mem :: offset_of ! (Range , y) - 20usize] ; ["Offset of field: Range::sy"] [:: std :: mem :: offset_of ! (Range , sy) - 24usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct NetherNoise { pub temperature : DoublePerlinNoise , pub humidity : DoublePerlinNoise , pub oct : [PerlinNoise ; 8usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of NetherNoise"] [:: std :: mem :: size_of :: < NetherNoise > () - 2640usize] ; ["Alignment of NetherNoise"] [:: std :: mem :: align_of :: < NetherNoise > () - 8usize] ; ["Offset of field: NetherNoise::temperature"] [:: std :: mem :: offset_of ! (NetherNoise , temperature) - 0usize] ; ["Offset of field: NetherNoise::humidity"] [:: std :: mem :: offset_of ! (NetherNoise , humidity) - 40usize] ; ["Offset of field: NetherNoise::oct"] [:: std :: mem :: offset_of ! (NetherNoise , oct) - 80usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct EndNoise { pub perlin : PerlinNoise , pub mc : :: std :: os :: raw :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of EndNoise"] [:: std :: mem :: size_of :: < EndNoise > () - 328usize] ; ["Alignment of EndNoise"] [:: std :: mem :: align_of :: < EndNoise > () - 8usize] ; ["Offset of field: EndNoise::perlin"] [:: std :: mem :: offset_of ! (EndNoise , perlin) - 0usize] ; ["Offset of field: EndNoise::mc"] [:: std :: mem :: offset_of ! (EndNoise , mc) - 320usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct SurfaceNoise { pub xzScale : f64 , pub yScale : f64 , pub xzFactor : f64 , pub yFactor : f64 , pub octmin : OctaveNoise , pub octmax : OctaveNoise , pub octmain : OctaveNoise , pub octsurf : OctaveNoise , pub octdepth : OctaveNoise , pub oct : [PerlinNoise ; 60usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of SurfaceNoise"] [:: std :: mem :: size_of :: < SurfaceNoise > () - 19312usize] ; ["Alignment of SurfaceNoise"] [:: std :: mem :: align_of :: < SurfaceNoise > () - 8usize] ; ["Offset of field: SurfaceNoise::xzScale"] [:: std :: mem :: offset_of ! (SurfaceNoise , xzScale) - 0usize] ; ["Offset of field: SurfaceNoise::yScale"] [:: std :: mem :: offset_of ! (SurfaceNoise , yScale) - 8usize] ; ["Offset of field: SurfaceNoise::xzFactor"] [:: std :: mem :: offset_of ! (SurfaceNoise , xzFactor) - 16usize] ; ["Offset of field: SurfaceNoise::yFactor"] [:: std :: mem :: offset_of ! (SurfaceNoise , yFactor) - 24usize] ; ["Offset of field: SurfaceNoise::octmin"] [:: std :: mem :: offset_of ! (SurfaceNoise , octmin) - 32usize] ; ["Offset of field: SurfaceNoise::octmax"] [:: std :: mem :: offset_of ! (SurfaceNoise , octmax) - 48usize] ; ["Offset of field: SurfaceNoise::octmain"] [:: std :: mem :: offset_of ! (SurfaceNoise , octmain) - 64usize] ; ["Offset of field: SurfaceNoise::octsurf"] [:: std :: mem :: offset_of ! (SurfaceNoise , octsurf) - 80usize] ; ["Offset of field: SurfaceNoise::octdepth"] [:: std :: mem :: offset_of ! (SurfaceNoise , octdepth) - 96usize] ; ["Offset of field: SurfaceNoise::oct"] [:: std :: mem :: offset_of ! (SurfaceNoise , oct) - 112usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct SurfaceNoiseBeta { pub octmin : OctaveNoise , pub octmax : OctaveNoise , pub octmain : OctaveNoise , pub octcontA : OctaveNoise , pub octcontB : OctaveNoise , pub oct : [PerlinNoise ; 66usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of SurfaceNoiseBeta"] [:: std :: mem :: size_of :: < SurfaceNoiseBeta > () - 21200usize] ; ["Alignment of SurfaceNoiseBeta"] [:: std :: mem :: align_of :: < SurfaceNoiseBeta > () - 8usize] ; ["Offset of field: SurfaceNoiseBeta::octmin"] [:: std :: mem :: offset_of ! (SurfaceNoiseBeta , octmin) - 0usize] ; ["Offset of field: SurfaceNoiseBeta::octmax"] [:: std :: mem :: offset_of ! (SurfaceNoiseBeta , octmax) - 16usize] ; ["Offset of field: SurfaceNoiseBeta::octmain"] [:: std :: mem :: offset_of ! (SurfaceNoiseBeta , octmain) - 32usize] ; ["Offset of field: SurfaceNoiseBeta::octcontA"] [:: std :: mem :: offset_of ! (SurfaceNoiseBeta , octcontA) - 48usize] ; ["Offset of field: SurfaceNoiseBeta::octcontB"] [:: std :: mem :: offset_of ! (SurfaceNoiseBeta , octcontB) - 64usize] ; ["Offset of field: SurfaceNoiseBeta::oct"] [:: std :: mem :: offset_of ! (SurfaceNoiseBeta , oct) - 80usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct SeaLevelColumnNoiseBeta { pub contASample : f64 , pub contBSample : f64 , pub minSample : [f64 ; 2usize] , pub maxSample : [f64 ; 2usize] , pub mainSample : [f64 ; 2usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of SeaLevelColumnNoiseBeta"] [:: std :: mem :: size_of :: < SeaLevelColumnNoiseBeta > () - 64usize] ; ["Alignment of SeaLevelColumnNoiseBeta"] [:: std :: mem :: align_of :: < SeaLevelColumnNoiseBeta > () - 8usize] ; ["Offset of field: SeaLevelColumnNoiseBeta::contASample"] [:: std :: mem :: offset_of ! (SeaLevelColumnNoiseBeta , contASample) - 0usize] ; ["Offset of field: SeaLevelColumnNoiseBeta::contBSample"] [:: std :: mem :: offset_of ! (SeaLevelColumnNoiseBeta , contBSample) - 8usize] ; ["Offset of field: SeaLevelColumnNoiseBeta::minSample"] [:: std :: mem :: offset_of ! (SeaLevelColumnNoiseBeta , minSample) - 16usize] ; ["Offset of field: SeaLevelColumnNoiseBeta::maxSample"] [:: std :: mem :: offset_of ! (SeaLevelColumnNoiseBeta , maxSample) - 32usize] ; ["Offset of field: SeaLevelColumnNoiseBeta::mainSample"] [:: std :: mem :: offset_of ! (SeaLevelColumnNoiseBeta , mainSample) - 48usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Spline { pub len : :: std :: os :: raw :: c_int , pub typ : :: std :: os :: raw :: c_int , pub loc : [f32 ; 12usize] , pub der : [f32 ; 12usize] , pub val : [* mut Spline ; 12usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Spline"] [:: std :: mem :: size_of :: < Spline > () - 200usize] ; ["Alignment of Spline"] [:: std :: mem :: align_of :: < Spline > () - 8usize] ; ["Offset of field: Spline::len"] [:: std :: mem :: offset_of ! (Spline , len) - 0usize] ; ["Offset of field: Spline::typ"] [:: std :: mem :: offset_of ! (Spline , typ) - 4usize] ; ["Offset of field: Spline::loc"] [:: std :: mem :: offset_of ! (Spline , loc) - 8usize] ; ["Offset of field: Spline::der"] [:: std :: mem :: offset_of ! (Spline , der) - 56usize] ; ["Offset of field: Spline::val"] [:: std :: mem :: offset_of ! (Spline , val) - 104usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FixSpline { pub len : :: std :: os :: raw :: c_int , pub val : f32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of FixSpline"] [:: std :: mem :: size_of :: < FixSpline > () - 8usize] ; ["Alignment of FixSpline"] [:: std :: mem :: align_of :: < FixSpline > () - 4usize] ; ["Offset of field: FixSpline::len"] [:: std :: mem :: offset_of ! (FixSpline , len) - 0usize] ; ["Offset of field: FixSpline::val"] [:: std :: mem :: offset_of ! (FixSpline , val) - 4usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct SplineStack { pub stack : [Spline ; 42usize] , pub fstack : [FixSpline ; 151usize] , pub len : :: std :: os :: raw :: c_int , pub flen : :: std :: os :: raw :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of SplineStack"] [:: std :: mem :: size_of :: < SplineStack > () - 9616usize] ; ["Alignment of SplineStack"] [:: std :: mem :: align_of :: < SplineStack > () - 8usize] ; ["Offset of field: SplineStack::stack"] [:: std :: mem :: offset_of ! (SplineStack , stack) - 0usize] ; ["Offset of field: SplineStack::fstack"] [:: std :: mem :: offset_of ! (SplineStack , fstack) - 8400usize] ; ["Offset of field: SplineStack::len"] [:: std :: mem :: offset_of ! (SplineStack , len) - 9608usize] ; ["Offset of field: SplineStack::flen"] [:: std :: mem :: offset_of ! (SplineStack , flen) - 9612usize] ; } ; pub const NP_TEMPERATURE : _bindgen_ty_2 = _bindgen_ty_2 (0) ; pub const NP_HUMIDITY : _bindgen_ty_2 = _bindgen_ty_2 (1) ; pub const NP_CONTINENTALNESS : _bindgen_ty_2 = _bindgen_ty_2 (2) ; pub const NP_EROSION : _bindgen_ty_2 = _bindgen_ty_2 (3) ; pub const NP_SHIFT : _bindgen_ty_2 = _bindgen_ty_2 (4) ; pub const NP_DEPTH : _bindgen_ty_2 = _bindgen_ty_2 (4) ; pub const NP_WEIRDNESS : _bindgen_ty_2 = _bindgen_ty_2 (5) ; pub const NP_MAX : _bindgen_ty_2 = _bindgen_ty_2 (6) ; # [repr (transparent)] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct _bindgen_ty_2 (pub :: std :: os :: raw :: c_uint) ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct BiomeNoise { pub climate : [DoublePerlinNoise ; 6usize] , pub oct : [PerlinNoise ; 46usize] , pub sp : * mut Spline , pub ss : SplineStack , pub nptype : :: std :: os :: raw :: c_int , pub mc : :: std :: os :: raw :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of BiomeNoise"] [:: std :: mem :: size_of :: < BiomeNoise > () - 24592usize] ; ["Alignment of BiomeNoise"] [:: std :: mem :: align_of :: < BiomeNoise > () - 8usize] ; ["Offset of field: BiomeNoise::climate"] [:: std :: mem :: offset_of ! (BiomeNoise , climate) - 0usize] ; ["Offset of field: BiomeNoise::oct"] [:: std :: mem :: offset_of ! (BiomeNoise , oct) - 240usize] ; ["Offset of field: BiomeNoise::sp"] [:: std :: mem :: offset_of ! (BiomeNoise , sp) - 14960usize] ; ["Offset of field: BiomeNoise::ss"] [:: std :: mem :: offset_of ! (BiomeNoise , ss) - 14968usize] ; ["Offset of field: BiomeNoise::nptype"] [:: std :: mem :: offset_of ! (BiomeNoise , nptype) - 24584usize] ; ["Offset of field: BiomeNoise::mc"] [:: std :: mem :: offset_of ! (BiomeNoise , mc) - 24588usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct BiomeNoiseBeta { pub climate : [OctaveNoise ; 3usize] , pub oct : [PerlinNoise ; 10usize] , pub nptype : :: std :: os :: raw :: c_int , pub mc : :: std :: os :: raw :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of BiomeNoiseBeta"] [:: std :: mem :: size_of :: < BiomeNoiseBeta > () - 3256usize] ; ["Alignment of BiomeNoiseBeta"] [:: std :: mem :: align_of :: < BiomeNoiseBeta > () - 8usize] ; ["Offset of field: BiomeNoiseBeta::climate"] [:: std :: mem :: offset_of ! (BiomeNoiseBeta , climate) - 0usize] ; ["Offset of field: BiomeNoiseBeta::oct"] [:: std :: mem :: offset_of ! (BiomeNoiseBeta , oct) - 48usize] ; ["Offset of field: BiomeNoiseBeta::nptype"] [:: std :: mem :: offset_of ! (BiomeNoiseBeta , nptype) - 3248usize] ; ["Offset of field: BiomeNoiseBeta::mc"] [:: std :: mem :: offset_of ! (BiomeNoiseBeta , mc) - 3252usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct BiomeTree { pub steps : * const u32 , pub param : * const i32 , pub nodes : * const u64 , pub order : u32 , pub len : u32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of BiomeTree"] [:: std :: mem :: size_of :: < BiomeTree > () - 32usize] ; ["Alignment of BiomeTree"] [:: std :: mem :: align_of :: < BiomeTree > () - 8usize] ; ["Offset of field: BiomeTree::steps"] [:: std :: mem :: offset_of ! (BiomeTree , steps) - 0usize] ; ["Offset of field: BiomeTree::param"] [:: std :: mem :: offset_of ! (BiomeTree , param) - 8usize] ; ["Offset of field: BiomeTree::nodes"] [:: std :: mem :: offset_of ! (BiomeTree , nodes) - 16usize] ; ["Offset of field: BiomeTree::order"] [:: std :: mem :: offset_of ! (BiomeTree , order) - 24usize] ; ["Offset of field: BiomeTree::len"] [:: std :: mem :: offset_of ! (BiomeTree , len) - 28usize] ; } ; unsafe extern "C" { pub fn initSurfaceNoise (sn : * mut SurfaceNoise , dim : :: std :: os :: raw :: c_int , seed : u64) ; } unsafe extern "C" { pub fn initSurfaceNoiseBeta (snb : * mut SurfaceNoiseBeta , seed : u64) ; } unsafe extern "C" { pub fn sampleSurfaceNoise (sn : * const SurfaceNoise , x : :: std :: os :: raw :: c_int , y : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int) -> f64 ; } unsafe extern "C" { pub fn sampleSurfaceNoiseBetween (sn : * const SurfaceNoise , x : :: std :: os :: raw :: c_int , y : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , noiseMin : f64 , noiseMax : f64) -> f64 ; } unsafe extern "C" { # [doc = " Nether biomes are 3D, and generated at scale 1:4. Use voronoiAccess3D() to\n convert coordinates at 1:1 scale to their 1:4 access. Biome checks for\n structures are generally done at y=0.\n\n The function getNetherBiome() determines the nether biome at a given\n coordinate at scale 1:4. The parameter 'ndel' is an output noise delta for\n optimization purposes and can be ignored (nullable).\n\n Use mapNether2D() to get a 2D area of nether biomes at y=0, scale 1:4.\n\n The mapNether3D() function attempts to optimize the generation of a volume\n at scale 1:4. The output is indexed as:\n out[i_y*(r.sx*r.sz) + i_z*r.sx + i_x].\n If the optimization parameter 'confidence' has a value less than 1.0, the\n generation will generally be faster, but can yield incorrect results in some\n circumstances.\n\n The output buffer for the map-functions need only be of sufficient size to\n hold the generated area (i.e. w*h or r.sx*r.sy*r.sz)."] pub fn setNetherSeed (nn : * mut NetherNoise , seed : u64) ; } unsafe extern "C" { pub fn getNetherBiome (nn : * const NetherNoise , x : :: std :: os :: raw :: c_int , y : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , ndel : * mut f32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapNether2D (nn : * const NetherNoise , out : * mut :: std :: os :: raw :: c_int , x : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , w : :: std :: os :: raw :: c_int , h : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapNether3D (nn : * const NetherNoise , out : * mut :: std :: os :: raw :: c_int , r : Range , confidence : f32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " The scaled Nether generation supports scales 1, 4, 16, 64, and 256.\n It is similar to mapNether3D(), but applies voronoi zoom if necessary, and\n fills the output buffer with nether_wastes for versions older than 1.16."] pub fn genNetherScaled (nn : * const NetherNoise , out : * mut :: std :: os :: raw :: c_int , r : Range , mc : :: std :: os :: raw :: c_int , sha : u64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " End biome generation is based on simplex noise and varies only at a 1:16\n chunk scale which can be generated with mapEndBiome(). The function mapEnd()\n is a variation which also scales this up on a regular grid to 1:4. The final\n access at a 1:1 scale uses voronoi."] pub fn setEndSeed (en : * mut EndNoise , mc : :: std :: os :: raw :: c_int , seed : u64) ; } unsafe extern "C" { pub fn mapEndBiome (en : * const EndNoise , out : * mut :: std :: os :: raw :: c_int , x : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , w : :: std :: os :: raw :: c_int , h : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapEnd (en : * const EndNoise , out : * mut :: std :: os :: raw :: c_int , x : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , w : :: std :: os :: raw :: c_int , h : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getEndSurfaceHeight (mc : :: std :: os :: raw :: c_int , seed : u64 , x : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapEndSurfaceHeight (y : * mut f32 , en : * const EndNoise , sn : * const SurfaceNoise , x : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , w : :: std :: os :: raw :: c_int , h : :: std :: os :: raw :: c_int , scale : :: std :: os :: raw :: c_int , ymin : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " The scaled End generation supports scales 1, 4, 16, and 64.\n The End biomes are usually 2D, but in 1.15+ there is 3D voronoi noise, which\n is controlled by the 'sha' hash of the seed. For scales higher than 1:1, and\n versions up to 1.14, 'sha' is ignored."] pub fn genEndScaled (en : * const EndNoise , out : * mut :: std :: os :: raw :: c_int , r : Range , mc : :: std :: os :: raw :: c_int , sha : u64) -> :: std :: os :: raw :: c_int ; } pub const SAMPLE_NO_SHIFT : _bindgen_ty_3 = _bindgen_ty_3 (1) ; pub const SAMPLE_NO_DEPTH : _bindgen_ty_3 = _bindgen_ty_3 (2) ; pub const SAMPLE_NO_BIOME : _bindgen_ty_3 = _bindgen_ty_3 (4) ; # [repr (transparent)] # [doc = " In 1.18 the Overworld uses a new noise map system for the biome generation.\n The random number generation also has updated to a Xiroshiro128 algorithm.\n The scale is 1:4, and is sampled at each point individually as there is\n currently not much benefit from generating a volume as a whole.\n\n The 1.18 End generation remains similar to 1.17 and does NOT use the\n biome noise."] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct _bindgen_ty_3 (pub :: std :: os :: raw :: c_uint) ; unsafe extern "C" { pub fn initBiomeNoise (bn : * mut BiomeNoise , mc : :: std :: os :: raw :: c_int) ; } unsafe extern "C" { pub fn setBiomeSeed (bn : * mut BiomeNoise , seed : u64 , large : :: std :: os :: raw :: c_int) ; } unsafe extern "C" { pub fn setBetaBiomeSeed (bnb : * mut BiomeNoiseBeta , seed : u64) ; } unsafe extern "C" { pub fn sampleBiomeNoise (bn : * const BiomeNoise , np : * mut i64 , x : :: std :: os :: raw :: c_int , y : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , dat : * mut u64 , sample_flags : u32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn sampleBiomeNoiseBeta (bnb : * const BiomeNoiseBeta , np : * mut i64 , nv : * mut f64 , x : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn approxSurfaceBeta (bnb : * const BiomeNoiseBeta , snb : * const SurfaceNoiseBeta , x : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int) -> f64 ; } unsafe extern "C" { # [doc = " (Alpha 1.2 - Beta 1.7)\n Temperature and humidity values to biome."] pub fn getOldBetaBiome (t : f32 , h : f32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " Uses the global biome tree definitions (see tables/btreeXX.h)\n to map a noise point (i.e. climate) to the corresponding overworld biome."] pub fn climateToBiome (mc : :: std :: os :: raw :: c_int , np : * const u64 , dat : * mut u64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " Initialize BiomeNoise for only a single climate parameter.\n If nptype == NP_DEPTH, the value is sampled at y=0. Note that this value\n changes linearly with the height (i.e. -= y/128).\n A maximum of nmax octaves is set, initializing only the most contributing\n octaves up to that point. Use -1 for a full initialization."] pub fn setClimateParaSeed (bn : * mut BiomeNoise , seed : u64 , large : :: std :: os :: raw :: c_int , nptype : :: std :: os :: raw :: c_int , nmax : :: std :: os :: raw :: c_int) ; } unsafe extern "C" { pub fn sampleClimatePara (bn : * const BiomeNoise , np : * mut i64 , x : f64 , z : f64) -> f64 ; } unsafe extern "C" { # [doc = " Currently, in 1.18, we have to generate biomes one chunk at a time to get an\n accurate mapping of the biomes in the level storage, as there is no longer a\n unique mapping from noise points to biomes (MC-241546). Note that the results\n from this are not suitable for chunk population/structure generation.\n The output is in the form out[x][y][z] for the 64 biome points in the chunk\n section. The coordinates {cx,cy,cz} are all at scale 1:16 and the 'dat'\n argument should be the previous noise sampling and can be left NULL."] pub fn genBiomeNoiseChunkSection (bn : * const BiomeNoise , out : * mut [[:: std :: os :: raw :: c_int ; 4usize] ; 4usize] , cx : :: std :: os :: raw :: c_int , cy : :: std :: os :: raw :: c_int , cz : :: std :: os :: raw :: c_int , dat : * mut u64) ; } unsafe extern "C" { # [doc = " The scaled biome noise generation applies for the Overworld version 1.18+.\n The 'sha' hash of the seed is only required for voronoi at scale 1:1.\n A scale of zero is interpreted as the default 1:4 scale."] pub fn genBiomeNoiseScaled (bn : * const BiomeNoise , out : * mut :: std :: os :: raw :: c_int , r : Range , sha : u64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " Generates the biomes for Beta 1.7, the surface noise is optional and enables\n ocean mapping in areas that fall below the sea level."] pub fn genBiomeNoiseBetaScaled (bnb : * const BiomeNoiseBeta , snb : * const SurfaceNoiseBeta , out : * mut :: std :: os :: raw :: c_int , r : Range) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getBiomeDepthAndScale (id : :: std :: os :: raw :: c_int , depth : * mut f64 , scale : * mut f64 , grass : * mut :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getVoronoiSrcRange (r : Range) -> Range ; } pub const LARGE_BIOMES : _bindgen_ty_4 = _bindgen_ty_4 (1) ; pub const NO_BETA_OCEAN : _bindgen_ty_4 = _bindgen_ty_4 (2) ; pub const FORCE_OCEAN_VARIANTS : _bindgen_ty_4 = _bindgen_ty_4 (4) ; # [repr (transparent)] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct _bindgen_ty_4 (pub :: std :: os :: raw :: c_uint) ; # [repr (C)] # [derive (Copy , Clone)] pub struct Generator { pub mc : :: std :: os :: raw :: c_int , pub dim : :: std :: os :: raw :: c_int , pub flags : u32 , pub seed : u64 , pub sha : u64 , pub __bindgen_anon_1 : Generator__bindgen_ty_1 , pub nn : NetherNoise , pub en : EndNoise , } # [repr (C)] # [derive (Copy , Clone)] pub union Generator__bindgen_ty_1 { pub __bindgen_anon_1 : Generator__bindgen_ty_1__bindgen_ty_1 , pub __bindgen_anon_2 : Generator__bindgen_ty_1__bindgen_ty_2 , pub __bindgen_anon_3 : Generator__bindgen_ty_1__bindgen_ty_3 , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Generator__bindgen_ty_1__bindgen_ty_1 { pub ls : LayerStack , pub xlayer : [Layer ; 5usize] , pub entry : * mut Layer , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Generator__bindgen_ty_1__bindgen_ty_1"] [:: std :: mem :: size_of :: < Generator__bindgen_ty_1__bindgen_ty_1 > () - 5120usize] ; ["Alignment of Generator__bindgen_ty_1__bindgen_ty_1"] [:: std :: mem :: align_of :: < Generator__bindgen_ty_1__bindgen_ty_1 > () - 8usize] ; ["Offset of field: Generator__bindgen_ty_1__bindgen_ty_1::ls"] [:: std :: mem :: offset_of ! (Generator__bindgen_ty_1__bindgen_ty_1 , ls) - 0usize] ; ["Offset of field: Generator__bindgen_ty_1__bindgen_ty_1::xlayer"] [:: std :: mem :: offset_of ! (Generator__bindgen_ty_1__bindgen_ty_1 , xlayer) - 4752usize] ; ["Offset of field: Generator__bindgen_ty_1__bindgen_ty_1::entry"] [:: std :: mem :: offset_of ! (Generator__bindgen_ty_1__bindgen_ty_1 , entry) - 5112usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Generator__bindgen_ty_1__bindgen_ty_2 { pub bn : BiomeNoise , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Generator__bindgen_ty_1__bindgen_ty_2"] [:: std :: mem :: size_of :: < Generator__bindgen_ty_1__bindgen_ty_2 > () - 24592usize] ; ["Alignment of Generator__bindgen_ty_1__bindgen_ty_2"] [:: std :: mem :: align_of :: < Generator__bindgen_ty_1__bindgen_ty_2 > () - 8usize] ; ["Offset of field: Generator__bindgen_ty_1__bindgen_ty_2::bn"] [:: std :: mem :: offset_of ! (Generator__bindgen_ty_1__bindgen_ty_2 , bn) - 0usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Generator__bindgen_ty_1__bindgen_ty_3 { pub bnb : BiomeNoiseBeta , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Generator__bindgen_ty_1__bindgen_ty_3"] [:: std :: mem :: size_of :: < Generator__bindgen_ty_1__bindgen_ty_3 > () - 3256usize] ; ["Alignment of Generator__bindgen_ty_1__bindgen_ty_3"] [:: std :: mem :: align_of :: < Generator__bindgen_ty_1__bindgen_ty_3 > () - 8usize] ; ["Offset of field: Generator__bindgen_ty_1__bindgen_ty_3::bnb"] [:: std :: mem :: offset_of ! (Generator__bindgen_ty_1__bindgen_ty_3 , bnb) - 0usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Generator__bindgen_ty_1"] [:: std :: mem :: size_of :: < Generator__bindgen_ty_1 > () - 24592usize] ; ["Alignment of Generator__bindgen_ty_1"] [:: std :: mem :: align_of :: < Generator__bindgen_ty_1 > () - 8usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Generator"] [:: std :: mem :: size_of :: < Generator > () - 27592usize] ; ["Alignment of Generator"] [:: std :: mem :: align_of :: < Generator > () - 8usize] ; ["Offset of field: Generator::mc"] [:: std :: mem :: offset_of ! (Generator , mc) - 0usize] ; ["Offset of field: Generator::dim"] [:: std :: mem :: offset_of ! (Generator , dim) - 4usize] ; ["Offset of field: Generator::flags"] [:: std :: mem :: offset_of ! (Generator , flags) - 8usize] ; ["Offset of field: Generator::seed"] [:: std :: mem :: offset_of ! (Generator , seed) - 16usize] ; ["Offset of field: Generator::sha"] [:: std :: mem :: offset_of ! (Generator , sha) - 24usize] ; ["Offset of field: Generator::nn"] [:: std :: mem :: offset_of ! (Generator , nn) - 24624usize] ; ["Offset of field: Generator::en"] [:: std :: mem :: offset_of ! (Generator , en) - 27264usize] ; } ; unsafe extern "C" { # [doc = " Sets up a biome generator for a given MC version. The 'flags' can be used to\n control LARGE_BIOMES or to FORCE_OCEAN_VARIANTS to enable ocean variants at\n scales higher than normal."] pub fn setupGenerator (g : * mut Generator , mc : :: std :: os :: raw :: c_int , flags : u32) ; } unsafe extern "C" { # [doc = " Initializes the generator for a given dimension and seed.\n dim=0:   Overworld\n dim=-1:  Nether\n dim=+1:  End"] pub fn applySeed (g : * mut Generator , dim : :: std :: os :: raw :: c_int , seed : u64) ; } unsafe extern "C" { # [doc = " Calculates the buffer size (number of ints) required to generate a cuboidal\n volume of size (sx, sy, sz). If 'sy' is zero the buffer is calculated for a\n 2D plane (which is equivalent to sy=1 here).\n The function allocCache() can be used to allocate the corresponding int\n buffer using malloc()."] pub fn getMinCacheSize (g : * const Generator , scale : :: std :: os :: raw :: c_int , sx : :: std :: os :: raw :: c_int , sy : :: std :: os :: raw :: c_int , sz : :: std :: os :: raw :: c_int) -> usize ; } unsafe extern "C" { pub fn allocCache (g : * const Generator , r : Range) -> * mut :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " Generates the biomes for a cuboidal scaled range given by 'r'.\n (See description of Range for more detail.)\n\n The output is generated inside the cache. Upon success the biome ids can be\n accessed by indexing as:\n  cache[ y*r.sx*r.sz + z*r.sx + x ]\n where (x,y,z) is an relative position inside the range cuboid.\n\n The required length of the cache can be determined with getMinCacheSize().\n\n The return value is zero upon success."] pub fn genBiomes (g : * const Generator , cache : * mut :: std :: os :: raw :: c_int , r : Range) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " Gets the biome for a specified scaled position. Note that the scale should\n be either 1 or 4, for block or biome coordinates respectively.\n Returns none (-1) upon failure."] pub fn getBiomeAt (g : * const Generator , scale : :: std :: os :: raw :: c_int , x : :: std :: os :: raw :: c_int , y : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " Returns the default layer that corresponds to the given scale.\n Supported scales are {0, 1, 4, 16, 64, 256}. A scale of zero indicates the\n custom entry layer 'g->entry'.\n (Overworld, MC <= 1.17)"] pub fn getLayerForScale (g : * const Generator , scale : :: std :: os :: raw :: c_int) -> * const Layer ; } unsafe extern "C" { # [doc = "=============================================================================\n Layered Biome Generation (old interface up to 1.17)\n============================================================================="] pub fn setupLayerStack (g : * mut LayerStack , mc : :: std :: os :: raw :: c_int , largeBiomes : :: std :: os :: raw :: c_int) ; } unsafe extern "C" { pub fn getMinLayerCacheSize (layer : * const Layer , sizeX : :: std :: os :: raw :: c_int , sizeZ : :: std :: os :: raw :: c_int) -> usize ; } unsafe extern "C" { pub fn setupLayer (l : * mut Layer , map : mapfunc_t , mc : :: std :: os :: raw :: c_int , zoom : i8 , edge : i8 , saltbase : u64 , p : * mut Layer , p2 : * mut Layer) -> * mut Layer ; } unsafe extern "C" { pub fn genArea (layer : * const Layer , out : * mut :: std :: os :: raw :: c_int , areaX : :: std :: os :: raw :: c_int , areaZ : :: std :: os :: raw :: c_int , areaWidth : :: std :: os :: raw :: c_int , areaHeight : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " Map an approximation of the Overworld surface height.\n The horizontal scaling is 1:4. If non-null, the ids are filled with the\n biomes of the area. The height (written to y) is in blocks."] pub fn mapApproxHeight (y : * mut f32 , ids : * mut :: std :: os :: raw :: c_int , g : * const Generator , sn : * const SurfaceNoise , x : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , w : :: std :: os :: raw :: c_int , h : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } impl StructureType { pub const Feature : StructureType = StructureType (0) ; } impl StructureType { pub const Desert_Pyramid : StructureType = StructureType (1) ; } impl StructureType { pub const Jungle_Temple : StructureType = StructureType (2) ; } impl StructureType { pub const Jungle_Pyramid : StructureType = StructureType (2) ; } impl StructureType { pub const Swamp_Hut : StructureType = StructureType (3) ; } impl StructureType { pub const Igloo : StructureType = StructureType (4) ; } impl StructureType { pub const Village : StructureType = StructureType (5) ; } impl StructureType { pub const Ocean_Ruin : StructureType = StructureType (6) ; } impl StructureType { pub const Shipwreck : StructureType = StructureType (7) ; } impl StructureType { pub const Monument : StructureType = StructureType (8) ; } impl StructureType { pub const Mansion : StructureType = StructureType (9) ; } impl StructureType { pub const Outpost : StructureType = StructureType (10) ; } impl StructureType { pub const Ruined_Portal : StructureType = StructureType (11) ; } impl StructureType { pub const Ruined_Portal_N : StructureType = StructureType (12) ; } impl StructureType { pub const Ancient_City : StructureType = StructureType (13) ; } impl StructureType { pub const Treasure : StructureType = StructureType (14) ; } impl StructureType { pub const Mineshaft : StructureType = StructureType (15) ; } impl StructureType { pub const Desert_Well : StructureType = StructureType (16) ; } impl StructureType { pub const Geode : StructureType = StructureType (17) ; } impl StructureType { pub const Fortress : StructureType = StructureType (18) ; } impl StructureType { pub const Bastion : StructureType = StructureType (19) ; } impl StructureType { pub const End_City : StructureType = StructureType (20) ; } impl StructureType { pub const End_Gateway : StructureType = StructureType (21) ; } impl StructureType { pub const End_Island : StructureType = StructureType (22) ; } impl StructureType { pub const Trail_Ruins : StructureType = StructureType (23) ; } impl StructureType { pub const Trial_Chambers : StructureType = StructureType (24) ; } impl StructureType { pub const FEATURE_NUM : StructureType = StructureType (25) ; } # [repr (transparent)] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct StructureType (pub :: std :: os :: raw :: c_uint) ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct StructureConfig { pub salt : i32 , pub regionSize : i8 , pub chunkRange : i8 , pub structType : u8 , pub dim : i8 , pub rarity : f32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of StructureConfig"] [:: std :: mem :: size_of :: < StructureConfig > () - 12usize] ; ["Alignment of StructureConfig"] [:: std :: mem :: align_of :: < StructureConfig > () - 4usize] ; ["Offset of field: StructureConfig::salt"] [:: std :: mem :: offset_of ! (StructureConfig , salt) - 0usize] ; ["Offset of field: StructureConfig::regionSize"] [:: std :: mem :: offset_of ! (StructureConfig , regionSize) - 4usize] ; ["Offset of field: StructureConfig::chunkRange"] [:: std :: mem :: offset_of ! (StructureConfig , chunkRange) - 5usize] ; ["Offset of field: StructureConfig::structType"] [:: std :: mem :: offset_of ! (StructureConfig , structType) - 6usize] ; ["Offset of field: StructureConfig::dim"] [:: std :: mem :: offset_of ! (StructureConfig , dim) - 7usize] ; ["Offset of field: StructureConfig::rarity"] [:: std :: mem :: offset_of ! (StructureConfig , rarity) - 8usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Pos { pub x : :: std :: os :: raw :: c_int , pub z : :: std :: os :: raw :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Pos"] [:: std :: mem :: size_of :: < Pos > () - 8usize] ; ["Alignment of Pos"] [:: std :: mem :: align_of :: < Pos > () - 4usize] ; ["Offset of field: Pos::x"] [:: std :: mem :: offset_of ! (Pos , x) - 0usize] ; ["Offset of field: Pos::z"] [:: std :: mem :: offset_of ! (Pos , z) - 4usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Pos3 { pub x : :: std :: os :: raw :: c_int , pub y : :: std :: os :: raw :: c_int , pub z : :: std :: os :: raw :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Pos3"] [:: std :: mem :: size_of :: < Pos3 > () - 12usize] ; ["Alignment of Pos3"] [:: std :: mem :: align_of :: < Pos3 > () - 4usize] ; ["Offset of field: Pos3::x"] [:: std :: mem :: offset_of ! (Pos3 , x) - 0usize] ; ["Offset of field: Pos3::y"] [:: std :: mem :: offset_of ! (Pos3 , y) - 4usize] ; ["Offset of field: Pos3::z"] [:: std :: mem :: offset_of ! (Pos3 , z) - 8usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct StrongholdIter { pub pos : Pos , pub nextapprox : Pos , pub index : :: std :: os :: raw :: c_int , pub ringnum : :: std :: os :: raw :: c_int , pub ringmax : :: std :: os :: raw :: c_int , pub ringidx : :: std :: os :: raw :: c_int , pub angle : f64 , pub dist : f64 , pub rnds : u64 , pub mc : :: std :: os :: raw :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of StrongholdIter"] [:: std :: mem :: size_of :: < StrongholdIter > () - 64usize] ; ["Alignment of StrongholdIter"] [:: std :: mem :: align_of :: < StrongholdIter > () - 8usize] ; ["Offset of field: StrongholdIter::pos"] [:: std :: mem :: offset_of ! (StrongholdIter , pos) - 0usize] ; ["Offset of field: StrongholdIter::nextapprox"] [:: std :: mem :: offset_of ! (StrongholdIter , nextapprox) - 8usize] ; ["Offset of field: StrongholdIter::index"] [:: std :: mem :: offset_of ! (StrongholdIter , index) - 16usize] ; ["Offset of field: StrongholdIter::ringnum"] [:: std :: mem :: offset_of ! (StrongholdIter , ringnum) - 20usize] ; ["Offset of field: StrongholdIter::ringmax"] [:: std :: mem :: offset_of ! (StrongholdIter , ringmax) - 24usize] ; ["Offset of field: StrongholdIter::ringidx"] [:: std :: mem :: offset_of ! (StrongholdIter , ringidx) - 28usize] ; ["Offset of field: StrongholdIter::angle"] [:: std :: mem :: offset_of ! (StrongholdIter , angle) - 32usize] ; ["Offset of field: StrongholdIter::dist"] [:: std :: mem :: offset_of ! (StrongholdIter , dist) - 40usize] ; ["Offset of field: StrongholdIter::rnds"] [:: std :: mem :: offset_of ! (StrongholdIter , rnds) - 48usize] ; ["Offset of field: StrongholdIter::mc"] [:: std :: mem :: offset_of ! (StrongholdIter , mc) - 56usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct StructureVariant { pub _bitfield_align_1 : [u8 ; 0] , pub _bitfield_1 : __BindgenBitfieldUnit < [u8 ; 1usize] > , pub size : u8 , pub start : u8 , pub biome : :: std :: os :: raw :: c_short , pub rotation : u8 , pub mirror : u8 , pub x : i16 , pub y : i16 , pub z : i16 , pub sx : i16 , pub sy : i16 , pub sz : i16 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of StructureVariant"] [:: std :: mem :: size_of :: < StructureVariant > () - 20usize] ; ["Alignment of StructureVariant"] [:: std :: mem :: align_of :: < StructureVariant > () - 2usize] ; ["Offset of field: StructureVariant::size"] [:: std :: mem :: offset_of ! (StructureVariant , size) - 1usize] ; ["Offset of field: StructureVariant::start"] [:: std :: mem :: offset_of ! (StructureVariant , start) - 2usize] ; ["Offset of field: StructureVariant::biome"] [:: std :: mem :: offset_of ! (StructureVariant , biome) - 4usize] ; ["Offset of field: StructureVariant::rotation"] [:: std :: mem :: offset_of ! (StructureVariant , rotation) - 6usize] ; ["Offset of field: StructureVariant::mirror"] [:: std :: mem :: offset_of ! (StructureVariant , mirror) - 7usize] ; ["Offset of field: StructureVariant::x"] [:: std :: mem :: offset_of ! (StructureVariant , x) - 8usize] ; ["Offset of field: StructureVariant::y"] [:: std :: mem :: offset_of ! (StructureVariant , y) - 10usize] ; ["Offset of field: StructureVariant::z"] [:: std :: mem :: offset_of ! (StructureVariant , z) - 12usize] ; ["Offset of field: StructureVariant::sx"] [:: std :: mem :: offset_of ! (StructureVariant , sx) - 14usize] ; ["Offset of field: StructureVariant::sy"] [:: std :: mem :: offset_of ! (StructureVariant , sy) - 16usize] ; ["Offset of field: StructureVariant::sz"] [:: std :: mem :: offset_of ! (StructureVariant , sz) - 18usize] ; } ; impl StructureVariant { # [inline] pub fn abandoned (& self) -> u8 { unsafe { :: std :: mem :: transmute (self . _bitfield_1 . get (0usize , 1u8) as u8) } } # [inline] pub fn set_abandoned (& mut self , val : u8) { unsafe { let val : u8 = :: std :: mem :: transmute (val) ; self . _bitfield_1 . set (0usize , 1u8 , val as u64) } } # [inline] pub unsafe fn abandoned_raw (this : * const Self) -> u8 { unsafe { :: std :: mem :: transmute (< __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_get (:: std :: ptr :: addr_of ! ((* this) . _bitfield_1) , 0usize , 1u8 ,) as u8) } } # [inline] pub unsafe fn set_abandoned_raw (this : * mut Self , val : u8) { unsafe { let val : u8 = :: std :: mem :: transmute (val) ; < __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_set (:: std :: ptr :: addr_of_mut ! ((* this) . _bitfield_1) , 0usize , 1u8 , val as u64 ,) } } # [inline] pub fn giant (& self) -> u8 { unsafe { :: std :: mem :: transmute (self . _bitfield_1 . get (1usize , 1u8) as u8) } } # [inline] pub fn set_giant (& mut self , val : u8) { unsafe { let val : u8 = :: std :: mem :: transmute (val) ; self . _bitfield_1 . set (1usize , 1u8 , val as u64) } } # [inline] pub unsafe fn giant_raw (this : * const Self) -> u8 { unsafe { :: std :: mem :: transmute (< __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_get (:: std :: ptr :: addr_of ! ((* this) . _bitfield_1) , 1usize , 1u8 ,) as u8) } } # [inline] pub unsafe fn set_giant_raw (this : * mut Self , val : u8) { unsafe { let val : u8 = :: std :: mem :: transmute (val) ; < __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_set (:: std :: ptr :: addr_of_mut ! ((* this) . _bitfield_1) , 1usize , 1u8 , val as u64 ,) } } # [inline] pub fn underground (& self) -> u8 { unsafe { :: std :: mem :: transmute (self . _bitfield_1 . get (2usize , 1u8) as u8) } } # [inline] pub fn set_underground (& mut self , val : u8) { unsafe { let val : u8 = :: std :: mem :: transmute (val) ; self . _bitfield_1 . set (2usize , 1u8 , val as u64) } } # [inline] pub unsafe fn underground_raw (this : * const Self) -> u8 { unsafe { :: std :: mem :: transmute (< __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_get (:: std :: ptr :: addr_of ! ((* this) . _bitfield_1) , 2usize , 1u8 ,) as u8) } } # [inline] pub unsafe fn set_underground_raw (this : * mut Self , val : u8) { unsafe { let val : u8 = :: std :: mem :: transmute (val) ; < __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_set (:: std :: ptr :: addr_of_mut ! ((* this) . _bitfield_1) , 2usize , 1u8 , val as u64 ,) } } # [inline] pub fn airpocket (& self) -> u8 { unsafe { :: std :: mem :: transmute (self . _bitfield_1 . get (3usize , 1u8) as u8) } } # [inline] pub fn set_airpocket (& mut self , val : u8) { unsafe { let val : u8 = :: std :: mem :: transmute (val) ; self . _bitfield_1 . set (3usize , 1u8 , val as u64) } } # [inline] pub unsafe fn airpocket_raw (this : * const Self) -> u8 { unsafe { :: std :: mem :: transmute (< __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_get (:: std :: ptr :: addr_of ! ((* this) . _bitfield_1) , 3usize , 1u8 ,) as u8) } } # [inline] pub unsafe fn set_airpocket_raw (this : * mut Self , val : u8) { unsafe { let val : u8 = :: std :: mem :: transmute (val) ; < __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_set (:: std :: ptr :: addr_of_mut ! ((* this) . _bitfield_1) , 3usize , 1u8 , val as u64 ,) } } # [inline] pub fn basement (& self) -> u8 { unsafe { :: std :: mem :: transmute (self . _bitfield_1 . get (4usize , 1u8) as u8) } } # [inline] pub fn set_basement (& mut self , val : u8) { unsafe { let val : u8 = :: std :: mem :: transmute (val) ; self . _bitfield_1 . set (4usize , 1u8 , val as u64) } } # [inline] pub unsafe fn basement_raw (this : * const Self) -> u8 { unsafe { :: std :: mem :: transmute (< __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_get (:: std :: ptr :: addr_of ! ((* this) . _bitfield_1) , 4usize , 1u8 ,) as u8) } } # [inline] pub unsafe fn set_basement_raw (this : * mut Self , val : u8) { unsafe { let val : u8 = :: std :: mem :: transmute (val) ; < __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_set (:: std :: ptr :: addr_of_mut ! ((* this) . _bitfield_1) , 4usize , 1u8 , val as u64 ,) } } # [inline] pub fn cracked (& self) -> u8 { unsafe { :: std :: mem :: transmute (self . _bitfield_1 . get (5usize , 1u8) as u8) } } # [inline] pub fn set_cracked (& mut self , val : u8) { unsafe { let val : u8 = :: std :: mem :: transmute (val) ; self . _bitfield_1 . set (5usize , 1u8 , val as u64) } } # [inline] pub unsafe fn cracked_raw (this : * const Self) -> u8 { unsafe { :: std :: mem :: transmute (< __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_get (:: std :: ptr :: addr_of ! ((* this) . _bitfield_1) , 5usize , 1u8 ,) as u8) } } # [inline] pub unsafe fn set_cracked_raw (this : * mut Self , val : u8) { unsafe { let val : u8 = :: std :: mem :: transmute (val) ; < __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_set (:: std :: ptr :: addr_of_mut ! ((* this) . _bitfield_1) , 5usize , 1u8 , val as u64 ,) } } # [inline] pub fn new_bitfield_1 (abandoned : u8 , giant : u8 , underground : u8 , airpocket : u8 , basement : u8 , cracked : u8) -> __BindgenBitfieldUnit < [u8 ; 1usize] > { let mut __bindgen_bitfield_unit : __BindgenBitfieldUnit < [u8 ; 1usize] > = Default :: default () ; __bindgen_bitfield_unit . set (0usize , 1u8 , { let abandoned : u8 = unsafe { :: std :: mem :: transmute (abandoned) } ; abandoned as u64 }) ; __bindgen_bitfield_unit . set (1usize , 1u8 , { let giant : u8 = unsafe { :: std :: mem :: transmute (giant) } ; giant as u64 }) ; __bindgen_bitfield_unit . set (2usize , 1u8 , { let underground : u8 = unsafe { :: std :: mem :: transmute (underground) } ; underground as u64 }) ; __bindgen_bitfield_unit . set (3usize , 1u8 , { let airpocket : u8 = unsafe { :: std :: mem :: transmute (airpocket) } ; airpocket as u64 }) ; __bindgen_bitfield_unit . set (4usize , 1u8 , { let basement : u8 = unsafe { :: std :: mem :: transmute (basement) } ; basement as u64 }) ; __bindgen_bitfield_unit . set (5usize , 1u8 , { let cracked : u8 = unsafe { :: std :: mem :: transmute (cracked) } ; cracked as u64 }) ; __bindgen_bitfield_unit } } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Piece { pub name : * const :: std :: os :: raw :: c_char , pub pos : Pos3 , pub bb0 : Pos3 , pub bb1 : Pos3 , pub rot : u8 , pub depth : i8 , pub type_ : i8 , pub next : * mut Piece , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Piece"] [:: std :: mem :: size_of :: < Piece > () - 56usize] ; ["Alignment of Piece"] [:: std :: mem :: align_of :: < Piece > () - 8usize] ; ["Offset of field: Piece::name"] [:: std :: mem :: offset_of ! (Piece , name) - 0usize] ; ["Offset of field: Piece::pos"] [:: std :: mem :: offset_of ! (Piece , pos) - 8usize] ; ["Offset of field: Piece::bb0"] [:: std :: mem :: offset_of ! (Piece , bb0) - 20usize] ; ["Offset of field: Piece::bb1"] [:: std :: mem :: offset_of ! (Piece , bb1) - 32usize] ; ["Offset of field: Piece::rot"] [:: std :: mem :: offset_of ! (Piece , rot) - 44usize] ; ["Offset of field: Piece::depth"] [:: std :: mem :: offset_of ! (Piece , depth) - 45usize] ; ["Offset of field: Piece::type_"] [:: std :: mem :: offset_of ! (Piece , type_) - 46usize] ; ["Offset of field: Piece::next"] [:: std :: mem :: offset_of ! (Piece , next) - 48usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct EndIsland { pub x : :: std :: os :: raw :: c_int , pub y : :: std :: os :: raw :: c_int , pub z : :: std :: os :: raw :: c_int , pub r : :: std :: os :: raw :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of EndIsland"] [:: std :: mem :: size_of :: < EndIsland > () - 16usize] ; ["Alignment of EndIsland"] [:: std :: mem :: align_of :: < EndIsland > () - 4usize] ; ["Offset of field: EndIsland::x"] [:: std :: mem :: offset_of ! (EndIsland , x) - 0usize] ; ["Offset of field: EndIsland::y"] [:: std :: mem :: offset_of ! (EndIsland , y) - 4usize] ; ["Offset of field: EndIsland::z"] [:: std :: mem :: offset_of ! (EndIsland , z) - 8usize] ; ["Offset of field: EndIsland::r"] [:: std :: mem :: offset_of ! (EndIsland , r) - 12usize] ; } ; pub const BF_APPROX : _bindgen_ty_5 = _bindgen_ty_5 (1) ; pub const BF_FORCED_OCEAN : _bindgen_ty_5 = _bindgen_ty_5 (4) ; # [repr (transparent)] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct _bindgen_ty_5 (pub :: std :: os :: raw :: c_uint) ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct BiomeFilter { pub tempsToFind : u64 , pub otempToFind : u64 , pub majorToFind : u64 , pub edgesToFind : u64 , pub raresToFind : u64 , pub raresToFindM : u64 , pub shoreToFind : u64 , pub shoreToFindM : u64 , pub riverToFind : u64 , pub riverToFindM : u64 , pub oceanToFind : u64 , pub specialCnt : :: std :: os :: raw :: c_int , pub flags : u32 , pub tempsToExcl : u64 , pub majorToExcl : u64 , pub edgesToExcl : u64 , pub raresToExcl : u64 , pub raresToExclM : u64 , pub shoreToExcl : u64 , pub shoreToExclM : u64 , pub riverToExcl : u64 , pub riverToExclM : u64 , pub biomeToExcl : u64 , pub biomeToExclM : u64 , pub biomeToFind : u64 , pub biomeToFindM : u64 , pub biomeToPick : u64 , pub biomeToPickM : u64 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of BiomeFilter"] [:: std :: mem :: size_of :: < BiomeFilter > () - 216usize] ; ["Alignment of BiomeFilter"] [:: std :: mem :: align_of :: < BiomeFilter > () - 8usize] ; ["Offset of field: BiomeFilter::tempsToFind"] [:: std :: mem :: offset_of ! (BiomeFilter , tempsToFind) - 0usize] ; ["Offset of field: BiomeFilter::otempToFind"] [:: std :: mem :: offset_of ! (BiomeFilter , otempToFind) - 8usize] ; ["Offset of field: BiomeFilter::majorToFind"] [:: std :: mem :: offset_of ! (BiomeFilter , majorToFind) - 16usize] ; ["Offset of field: BiomeFilter::edgesToFind"] [:: std :: mem :: offset_of ! (BiomeFilter , edgesToFind) - 24usize] ; ["Offset of field: BiomeFilter::raresToFind"] [:: std :: mem :: offset_of ! (BiomeFilter , raresToFind) - 32usize] ; ["Offset of field: BiomeFilter::raresToFindM"] [:: std :: mem :: offset_of ! (BiomeFilter , raresToFindM) - 40usize] ; ["Offset of field: BiomeFilter::shoreToFind"] [:: std :: mem :: offset_of ! (BiomeFilter , shoreToFind) - 48usize] ; ["Offset of field: BiomeFilter::shoreToFindM"] [:: std :: mem :: offset_of ! (BiomeFilter , shoreToFindM) - 56usize] ; ["Offset of field: BiomeFilter::riverToFind"] [:: std :: mem :: offset_of ! (BiomeFilter , riverToFind) - 64usize] ; ["Offset of field: BiomeFilter::riverToFindM"] [:: std :: mem :: offset_of ! (BiomeFilter , riverToFindM) - 72usize] ; ["Offset of field: BiomeFilter::oceanToFind"] [:: std :: mem :: offset_of ! (BiomeFilter , oceanToFind) - 80usize] ; ["Offset of field: BiomeFilter::specialCnt"] [:: std :: mem :: offset_of ! (BiomeFilter , specialCnt) - 88usize] ; ["Offset of field: BiomeFilter::flags"] [:: std :: mem :: offset_of ! (BiomeFilter , flags) - 92usize] ; ["Offset of field: BiomeFilter::tempsToExcl"] [:: std :: mem :: offset_of ! (BiomeFilter , tempsToExcl) - 96usize] ; ["Offset of field: BiomeFilter::majorToExcl"] [:: std :: mem :: offset_of ! (BiomeFilter , majorToExcl) - 104usize] ; ["Offset of field: BiomeFilter::edgesToExcl"] [:: std :: mem :: offset_of ! (BiomeFilter , edgesToExcl) - 112usize] ; ["Offset of field: BiomeFilter::raresToExcl"] [:: std :: mem :: offset_of ! (BiomeFilter , raresToExcl) - 120usize] ; ["Offset of field: BiomeFilter::raresToExclM"] [:: std :: mem :: offset_of ! (BiomeFilter , raresToExclM) - 128usize] ; ["Offset of field: BiomeFilter::shoreToExcl"] [:: std :: mem :: offset_of ! (BiomeFilter , shoreToExcl) - 136usize] ; ["Offset of field: BiomeFilter::shoreToExclM"] [:: std :: mem :: offset_of ! (BiomeFilter , shoreToExclM) - 144usize] ; ["Offset of field: BiomeFilter::riverToExcl"] [:: std :: mem :: offset_of ! (BiomeFilter , riverToExcl) - 152usize] ; ["Offset of field: BiomeFilter::riverToExclM"] [:: std :: mem :: offset_of ! (BiomeFilter , riverToExclM) - 160usize] ; ["Offset of field: BiomeFilter::biomeToExcl"] [:: std :: mem :: offset_of ! (BiomeFilter , biomeToExcl) - 168usize] ; ["Offset of field: BiomeFilter::biomeToExclM"] [:: std :: mem :: offset_of ! (BiomeFilter , biomeToExclM) - 176usize] ; ["Offset of field: BiomeFilter::biomeToFind"] [:: std :: mem :: offset_of ! (BiomeFilter , biomeToFind) - 184usize] ; ["Offset of field: BiomeFilter::biomeToFindM"] [:: std :: mem :: offset_of ! (BiomeFilter , biomeToFindM) - 192usize] ; ["Offset of field: BiomeFilter::biomeToPick"] [:: std :: mem :: offset_of ! (BiomeFilter , biomeToPick) - 200usize] ; ["Offset of field: BiomeFilter::biomeToPickM"] [:: std :: mem :: offset_of ! (BiomeFilter , biomeToPickM) - 208usize] ; } ; unsafe extern "C" { pub fn getStructureConfig (structureType : :: std :: os :: raw :: c_int , mc : :: std :: os :: raw :: c_int , sconf : * mut StructureConfig) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getStructurePos (structureType : :: std :: os :: raw :: c_int , mc : :: std :: os :: raw :: c_int , seed : u64 , regX : :: std :: os :: raw :: c_int , regZ : :: std :: os :: raw :: c_int , pos : * mut Pos) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getMineshafts (mc : :: std :: os :: raw :: c_int , seed : u64 , chunkX : :: std :: os :: raw :: c_int , chunkZ : :: std :: os :: raw :: c_int , chunkW : :: std :: os :: raw :: c_int , chunkH : :: std :: os :: raw :: c_int , out : * mut Pos , nout : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getEndIslands (islands : * mut EndIsland , mc : :: std :: os :: raw :: c_int , seed : u64 , chunkX : :: std :: os :: raw :: c_int , chunkZ : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapEndIslandHeight (y : * mut f32 , en : * const EndNoise , seed : u64 , x : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , w : :: std :: os :: raw :: c_int , h : :: std :: os :: raw :: c_int , scale : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn isEndChunkEmpty (en : * const EndNoise , sn : * const SurfaceNoise , seed : u64 , chunkX : :: std :: os :: raw :: c_int , chunkZ : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn initFirstStronghold (sh : * mut StrongholdIter , mc : :: std :: os :: raw :: c_int , s48 : u64) -> Pos ; } unsafe extern "C" { pub fn nextStronghold (sh : * mut StrongholdIter , g : * const Generator) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn estimateSpawn (g : * const Generator , rng : * mut u64) -> Pos ; } unsafe extern "C" { pub fn getSpawn (g : * const Generator) -> Pos ; } unsafe extern "C" { pub fn locateBiome (g : * const Generator , x : :: std :: os :: raw :: c_int , y : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , radius : :: std :: os :: raw :: c_int , validB : u64 , validM : u64 , rng : * mut u64 , passes : * mut :: std :: os :: raw :: c_int) -> Pos ; } unsafe extern "C" { pub fn isViableStructurePos (structType : :: std :: os :: raw :: c_int , g : * mut Generator , blockX : :: std :: os :: raw :: c_int , blockZ : :: std :: os :: raw :: c_int , flags : u32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn isViableFeatureBiome (mc : :: std :: os :: raw :: c_int , structureType : :: std :: os :: raw :: c_int , biomeID : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn isViableStructureTerrain (structType : :: std :: os :: raw :: c_int , g : * mut Generator , blockX : :: std :: os :: raw :: c_int , blockZ : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn isViableEndCityTerrain (g : * const Generator , sn : * const SurfaceNoise , blockX : :: std :: os :: raw :: c_int , blockZ : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getVariant (sv : * mut StructureVariant , structType : :: std :: os :: raw :: c_int , mc : :: std :: os :: raw :: c_int , seed : u64 , blockX : :: std :: os :: raw :: c_int , blockZ : :: std :: os :: raw :: c_int , biomeID : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getEndCityPieces (pieces : * mut Piece , seed : u64 , chunkX : :: std :: os :: raw :: c_int , chunkZ : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } pub const BASE_FLOOR : _bindgen_ty_6 = _bindgen_ty_6 (0) ; pub const BASE_ROOF : _bindgen_ty_6 = _bindgen_ty_6 (1) ; pub const BRIDGE_END : _bindgen_ty_6 = _bindgen_ty_6 (2) ; pub const BRIDGE_GENTLE_STAIRS : _bindgen_ty_6 = _bindgen_ty_6 (3) ; pub const BRIDGE_PIECE : _bindgen_ty_6 = _bindgen_ty_6 (4) ; pub const BRIDGE_STEEP_STAIRS : _bindgen_ty_6 = _bindgen_ty_6 (5) ; pub const FAT_TOWER_BASE : _bindgen_ty_6 = _bindgen_ty_6 (6) ; pub const FAT_TOWER_MIDDLE : _bindgen_ty_6 = _bindgen_ty_6 (7) ; pub const FAT_TOWER_TOP : _bindgen_ty_6 = _bindgen_ty_6 (8) ; pub const SECOND_FLOOR_1 : _bindgen_ty_6 = _bindgen_ty_6 (9) ; pub const SECOND_FLOOR_2 : _bindgen_ty_6 = _bindgen_ty_6 (10) ; pub const SECOND_ROOF : _bindgen_ty_6 = _bindgen_ty_6 (11) ; pub const END_SHIP : _bindgen_ty_6 = _bindgen_ty_6 (12) ; pub const THIRD_FLOOR_1 : _bindgen_ty_6 = _bindgen_ty_6 (13) ; pub const THIRD_FLOOR_2 : _bindgen_ty_6 = _bindgen_ty_6 (14) ; pub const THIRD_ROOF : _bindgen_ty_6 = _bindgen_ty_6 (15) ; pub const TOWER_BASE : _bindgen_ty_6 = _bindgen_ty_6 (16) ; pub const TOWER_FLOOR : _bindgen_ty_6 = _bindgen_ty_6 (17) ; pub const TOWER_PIECE : _bindgen_ty_6 = _bindgen_ty_6 (18) ; pub const TOWER_TOP : _bindgen_ty_6 = _bindgen_ty_6 (19) ; pub const END_CITY_PIECES_MAX : _bindgen_ty_6 = _bindgen_ty_6 (421) ; # [repr (transparent)] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct _bindgen_ty_6 (pub :: std :: os :: raw :: c_uint) ; unsafe extern "C" { pub fn getFortressPieces (list : * mut Piece , n : :: std :: os :: raw :: c_int , mc : :: std :: os :: raw :: c_int , seed : u64 , chunkX : :: std :: os :: raw :: c_int , chunkZ : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } pub const FORTRESS_START : _bindgen_ty_7 = _bindgen_ty_7 (0) ; pub const BRIDGE_STRAIGHT : _bindgen_ty_7 = _bindgen_ty_7 (1) ; pub const BRIDGE_CROSSING : _bindgen_ty_7 = _bindgen_ty_7 (2) ; pub const BRIDGE_FORTIFIED_CROSSING : _bindgen_ty_7 = _bindgen_ty_7 (3) ; pub const BRIDGE_STAIRS : _bindgen_ty_7 = _bindgen_ty_7 (4) ; pub const BRIDGE_SPAWNER : _bindgen_ty_7 = _bindgen_ty_7 (5) ; pub const BRIDGE_CORRIDOR_ENTRANCE : _bindgen_ty_7 = _bindgen_ty_7 (6) ; pub const CORRIDOR_STRAIGHT : _bindgen_ty_7 = _bindgen_ty_7 (7) ; pub const CORRIDOR_CROSSING : _bindgen_ty_7 = _bindgen_ty_7 (8) ; pub const CORRIDOR_TURN_RIGHT : _bindgen_ty_7 = _bindgen_ty_7 (9) ; pub const CORRIDOR_TURN_LEFT : _bindgen_ty_7 = _bindgen_ty_7 (10) ; pub const CORRIDOR_STAIRS : _bindgen_ty_7 = _bindgen_ty_7 (11) ; pub const CORRIDOR_T_CROSSING : _bindgen_ty_7 = _bindgen_ty_7 (12) ; pub const CORRIDOR_NETHER_WART : _bindgen_ty_7 = _bindgen_ty_7 (13) ; pub const FORTRESS_END : _bindgen_ty_7 = _bindgen_ty_7 (14) ; pub const PIECE_COUNT : _bindgen_ty_7 = _bindgen_ty_7 (15) ; # [repr (transparent)] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct _bindgen_ty_7 (pub :: std :: os :: raw :: c_uint) ; unsafe extern "C" { pub fn getFixedEndGateways (mc : :: std :: os :: raw :: c_int , seed : u64 , src : * mut Pos) ; } unsafe extern "C" { pub fn getLinkedGatewayChunk (en : * const EndNoise , sn : * const SurfaceNoise , seed : u64 , src : Pos , dst : * mut Pos) -> Pos ; } unsafe extern "C" { pub fn getLinkedGatewayPos (en : * const EndNoise , sn : * const SurfaceNoise , seed : u64 , src : Pos) -> Pos ; } pub const HouseSmall : _bindgen_ty_8 = _bindgen_ty_8 (0) ; pub const Church : _bindgen_ty_8 = _bindgen_ty_8 (1) ; pub const Library : _bindgen_ty_8 = _bindgen_ty_8 (2) ; pub const WoodHut : _bindgen_ty_8 = _bindgen_ty_8 (3) ; pub const Butcher : _bindgen_ty_8 = _bindgen_ty_8 (4) ; pub const FarmLarge : _bindgen_ty_8 = _bindgen_ty_8 (5) ; pub const FarmSmall : _bindgen_ty_8 = _bindgen_ty_8 (6) ; pub const Blacksmith : _bindgen_ty_8 = _bindgen_ty_8 (7) ; pub const HouseLarge : _bindgen_ty_8 = _bindgen_ty_8 (8) ; pub const HOUSE_NUM : _bindgen_ty_8 = _bindgen_ty_8 (9) ; # [repr (transparent)] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct _bindgen_ty_8 (pub :: std :: os :: raw :: c_uint) ; unsafe extern "C" { pub fn getHouseList (houses : * mut :: std :: os :: raw :: c_int , seed : u64 , chunkX : :: std :: os :: raw :: c_int , chunkZ : :: std :: os :: raw :: c_int) -> u64 ; } unsafe extern "C" { pub fn monteCarloBiomes (g : * mut Generator , r : Range , rng : * mut u64 , coverage : f64 , confidence : f64 , eval : :: std :: option :: Option < unsafe extern "C" fn (g : * mut Generator , scale : :: std :: os :: raw :: c_int , x : :: std :: os :: raw :: c_int , y : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , data : * mut :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int > , data : * mut :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn setupBiomeFilter (bf : * mut BiomeFilter , mc : :: std :: os :: raw :: c_int , flags : u32 , required : * const :: std :: os :: raw :: c_int , requiredLen : :: std :: os :: raw :: c_int , excluded : * const :: std :: os :: raw :: c_int , excludedLen : :: std :: os :: raw :: c_int , matchany : * const :: std :: os :: raw :: c_int , matchanyLen : :: std :: os :: raw :: c_int) ; } unsafe extern "C" { pub fn checkForBiomes (g : * mut Generator , cache : * mut :: std :: os :: raw :: c_int , r : Range , dim : :: std :: os :: raw :: c_int , seed : u64 , filter : * const BiomeFilter , stop : * mut :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn checkForBiomesAtLayer (ls : * mut LayerStack , entry : * mut Layer , cache : * mut :: std :: os :: raw :: c_int , seed : u64 , x : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , w : :: std :: os :: raw :: c_uint , h : :: std :: os :: raw :: c_uint , filter : * const BiomeFilter) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn checkForTemps (g : * mut LayerStack , seed : u64 , x : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , w : :: std :: os :: raw :: c_int , h : :: std :: os :: raw :: c_int , tc : * const :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getBiomeCenters (pos : * mut Pos , siz : * mut :: std :: os :: raw :: c_int , nmax : :: std :: os :: raw :: c_int , g : * mut Generator , r : Range , match_ : :: std :: os :: raw :: c_int , minsiz : :: std :: os :: raw :: c_int , tol : :: std :: os :: raw :: c_int , stop : * mut :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn canBiomeGenerate (layerId : :: std :: os :: raw :: c_int , mc : :: std :: os :: raw :: c_int , flags : u32 , biomeID : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn genPotential (mL : * mut u64 , mM : * mut u64 , layerId : :: std :: os :: raw :: c_int , mc : :: std :: os :: raw :: c_int , flags : u32 , biomeID : :: std :: os :: raw :: c_int) ; } unsafe extern "C" { pub fn getAvailableBiomes (mL : * mut u64 , mM : * mut u64 , layerId : :: std :: os :: raw :: c_int , mc : :: std :: os :: raw :: c_int , flags : u32) ; } unsafe extern "C" { # [doc = " Runs a gradient descent towards the minimum of the noise parameter times a\n given factor. The algorithm is restricted to the area (x,z,w,h) and starts\n at (i0,j0) relative to (x,z). The iteration is terminated when either\n 1) a fix point has been reached,\n 2) maxiter iterations have been completed,\n 3) or the sampling position has moved more than maxrad away from (i0,j0).\n\n Alpha is an optimization argument that is used to determine the length of\n large steps based on the current gradient.\n\n Optionally, the iteration can also call the custom function:\n  func(data, x, z, factor*para_noise(x,z));\n\n The return value is the minimum value reached."] pub fn getParaDescent (para : * const DoublePerlinNoise , factor : f64 , x : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , w : :: std :: os :: raw :: c_int , h : :: std :: os :: raw :: c_int , i0 : :: std :: os :: raw :: c_int , j0 : :: std :: os :: raw :: c_int , maxrad : :: std :: os :: raw :: c_int , maxiter : :: std :: os :: raw :: c_int , alpha : f64 , data : * mut :: std :: os :: raw :: c_void , func : :: std :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: std :: os :: raw :: c_void , arg2 : :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : f64) -> :: std :: os :: raw :: c_int >) -> f64 ; } unsafe extern "C" { # [doc = " Determines the value range of a climate noise parameter over the given area.\n The sampling has scale 1:4 and sampling shift is not considered, so biomes\n could potentially *leak* in at the boarders.\n An optional function:\n  func(data, x, z, climate_noise(x,z))\n is called in each gradient descent iteration. If this function returns\n non-zero the search is aborted, the results are undefined and a non-zero\n error is returned.\n\n The results are written to pmin and pmax (which would be cast to an integer\n during boime mapping). Nullable, to look for minima and maxima separately."] pub fn getParaRange (para : * const DoublePerlinNoise , pmin : * mut f64 , pmax : * mut f64 , x : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , w : :: std :: os :: raw :: c_int , h : :: std :: os :: raw :: c_int , data : * mut :: std :: os :: raw :: c_void , func : :: std :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: std :: os :: raw :: c_void , arg2 : :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : f64) -> :: std :: os :: raw :: c_int >) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " Gets the min/max parameter values within which a biome change can occur."] pub fn getBiomeParaExtremes (mc : :: std :: os :: raw :: c_int) -> * const :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " Gets the min/max possible noise parameter values at which the given biome\n can generate. The values are in min/max pairs in order of:\n temperature, humidity, continentalness, erosion, depth, weirdness."] pub fn getBiomeParaLimits (mc : :: std :: os :: raw :: c_int , id : :: std :: os :: raw :: c_int) -> * const :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " Determines which biomes are able to generate given a set of climate\n parameter limits. Possible biomes are marked non-zero in the 'ids'."] pub fn getPossibleBiomesForLimits (ids : * mut :: std :: os :: raw :: c_char , mc : :: std :: os :: raw :: c_int , limits : * mut [:: std :: os :: raw :: c_int ; 2usize]) ; } unsafe extern "C" { # [doc = " Find the largest rectangle in ids[sx][sz] which consists only of 'match'.\n The limit corners are written to p0 and p1. Returned is the rectangle's area."] pub fn getLargestRec (match_ : :: std :: os :: raw :: c_int , ids : * const :: std :: os :: raw :: c_int , sx : :: std :: os :: raw :: c_int , sz : :: std :: os :: raw :: c_int , p0 : * mut Pos , p1 : * mut Pos) -> :: std :: os :: raw :: c_int ; } pub type __gnuc_va_list = __builtin_va_list ; # [repr (C)] # [derive (Copy , Clone)] pub struct __mbstate_t { pub __count : :: std :: os :: raw :: c_int , pub __value : __mbstate_t__bindgen_ty_1 , } # [repr (C)] # [derive (Copy , Clone)] pub union __mbstate_t__bindgen_ty_1 { pub __wch : :: std :: os :: raw :: c_uint , pub __wchb : [:: std :: os :: raw :: c_char ; 4usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __mbstate_t__bindgen_ty_1"] [:: std :: mem :: size_of :: < __mbstate_t__bindgen_ty_1 > () - 4usize] ; ["Alignment of __mbstate_t__bindgen_ty_1"] [:: std :: mem :: align_of :: < __mbstate_t__bindgen_ty_1 > () - 4usize] ; ["Offset of field: __mbstate_t__bindgen_ty_1::__wch"] [:: std :: mem :: offset_of ! (__mbstate_t__bindgen_ty_1 , __wch) - 0usize] ; ["Offset of field: __mbstate_t__bindgen_ty_1::__wchb"] [:: std :: mem :: offset_of ! (__mbstate_t__bindgen_ty_1 , __wchb) - 0usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __mbstate_t"] [:: std :: mem :: size_of :: < __mbstate_t > () - 8usize] ; ["Alignment of __mbstate_t"] [:: std :: mem :: align_of :: < __mbstate_t > () - 4usize] ; ["Offset of field: __mbstate_t::__count"] [:: std :: mem :: offset_of ! (__mbstate_t , __count) - 0usize] ; ["Offset of field: __mbstate_t::__value"] [:: std :: mem :: offset_of ! (__mbstate_t , __value) - 4usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub struct _G_fpos_t { pub __pos : __off_t , pub __state : __mbstate_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of _G_fpos_t"] [:: std :: mem :: size_of :: < _G_fpos_t > () - 16usize] ; ["Alignment of _G_fpos_t"] [:: std :: mem :: align_of :: < _G_fpos_t > () - 8usize] ; ["Offset of field: _G_fpos_t::__pos"] [:: std :: mem :: offset_of ! (_G_fpos_t , __pos) - 0usize] ; ["Offset of field: _G_fpos_t::__state"] [:: std :: mem :: offset_of ! (_G_fpos_t , __state) - 8usize] ; } ; pub type __fpos_t = _G_fpos_t ; # [repr (C)] # [derive (Copy , Clone)] pub struct _G_fpos64_t { pub __pos : __off64_t , pub __state : __mbstate_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of _G_fpos64_t"] [:: std :: mem :: size_of :: < _G_fpos64_t > () - 16usize] ; ["Alignment of _G_fpos64_t"] [:: std :: mem :: align_of :: < _G_fpos64_t > () - 8usize] ; ["Offset of field: _G_fpos64_t::__pos"] [:: std :: mem :: offset_of ! (_G_fpos64_t , __pos) - 0usize] ; ["Offset of field: _G_fpos64_t::__state"] [:: std :: mem :: offset_of ! (_G_fpos64_t , __state) - 8usize] ; } ; pub type __fpos64_t = _G_fpos64_t ; pub type __FILE = _IO_FILE ; pub type FILE = _IO_FILE ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_marker { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_codecvt { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_wide_data { _unused : [u8 ; 0] , } pub type _IO_lock_t = :: std :: os :: raw :: c_void ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_FILE { pub _flags : :: std :: os :: raw :: c_int , pub _IO_read_ptr : * mut :: std :: os :: raw :: c_char , pub _IO_read_end : * mut :: std :: os :: raw :: c_char , pub _IO_read_base : * mut :: std :: os :: raw :: c_char , pub _IO_write_base : * mut :: std :: os :: raw :: c_char , pub _IO_write_ptr : * mut :: std :: os :: raw :: c_char , pub _IO_write_end : * mut :: std :: os :: raw :: c_char , pub _IO_buf_base : * mut :: std :: os :: raw :: c_char , pub _IO_buf_end : * mut :: std :: os :: raw :: c_char , pub _IO_save_base : * mut :: std :: os :: raw :: c_char , pub _IO_backup_base : * mut :: std :: os :: raw :: c_char , pub _IO_save_end : * mut :: std :: os :: raw :: c_char , pub _markers : * mut _IO_marker , pub _chain : * mut _IO_FILE , pub _fileno : :: std :: os :: raw :: c_int , pub _bitfield_align_1 : [u32 ; 0] , pub _bitfield_1 : __BindgenBitfieldUnit < [u8 ; 3usize] > , pub _short_backupbuf : [:: std :: os :: raw :: c_char ; 1usize] , pub _old_offset : __off_t , pub _cur_column : :: std :: os :: raw :: c_ushort , pub _vtable_offset : :: std :: os :: raw :: c_schar , pub _shortbuf : [:: std :: os :: raw :: c_char ; 1usize] , pub _lock : * mut _IO_lock_t , pub _offset : __off64_t , pub _codecvt : * mut _IO_codecvt , pub _wide_data : * mut _IO_wide_data , pub _freeres_list : * mut _IO_FILE , pub _freeres_buf : * mut :: std :: os :: raw :: c_void , pub _prevchain : * mut * mut _IO_FILE , pub _mode : :: std :: os :: raw :: c_int , pub _unused3 : :: std :: os :: raw :: c_int , pub _total_written : __uint64_t , pub _unused2 : [:: std :: os :: raw :: c_char ; 8usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of _IO_FILE"] [:: std :: mem :: size_of :: < _IO_FILE > () - 216usize] ; ["Alignment of _IO_FILE"] [:: std :: mem :: align_of :: < _IO_FILE > () - 8usize] ; ["Offset of field: _IO_FILE::_flags"] [:: std :: mem :: offset_of ! (_IO_FILE , _flags) - 0usize] ; ["Offset of field: _IO_FILE::_IO_read_ptr"] [:: std :: mem :: offset_of ! (_IO_FILE , _IO_read_ptr) - 8usize] ; ["Offset of field: _IO_FILE::_IO_read_end"] [:: std :: mem :: offset_of ! (_IO_FILE , _IO_read_end) - 16usize] ; ["Offset of field: _IO_FILE::_IO_read_base"] [:: std :: mem :: offset_of ! (_IO_FILE , _IO_read_base) - 24usize] ; ["Offset of field: _IO_FILE::_IO_write_base"] [:: std :: mem :: offset_of ! (_IO_FILE , _IO_write_base) - 32usize] ; ["Offset of field: _IO_FILE::_IO_write_ptr"] [:: std :: mem :: offset_of ! (_IO_FILE , _IO_write_ptr) - 40usize] ; ["Offset of field: _IO_FILE::_IO_write_end"] [:: std :: mem :: offset_of ! (_IO_FILE , _IO_write_end) - 48usize] ; ["Offset of field: _IO_FILE::_IO_buf_base"] [:: std :: mem :: offset_of ! (_IO_FILE , _IO_buf_base) - 56usize] ; ["Offset of field: _IO_FILE::_IO_buf_end"] [:: std :: mem :: offset_of ! (_IO_FILE , _IO_buf_end) - 64usize] ; ["Offset of field: _IO_FILE::_IO_save_base"] [:: std :: mem :: offset_of ! (_IO_FILE , _IO_save_base) - 72usize] ; ["Offset of field: _IO_FILE::_IO_backup_base"] [:: std :: mem :: offset_of ! (_IO_FILE , _IO_backup_base) - 80usize] ; ["Offset of field: _IO_FILE::_IO_save_end"] [:: std :: mem :: offset_of ! (_IO_FILE , _IO_save_end) - 88usize] ; ["Offset of field: _IO_FILE::_markers"] [:: std :: mem :: offset_of ! (_IO_FILE , _markers) - 96usize] ; ["Offset of field: _IO_FILE::_chain"] [:: std :: mem :: offset_of ! (_IO_FILE , _chain) - 104usize] ; ["Offset of field: _IO_FILE::_fileno"] [:: std :: mem :: offset_of ! (_IO_FILE , _fileno) - 112usize] ; ["Offset of field: _IO_FILE::_short_backupbuf"] [:: std :: mem :: offset_of ! (_IO_FILE , _short_backupbuf) - 119usize] ; ["Offset of field: _IO_FILE::_old_offset"] [:: std :: mem :: offset_of ! (_IO_FILE , _old_offset) - 120usize] ; ["Offset of field: _IO_FILE::_cur_column"] [:: std :: mem :: offset_of ! (_IO_FILE , _cur_column) - 128usize] ; ["Offset of field: _IO_FILE::_vtable_offset"] [:: std :: mem :: offset_of ! (_IO_FILE , _vtable_offset) - 130usize] ; ["Offset of field: _IO_FILE::_shortbuf"] [:: std :: mem :: offset_of ! (_IO_FILE , _shortbuf) - 131usize] ; ["Offset of field: _IO_FILE::_lock"] [:: std :: mem :: offset_of ! (_IO_FILE , _lock) - 136usize] ; ["Offset of field: _IO_FILE::_offset"] [:: std :: mem :: offset_of ! (_IO_FILE , _offset) - 144usize] ; ["Offset of field: _IO_FILE::_codecvt"] [:: std :: mem :: offset_of ! (_IO_FILE , _codecvt) - 152usize] ; ["Offset of field: _IO_FILE::_wide_data"] [:: std :: mem :: offset_of ! (_IO_FILE , _wide_data) - 160usize] ; ["Offset of field: _IO_FILE::_freeres_list"] [:: std :: mem :: offset_of ! (_IO_FILE , _freeres_list) - 168usize] ; ["Offset of field: _IO_FILE::_freeres_buf"] [:: std :: mem :: offset_of ! (_IO_FILE , _freeres_buf) - 176usize] ; ["Offset of field: _IO_FILE::_prevchain"] [:: std :: mem :: offset_of ! (_IO_FILE , _prevchain) - 184usize] ; ["Offset of field: _IO_FILE::_mode"] [:: std :: mem :: offset_of ! (_IO_FILE , _mode) - 192usize] ; ["Offset of field: _IO_FILE::_unused3"] [:: std :: mem :: offset_of ! (_IO_FILE , _unused3) - 196usize] ; ["Offset of field: _IO_FILE::_total_written"] [:: std :: mem :: offset_of ! (_IO_FILE , _total_written) - 200usize] ; ["Offset of field: _IO_FILE::_unused2"] [:: std :: mem :: offset_of ! (_IO_FILE , _unused2) - 208usize] ; } ; impl _IO_FILE { # [inline] pub fn _flags2 (& self) -> :: std :: os :: raw :: c_int { unsafe { :: std :: mem :: transmute (self . _bitfield_1 . get (0usize , 24u8) as u32) } } # [inline] pub fn set__flags2 (& mut self , val : :: std :: os :: raw :: c_int) { unsafe { let val : u32 = i32::cast_unsigned (val) ; self . _bitfield_1 . set (0usize , 24u8 , val as u64) } } # [inline] pub unsafe fn _flags2_raw (this : * const Self) -> :: std :: os :: raw :: c_int { unsafe { :: std :: mem :: transmute (< __BindgenBitfieldUnit < [u8 ; 3usize] > > :: raw_get (:: std :: ptr :: addr_of ! ((* this) . _bitfield_1) , 0usize , 24u8 ,) as u32) } } # [inline] pub unsafe fn set__flags2_raw (this : * mut Self , val : :: std :: os :: raw :: c_int) { unsafe { let val : u32 = :: std :: mem :: transmute (val) ; < __BindgenBitfieldUnit < [u8 ; 3usize] > > :: raw_set (:: std :: ptr :: addr_of_mut ! ((* this) . _bitfield_1) , 0usize , 24u8 , val as u64 ,) } } # [inline] pub fn new_bitfield_1 (_flags2 : :: std :: os :: raw :: c_int) -> __BindgenBitfieldUnit < [u8 ; 3usize] > { let mut __bindgen_bitfield_unit : __BindgenBitfieldUnit < [u8 ; 3usize] > = Default :: default () ; __bindgen_bitfield_unit . set (0usize , 24u8 , { let _flags2 : u32 = unsafe { :: std :: mem :: transmute (_flags2) } ; _flags2 as u64 }) ; __bindgen_bitfield_unit } } pub type cookie_read_function_t = :: std :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: std :: os :: raw :: c_void , __buf : * mut :: std :: os :: raw :: c_char , __nbytes : usize) -> __ssize_t > ; pub type cookie_write_function_t = :: std :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: std :: os :: raw :: c_void , __buf : * const :: std :: os :: raw :: c_char , __nbytes : usize) -> __ssize_t > ; pub type cookie_seek_function_t = :: std :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: std :: os :: raw :: c_void , __pos : * mut __off64_t , __w : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int > ; pub type cookie_close_function_t = :: std :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_cookie_io_functions_t { pub read : cookie_read_function_t , pub write : cookie_write_function_t , pub seek : cookie_seek_function_t , pub close : cookie_close_function_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of _IO_cookie_io_functions_t"] [:: std :: mem :: size_of :: < _IO_cookie_io_functions_t > () - 32usize] ; ["Alignment of _IO_cookie_io_functions_t"] [:: std :: mem :: align_of :: < _IO_cookie_io_functions_t > () - 8usize] ; ["Offset of field: _IO_cookie_io_functions_t::read"] [:: std :: mem :: offset_of ! (_IO_cookie_io_functions_t , read) - 0usize] ; ["Offset of field: _IO_cookie_io_functions_t::write"] [:: std :: mem :: offset_of ! (_IO_cookie_io_functions_t , write) - 8usize] ; ["Offset of field: _IO_cookie_io_functions_t::seek"] [:: std :: mem :: offset_of ! (_IO_cookie_io_functions_t , seek) - 16usize] ; ["Offset of field: _IO_cookie_io_functions_t::close"] [:: std :: mem :: offset_of ! (_IO_cookie_io_functions_t , close) - 24usize] ; } ; pub type cookie_io_functions_t = _IO_cookie_io_functions_t ; pub type va_list = __gnuc_va_list ; pub type fpos_t = __fpos_t ; unsafe extern "C" { pub static mut stdin : * mut FILE ; } unsafe extern "C" { pub static mut stdout : * mut FILE ; } unsafe extern "C" { pub static mut stderr : * mut FILE ; } unsafe extern "C" { pub fn remove (__filename : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn rename (__old : * const :: std :: os :: raw :: c_char , __new : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn renameat (__oldfd : :: std :: os :: raw :: c_int , __old : * const :: std :: os :: raw :: c_char , __newfd : :: std :: os :: raw :: c_int , __new : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn fclose (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn tmpfile () -> * mut FILE ; } unsafe extern "C" { pub fn tmpnam (arg1 : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn tmpnam_r (__s : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn tempnam (__dir : * const :: std :: os :: raw :: c_char , __pfx : * const :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn fflush (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn fflush_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn fopen (__filename : * const :: std :: os :: raw :: c_char , __modes : * const :: std :: os :: raw :: c_char) -> * mut FILE ; } unsafe extern "C" { pub fn freopen (__filename : * const :: std :: os :: raw :: c_char , __modes : * const :: std :: os :: raw :: c_char , __stream : * mut FILE) -> * mut FILE ; } unsafe extern "C" { pub fn fdopen (__fd : :: std :: os :: raw :: c_int , __modes : * const :: std :: os :: raw :: c_char) -> * mut FILE ; } unsafe extern "C" { pub fn fopencookie (__magic_cookie : * mut :: std :: os :: raw :: c_void , __modes : * const :: std :: os :: raw :: c_char , __io_funcs : cookie_io_functions_t) -> * mut FILE ; } unsafe extern "C" { pub fn fmemopen (__s : * mut :: std :: os :: raw :: c_void , __len : usize , __modes : * const :: std :: os :: raw :: c_char) -> * mut FILE ; } unsafe extern "C" { pub fn open_memstream (__bufloc : * mut * mut :: std :: os :: raw :: c_char , __sizeloc : * mut usize) -> * mut FILE ; } unsafe extern "C" { pub fn setbuf (__stream : * mut FILE , __buf : * mut :: std :: os :: raw :: c_char) ; } unsafe extern "C" { pub fn setvbuf (__stream : * mut FILE , __buf : * mut :: std :: os :: raw :: c_char , __modes : :: std :: os :: raw :: c_int , __n : usize) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn setbuffer (__stream : * mut FILE , __buf : * mut :: std :: os :: raw :: c_char , __size : usize) ; } unsafe extern "C" { pub fn setlinebuf (__stream : * mut FILE) ; } unsafe extern "C" { pub fn fprintf (__stream : * mut FILE , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn printf (__format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn sprintf (__s : * mut :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn vfprintf (__s : * mut FILE , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn vprintf (__format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn vsprintf (__s : * mut :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn snprintf (__s : * mut :: std :: os :: raw :: c_char , __maxlen : :: std :: os :: raw :: c_ulong , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn vsnprintf (__s : * mut :: std :: os :: raw :: c_char , __maxlen : :: std :: os :: raw :: c_ulong , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn vasprintf (__ptr : * mut * mut :: std :: os :: raw :: c_char , __f : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __asprintf (__ptr : * mut * mut :: std :: os :: raw :: c_char , __fmt : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn asprintf (__ptr : * mut * mut :: std :: os :: raw :: c_char , __fmt : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn vdprintf (__fd : :: std :: os :: raw :: c_int , __fmt : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn dprintf (__fd : :: std :: os :: raw :: c_int , __fmt : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn fscanf (__stream : * mut FILE , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn scanf (__format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn sscanf (__s : * const :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [link_name = "\u{1}__isoc99_fscanf"] pub fn fscanf1 (__stream : * mut FILE , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [link_name = "\u{1}__isoc99_scanf"] pub fn scanf1 (__format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [link_name = "\u{1}__isoc99_sscanf"] pub fn sscanf1 (__s : * const :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn vfscanf (__s : * mut FILE , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn vscanf (__format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn vsscanf (__s : * const :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [link_name = "\u{1}__isoc99_vfscanf"] pub fn vfscanf1 (__s : * mut FILE , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [link_name = "\u{1}__isoc99_vscanf"] pub fn vscanf1 (__format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [link_name = "\u{1}__isoc99_vsscanf"] pub fn vsscanf1 (__s : * const :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn fgetc (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getc (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getchar () -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getc_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getchar_unlocked () -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn fgetc_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn fputc (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn putc (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn putchar (__c : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn fputc_unlocked (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn putc_unlocked (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn putchar_unlocked (__c : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getw (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn putw (__w : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn fgets (__s : * mut :: std :: os :: raw :: c_char , __n : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn __getdelim (__lineptr : * mut * mut :: std :: os :: raw :: c_char , __n : * mut usize , __delimiter : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> __ssize_t ; } unsafe extern "C" { pub fn getdelim (__lineptr : * mut * mut :: std :: os :: raw :: c_char , __n : * mut usize , __delimiter : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> __ssize_t ; } unsafe extern "C" { pub fn getline (__lineptr : * mut * mut :: std :: os :: raw :: c_char , __n : * mut usize , __stream : * mut FILE) -> __ssize_t ; } unsafe extern "C" { pub fn fputs (__s : * const :: std :: os :: raw :: c_char , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn puts (__s : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn ungetc (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn fread (__ptr : * mut :: std :: os :: raw :: c_void , __size : :: std :: os :: raw :: c_ulong , __n : :: std :: os :: raw :: c_ulong , __stream : * mut FILE) -> :: std :: os :: raw :: c_ulong ; } unsafe extern "C" { pub fn fwrite (__ptr : * const :: std :: os :: raw :: c_void , __size : :: std :: os :: raw :: c_ulong , __n : :: std :: os :: raw :: c_ulong , __s : * mut FILE) -> :: std :: os :: raw :: c_ulong ; } unsafe extern "C" { pub fn fread_unlocked (__ptr : * mut :: std :: os :: raw :: c_void , __size : usize , __n : usize , __stream : * mut FILE) -> usize ; } unsafe extern "C" { pub fn fwrite_unlocked (__ptr : * const :: std :: os :: raw :: c_void , __size : usize , __n : usize , __stream : * mut FILE) -> usize ; } unsafe extern "C" { pub fn fseek (__stream : * mut FILE , __off : :: std :: os :: raw :: c_long , __whence : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn ftell (__stream : * mut FILE) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn rewind (__stream : * mut FILE) ; } unsafe extern "C" { pub fn fseeko (__stream : * mut FILE , __off : __off_t , __whence : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn ftello (__stream : * mut FILE) -> __off_t ; } unsafe extern "C" { pub fn fgetpos (__stream : * mut FILE , __pos : * mut fpos_t) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn fsetpos (__stream : * mut FILE , __pos : * const fpos_t) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn clearerr (__stream : * mut FILE) ; } unsafe extern "C" { pub fn feof (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn ferror (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn clearerr_unlocked (__stream : * mut FILE) ; } unsafe extern "C" { pub fn feof_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn ferror_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn perror (__s : * const :: std :: os :: raw :: c_char) ; } unsafe extern "C" { pub fn fileno (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn fileno_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn pclose (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn popen (__command : * const :: std :: os :: raw :: c_char , __modes : * const :: std :: os :: raw :: c_char) -> * mut FILE ; } unsafe extern "C" { pub fn ctermid (__s : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn flockfile (__stream : * mut FILE) ; } unsafe extern "C" { pub fn ftrylockfile (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn funlockfile (__stream : * mut FILE) ; } unsafe extern "C" { pub fn __uflow (arg1 : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __overflow (arg1 : * mut FILE , arg2 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " Quad-Witch-Huts\n\n  For a quad-structure, we mainly care about relative positioning, so we can\n  get away with just checking the regions near the origin: (0,0),(0,1),(1,0)\n  and (1,1) and then move the structures to the desired position.\n\n  Futhermore, the PRNG that determines the chunk positions inside each region,\n  performs some modular arithmatic on the 48-bit numbers which causes some\n  restrictions on the lower bits when looking for near perfect structure\n  positions. This is difficult to prove, but can be used to reduce the number\n  of free bits to 28 which can be comfortably brute-forced to get the entire\n  set of quad-structure candidates. Each of the seeds found this way\n  describes entire set of possible quad-witch-huts (with degrees of freedom\n  for region-transposition, as well as the top 16-bit bits)."] pub static low20QuadIdeal : [u64 ; 4usize] ; } unsafe extern "C" { pub static low20QuadClassic : [u64 ; 5usize] ; } unsafe extern "C" { pub static low20QuadHutNormal : [u64 ; 11usize] ; } unsafe extern "C" { pub static low20QuadHutBarely : [u64 ; 29usize] ; } pub const CST_NONE : _bindgen_ty_9 = _bindgen_ty_9 (0) ; pub const CST_IDEAL : _bindgen_ty_9 = _bindgen_ty_9 (1) ; pub const CST_CLASSIC : _bindgen_ty_9 = _bindgen_ty_9 (2) ; pub const CST_NORMAL : _bindgen_ty_9 = _bindgen_ty_9 (3) ; pub const CST_BARELY : _bindgen_ty_9 = _bindgen_ty_9 (4) ; # [repr (transparent)] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct _bindgen_ty_9 (pub :: std :: os :: raw :: c_uint) ; unsafe extern "C" { pub fn getQuadHutCst (low20 : u64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn searchAll48 (seedbuf : * mut * mut u64 , buflen : * mut u64 , path : * const :: std :: os :: raw :: c_char , threads : :: std :: os :: raw :: c_int , lowBits : * const u64 , lowBitN : :: std :: os :: raw :: c_int , check : :: std :: option :: Option < unsafe extern "C" fn (s48 : u64 , data : * mut :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int > , data : * mut :: std :: os :: raw :: c_void , stop : * mut :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getOptimalAfk (p : * mut Pos , ax : :: std :: os :: raw :: c_int , ay : :: std :: os :: raw :: c_int , az : :: std :: os :: raw :: c_int , spcnt : * mut :: std :: os :: raw :: c_int) -> Pos ; } unsafe extern "C" { pub fn scanForQuads (sconf : StructureConfig , radius : :: std :: os :: raw :: c_int , s48 : u64 , lowBits : * const u64 , lowBitN : :: std :: os :: raw :: c_int , salt : u64 , x : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , w : :: std :: os :: raw :: c_int , h : :: std :: os :: raw :: c_int , qplist : * mut Pos , n : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn loadSavedSeeds (fnam : * const :: std :: os :: raw :: c_char , scnt : * mut u64) -> * mut u64 ; } unsafe extern "C" { # [doc = " convert between version enum and text"] pub fn mc2str (mc : :: std :: os :: raw :: c_int) -> * const :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn str2mc (s : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " get the resource id name for a biome (for versions 1.13+)"] pub fn biome2str (mc : :: std :: os :: raw :: c_int , id : :: std :: os :: raw :: c_int) -> * const :: std :: os :: raw :: c_char ; } unsafe extern "C" { # [doc = " get the resource id name for a structure"] pub fn struct2str (stype : :: std :: os :: raw :: c_int) -> * const :: std :: os :: raw :: c_char ; } unsafe extern "C" { # [doc = " initialize a biome colormap with some defaults"] pub fn initBiomeColors (biomeColors : * mut [:: std :: os :: raw :: c_uchar ; 3usize]) ; } unsafe extern "C" { pub fn initBiomeTypeColors (biomeColors : * mut [:: std :: os :: raw :: c_uchar ; 3usize]) ; } unsafe extern "C" { pub fn parseBiomeColors (biomeColors : * mut [:: std :: os :: raw :: c_uchar ; 3usize] , buf : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn biomesToImage (pixels : * mut :: std :: os :: raw :: c_uchar , biomeColors : * mut [:: std :: os :: raw :: c_uchar ; 3usize] , biomes : * const :: std :: os :: raw :: c_int , sx : :: std :: os :: raw :: c_uint , sy : :: std :: os :: raw :: c_uint , pixscale : :: std :: os :: raw :: c_uint , flip : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn savePPM (path : * const :: std :: os :: raw :: c_char , pixels : * const :: std :: os :: raw :: c_uchar , sx : :: std :: os :: raw :: c_uint , sy : :: std :: os :: raw :: c_uint) -> :: std :: os :: raw :: c_int ; } pub type __builtin_va_list = [__va_list_tag ; 1usize] ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __va_list_tag { pub gp_offset : :: std :: os :: raw :: c_uint , pub fp_offset : :: std :: os :: raw :: c_uint , pub overflow_arg_area : * mut :: std :: os :: raw :: c_void , pub reg_save_area : * mut :: std :: os :: raw :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __va_list_tag"] [:: std :: mem :: size_of :: < __va_list_tag > () - 24usize] ; ["Alignment of __va_list_tag"] [:: std :: mem :: align_of :: < __va_list_tag > () - 8usize] ; ["Offset of field: __va_list_tag::gp_offset"] [:: std :: mem :: offset_of ! (__va_list_tag , gp_offset) - 0usize] ; ["Offset of field: __va_list_tag::fp_offset"] [:: std :: mem :: offset_of ! (__va_list_tag , fp_offset) - 4usize] ; ["Offset of field: __va_list_tag::overflow_arg_area"] [:: std :: mem :: offset_of ! (__va_list_tag , overflow_arg_area) - 8usize] ; ["Offset of field: __va_list_tag::reg_save_area"] [:: std :: mem :: offset_of ! (__va_list_tag , reg_save_area) - 16usize] ; } ;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary transmute
[INFO] [stdout]  --> /opt/rustwide/target/debug/build/cubiomes-sys-067509f04bd29817/out/bindings.rs:3:215595
[INFO] [stdout]   |
[INFO] [stdout] 3 | ... { :: std :: mem :: transmute (< __BindgenBitfieldUnit < [u8 ; 3usize] > > :: raw_get (:: std :: ptr :: addr_of ! ((* this) . _bitfield_1) , 0usize , 24u8 ,) as u32) } ...
[INFO] [stdout]   |       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout] help: replace this with
[INFO] [stdout]   |
[INFO] [stdout] 3 - # [repr (C)] # [derive (Copy , Clone , Debug , Default , Eq , Hash , Ord , PartialEq , PartialOrd)] pub struct __BindgenBitfieldUnit < Storage > { storage : Storage , } impl < Storage > __BindgenBitfieldUnit < Storage > { # [inline] pub const fn new (storage : Storage) -> Self { Self { storage } } } impl < Storage > __BindgenBitfieldUnit < Storage > where Storage : AsRef < [u8] > + AsMut < [u8] >, { # [inline] fn extract_bit (byte : u8 , index : usize) -> bool { let bit_index = if cfg ! (target_endian = "big") { 7 - (index % 8) } else { index % 8 } ; let mask = 1 << bit_index ; byte & mask == mask } # [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] ; Self :: extract_bit (byte , index) } # [inline] pub unsafe fn raw_get_bit (this : * const Self , index : usize) -> bool { debug_assert ! (index / 8 < core :: mem :: size_of ::< Storage > ()) ; let byte_index = index / 8 ; let byte = * (core :: ptr :: addr_of ! ((* this) . storage) as * const u8) . offset (byte_index as isize) ; Self :: extract_bit (byte , index) } # [inline] fn change_bit (byte : u8 , index : usize , val : bool) -> u8 { let bit_index = if cfg ! (target_endian = "big") { 7 - (index % 8) } else { index % 8 } ; let mask = 1 << bit_index ; if val { byte | mask } else { byte & ! 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] ; * byte = Self :: change_bit (* byte , index , val) ; } # [inline] pub unsafe fn raw_set_bit (this : * mut Self , index : usize , val : bool) { debug_assert ! (index / 8 < core :: mem :: size_of ::< Storage > ()) ; let byte_index = index / 8 ; let byte = (core :: ptr :: addr_of_mut ! ((* this) . storage) as * mut u8) . offset (byte_index as isize) ; * byte = Self :: change_bit (* byte , index , val) ; } # [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) { let index = if cfg ! (target_endian = "big") { bit_width as usize - 1 - i } else { i } ; val |= 1 << index ; } } val } # [inline] pub unsafe fn raw_get (this : * const Self , bit_offset : usize , bit_width : u8 ,) -> u64 { debug_assert ! (bit_width <= 64) ; debug_assert ! (bit_offset / 8 < core :: mem :: size_of ::< Storage > ()) ; debug_assert ! ((bit_offset + (bit_width as usize)) / 8 <= core :: mem :: size_of ::< Storage > ()) ; let mut val = 0 ; for i in 0 .. (bit_width as usize) { if Self :: raw_get_bit (this , i + bit_offset) { let index = if cfg ! (target_endian = "big") { bit_width as usize - 1 - i } else { i } ; val |= 1 << index ; } } 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 ; let index = if cfg ! (target_endian = "big") { bit_width as usize - 1 - i } else { i } ; self . set_bit (index + bit_offset , val_bit_is_set) ; } } # [inline] pub unsafe fn raw_set (this : * mut Self , bit_offset : usize , bit_width : u8 , val : u64 ,) { debug_assert ! (bit_width <= 64) ; debug_assert ! (bit_offset / 8 < core :: mem :: size_of ::< Storage > ()) ; debug_assert ! ((bit_offset + (bit_width as usize)) / 8 <= core :: mem :: size_of ::< Storage > ()) ; for i in 0 .. (bit_width as usize) { let mask = 1 << i ; let val_bit_is_set = val & mask == mask ; let index = if cfg ! (target_endian = "big") { bit_width as usize - 1 - i } else { i } ; Self :: raw_set_bit (this , index + bit_offset , val_bit_is_set) ; } } } # [derive (PartialEq , Copy , Clone , Hash , Debug , Default)] # [repr (C)] pub struct __BindgenComplex < T > { pub re : T , pub im : T } pub const __STDC_FORMAT_MACROS : u32 = 1 ; pub const _FEATURES_H : u32 = 1 ; pub const _DEFAULT_SOURCE : u32 = 1 ; pub const __GLIBC_USE_ISOC2Y : u32 = 0 ; pub const __GLIBC_USE_ISOC23 : u32 = 0 ; pub const __USE_ISOC11 : u32 = 1 ; pub const __USE_ISOC99 : u32 = 1 ; pub const __USE_ISOC95 : u32 = 1 ; pub const __USE_POSIX_IMPLICITLY : u32 = 1 ; pub const _POSIX_SOURCE : u32 = 1 ; pub const _POSIX_C_SOURCE : u32 = 202405 ; pub const __USE_POSIX : u32 = 1 ; pub const __USE_POSIX2 : u32 = 1 ; pub const __USE_POSIX199309 : u32 = 1 ; pub const __USE_POSIX199506 : u32 = 1 ; pub const __USE_XOPEN2K : u32 = 1 ; pub const __USE_XOPEN2K8 : u32 = 1 ; pub const _ATFILE_SOURCE : u32 = 1 ; pub const __USE_XOPEN2K24 : u32 = 1 ; pub const __WORDSIZE : u32 = 64 ; pub const __WORDSIZE_TIME64_COMPAT32 : u32 = 1 ; pub const __SYSCALL_WORDSIZE : u32 = 64 ; pub const __TIMESIZE : u32 = 64 ; pub const __USE_TIME_BITS64 : u32 = 1 ; pub const __USE_MISC : u32 = 1 ; pub const __USE_ATFILE : u32 = 1 ; pub const __USE_FORTIFY_LEVEL : u32 = 0 ; pub const __GLIBC_USE_DEPRECATED_GETS : u32 = 0 ; pub const __GLIBC_USE_DEPRECATED_SCANF : u32 = 0 ; pub const __GLIBC_USE_C23_STRTOL : u32 = 0 ; pub const _STDC_PREDEF_H : u32 = 1 ; pub const __STDC_IEC_559__ : u32 = 1 ; pub const __STDC_IEC_60559_BFP__ : u32 = 201404 ; pub const __STDC_IEC_559_COMPLEX__ : u32 = 1 ; pub const __STDC_IEC_60559_COMPLEX__ : u32 = 201404 ; pub const __STDC_ISO_10646__ : u32 = 201706 ; pub const __GNU_LIBRARY__ : u32 = 6 ; pub const __GLIBC__ : u32 = 2 ; pub const __GLIBC_MINOR__ : u32 = 43 ; pub const _SYS_CDEFS_H : u32 = 1 ; pub const __glibc_c99_flexarr_available : u32 = 1 ; pub const __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI : u32 = 0 ; pub const __HAVE_GENERIC_SELECTION : u32 = 1 ; pub const __GLIBC_USE_LIB_EXT2 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_BFP_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_BFP_EXT_C23 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_FUNCS_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_FUNCS_EXT_C23 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_TYPES_EXT : u32 = 0 ; pub const _STDLIB_H : u32 = 1 ; pub const WNOHANG : u32 = 1 ; pub const WUNTRACED : u32 = 2 ; pub const WSTOPPED : u32 = 2 ; pub const WEXITED : u32 = 4 ; pub const WCONTINUED : u32 = 8 ; pub const WNOWAIT : u32 = 16777216 ; pub const __WNOTHREAD : u32 = 536870912 ; pub const __WALL : u32 = 1073741824 ; pub const __WCLONE : u32 = 2147483648 ; pub const __W_CONTINUED : u32 = 65535 ; pub const __WCOREFLAG : u32 = 128 ; pub const __HAVE_FLOAT128 : u32 = 1 ; pub const __HAVE_DISTINCT_FLOAT128 : u32 = 1 ; pub const __HAVE_FLOAT64X : u32 = 1 ; pub const __HAVE_FLOAT64X_LONG_DOUBLE : u32 = 1 ; pub const __HAVE_FLOAT16 : u32 = 0 ; pub const __HAVE_FLOAT32 : u32 = 1 ; pub const __HAVE_FLOAT64 : u32 = 1 ; pub const __HAVE_FLOAT32X : u32 = 1 ; pub const __HAVE_FLOAT128X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT16 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT32 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT64 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT32X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT64X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT128X : u32 = 0 ; pub const __HAVE_FLOATN_NOT_TYPEDEF : u32 = 0 ; pub const __ldiv_t_defined : u32 = 1 ; pub const __lldiv_t_defined : u32 = 1 ; pub const RAND_MAX : u32 = 2147483647 ; pub const EXIT_FAILURE : u32 = 1 ; pub const EXIT_SUCCESS : u32 = 0 ; pub const _SYS_TYPES_H : u32 = 1 ; pub const _BITS_TYPES_H : u32 = 1 ; pub const _BITS_TYPESIZES_H : u32 = 1 ; pub const __OFF_T_MATCHES_OFF64_T : u32 = 1 ; pub const __INO_T_MATCHES_INO64_T : u32 = 1 ; pub const __RLIM_T_MATCHES_RLIM64_T : u32 = 1 ; pub const __STATFS_MATCHES_STATFS64 : u32 = 1 ; pub const __KERNEL_OLD_TIMEVAL_MATCHES_TIMEVAL64 : u32 = 1 ; pub const __FD_SETSIZE : u32 = 1024 ; pub const _BITS_TIME64_H : u32 = 1 ; pub const __clock_t_defined : u32 = 1 ; pub const __clockid_t_defined : u32 = 1 ; pub const __time_t_defined : u32 = 1 ; pub const __timer_t_defined : u32 = 1 ; pub const _BITS_STDINT_INTN_H : u32 = 1 ; pub const __BIT_TYPES_DEFINED__ : u32 = 1 ; pub const _ENDIAN_H : u32 = 1 ; pub const _BITS_ENDIAN_H : u32 = 1 ; pub const __LITTLE_ENDIAN : u32 = 1234 ; pub const __BIG_ENDIAN : u32 = 4321 ; pub const __PDP_ENDIAN : u32 = 3412 ; pub const _BITS_ENDIANNESS_H : u32 = 1 ; pub const __BYTE_ORDER : u32 = 1234 ; pub const __FLOAT_WORD_ORDER : u32 = 1234 ; pub const LITTLE_ENDIAN : u32 = 1234 ; pub const BIG_ENDIAN : u32 = 4321 ; pub const PDP_ENDIAN : u32 = 3412 ; pub const BYTE_ORDER : u32 = 1234 ; pub const _BITS_BYTESWAP_H : u32 = 1 ; pub const _BITS_UINTN_IDENTITY_H : u32 = 1 ; pub const _SYS_SELECT_H : u32 = 1 ; pub const __sigset_t_defined : u32 = 1 ; pub const __timeval_defined : u32 = 1 ; pub const _STRUCT_TIMESPEC : u32 = 1 ; pub const FD_SETSIZE : u32 = 1024 ; pub const _BITS_PTHREADTYPES_COMMON_H : u32 = 1 ; pub const _THREAD_SHARED_TYPES_H : u32 = 1 ; pub const _BITS_PTHREADTYPES_ARCH_H : u32 = 1 ; pub const __SIZEOF_PTHREAD_MUTEX_T : u32 = 40 ; pub const __SIZEOF_PTHREAD_ATTR_T : u32 = 56 ; pub const __SIZEOF_PTHREAD_RWLOCK_T : u32 = 56 ; pub const __SIZEOF_PTHREAD_BARRIER_T : u32 = 32 ; pub const __SIZEOF_PTHREAD_MUTEXATTR_T : u32 = 4 ; pub const __SIZEOF_PTHREAD_COND_T : u32 = 48 ; pub const __SIZEOF_PTHREAD_CONDATTR_T : u32 = 4 ; pub const __SIZEOF_PTHREAD_RWLOCKATTR_T : u32 = 8 ; pub const __SIZEOF_PTHREAD_BARRIERATTR_T : u32 = 4 ; pub const _THREAD_MUTEX_INTERNAL_H : u32 = 1 ; pub const __PTHREAD_MUTEX_HAVE_PREV : u32 = 1 ; pub const __have_pthread_attr_t : u32 = 1 ; pub const _ALLOCA_H : u32 = 1 ; pub const _INTTYPES_H : u32 = 1 ; pub const _STDINT_H : u32 = 1 ; pub const _BITS_WCHAR_H : u32 = 1 ; pub const _BITS_STDINT_UINTN_H : u32 = 1 ; pub const _BITS_STDINT_LEAST_H : u32 = 1 ; pub const INT8_MIN : i32 = - 128 ; pub const INT16_MIN : i32 = - 32768 ; pub const INT32_MIN : i32 = - 2147483648 ; pub const INT8_MAX : u32 = 127 ; pub const INT16_MAX : u32 = 32767 ; pub const INT32_MAX : u32 = 2147483647 ; pub const UINT8_MAX : u32 = 255 ; pub const UINT16_MAX : u32 = 65535 ; pub const UINT32_MAX : u32 = 4294967295 ; pub const INT_LEAST8_MIN : i32 = - 128 ; pub const INT_LEAST16_MIN : i32 = - 32768 ; pub const INT_LEAST32_MIN : i32 = - 2147483648 ; pub const INT_LEAST8_MAX : u32 = 127 ; pub const INT_LEAST16_MAX : u32 = 32767 ; pub const INT_LEAST32_MAX : u32 = 2147483647 ; pub const UINT_LEAST8_MAX : u32 = 255 ; pub const UINT_LEAST16_MAX : u32 = 65535 ; pub const UINT_LEAST32_MAX : u32 = 4294967295 ; pub const INT_FAST8_MIN : i32 = - 128 ; pub const INT_FAST16_MIN : i64 = - 9223372036854775808 ; pub const INT_FAST32_MIN : i64 = - 9223372036854775808 ; pub const INT_FAST8_MAX : u32 = 127 ; pub const INT_FAST16_MAX : u64 = 9223372036854775807 ; pub const INT_FAST32_MAX : u64 = 9223372036854775807 ; pub const UINT_FAST8_MAX : u32 = 255 ; pub const UINT_FAST16_MAX : i32 = - 1 ; pub const UINT_FAST32_MAX : i32 = - 1 ; pub const INTPTR_MIN : i64 = - 9223372036854775808 ; pub const INTPTR_MAX : u64 = 9223372036854775807 ; pub const UINTPTR_MAX : i32 = - 1 ; pub const PTRDIFF_MIN : i64 = - 9223372036854775808 ; pub const PTRDIFF_MAX : u64 = 9223372036854775807 ; pub const SIG_ATOMIC_MIN : i32 = - 2147483648 ; pub const SIG_ATOMIC_MAX : u32 = 2147483647 ; pub const SIZE_MAX : i32 = - 1 ; pub const WINT_MIN : u32 = 0 ; pub const WINT_MAX : u32 = 4294967295 ; pub const ____gwchar_t_defined : u32 = 1 ; pub const __PRI64_PREFIX : & [u8 ; 2] = b"l\0" ; pub const __PRIPTR_PREFIX : & [u8 ; 2] = b"l\0" ; pub const PRId8 : & [u8 ; 4] = b"hhd\0" ; pub const PRId16 : & [u8 ; 3] = b"hd\0" ; pub const PRId32 : & [u8 ; 2] = b"d\0" ; pub const PRId64 : & [u8 ; 3] = b"ld\0" ; pub const PRIdLEAST8 : & [u8 ; 4] = b"hhd\0" ; pub const PRIdLEAST16 : & [u8 ; 3] = b"hd\0" ; pub const PRIdLEAST32 : & [u8 ; 2] = b"d\0" ; pub const PRIdLEAST64 : & [u8 ; 3] = b"ld\0" ; pub const PRIdFAST8 : & [u8 ; 4] = b"hhd\0" ; pub const PRIdFAST16 : & [u8 ; 3] = b"ld\0" ; pub const PRIdFAST32 : & [u8 ; 3] = b"ld\0" ; pub const PRIdFAST64 : & [u8 ; 3] = b"ld\0" ; pub const PRIi8 : & [u8 ; 4] = b"hhi\0" ; pub const PRIi16 : & [u8 ; 3] = b"hi\0" ; pub const PRIi32 : & [u8 ; 2] = b"i\0" ; pub const PRIi64 : & [u8 ; 3] = b"li\0" ; pub const PRIiLEAST8 : & [u8 ; 4] = b"hhi\0" ; pub const PRIiLEAST16 : & [u8 ; 3] = b"hi\0" ; pub const PRIiLEAST32 : & [u8 ; 2] = b"i\0" ; pub const PRIiLEAST64 : & [u8 ; 3] = b"li\0" ; pub const PRIiFAST8 : & [u8 ; 4] = b"hhi\0" ; pub const PRIiFAST16 : & [u8 ; 3] = b"li\0" ; pub const PRIiFAST32 : & [u8 ; 3] = b"li\0" ; pub const PRIiFAST64 : & [u8 ; 3] = b"li\0" ; pub const PRIo8 : & [u8 ; 4] = b"hho\0" ; pub const PRIo16 : & [u8 ; 3] = b"ho\0" ; pub const PRIo32 : & [u8 ; 2] = b"o\0" ; pub const PRIo64 : & [u8 ; 3] = b"lo\0" ; pub const PRIoLEAST8 : & [u8 ; 4] = b"hho\0" ; pub const PRIoLEAST16 : & [u8 ; 3] = b"ho\0" ; pub const PRIoLEAST32 : & [u8 ; 2] = b"o\0" ; pub const PRIoLEAST64 : & [u8 ; 3] = b"lo\0" ; pub const PRIoFAST8 : & [u8 ; 4] = b"hho\0" ; pub const PRIoFAST16 : & [u8 ; 3] = b"lo\0" ; pub const PRIoFAST32 : & [u8 ; 3] = b"lo\0" ; pub const PRIoFAST64 : & [u8 ; 3] = b"lo\0" ; pub const PRIu8 : & [u8 ; 4] = b"hhu\0" ; pub const PRIu16 : & [u8 ; 3] = b"hu\0" ; pub const PRIu32 : & [u8 ; 2] = b"u\0" ; pub const PRIu64 : & [u8 ; 3] = b"lu\0" ; pub const PRIuLEAST8 : & [u8 ; 4] = b"hhu\0" ; pub const PRIuLEAST16 : & [u8 ; 3] = b"hu\0" ; pub const PRIuLEAST32 : & [u8 ; 2] = b"u\0" ; pub const PRIuLEAST64 : & [u8 ; 3] = b"lu\0" ; pub const PRIuFAST8 : & [u8 ; 4] = b"hhu\0" ; pub const PRIuFAST16 : & [u8 ; 3] = b"lu\0" ; pub const PRIuFAST32 : & [u8 ; 3] = b"lu\0" ; pub const PRIuFAST64 : & [u8 ; 3] = b"lu\0" ; pub const PRIx8 : & [u8 ; 4] = b"hhx\0" ; pub const PRIx16 : & [u8 ; 3] = b"hx\0" ; pub const PRIx32 : & [u8 ; 2] = b"x\0" ; pub const PRIx64 : & [u8 ; 3] = b"lx\0" ; pub const PRIxLEAST8 : & [u8 ; 4] = b"hhx\0" ; pub const PRIxLEAST16 : & [u8 ; 3] = b"hx\0" ; pub const PRIxLEAST32 : & [u8 ; 2] = b"x\0" ; pub const PRIxLEAST64 : & [u8 ; 3] = b"lx\0" ; pub const PRIxFAST8 : & [u8 ; 4] = b"hhx\0" ; pub const PRIxFAST16 : & [u8 ; 3] = b"lx\0" ; pub const PRIxFAST32 : & [u8 ; 3] = b"lx\0" ; pub const PRIxFAST64 : & [u8 ; 3] = b"lx\0" ; pub const PRIX8 : & [u8 ; 4] = b"hhX\0" ; pub const PRIX16 : & [u8 ; 3] = b"hX\0" ; pub const PRIX32 : & [u8 ; 2] = b"X\0" ; pub const PRIX64 : & [u8 ; 3] = b"lX\0" ; pub const PRIXLEAST8 : & [u8 ; 4] = b"hhX\0" ; pub const PRIXLEAST16 : & [u8 ; 3] = b"hX\0" ; pub const PRIXLEAST32 : & [u8 ; 2] = b"X\0" ; pub const PRIXLEAST64 : & [u8 ; 3] = b"lX\0" ; pub const PRIXFAST8 : & [u8 ; 4] = b"hhX\0" ; pub const PRIXFAST16 : & [u8 ; 3] = b"lX\0" ; pub const PRIXFAST32 : & [u8 ; 3] = b"lX\0" ; pub const PRIXFAST64 : & [u8 ; 3] = b"lX\0" ; pub const PRIdMAX : & [u8 ; 3] = b"ld\0" ; pub const PRIiMAX : & [u8 ; 3] = b"li\0" ; pub const PRIoMAX : & [u8 ; 3] = b"lo\0" ; pub const PRIuMAX : & [u8 ; 3] = b"lu\0" ; pub const PRIxMAX : & [u8 ; 3] = b"lx\0" ; pub const PRIXMAX : & [u8 ; 3] = b"lX\0" ; pub const PRIdPTR : & [u8 ; 3] = b"ld\0" ; pub const PRIiPTR : & [u8 ; 3] = b"li\0" ; pub const PRIoPTR : & [u8 ; 3] = b"lo\0" ; pub const PRIuPTR : & [u8 ; 3] = b"lu\0" ; pub const PRIxPTR : & [u8 ; 3] = b"lx\0" ; pub const PRIXPTR : & [u8 ; 3] = b"lX\0" ; pub const SCNd8 : & [u8 ; 4] = b"hhd\0" ; pub const SCNd16 : & [u8 ; 3] = b"hd\0" ; pub const SCNd32 : & [u8 ; 2] = b"d\0" ; pub const SCNd64 : & [u8 ; 3] = b"ld\0" ; pub const SCNdLEAST8 : & [u8 ; 4] = b"hhd\0" ; pub const SCNdLEAST16 : & [u8 ; 3] = b"hd\0" ; pub const SCNdLEAST32 : & [u8 ; 2] = b"d\0" ; pub const SCNdLEAST64 : & [u8 ; 3] = b"ld\0" ; pub const SCNdFAST8 : & [u8 ; 4] = b"hhd\0" ; pub const SCNdFAST16 : & [u8 ; 3] = b"ld\0" ; pub const SCNdFAST32 : & [u8 ; 3] = b"ld\0" ; pub const SCNdFAST64 : & [u8 ; 3] = b"ld\0" ; pub const SCNi8 : & [u8 ; 4] = b"hhi\0" ; pub const SCNi16 : & [u8 ; 3] = b"hi\0" ; pub const SCNi32 : & [u8 ; 2] = b"i\0" ; pub const SCNi64 : & [u8 ; 3] = b"li\0" ; pub const SCNiLEAST8 : & [u8 ; 4] = b"hhi\0" ; pub const SCNiLEAST16 : & [u8 ; 3] = b"hi\0" ; pub const SCNiLEAST32 : & [u8 ; 2] = b"i\0" ; pub const SCNiLEAST64 : & [u8 ; 3] = b"li\0" ; pub const SCNiFAST8 : & [u8 ; 4] = b"hhi\0" ; pub const SCNiFAST16 : & [u8 ; 3] = b"li\0" ; pub const SCNiFAST32 : & [u8 ; 3] = b"li\0" ; pub const SCNiFAST64 : & [u8 ; 3] = b"li\0" ; pub const SCNu8 : & [u8 ; 4] = b"hhu\0" ; pub const SCNu16 : & [u8 ; 3] = b"hu\0" ; pub const SCNu32 : & [u8 ; 2] = b"u\0" ; pub const SCNu64 : & [u8 ; 3] = b"lu\0" ; pub const SCNuLEAST8 : & [u8 ; 4] = b"hhu\0" ; pub const SCNuLEAST16 : & [u8 ; 3] = b"hu\0" ; pub const SCNuLEAST32 : & [u8 ; 2] = b"u\0" ; pub const SCNuLEAST64 : & [u8 ; 3] = b"lu\0" ; pub const SCNuFAST8 : & [u8 ; 4] = b"hhu\0" ; pub const SCNuFAST16 : & [u8 ; 3] = b"lu\0" ; pub const SCNuFAST32 : & [u8 ; 3] = b"lu\0" ; pub const SCNuFAST64 : & [u8 ; 3] = b"lu\0" ; pub const SCNo8 : & [u8 ; 4] = b"hho\0" ; pub const SCNo16 : & [u8 ; 3] = b"ho\0" ; pub const SCNo32 : & [u8 ; 2] = b"o\0" ; pub const SCNo64 : & [u8 ; 3] = b"lo\0" ; pub const SCNoLEAST8 : & [u8 ; 4] = b"hho\0" ; pub const SCNoLEAST16 : & [u8 ; 3] = b"ho\0" ; pub const SCNoLEAST32 : & [u8 ; 2] = b"o\0" ; pub const SCNoLEAST64 : & [u8 ; 3] = b"lo\0" ; pub const SCNoFAST8 : & [u8 ; 4] = b"hho\0" ; pub const SCNoFAST16 : & [u8 ; 3] = b"lo\0" ; pub const SCNoFAST32 : & [u8 ; 3] = b"lo\0" ; pub const SCNoFAST64 : & [u8 ; 3] = b"lo\0" ; pub const SCNx8 : & [u8 ; 4] = b"hhx\0" ; pub const SCNx16 : & [u8 ; 3] = b"hx\0" ; pub const SCNx32 : & [u8 ; 2] = b"x\0" ; pub const SCNx64 : & [u8 ; 3] = b"lx\0" ; pub const SCNxLEAST8 : & [u8 ; 4] = b"hhx\0" ; pub const SCNxLEAST16 : & [u8 ; 3] = b"hx\0" ; pub const SCNxLEAST32 : & [u8 ; 2] = b"x\0" ; pub const SCNxLEAST64 : & [u8 ; 3] = b"lx\0" ; pub const SCNxFAST8 : & [u8 ; 4] = b"hhx\0" ; pub const SCNxFAST16 : & [u8 ; 3] = b"lx\0" ; pub const SCNxFAST32 : & [u8 ; 3] = b"lx\0" ; pub const SCNxFAST64 : & [u8 ; 3] = b"lx\0" ; pub const SCNdMAX : & [u8 ; 3] = b"ld\0" ; pub const SCNiMAX : & [u8 ; 3] = b"li\0" ; pub const SCNoMAX : & [u8 ; 3] = b"lo\0" ; pub const SCNuMAX : & [u8 ; 3] = b"lu\0" ; pub const SCNxMAX : & [u8 ; 3] = b"lx\0" ; pub const SCNdPTR : & [u8 ; 3] = b"ld\0" ; pub const SCNiPTR : & [u8 ; 3] = b"li\0" ; pub const SCNoPTR : & [u8 ; 3] = b"lo\0" ; pub const SCNuPTR : & [u8 ; 3] = b"lu\0" ; pub const SCNxPTR : & [u8 ; 3] = b"lx\0" ; pub const _MATH_H : u32 = 1 ; pub const _BITS_LIBM_SIMD_DECL_STUBS_H : u32 = 1 ; pub const __FP_LOGB0_IS_MIN : u32 = 1 ; pub const __FP_LOGBNAN_IS_MIN : u32 = 1 ; pub const FP_ILOGB0 : i32 = - 2147483648 ; pub const FP_ILOGBNAN : i32 = - 2147483648 ; pub const __MATH_DECLARING_DOUBLE : u32 = 1 ; pub const __MATH_DECLARING_FLOATN : u32 = 0 ; pub const __MATH_DECLARE_LDOUBLE : u32 = 1 ; pub const MATH_ERRNO : u32 = 1 ; pub const MATH_ERREXCEPT : u32 = 2 ; pub const math_errhandling : u32 = 3 ; pub const M_E : f64 = 2.718281828459045 ; pub const M_LOG2E : f64 = 1.4426950408889634 ; pub const M_LOG10E : f64 = 0.4342944819032518 ; pub const M_LN2 : f64 = 0.6931471805599453 ; pub const M_LN10 : f64 = 2.302585092994046 ; pub const M_PI : f64 = 3.141592653589793 ; pub const M_PI_2 : f64 = 1.5707963267948966 ; pub const M_PI_4 : f64 = 0.7853981633974483 ; pub const M_1_PI : f64 = 0.3183098861837907 ; pub const M_2_PI : f64 = 0.6366197723675814 ; pub const M_2_SQRTPI : f64 = 1.1283791670955126 ; pub const M_SQRT2 : f64 = 1.4142135623730951 ; pub const M_SQRT1_2 : f64 = 0.7071067811865476 ; pub const LAYER_INIT_SHA : i32 = - 1 ; pub const _STDIO_H : u32 = 1 ; pub const _____fpos_t_defined : u32 = 1 ; pub const ____mbstate_t_defined : u32 = 1 ; pub const _____fpos64_t_defined : u32 = 1 ; pub const ____FILE_defined : u32 = 1 ; pub const __FILE_defined : u32 = 1 ; pub const __struct_FILE_defined : u32 = 1 ; pub const _IO_EOF_SEEN : u32 = 16 ; pub const _IO_ERR_SEEN : u32 = 32 ; pub const _IO_USER_LOCK : u32 = 32768 ; pub const __cookie_io_functions_t_defined : u32 = 1 ; pub const _IOFBF : u32 = 0 ; pub const _IOLBF : u32 = 1 ; pub const _IONBF : u32 = 2 ; pub const BUFSIZ : u32 = 8192 ; pub const EOF : i32 = - 1 ; pub const SEEK_SET : u32 = 0 ; pub const SEEK_CUR : u32 = 1 ; pub const SEEK_END : u32 = 2 ; pub const P_tmpdir : & [u8 ; 5] = b"/tmp\0" ; pub const L_tmpnam : u32 = 20 ; pub const TMP_MAX : u32 = 238328 ; pub const _BITS_STDIO_LIM_H : u32 = 1 ; pub const FILENAME_MAX : u32 = 4096 ; pub const L_ctermid : u32 = 9 ; pub const FOPEN_MAX : u32 = 16 ; pub type wchar_t = :: std :: os :: raw :: c_int ; pub type __cfloat128 = __BindgenComplex < u128 > ; pub type _Float128 = u128 ; pub type _Float32 = f32 ; pub type _Float64 = f64 ; pub type _Float32x = f64 ; pub type _Float64x = u128 ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct div_t { pub quot : :: std :: os :: raw :: c_int , pub rem : :: std :: os :: raw :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of div_t"] [:: std :: mem :: size_of :: < div_t > () - 8usize] ; ["Alignment of div_t"] [:: std :: mem :: align_of :: < div_t > () - 4usize] ; ["Offset of field: div_t::quot"] [:: std :: mem :: offset_of ! (div_t , quot) - 0usize] ; ["Offset of field: div_t::rem"] [:: std :: mem :: offset_of ! (div_t , rem) - 4usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ldiv_t { pub quot : :: std :: os :: raw :: c_long , pub rem : :: std :: os :: raw :: c_long , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ldiv_t"] [:: std :: mem :: size_of :: < ldiv_t > () - 16usize] ; ["Alignment of ldiv_t"] [:: std :: mem :: align_of :: < ldiv_t > () - 8usize] ; ["Offset of field: ldiv_t::quot"] [:: std :: mem :: offset_of ! (ldiv_t , quot) - 0usize] ; ["Offset of field: ldiv_t::rem"] [:: std :: mem :: offset_of ! (ldiv_t , rem) - 8usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct lldiv_t { pub quot : :: std :: os :: raw :: c_longlong , pub rem : :: std :: os :: raw :: c_longlong , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of lldiv_t"] [:: std :: mem :: size_of :: < lldiv_t > () - 16usize] ; ["Alignment of lldiv_t"] [:: std :: mem :: align_of :: < lldiv_t > () - 8usize] ; ["Offset of field: lldiv_t::quot"] [:: std :: mem :: offset_of ! (lldiv_t , quot) - 0usize] ; ["Offset of field: lldiv_t::rem"] [:: std :: mem :: offset_of ! (lldiv_t , rem) - 8usize] ; } ; unsafe extern "C" { pub fn __ctype_get_mb_cur_max () -> usize ; } unsafe extern "C" { pub fn atof (__nptr : * const :: std :: os :: raw :: c_char) -> f64 ; } unsafe extern "C" { pub fn atoi (__nptr : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn atol (__nptr : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn atoll (__nptr : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn strtod (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char) -> f64 ; } unsafe extern "C" { pub fn strtof (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char) -> f32 ; } unsafe extern "C" { pub fn strtold (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char) -> u128 ; } unsafe extern "C" { pub fn strtol (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn strtoul (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_ulong ; } unsafe extern "C" { pub fn strtoq (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn strtouq (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_ulonglong ; } unsafe extern "C" { pub fn strtoll (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn strtoull (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_ulonglong ; } unsafe extern "C" { pub fn l64a (__n : :: std :: os :: raw :: c_long) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn a64l (__s : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_long ; } pub type __u_char = :: std :: os :: raw :: c_uchar ; pub type __u_short = :: std :: os :: raw :: c_ushort ; pub type __u_int = :: std :: os :: raw :: c_uint ; pub type __u_long = :: std :: os :: raw :: c_ulong ; 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_long ; pub type __uint64_t = :: std :: os :: raw :: c_ulong ; pub type __int_least8_t = __int8_t ; pub type __uint_least8_t = __uint8_t ; pub type __int_least16_t = __int16_t ; pub type __uint_least16_t = __uint16_t ; pub type __int_least32_t = __int32_t ; pub type __uint_least32_t = __uint32_t ; pub type __int_least64_t = __int64_t ; pub type __uint_least64_t = __uint64_t ; pub type __quad_t = :: std :: os :: raw :: c_long ; pub type __u_quad_t = :: std :: os :: raw :: c_ulong ; pub type __intmax_t = :: std :: os :: raw :: c_long ; pub type __uintmax_t = :: std :: os :: raw :: c_ulong ; pub type __dev_t = :: std :: os :: raw :: c_ulong ; pub type __uid_t = :: std :: os :: raw :: c_uint ; pub type __gid_t = :: std :: os :: raw :: c_uint ; pub type __ino_t = :: std :: os :: raw :: c_ulong ; pub type __ino64_t = :: std :: os :: raw :: c_ulong ; pub type __mode_t = :: std :: os :: raw :: c_uint ; pub type __nlink_t = :: std :: os :: raw :: c_ulong ; pub type __off_t = :: std :: os :: raw :: c_long ; pub type __off64_t = :: std :: os :: raw :: c_long ; pub type __pid_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [:: std :: os :: raw :: c_int ; 2usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __fsid_t"] [:: std :: mem :: size_of :: < __fsid_t > () - 8usize] ; ["Alignment of __fsid_t"] [:: std :: mem :: align_of :: < __fsid_t > () - 4usize] ; ["Offset of field: __fsid_t::__val"] [:: std :: mem :: offset_of ! (__fsid_t , __val) - 0usize] ; } ; pub type __clock_t = :: std :: os :: raw :: c_long ; pub type __rlim_t = :: std :: os :: raw :: c_ulong ; pub type __rlim64_t = :: std :: os :: raw :: c_ulong ; pub type __id_t = :: std :: os :: raw :: c_uint ; pub type __time_t = :: std :: os :: raw :: c_long ; pub type __useconds_t = :: std :: os :: raw :: c_uint ; pub type __suseconds_t = :: std :: os :: raw :: c_long ; pub type __suseconds64_t = :: std :: os :: raw :: c_long ; pub type __daddr_t = :: std :: os :: raw :: c_int ; pub type __key_t = :: std :: os :: raw :: c_int ; pub type __clockid_t = :: std :: os :: raw :: c_int ; pub type __timer_t = * mut :: std :: os :: raw :: c_void ; pub type __blksize_t = :: std :: os :: raw :: c_long ; pub type __blkcnt_t = :: std :: os :: raw :: c_long ; pub type __blkcnt64_t = :: std :: os :: raw :: c_long ; pub type __fsblkcnt_t = :: std :: os :: raw :: c_ulong ; pub type __fsblkcnt64_t = :: std :: os :: raw :: c_ulong ; pub type __fsfilcnt_t = :: std :: os :: raw :: c_ulong ; pub type __fsfilcnt64_t = :: std :: os :: raw :: c_ulong ; pub type __fsword_t = :: std :: os :: raw :: c_long ; pub type __ssize_t = :: std :: os :: raw :: c_long ; pub type __syscall_slong_t = :: std :: os :: raw :: c_long ; pub type __syscall_ulong_t = :: std :: os :: raw :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut :: std :: os :: raw :: c_char ; pub type __intptr_t = :: std :: os :: raw :: c_long ; pub type __socklen_t = :: std :: os :: raw :: c_uint ; pub type __sig_atomic_t = :: std :: os :: raw :: c_int ; pub type u_char = __u_char ; pub type u_short = __u_short ; pub type u_int = __u_int ; pub type u_long = __u_long ; pub type quad_t = __quad_t ; pub type u_quad_t = __u_quad_t ; pub type fsid_t = __fsid_t ; pub type loff_t = __loff_t ; pub type ino_t = __ino_t ; pub type dev_t = __dev_t ; pub type gid_t = __gid_t ; pub type mode_t = __mode_t ; pub type nlink_t = __nlink_t ; pub type uid_t = __uid_t ; pub type off_t = __off_t ; pub type pid_t = __pid_t ; pub type id_t = __id_t ; pub type daddr_t = __daddr_t ; pub type caddr_t = __caddr_t ; pub type key_t = __key_t ; pub type clock_t = __clock_t ; pub type clockid_t = __clockid_t ; pub type time_t = __time_t ; pub type timer_t = __timer_t ; pub type ulong = :: std :: os :: raw :: c_ulong ; pub type ushort = :: std :: os :: raw :: c_ushort ; pub type uint = :: std :: os :: raw :: c_uint ; pub type u_int8_t = __uint8_t ; pub type u_int16_t = __uint16_t ; pub type u_int32_t = __uint32_t ; pub type u_int64_t = __uint64_t ; pub type register_t = :: std :: os :: raw :: c_long ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __sigset_t { pub __val : [:: std :: os :: raw :: c_ulong ; 16usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __sigset_t"] [:: std :: mem :: size_of :: < __sigset_t > () - 128usize] ; ["Alignment of __sigset_t"] [:: std :: mem :: align_of :: < __sigset_t > () - 8usize] ; ["Offset of field: __sigset_t::__val"] [:: std :: mem :: offset_of ! (__sigset_t , __val) - 0usize] ; } ; pub type sigset_t = __sigset_t ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct timeval { pub tv_sec : __time_t , pub tv_usec : __suseconds_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of timeval"] [:: std :: mem :: size_of :: < timeval > () - 16usize] ; ["Alignment of timeval"] [:: std :: mem :: align_of :: < timeval > () - 8usize] ; ["Offset of field: timeval::tv_sec"] [:: std :: mem :: offset_of ! (timeval , tv_sec) - 0usize] ; ["Offset of field: timeval::tv_usec"] [:: std :: mem :: offset_of ! (timeval , tv_usec) - 8usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct timespec { pub tv_sec : __time_t , pub tv_nsec : __syscall_slong_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of timespec"] [:: std :: mem :: size_of :: < timespec > () - 16usize] ; ["Alignment of timespec"] [:: std :: mem :: align_of :: < timespec > () - 8usize] ; ["Offset of field: timespec::tv_sec"] [:: std :: mem :: offset_of ! (timespec , tv_sec) - 0usize] ; ["Offset of field: timespec::tv_nsec"] [:: std :: mem :: offset_of ! (timespec , tv_nsec) - 8usize] ; } ; pub type suseconds_t = __suseconds_t ; pub type __fd_mask = :: std :: os :: raw :: c_long ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct fd_set { pub __fds_bits : [__fd_mask ; 16usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of fd_set"] [:: std :: mem :: size_of :: < fd_set > () - 128usize] ; ["Alignment of fd_set"] [:: std :: mem :: align_of :: < fd_set > () - 8usize] ; ["Offset of field: fd_set::__fds_bits"] [:: std :: mem :: offset_of ! (fd_set , __fds_bits) - 0usize] ; } ; pub type fd_mask = __fd_mask ; unsafe extern "C" { pub fn select (__nfds : :: std :: os :: raw :: c_int , __readfds : * mut fd_set , __writefds : * mut fd_set , __exceptfds : * mut fd_set , __timeout : * mut timeval) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn pselect (__nfds : :: std :: os :: raw :: c_int , __readfds : * mut fd_set , __writefds : * mut fd_set , __exceptfds : * mut fd_set , __timeout : * const timespec , __sigmask : * const __sigset_t) -> :: std :: os :: raw :: c_int ; } pub type blksize_t = __blksize_t ; pub type blkcnt_t = __blkcnt_t ; pub type fsblkcnt_t = __fsblkcnt_t ; pub type fsfilcnt_t = __fsfilcnt_t ; # [repr (C)] # [derive (Copy , Clone)] pub union __atomic_wide_counter { pub __value64 : :: std :: os :: raw :: c_ulonglong , pub __value32 : __atomic_wide_counter__bindgen_ty_1 , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __atomic_wide_counter__bindgen_ty_1 { pub __low : :: std :: os :: raw :: c_uint , pub __high : :: std :: os :: raw :: c_uint , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __atomic_wide_counter__bindgen_ty_1"] [:: std :: mem :: size_of :: < __atomic_wide_counter__bindgen_ty_1 > () - 8usize] ; ["Alignment of __atomic_wide_counter__bindgen_ty_1"] [:: std :: mem :: align_of :: < __atomic_wide_counter__bindgen_ty_1 > () - 4usize] ; ["Offset of field: __atomic_wide_counter__bindgen_ty_1::__low"] [:: std :: mem :: offset_of ! (__atomic_wide_counter__bindgen_ty_1 , __low) - 0usize] ; ["Offset of field: __atomic_wide_counter__bindgen_ty_1::__high"] [:: std :: mem :: offset_of ! (__atomic_wide_counter__bindgen_ty_1 , __high) - 4usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __atomic_wide_counter"] [:: std :: mem :: size_of :: < __atomic_wide_counter > () - 8usize] ; ["Alignment of __atomic_wide_counter"] [:: std :: mem :: align_of :: < __atomic_wide_counter > () - 8usize] ; ["Offset of field: __atomic_wide_counter::__value64"] [:: std :: mem :: offset_of ! (__atomic_wide_counter , __value64) - 0usize] ; ["Offset of field: __atomic_wide_counter::__value32"] [:: std :: mem :: offset_of ! (__atomic_wide_counter , __value32) - 0usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_internal_list { pub __prev : * mut __pthread_internal_list , pub __next : * mut __pthread_internal_list , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __pthread_internal_list"] [:: std :: mem :: size_of :: < __pthread_internal_list > () - 16usize] ; ["Alignment of __pthread_internal_list"] [:: std :: mem :: align_of :: < __pthread_internal_list > () - 8usize] ; ["Offset of field: __pthread_internal_list::__prev"] [:: std :: mem :: offset_of ! (__pthread_internal_list , __prev) - 0usize] ; ["Offset of field: __pthread_internal_list::__next"] [:: std :: mem :: offset_of ! (__pthread_internal_list , __next) - 8usize] ; } ; pub type __pthread_list_t = __pthread_internal_list ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_internal_slist { pub __next : * mut __pthread_internal_slist , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __pthread_internal_slist"] [:: std :: mem :: size_of :: < __pthread_internal_slist > () - 8usize] ; ["Alignment of __pthread_internal_slist"] [:: std :: mem :: align_of :: < __pthread_internal_slist > () - 8usize] ; ["Offset of field: __pthread_internal_slist::__next"] [:: std :: mem :: offset_of ! (__pthread_internal_slist , __next) - 0usize] ; } ; pub type __pthread_slist_t = __pthread_internal_slist ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_mutex_s { pub __lock : :: std :: os :: raw :: c_int , pub __count : :: std :: os :: raw :: c_uint , pub __owner : :: std :: os :: raw :: c_int , pub __nusers : :: std :: os :: raw :: c_uint , pub __kind : :: std :: os :: raw :: c_int , pub __spins : :: std :: os :: raw :: c_short , pub __unused : :: std :: os :: raw :: c_short , pub __list : __pthread_list_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __pthread_mutex_s"] [:: std :: mem :: size_of :: < __pthread_mutex_s > () - 40usize] ; ["Alignment of __pthread_mutex_s"] [:: std :: mem :: align_of :: < __pthread_mutex_s > () - 8usize] ; ["Offset of field: __pthread_mutex_s::__lock"] [:: std :: mem :: offset_of ! (__pthread_mutex_s , __lock) - 0usize] ; ["Offset of field: __pthread_mutex_s::__count"] [:: std :: mem :: offset_of ! (__pthread_mutex_s , __count) - 4usize] ; ["Offset of field: __pthread_mutex_s::__owner"] [:: std :: mem :: offset_of ! (__pthread_mutex_s , __owner) - 8usize] ; ["Offset of field: __pthread_mutex_s::__nusers"] [:: std :: mem :: offset_of ! (__pthread_mutex_s , __nusers) - 12usize] ; ["Offset of field: __pthread_mutex_s::__kind"] [:: std :: mem :: offset_of ! (__pthread_mutex_s , __kind) - 16usize] ; ["Offset of field: __pthread_mutex_s::__spins"] [:: std :: mem :: offset_of ! (__pthread_mutex_s , __spins) - 20usize] ; ["Offset of field: __pthread_mutex_s::__unused"] [:: std :: mem :: offset_of ! (__pthread_mutex_s , __unused) - 22usize] ; ["Offset of field: __pthread_mutex_s::__list"] [:: std :: mem :: offset_of ! (__pthread_mutex_s , __list) - 24usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_rwlock_arch_t { pub __readers : :: std :: os :: raw :: c_uint , pub __writers : :: std :: os :: raw :: c_uint , pub __wrphase_futex : :: std :: os :: raw :: c_uint , pub __writers_futex : :: std :: os :: raw :: c_uint , pub __pad3 : :: std :: os :: raw :: c_uint , pub __pad4 : :: std :: os :: raw :: c_uint , pub __cur_writer : :: std :: os :: raw :: c_int , pub __shared : :: std :: os :: raw :: c_int , pub __pad1 : :: std :: os :: raw :: c_ulong , pub __pad2 : :: std :: os :: raw :: c_ulong , pub __flags : :: std :: os :: raw :: c_uint , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __pthread_rwlock_arch_t"] [:: std :: mem :: size_of :: < __pthread_rwlock_arch_t > () - 56usize] ; ["Alignment of __pthread_rwlock_arch_t"] [:: std :: mem :: align_of :: < __pthread_rwlock_arch_t > () - 8usize] ; ["Offset of field: __pthread_rwlock_arch_t::__readers"] [:: std :: mem :: offset_of ! (__pthread_rwlock_arch_t , __readers) - 0usize] ; ["Offset of field: __pthread_rwlock_arch_t::__writers"] [:: std :: mem :: offset_of ! (__pthread_rwlock_arch_t , __writers) - 4usize] ; ["Offset of field: __pthread_rwlock_arch_t::__wrphase_futex"] [:: std :: mem :: offset_of ! (__pthread_rwlock_arch_t , __wrphase_futex) - 8usize] ; ["Offset of field: __pthread_rwlock_arch_t::__writers_futex"] [:: std :: mem :: offset_of ! (__pthread_rwlock_arch_t , __writers_futex) - 12usize] ; ["Offset of field: __pthread_rwlock_arch_t::__pad3"] [:: std :: mem :: offset_of ! (__pthread_rwlock_arch_t , __pad3) - 16usize] ; ["Offset of field: __pthread_rwlock_arch_t::__pad4"] [:: std :: mem :: offset_of ! (__pthread_rwlock_arch_t , __pad4) - 20usize] ; ["Offset of field: __pthread_rwlock_arch_t::__cur_writer"] [:: std :: mem :: offset_of ! (__pthread_rwlock_arch_t , __cur_writer) - 24usize] ; ["Offset of field: __pthread_rwlock_arch_t::__shared"] [:: std :: mem :: offset_of ! (__pthread_rwlock_arch_t , __shared) - 28usize] ; ["Offset of field: __pthread_rwlock_arch_t::__pad1"] [:: std :: mem :: offset_of ! (__pthread_rwlock_arch_t , __pad1) - 32usize] ; ["Offset of field: __pthread_rwlock_arch_t::__pad2"] [:: std :: mem :: offset_of ! (__pthread_rwlock_arch_t , __pad2) - 40usize] ; ["Offset of field: __pthread_rwlock_arch_t::__flags"] [:: std :: mem :: offset_of ! (__pthread_rwlock_arch_t , __flags) - 48usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub struct __pthread_cond_s { pub __wseq : __atomic_wide_counter , pub __g1_start : __atomic_wide_counter , pub __g_size : [:: std :: os :: raw :: c_uint ; 2usize] , pub __g1_orig_size : :: std :: os :: raw :: c_uint , pub __wrefs : :: std :: os :: raw :: c_uint , pub __g_signals : [:: std :: os :: raw :: c_uint ; 2usize] , pub __unused_initialized_1 : :: std :: os :: raw :: c_uint , pub __unused_initialized_2 : :: std :: os :: raw :: c_uint , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __pthread_cond_s"] [:: std :: mem :: size_of :: < __pthread_cond_s > () - 48usize] ; ["Alignment of __pthread_cond_s"] [:: std :: mem :: align_of :: < __pthread_cond_s > () - 8usize] ; ["Offset of field: __pthread_cond_s::__wseq"] [:: std :: mem :: offset_of ! (__pthread_cond_s , __wseq) - 0usize] ; ["Offset of field: __pthread_cond_s::__g1_start"] [:: std :: mem :: offset_of ! (__pthread_cond_s , __g1_start) - 8usize] ; ["Offset of field: __pthread_cond_s::__g_size"] [:: std :: mem :: offset_of ! (__pthread_cond_s , __g_size) - 16usize] ; ["Offset of field: __pthread_cond_s::__g1_orig_size"] [:: std :: mem :: offset_of ! (__pthread_cond_s , __g1_orig_size) - 24usize] ; ["Offset of field: __pthread_cond_s::__wrefs"] [:: std :: mem :: offset_of ! (__pthread_cond_s , __wrefs) - 28usize] ; ["Offset of field: __pthread_cond_s::__g_signals"] [:: std :: mem :: offset_of ! (__pthread_cond_s , __g_signals) - 32usize] ; ["Offset of field: __pthread_cond_s::__unused_initialized_1"] [:: std :: mem :: offset_of ! (__pthread_cond_s , __unused_initialized_1) - 40usize] ; ["Offset of field: __pthread_cond_s::__unused_initialized_2"] [:: std :: mem :: offset_of ! (__pthread_cond_s , __unused_initialized_2) - 44usize] ; } ; pub type __tss_t = :: std :: os :: raw :: c_uint ; pub type __thrd_t = :: std :: os :: raw :: c_ulong ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __once_flag { pub __data : :: std :: os :: raw :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __once_flag"] [:: std :: mem :: size_of :: < __once_flag > () - 4usize] ; ["Alignment of __once_flag"] [:: std :: mem :: align_of :: < __once_flag > () - 4usize] ; ["Offset of field: __once_flag::__data"] [:: std :: mem :: offset_of ! (__once_flag , __data) - 0usize] ; } ; pub type pthread_t = :: std :: os :: raw :: c_ulong ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_mutexattr_t { pub __size : [:: std :: os :: raw :: c_char ; 4usize] , pub __align : :: std :: os :: raw :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_mutexattr_t"] [:: std :: mem :: size_of :: < pthread_mutexattr_t > () - 4usize] ; ["Alignment of pthread_mutexattr_t"] [:: std :: mem :: align_of :: < pthread_mutexattr_t > () - 4usize] ; ["Offset of field: pthread_mutexattr_t::__size"] [:: std :: mem :: offset_of ! (pthread_mutexattr_t , __size) - 0usize] ; ["Offset of field: pthread_mutexattr_t::__align"] [:: std :: mem :: offset_of ! (pthread_mutexattr_t , __align) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_condattr_t { pub __size : [:: std :: os :: raw :: c_char ; 4usize] , pub __align : :: std :: os :: raw :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_condattr_t"] [:: std :: mem :: size_of :: < pthread_condattr_t > () - 4usize] ; ["Alignment of pthread_condattr_t"] [:: std :: mem :: align_of :: < pthread_condattr_t > () - 4usize] ; ["Offset of field: pthread_condattr_t::__size"] [:: std :: mem :: offset_of ! (pthread_condattr_t , __size) - 0usize] ; ["Offset of field: pthread_condattr_t::__align"] [:: std :: mem :: offset_of ! (pthread_condattr_t , __align) - 0usize] ; } ; pub type pthread_key_t = :: std :: os :: raw :: c_uint ; pub type pthread_once_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_attr_t { pub __size : [:: std :: os :: raw :: c_char ; 56usize] , pub __align : :: std :: os :: raw :: c_long , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_attr_t"] [:: std :: mem :: size_of :: < pthread_attr_t > () - 56usize] ; ["Alignment of pthread_attr_t"] [:: std :: mem :: align_of :: < pthread_attr_t > () - 8usize] ; ["Offset of field: pthread_attr_t::__size"] [:: std :: mem :: offset_of ! (pthread_attr_t , __size) - 0usize] ; ["Offset of field: pthread_attr_t::__align"] [:: std :: mem :: offset_of ! (pthread_attr_t , __align) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_mutex_t { pub __data : __pthread_mutex_s , pub __size : [:: std :: os :: raw :: c_char ; 40usize] , pub __align : :: std :: os :: raw :: c_long , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_mutex_t"] [:: std :: mem :: size_of :: < pthread_mutex_t > () - 40usize] ; ["Alignment of pthread_mutex_t"] [:: std :: mem :: align_of :: < pthread_mutex_t > () - 8usize] ; ["Offset of field: pthread_mutex_t::__data"] [:: std :: mem :: offset_of ! (pthread_mutex_t , __data) - 0usize] ; ["Offset of field: pthread_mutex_t::__size"] [:: std :: mem :: offset_of ! (pthread_mutex_t , __size) - 0usize] ; ["Offset of field: pthread_mutex_t::__align"] [:: std :: mem :: offset_of ! (pthread_mutex_t , __align) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_cond_t { pub __data : __pthread_cond_s , pub __size : [:: std :: os :: raw :: c_char ; 48usize] , pub __align : :: std :: os :: raw :: c_longlong , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_cond_t"] [:: std :: mem :: size_of :: < pthread_cond_t > () - 48usize] ; ["Alignment of pthread_cond_t"] [:: std :: mem :: align_of :: < pthread_cond_t > () - 8usize] ; ["Offset of field: pthread_cond_t::__data"] [:: std :: mem :: offset_of ! (pthread_cond_t , __data) - 0usize] ; ["Offset of field: pthread_cond_t::__size"] [:: std :: mem :: offset_of ! (pthread_cond_t , __size) - 0usize] ; ["Offset of field: pthread_cond_t::__align"] [:: std :: mem :: offset_of ! (pthread_cond_t , __align) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_rwlock_t { pub __data : __pthread_rwlock_arch_t , pub __size : [:: std :: os :: raw :: c_char ; 56usize] , pub __align : :: std :: os :: raw :: c_long , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_rwlock_t"] [:: std :: mem :: size_of :: < pthread_rwlock_t > () - 56usize] ; ["Alignment of pthread_rwlock_t"] [:: std :: mem :: align_of :: < pthread_rwlock_t > () - 8usize] ; ["Offset of field: pthread_rwlock_t::__data"] [:: std :: mem :: offset_of ! (pthread_rwlock_t , __data) - 0usize] ; ["Offset of field: pthread_rwlock_t::__size"] [:: std :: mem :: offset_of ! (pthread_rwlock_t , __size) - 0usize] ; ["Offset of field: pthread_rwlock_t::__align"] [:: std :: mem :: offset_of ! (pthread_rwlock_t , __align) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_rwlockattr_t { pub __size : [:: std :: os :: raw :: c_char ; 8usize] , pub __align : :: std :: os :: raw :: c_long , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_rwlockattr_t"] [:: std :: mem :: size_of :: < pthread_rwlockattr_t > () - 8usize] ; ["Alignment of pthread_rwlockattr_t"] [:: std :: mem :: align_of :: < pthread_rwlockattr_t > () - 8usize] ; ["Offset of field: pthread_rwlockattr_t::__size"] [:: std :: mem :: offset_of ! (pthread_rwlockattr_t , __size) - 0usize] ; ["Offset of field: pthread_rwlockattr_t::__align"] [:: std :: mem :: offset_of ! (pthread_rwlockattr_t , __align) - 0usize] ; } ; pub type pthread_spinlock_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_barrier_t { pub __size : [:: std :: os :: raw :: c_char ; 32usize] , pub __align : :: std :: os :: raw :: c_long , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_barrier_t"] [:: std :: mem :: size_of :: < pthread_barrier_t > () - 32usize] ; ["Alignment of pthread_barrier_t"] [:: std :: mem :: align_of :: < pthread_barrier_t > () - 8usize] ; ["Offset of field: pthread_barrier_t::__size"] [:: std :: mem :: offset_of ! (pthread_barrier_t , __size) - 0usize] ; ["Offset of field: pthread_barrier_t::__align"] [:: std :: mem :: offset_of ! (pthread_barrier_t , __align) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_barrierattr_t { pub __size : [:: std :: os :: raw :: c_char ; 4usize] , pub __align : :: std :: os :: raw :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_barrierattr_t"] [:: std :: mem :: size_of :: < pthread_barrierattr_t > () - 4usize] ; ["Alignment of pthread_barrierattr_t"] [:: std :: mem :: align_of :: < pthread_barrierattr_t > () - 4usize] ; ["Offset of field: pthread_barrierattr_t::__size"] [:: std :: mem :: offset_of ! (pthread_barrierattr_t , __size) - 0usize] ; ["Offset of field: pthread_barrierattr_t::__align"] [:: std :: mem :: offset_of ! (pthread_barrierattr_t , __align) - 0usize] ; } ; unsafe extern "C" { pub fn random () -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn srandom (__seed : :: std :: os :: raw :: c_uint) ; } unsafe extern "C" { pub fn initstate (__seed : :: std :: os :: raw :: c_uint , __statebuf : * mut :: std :: os :: raw :: c_char , __statelen : usize) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn setstate (__statebuf : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct random_data { pub fptr : * mut i32 , pub rptr : * mut i32 , pub state : * mut i32 , pub rand_type : :: std :: os :: raw :: c_int , pub rand_deg : :: std :: os :: raw :: c_int , pub rand_sep : :: std :: os :: raw :: c_int , pub end_ptr : * mut i32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of random_data"] [:: std :: mem :: size_of :: < random_data > () - 48usize] ; ["Alignment of random_data"] [:: std :: mem :: align_of :: < random_data > () - 8usize] ; ["Offset of field: random_data::fptr"] [:: std :: mem :: offset_of ! (random_data , fptr) - 0usize] ; ["Offset of field: random_data::rptr"] [:: std :: mem :: offset_of ! (random_data , rptr) - 8usize] ; ["Offset of field: random_data::state"] [:: std :: mem :: offset_of ! (random_data , state) - 16usize] ; ["Offset of field: random_data::rand_type"] [:: std :: mem :: offset_of ! (random_data , rand_type) - 24usize] ; ["Offset of field: random_data::rand_deg"] [:: std :: mem :: offset_of ! (random_data , rand_deg) - 28usize] ; ["Offset of field: random_data::rand_sep"] [:: std :: mem :: offset_of ! (random_data , rand_sep) - 32usize] ; ["Offset of field: random_data::end_ptr"] [:: std :: mem :: offset_of ! (random_data , end_ptr) - 40usize] ; } ; unsafe extern "C" { pub fn random_r (__buf : * mut random_data , __result : * mut i32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn srandom_r (__seed : :: std :: os :: raw :: c_uint , __buf : * mut random_data) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn initstate_r (__seed : :: std :: os :: raw :: c_uint , __statebuf : * mut :: std :: os :: raw :: c_char , __statelen : usize , __buf : * mut random_data) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn setstate_r (__statebuf : * mut :: std :: os :: raw :: c_char , __buf : * mut random_data) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn rand () -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn srand (__seed : :: std :: os :: raw :: c_uint) ; } unsafe extern "C" { pub fn rand_r (__seed : * mut :: std :: os :: raw :: c_uint) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn drand48 () -> f64 ; } unsafe extern "C" { pub fn erand48 (__xsubi : * mut :: std :: os :: raw :: c_ushort) -> f64 ; } unsafe extern "C" { pub fn lrand48 () -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn nrand48 (__xsubi : * mut :: std :: os :: raw :: c_ushort) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn mrand48 () -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn jrand48 (__xsubi : * mut :: std :: os :: raw :: c_ushort) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn srand48 (__seedval : :: std :: os :: raw :: c_long) ; } unsafe extern "C" { pub fn seed48 (__seed16v : * mut :: std :: os :: raw :: c_ushort) -> * mut :: std :: os :: raw :: c_ushort ; } unsafe extern "C" { pub fn lcong48 (__param : * mut :: std :: os :: raw :: c_ushort) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct drand48_data { pub __x : [:: std :: os :: raw :: c_ushort ; 3usize] , pub __old_x : [:: std :: os :: raw :: c_ushort ; 3usize] , pub __c : :: std :: os :: raw :: c_ushort , pub __init : :: std :: os :: raw :: c_ushort , pub __a : :: std :: os :: raw :: c_ulonglong , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of drand48_data"] [:: std :: mem :: size_of :: < drand48_data > () - 24usize] ; ["Alignment of drand48_data"] [:: std :: mem :: align_of :: < drand48_data > () - 8usize] ; ["Offset of field: drand48_data::__x"] [:: std :: mem :: offset_of ! (drand48_data , __x) - 0usize] ; ["Offset of field: drand48_data::__old_x"] [:: std :: mem :: offset_of ! (drand48_data , __old_x) - 6usize] ; ["Offset of field: drand48_data::__c"] [:: std :: mem :: offset_of ! (drand48_data , __c) - 12usize] ; ["Offset of field: drand48_data::__init"] [:: std :: mem :: offset_of ! (drand48_data , __init) - 14usize] ; ["Offset of field: drand48_data::__a"] [:: std :: mem :: offset_of ! (drand48_data , __a) - 16usize] ; } ; unsafe extern "C" { pub fn drand48_r (__buffer : * mut drand48_data , __result : * mut f64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn erand48_r (__xsubi : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data , __result : * mut f64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn lrand48_r (__buffer : * mut drand48_data , __result : * mut :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn nrand48_r (__xsubi : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data , __result : * mut :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mrand48_r (__buffer : * mut drand48_data , __result : * mut :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn jrand48_r (__xsubi : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data , __result : * mut :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn srand48_r (__seedval : :: std :: os :: raw :: c_long , __buffer : * mut drand48_data) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn seed48_r (__seed16v : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn lcong48_r (__param : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn arc4random () -> __uint32_t ; } unsafe extern "C" { pub fn arc4random_buf (__buf : * mut :: std :: os :: raw :: c_void , __size : usize) ; } unsafe extern "C" { pub fn arc4random_uniform (__upper_bound : __uint32_t) -> __uint32_t ; } unsafe extern "C" { pub fn malloc (__size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } unsafe extern "C" { pub fn calloc (__nmemb : :: std :: os :: raw :: c_ulong , __size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } unsafe extern "C" { pub fn realloc (__ptr : * mut :: std :: os :: raw :: c_void , __size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } unsafe extern "C" { pub fn free (__ptr : * mut :: std :: os :: raw :: c_void) ; } unsafe extern "C" { pub fn reallocarray (__ptr : * mut :: std :: os :: raw :: c_void , __nmemb : usize , __size : usize) -> * mut :: std :: os :: raw :: c_void ; } unsafe extern "C" { pub fn alloca (__size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } unsafe extern "C" { pub fn valloc (__size : usize) -> * mut :: std :: os :: raw :: c_void ; } unsafe extern "C" { pub fn posix_memalign (__memptr : * mut * mut :: std :: os :: raw :: c_void , __alignment : usize , __size : usize) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn aligned_alloc (__alignment : :: std :: os :: raw :: c_ulong , __size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } unsafe extern "C" { pub fn abort () -> ! ; } unsafe extern "C" { pub fn atexit (__func : :: std :: option :: Option < unsafe extern "C" fn () >) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn at_quick_exit (__func : :: std :: option :: Option < unsafe extern "C" fn () >) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn on_exit (__func : :: std :: option :: Option < unsafe extern "C" fn (__status : :: std :: os :: raw :: c_int , __arg : * mut :: std :: os :: raw :: c_void) > , __arg : * mut :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn exit (__status : :: std :: os :: raw :: c_int) -> ! ; } unsafe extern "C" { pub fn quick_exit (__status : :: std :: os :: raw :: c_int) -> ! ; } unsafe extern "C" { pub fn _Exit (__status : :: std :: os :: raw :: c_int) -> ! ; } unsafe extern "C" { pub fn getenv (__name : * const :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn putenv (__string : * mut :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn setenv (__name : * const :: std :: os :: raw :: c_char , __value : * const :: std :: os :: raw :: c_char , __replace : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn unsetenv (__name : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn clearenv () -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mktemp (__template : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn mkstemp (__template : * mut :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mkstemps (__template : * mut :: std :: os :: raw :: c_char , __suffixlen : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mkdtemp (__template : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn system (__command : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn realpath (__name : * const :: std :: os :: raw :: c_char , __resolved : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } pub type __compar_fn_t = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * const :: std :: os :: raw :: c_void , arg2 : * const :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int > ; unsafe extern "C" { pub fn bsearch (__key : * const :: std :: os :: raw :: c_void , __base : * const :: std :: os :: raw :: c_void , __nmemb : usize , __size : usize , __compar : __compar_fn_t) -> * mut :: std :: os :: raw :: c_void ; } unsafe extern "C" { pub fn qsort (__base : * mut :: std :: os :: raw :: c_void , __nmemb : usize , __size : usize , __compar : __compar_fn_t) ; } unsafe extern "C" { pub fn abs (__x : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn labs (__x : :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn llabs (__x : :: std :: os :: raw :: c_longlong) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn div (__numer : :: std :: os :: raw :: c_int , __denom : :: std :: os :: raw :: c_int) -> div_t ; } unsafe extern "C" { pub fn ldiv (__numer : :: std :: os :: raw :: c_long , __denom : :: std :: os :: raw :: c_long) -> ldiv_t ; } unsafe extern "C" { pub fn lldiv (__numer : :: std :: os :: raw :: c_longlong , __denom : :: std :: os :: raw :: c_longlong) -> lldiv_t ; } unsafe extern "C" { pub fn ecvt (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn fcvt (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn gcvt (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn qecvt (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn qfcvt (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn qgcvt (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn ecvt_r (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char , __len : usize) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn fcvt_r (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char , __len : usize) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn qecvt_r (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char , __len : usize) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn qfcvt_r (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char , __len : usize) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mblen (__s : * const :: std :: os :: raw :: c_char , __n : usize) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mbtowc (__pwc : * mut wchar_t , __s : * const :: std :: os :: raw :: c_char , __n : usize) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn wctomb (__s : * mut :: std :: os :: raw :: c_char , __wchar : wchar_t) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mbstowcs (__pwcs : * mut wchar_t , __s : * const :: std :: os :: raw :: c_char , __n : usize) -> usize ; } unsafe extern "C" { pub fn wcstombs (__s : * mut :: std :: os :: raw :: c_char , __pwcs : * const wchar_t , __n : usize) -> usize ; } unsafe extern "C" { pub fn rpmatch (__response : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getsubopt (__optionp : * mut * mut :: std :: os :: raw :: c_char , __tokens : * const * mut :: std :: os :: raw :: c_char , __valuep : * mut * mut :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getloadavg (__loadavg : * mut f64 , __nelem : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } # [repr (C)] # [repr (align (16))] # [derive (Debug , Copy , Clone)] pub struct max_align_t { pub __clang_max_align_nonce1 : :: std :: os :: raw :: c_longlong , pub __bindgen_padding_0 : u64 , pub __clang_max_align_nonce2 : u128 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of max_align_t"] [:: std :: mem :: size_of :: < max_align_t > () - 32usize] ; ["Alignment of max_align_t"] [:: std :: mem :: align_of :: < max_align_t > () - 16usize] ; ["Offset of field: max_align_t::__clang_max_align_nonce1"] [:: std :: mem :: offset_of ! (max_align_t , __clang_max_align_nonce1) - 0usize] ; ["Offset of field: max_align_t::__clang_max_align_nonce2"] [:: std :: mem :: offset_of ! (max_align_t , __clang_max_align_nonce2) - 16usize] ; } ; pub type int_least8_t = __int_least8_t ; pub type int_least16_t = __int_least16_t ; pub type int_least32_t = __int_least32_t ; pub type int_least64_t = __int_least64_t ; pub type uint_least8_t = __uint_least8_t ; pub type uint_least16_t = __uint_least16_t ; pub type uint_least32_t = __uint_least32_t ; pub type uint_least64_t = __uint_least64_t ; pub type int_fast8_t = :: std :: os :: raw :: c_schar ; pub type int_fast16_t = :: std :: os :: raw :: c_long ; pub type int_fast32_t = :: std :: os :: raw :: c_long ; pub type int_fast64_t = :: std :: os :: raw :: c_long ; pub type uint_fast8_t = :: std :: os :: raw :: c_uchar ; pub type uint_fast16_t = :: std :: os :: raw :: c_ulong ; pub type uint_fast32_t = :: std :: os :: raw :: c_ulong ; pub type uint_fast64_t = :: std :: os :: raw :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub type __gwchar_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct imaxdiv_t { pub quot : :: std :: os :: raw :: c_long , pub rem : :: std :: os :: raw :: c_long , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of imaxdiv_t"] [:: std :: mem :: size_of :: < imaxdiv_t > () - 16usize] ; ["Alignment of imaxdiv_t"] [:: std :: mem :: align_of :: < imaxdiv_t > () - 8usize] ; ["Offset of field: imaxdiv_t::quot"] [:: std :: mem :: offset_of ! (imaxdiv_t , quot) - 0usize] ; ["Offset of field: imaxdiv_t::rem"] [:: std :: mem :: offset_of ! (imaxdiv_t , rem) - 8usize] ; } ; unsafe extern "C" { pub fn imaxabs (__n : intmax_t) -> intmax_t ; } unsafe extern "C" { pub fn imaxdiv (__numer : intmax_t , __denom : intmax_t) -> imaxdiv_t ; } unsafe extern "C" { pub fn strtoimax (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> intmax_t ; } unsafe extern "C" { pub fn strtoumax (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> uintmax_t ; } unsafe extern "C" { pub fn wcstoimax (__nptr : * const __gwchar_t , __endptr : * mut * mut __gwchar_t , __base : :: std :: os :: raw :: c_int) -> intmax_t ; } unsafe extern "C" { pub fn wcstoumax (__nptr : * const __gwchar_t , __endptr : * mut * mut __gwchar_t , __base : :: std :: os :: raw :: c_int) -> uintmax_t ; } # [doc = "=============================================================================\n                      Compiler and Platform Features\n============================================================================="] pub type i8_ = i8 ; pub type u8_ = u8 ; pub type i16_ = i16 ; pub type u16_ = u16 ; pub type i32_ = i32 ; pub type u32_ = u32 ; pub type i64_ = i64 ; pub type u64_ = u64 ; pub type f32_ = f32 ; pub type f64_ = f64 ; # [doc = "=============================================================================\n                               Xoroshiro 128\n============================================================================="] # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Xoroshiro { pub lo : u64 , pub hi : u64 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Xoroshiro"] [:: std :: mem :: size_of :: < Xoroshiro > () - 16usize] ; ["Alignment of Xoroshiro"] [:: std :: mem :: align_of :: < Xoroshiro > () - 8usize] ; ["Offset of field: Xoroshiro::lo"] [:: std :: mem :: offset_of ! (Xoroshiro , lo) - 0usize] ; ["Offset of field: Xoroshiro::hi"] [:: std :: mem :: offset_of ! (Xoroshiro , hi) - 8usize] ; } ; pub type float_t = f32 ; pub type double_t = f64 ; unsafe extern "C" { pub fn __fpclassify (__value : f64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __signbit (__value : f64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __isinf (__value : f64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __finite (__value : f64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __isnan (__value : f64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __iseqsig (__x : f64 , __y : f64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __issignaling (__value : f64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn acos (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __acos (__x : f64) -> f64 ; } unsafe extern "C" { pub fn asin (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __asin (__x : f64) -> f64 ; } unsafe extern "C" { pub fn atan (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __atan (__x : f64) -> f64 ; } unsafe extern "C" { pub fn atan2 (__y : f64 , __x : f64) -> f64 ; } unsafe extern "C" { pub fn __atan2 (__y : f64 , __x : f64) -> f64 ; } unsafe extern "C" { pub fn cos (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __cos (__x : f64) -> f64 ; } unsafe extern "C" { pub fn sin (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __sin (__x : f64) -> f64 ; } unsafe extern "C" { pub fn tan (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __tan (__x : f64) -> f64 ; } unsafe extern "C" { pub fn cosh (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __cosh (__x : f64) -> f64 ; } unsafe extern "C" { pub fn sinh (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __sinh (__x : f64) -> f64 ; } unsafe extern "C" { pub fn tanh (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __tanh (__x : f64) -> f64 ; } unsafe extern "C" { pub fn acosh (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __acosh (__x : f64) -> f64 ; } unsafe extern "C" { pub fn asinh (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __asinh (__x : f64) -> f64 ; } unsafe extern "C" { pub fn atanh (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __atanh (__x : f64) -> f64 ; } unsafe extern "C" { pub fn exp (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __exp (__x : f64) -> f64 ; } unsafe extern "C" { pub fn frexp (__x : f64 , __exponent : * mut :: std :: os :: raw :: c_int) -> f64 ; } unsafe extern "C" { pub fn __frexp (__x : f64 , __exponent : * mut :: std :: os :: raw :: c_int) -> f64 ; } unsafe extern "C" { pub fn ldexp (__x : f64 , __exponent : :: std :: os :: raw :: c_int) -> f64 ; } unsafe extern "C" { pub fn __ldexp (__x : f64 , __exponent : :: std :: os :: raw :: c_int) -> f64 ; } unsafe extern "C" { pub fn log (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __log (__x : f64) -> f64 ; } unsafe extern "C" { pub fn log10 (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __log10 (__x : f64) -> f64 ; } unsafe extern "C" { pub fn modf (__x : f64 , __iptr : * mut f64) -> f64 ; } unsafe extern "C" { pub fn __modf (__x : f64 , __iptr : * mut f64) -> f64 ; } unsafe extern "C" { pub fn expm1 (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __expm1 (__x : f64) -> f64 ; } unsafe extern "C" { pub fn log1p (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __log1p (__x : f64) -> f64 ; } unsafe extern "C" { pub fn logb (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __logb (__x : f64) -> f64 ; } unsafe extern "C" { pub fn exp2 (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __exp2 (__x : f64) -> f64 ; } unsafe extern "C" { pub fn log2 (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __log2 (__x : f64) -> f64 ; } unsafe extern "C" { pub fn pow (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn __pow (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn sqrt (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __sqrt (__x : f64) -> f64 ; } unsafe extern "C" { pub fn hypot (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn __hypot (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn cbrt (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __cbrt (__x : f64) -> f64 ; } unsafe extern "C" { pub fn ceil (__x : f64) -> f64 ; } unsafe extern "C" { pub fn fabs (__x : f64) -> f64 ; } unsafe extern "C" { pub fn floor (__x : f64) -> f64 ; } unsafe extern "C" { pub fn fmod (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn __fmod (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn isinf (__value : f64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn finite (__value : f64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn drem (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn __drem (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn significand (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __significand (__x : f64) -> f64 ; } unsafe extern "C" { pub fn copysign (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn nan (__tagb : * const :: std :: os :: raw :: c_char) -> f64 ; } unsafe extern "C" { pub fn __nan (__tagb : * const :: std :: os :: raw :: c_char) -> f64 ; } unsafe extern "C" { pub fn isnan (__value : f64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn j0 (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn __j0 (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn j1 (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn __j1 (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn jn (arg1 : :: std :: os :: raw :: c_int , arg2 : f64) -> f64 ; } unsafe extern "C" { pub fn __jn (arg1 : :: std :: os :: raw :: c_int , arg2 : f64) -> f64 ; } unsafe extern "C" { pub fn y0 (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn __y0 (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn y1 (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn __y1 (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn yn (arg1 : :: std :: os :: raw :: c_int , arg2 : f64) -> f64 ; } unsafe extern "C" { pub fn __yn (arg1 : :: std :: os :: raw :: c_int , arg2 : f64) -> f64 ; } unsafe extern "C" { pub fn erf (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn __erf (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn erfc (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn __erfc (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn lgamma (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn __lgamma (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn tgamma (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn __tgamma (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn gamma (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn __gamma (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn lgamma_r (arg1 : f64 , __signgamp : * mut :: std :: os :: raw :: c_int) -> f64 ; } unsafe extern "C" { pub fn __lgamma_r (arg1 : f64 , __signgamp : * mut :: std :: os :: raw :: c_int) -> f64 ; } unsafe extern "C" { pub fn rint (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __rint (__x : f64) -> f64 ; } unsafe extern "C" { pub fn nextafter (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn __nextafter (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn nexttoward (__x : f64 , __y : u128) -> f64 ; } unsafe extern "C" { pub fn __nexttoward (__x : f64 , __y : u128) -> f64 ; } unsafe extern "C" { pub fn remainder (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn __remainder (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn scalbn (__x : f64 , __n : :: std :: os :: raw :: c_int) -> f64 ; } unsafe extern "C" { pub fn __scalbn (__x : f64 , __n : :: std :: os :: raw :: c_int) -> f64 ; } unsafe extern "C" { pub fn ilogb (__x : f64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __ilogb (__x : f64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn scalbln (__x : f64 , __n : :: std :: os :: raw :: c_long) -> f64 ; } unsafe extern "C" { pub fn __scalbln (__x : f64 , __n : :: std :: os :: raw :: c_long) -> f64 ; } unsafe extern "C" { pub fn nearbyint (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __nearbyint (__x : f64) -> f64 ; } unsafe extern "C" { pub fn round (__x : f64) -> f64 ; } unsafe extern "C" { pub fn trunc (__x : f64) -> f64 ; } unsafe extern "C" { pub fn remquo (__x : f64 , __y : f64 , __quo : * mut :: std :: os :: raw :: c_int) -> f64 ; } unsafe extern "C" { pub fn __remquo (__x : f64 , __y : f64 , __quo : * mut :: std :: os :: raw :: c_int) -> f64 ; } unsafe extern "C" { pub fn lrint (__x : f64) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn __lrint (__x : f64) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn llrint (__x : f64) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn __llrint (__x : f64) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn lround (__x : f64) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn __lround (__x : f64) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn llround (__x : f64) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn __llround (__x : f64) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn fdim (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn __fdim (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn fmax (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn fmin (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn fma (__x : f64 , __y : f64 , __z : f64) -> f64 ; } unsafe extern "C" { pub fn __fma (__x : f64 , __y : f64 , __z : f64) -> f64 ; } unsafe extern "C" { pub fn scalb (__x : f64 , __n : f64) -> f64 ; } unsafe extern "C" { pub fn __scalb (__x : f64 , __n : f64) -> f64 ; } unsafe extern "C" { pub fn __fpclassifyf (__value : f32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __signbitf (__value : f32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __isinff (__value : f32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __finitef (__value : f32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __isnanf (__value : f32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __iseqsigf (__x : f32 , __y : f32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __issignalingf (__value : f32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn acosf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __acosf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn asinf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __asinf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn atanf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __atanf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn atan2f (__y : f32 , __x : f32) -> f32 ; } unsafe extern "C" { pub fn __atan2f (__y : f32 , __x : f32) -> f32 ; } unsafe extern "C" { pub fn cosf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __cosf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn sinf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __sinf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn tanf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __tanf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn coshf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __coshf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn sinhf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __sinhf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn tanhf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __tanhf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn acoshf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __acoshf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn asinhf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __asinhf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn atanhf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __atanhf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn expf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __expf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn frexpf (__x : f32 , __exponent : * mut :: std :: os :: raw :: c_int) -> f32 ; } unsafe extern "C" { pub fn __frexpf (__x : f32 , __exponent : * mut :: std :: os :: raw :: c_int) -> f32 ; } unsafe extern "C" { pub fn ldexpf (__x : f32 , __exponent : :: std :: os :: raw :: c_int) -> f32 ; } unsafe extern "C" { pub fn __ldexpf (__x : f32 , __exponent : :: std :: os :: raw :: c_int) -> f32 ; } unsafe extern "C" { pub fn logf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __logf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn log10f (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __log10f (__x : f32) -> f32 ; } unsafe extern "C" { pub fn modff (__x : f32 , __iptr : * mut f32) -> f32 ; } unsafe extern "C" { pub fn __modff (__x : f32 , __iptr : * mut f32) -> f32 ; } unsafe extern "C" { pub fn expm1f (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __expm1f (__x : f32) -> f32 ; } unsafe extern "C" { pub fn log1pf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __log1pf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn logbf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __logbf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn exp2f (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __exp2f (__x : f32) -> f32 ; } unsafe extern "C" { pub fn log2f (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __log2f (__x : f32) -> f32 ; } unsafe extern "C" { pub fn powf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn __powf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn sqrtf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __sqrtf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn hypotf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn __hypotf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn cbrtf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __cbrtf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn ceilf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn fabsf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn floorf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn fmodf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn __fmodf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn isinff (__value : f32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn finitef (__value : f32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn dremf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn __dremf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn significandf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __significandf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn copysignf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn nanf (__tagb : * const :: std :: os :: raw :: c_char) -> f32 ; } unsafe extern "C" { pub fn __nanf (__tagb : * const :: std :: os :: raw :: c_char) -> f32 ; } unsafe extern "C" { pub fn isnanf (__value : f32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn j0f (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn __j0f (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn j1f (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn __j1f (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn jnf (arg1 : :: std :: os :: raw :: c_int , arg2 : f32) -> f32 ; } unsafe extern "C" { pub fn __jnf (arg1 : :: std :: os :: raw :: c_int , arg2 : f32) -> f32 ; } unsafe extern "C" { pub fn y0f (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn __y0f (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn y1f (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn __y1f (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn ynf (arg1 : :: std :: os :: raw :: c_int , arg2 : f32) -> f32 ; } unsafe extern "C" { pub fn __ynf (arg1 : :: std :: os :: raw :: c_int , arg2 : f32) -> f32 ; } unsafe extern "C" { pub fn erff (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn __erff (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn erfcf (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn __erfcf (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn lgammaf (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn __lgammaf (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn tgammaf (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn __tgammaf (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn gammaf (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn __gammaf (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn lgammaf_r (arg1 : f32 , __signgamp : * mut :: std :: os :: raw :: c_int) -> f32 ; } unsafe extern "C" { pub fn __lgammaf_r (arg1 : f32 , __signgamp : * mut :: std :: os :: raw :: c_int) -> f32 ; } unsafe extern "C" { pub fn rintf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __rintf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn nextafterf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn __nextafterf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn nexttowardf (__x : f32 , __y : u128) -> f32 ; } unsafe extern "C" { pub fn __nexttowardf (__x : f32 , __y : u128) -> f32 ; } unsafe extern "C" { pub fn remainderf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn __remainderf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn scalbnf (__x : f32 , __n : :: std :: os :: raw :: c_int) -> f32 ; } unsafe extern "C" { pub fn __scalbnf (__x : f32 , __n : :: std :: os :: raw :: c_int) -> f32 ; } unsafe extern "C" { pub fn ilogbf (__x : f32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __ilogbf (__x : f32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn scalblnf (__x : f32 , __n : :: std :: os :: raw :: c_long) -> f32 ; } unsafe extern "C" { pub fn __scalblnf (__x : f32 , __n : :: std :: os :: raw :: c_long) -> f32 ; } unsafe extern "C" { pub fn nearbyintf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __nearbyintf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn roundf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn truncf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn remquof (__x : f32 , __y : f32 , __quo : * mut :: std :: os :: raw :: c_int) -> f32 ; } unsafe extern "C" { pub fn __remquof (__x : f32 , __y : f32 , __quo : * mut :: std :: os :: raw :: c_int) -> f32 ; } unsafe extern "C" { pub fn lrintf (__x : f32) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn __lrintf (__x : f32) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn llrintf (__x : f32) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn __llrintf (__x : f32) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn lroundf (__x : f32) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn __lroundf (__x : f32) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn llroundf (__x : f32) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn __llroundf (__x : f32) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn fdimf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn __fdimf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn fmaxf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn fminf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn fmaf (__x : f32 , __y : f32 , __z : f32) -> f32 ; } unsafe extern "C" { pub fn __fmaf (__x : f32 , __y : f32 , __z : f32) -> f32 ; } unsafe extern "C" { pub fn scalbf (__x : f32 , __n : f32) -> f32 ; } unsafe extern "C" { pub fn __scalbf (__x : f32 , __n : f32) -> f32 ; } unsafe extern "C" { pub fn __fpclassifyl (__value : u128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __signbitl (__value : u128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __isinfl (__value : u128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __finitel (__value : u128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __isnanl (__value : u128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __iseqsigl (__x : u128 , __y : u128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __issignalingl (__value : u128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn acosl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __acosl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn asinl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __asinl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn atanl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __atanl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn atan2l (__y : u128 , __x : u128) -> u128 ; } unsafe extern "C" { pub fn __atan2l (__y : u128 , __x : u128) -> u128 ; } unsafe extern "C" { pub fn cosl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __cosl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn sinl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __sinl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn tanl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __tanl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn coshl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __coshl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn sinhl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __sinhl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn tanhl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __tanhl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn acoshl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __acoshl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn asinhl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __asinhl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn atanhl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __atanhl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn expl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __expl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn frexpl (__x : u128 , __exponent : * mut :: std :: os :: raw :: c_int) -> u128 ; } unsafe extern "C" { pub fn __frexpl (__x : u128 , __exponent : * mut :: std :: os :: raw :: c_int) -> u128 ; } unsafe extern "C" { pub fn ldexpl (__x : u128 , __exponent : :: std :: os :: raw :: c_int) -> u128 ; } unsafe extern "C" { pub fn __ldexpl (__x : u128 , __exponent : :: std :: os :: raw :: c_int) -> u128 ; } unsafe extern "C" { pub fn logl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __logl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn log10l (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __log10l (__x : u128) -> u128 ; } unsafe extern "C" { pub fn modfl (__x : u128 , __iptr : * mut u128) -> u128 ; } unsafe extern "C" { pub fn __modfl (__x : u128 , __iptr : * mut u128) -> u128 ; } unsafe extern "C" { pub fn expm1l (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __expm1l (__x : u128) -> u128 ; } unsafe extern "C" { pub fn log1pl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __log1pl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn logbl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __logbl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn exp2l (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __exp2l (__x : u128) -> u128 ; } unsafe extern "C" { pub fn log2l (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __log2l (__x : u128) -> u128 ; } unsafe extern "C" { pub fn powl (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn __powl (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn sqrtl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __sqrtl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn hypotl (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn __hypotl (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn cbrtl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __cbrtl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn ceill (__x : u128) -> u128 ; } unsafe extern "C" { pub fn fabsl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn floorl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn fmodl (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn __fmodl (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn isinfl (__value : u128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn finitel (__value : u128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn dreml (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn __dreml (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn significandl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __significandl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn copysignl (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn nanl (__tagb : * const :: std :: os :: raw :: c_char) -> u128 ; } unsafe extern "C" { pub fn __nanl (__tagb : * const :: std :: os :: raw :: c_char) -> u128 ; } unsafe extern "C" { pub fn isnanl (__value : u128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn j0l (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn __j0l (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn j1l (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn __j1l (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn jnl (arg1 : :: std :: os :: raw :: c_int , arg2 : u128) -> u128 ; } unsafe extern "C" { pub fn __jnl (arg1 : :: std :: os :: raw :: c_int , arg2 : u128) -> u128 ; } unsafe extern "C" { pub fn y0l (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn __y0l (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn y1l (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn __y1l (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn ynl (arg1 : :: std :: os :: raw :: c_int , arg2 : u128) -> u128 ; } unsafe extern "C" { pub fn __ynl (arg1 : :: std :: os :: raw :: c_int , arg2 : u128) -> u128 ; } unsafe extern "C" { pub fn erfl (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn __erfl (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn erfcl (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn __erfcl (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn lgammal (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn __lgammal (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn tgammal (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn __tgammal (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn gammal (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn __gammal (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn lgammal_r (arg1 : u128 , __signgamp : * mut :: std :: os :: raw :: c_int) -> u128 ; } unsafe extern "C" { pub fn __lgammal_r (arg1 : u128 , __signgamp : * mut :: std :: os :: raw :: c_int) -> u128 ; } unsafe extern "C" { pub fn rintl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __rintl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn nextafterl (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn __nextafterl (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn nexttowardl (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn __nexttowardl (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn remainderl (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn __remainderl (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn scalbnl (__x : u128 , __n : :: std :: os :: raw :: c_int) -> u128 ; } unsafe extern "C" { pub fn __scalbnl (__x : u128 , __n : :: std :: os :: raw :: c_int) -> u128 ; } unsafe extern "C" { pub fn ilogbl (__x : u128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __ilogbl (__x : u128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn scalblnl (__x : u128 , __n : :: std :: os :: raw :: c_long) -> u128 ; } unsafe extern "C" { pub fn __scalblnl (__x : u128 , __n : :: std :: os :: raw :: c_long) -> u128 ; } unsafe extern "C" { pub fn nearbyintl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __nearbyintl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn roundl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn truncl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn remquol (__x : u128 , __y : u128 , __quo : * mut :: std :: os :: raw :: c_int) -> u128 ; } unsafe extern "C" { pub fn __remquol (__x : u128 , __y : u128 , __quo : * mut :: std :: os :: raw :: c_int) -> u128 ; } unsafe extern "C" { pub fn lrintl (__x : u128) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn __lrintl (__x : u128) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn llrintl (__x : u128) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn __llrintl (__x : u128) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn lroundl (__x : u128) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn __lroundl (__x : u128) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn llroundl (__x : u128) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn __llroundl (__x : u128) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn fdiml (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn __fdiml (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn fmaxl (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn fminl (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn fmal (__x : u128 , __y : u128 , __z : u128) -> u128 ; } unsafe extern "C" { pub fn __fmal (__x : u128 , __y : u128 , __z : u128) -> u128 ; } unsafe extern "C" { pub fn scalbl (__x : u128 , __n : u128) -> u128 ; } unsafe extern "C" { pub fn __scalbl (__x : u128 , __n : u128) -> u128 ; } unsafe extern "C" { pub fn __fpclassifyf128 (__value : _Float128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __signbitf128 (__value : _Float128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __isinff128 (__value : _Float128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __finitef128 (__value : _Float128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __isnanf128 (__value : _Float128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __iseqsigf128 (__x : _Float128 , __y : _Float128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __issignalingf128 (__value : _Float128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub static mut signgam : :: std :: os :: raw :: c_int ; } pub const FP_NAN : _bindgen_ty_1 = _bindgen_ty_1 (0) ; pub const FP_INFINITE : _bindgen_ty_1 = _bindgen_ty_1 (1) ; pub const FP_ZERO : _bindgen_ty_1 = _bindgen_ty_1 (2) ; pub const FP_SUBNORMAL : _bindgen_ty_1 = _bindgen_ty_1 (3) ; pub const FP_NORMAL : _bindgen_ty_1 = _bindgen_ty_1 (4) ; # [repr (transparent)] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct _bindgen_ty_1 (pub :: std :: os :: raw :: c_uint) ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct PerlinNoise { pub d : [u8 ; 257usize] , pub h2 : u8 , pub a : f64 , pub b : f64 , pub c : f64 , pub amplitude : f64 , pub lacunarity : f64 , pub d2 : f64 , pub t2 : f64 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of PerlinNoise"] [:: std :: mem :: size_of :: < PerlinNoise > () - 320usize] ; ["Alignment of PerlinNoise"] [:: std :: mem :: align_of :: < PerlinNoise > () - 8usize] ; ["Offset of field: PerlinNoise::d"] [:: std :: mem :: offset_of ! (PerlinNoise , d) - 0usize] ; ["Offset of field: PerlinNoise::h2"] [:: std :: mem :: offset_of ! (PerlinNoise , h2) - 257usize] ; ["Offset of field: PerlinNoise::a"] [:: std :: mem :: offset_of ! (PerlinNoise , a) - 264usize] ; ["Offset of field: PerlinNoise::b"] [:: std :: mem :: offset_of ! (PerlinNoise , b) - 272usize] ; ["Offset of field: PerlinNoise::c"] [:: std :: mem :: offset_of ! (PerlinNoise , c) - 280usize] ; ["Offset of field: PerlinNoise::amplitude"] [:: std :: mem :: offset_of ! (PerlinNoise , amplitude) - 288usize] ; ["Offset of field: PerlinNoise::lacunarity"] [:: std :: mem :: offset_of ! (PerlinNoise , lacunarity) - 296usize] ; ["Offset of field: PerlinNoise::d2"] [:: std :: mem :: offset_of ! (PerlinNoise , d2) - 304usize] ; ["Offset of field: PerlinNoise::t2"] [:: std :: mem :: offset_of ! (PerlinNoise , t2) - 312usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct OctaveNoise { pub octcnt : :: std :: os :: raw :: c_int , pub octaves : * mut PerlinNoise , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of OctaveNoise"] [:: std :: mem :: size_of :: < OctaveNoise > () - 16usize] ; ["Alignment of OctaveNoise"] [:: std :: mem :: align_of :: < OctaveNoise > () - 8usize] ; ["Offset of field: OctaveNoise::octcnt"] [:: std :: mem :: offset_of ! (OctaveNoise , octcnt) - 0usize] ; ["Offset of field: OctaveNoise::octaves"] [:: std :: mem :: offset_of ! (OctaveNoise , octaves) - 8usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct DoublePerlinNoise { pub amplitude : f64 , pub octA : OctaveNoise , pub octB : OctaveNoise , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of DoublePerlinNoise"] [:: std :: mem :: size_of :: < DoublePerlinNoise > () - 40usize] ; ["Alignment of DoublePerlinNoise"] [:: std :: mem :: align_of :: < DoublePerlinNoise > () - 8usize] ; ["Offset of field: DoublePerlinNoise::amplitude"] [:: std :: mem :: offset_of ! (DoublePerlinNoise , amplitude) - 0usize] ; ["Offset of field: DoublePerlinNoise::octA"] [:: std :: mem :: offset_of ! (DoublePerlinNoise , octA) - 8usize] ; ["Offset of field: DoublePerlinNoise::octB"] [:: std :: mem :: offset_of ! (DoublePerlinNoise , octB) - 24usize] ; } ; unsafe extern "C" { # [doc = " Perlin noise"] pub fn perlinInit (noise : * mut PerlinNoise , seed : * mut u64) ; } unsafe extern "C" { pub fn xPerlinInit (noise : * mut PerlinNoise , xr : * mut Xoroshiro) ; } unsafe extern "C" { pub fn samplePerlin (noise : * const PerlinNoise , x : f64 , y : f64 , z : f64 , yamp : f64 , ymin : f64) -> f64 ; } unsafe extern "C" { pub fn sampleSimplex2D (noise : * const PerlinNoise , x : f64 , y : f64) -> f64 ; } unsafe extern "C" { # [doc = " Perlin Octaves"] pub fn octaveInit (noise : * mut OctaveNoise , seed : * mut u64 , octaves : * mut PerlinNoise , omin : :: std :: os :: raw :: c_int , len : :: std :: os :: raw :: c_int) ; } unsafe extern "C" { pub fn octaveInitBeta (noise : * mut OctaveNoise , seed : * mut u64 , octaves : * mut PerlinNoise , octcnt : :: std :: os :: raw :: c_int , lac : f64 , lacMul : f64 , persist : f64 , persistMul : f64) ; } unsafe extern "C" { pub fn xOctaveInit (noise : * mut OctaveNoise , xr : * mut Xoroshiro , octaves : * mut PerlinNoise , amplitudes : * const f64 , omin : :: std :: os :: raw :: c_int , len : :: std :: os :: raw :: c_int , nmax : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn sampleOctave (noise : * const OctaveNoise , x : f64 , y : f64 , z : f64) -> f64 ; } unsafe extern "C" { pub fn sampleOctaveAmp (noise : * const OctaveNoise , x : f64 , y : f64 , z : f64 , yamp : f64 , ymin : f64 , ydefault : :: std :: os :: raw :: c_int) -> f64 ; } unsafe extern "C" { pub fn sampleOctave2D (noise : * const OctaveNoise , x : f64 , z : f64) -> f64 ; } unsafe extern "C" { pub fn sampleOctaveBeta17Biome (noise : * const OctaveNoise , x : f64 , z : f64) -> f64 ; } unsafe extern "C" { pub fn sampleOctaveBeta17Terrain (noise : * const OctaveNoise , v : * mut f64 , x : f64 , z : f64 , yLacFlag : :: std :: os :: raw :: c_int , lacmin : f64) ; } unsafe extern "C" { # [doc = " Double Perlin"] pub fn doublePerlinInit (noise : * mut DoublePerlinNoise , seed : * mut u64 , octavesA : * mut PerlinNoise , octavesB : * mut PerlinNoise , omin : :: std :: os :: raw :: c_int , len : :: std :: os :: raw :: c_int) ; } unsafe extern "C" { pub fn xDoublePerlinInit (noise : * mut DoublePerlinNoise , xr : * mut Xoroshiro , octaves : * mut PerlinNoise , amplitudes : * const f64 , omin : :: std :: os :: raw :: c_int , len : :: std :: os :: raw :: c_int , nmax : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn sampleDoublePerlin (noise : * const DoublePerlinNoise , x : f64 , y : f64 , z : f64) -> f64 ; } impl MCVersion { pub const MC_UNDEF : MCVersion = MCVersion (0) ; } impl MCVersion { pub const MC_B1_7 : MCVersion = MCVersion (1) ; } impl MCVersion { pub const MC_B1_8 : MCVersion = MCVersion (2) ; } impl MCVersion { pub const MC_1_0_0 : MCVersion = MCVersion (3) ; } impl MCVersion { pub const MC_1_0 : MCVersion = MCVersion (3) ; } impl MCVersion { pub const MC_1_1_0 : MCVersion = MCVersion (4) ; } impl MCVersion { pub const MC_1_1 : MCVersion = MCVersion (4) ; } impl MCVersion { pub const MC_1_2_5 : MCVersion = MCVersion (5) ; } impl MCVersion { pub const MC_1_2 : MCVersion = MCVersion (5) ; } impl MCVersion { pub const MC_1_3_2 : MCVersion = MCVersion (6) ; } impl MCVersion { pub const MC_1_3 : MCVersion = MCVersion (6) ; } impl MCVersion { pub const MC_1_4_7 : MCVersion = MCVersion (7) ; } impl MCVersion { pub const MC_1_4 : MCVersion = MCVersion (7) ; } impl MCVersion { pub const MC_1_5_2 : MCVersion = MCVersion (8) ; } impl MCVersion { pub const MC_1_5 : MCVersion = MCVersion (8) ; } impl MCVersion { pub const MC_1_6_4 : MCVersion = MCVersion (9) ; } impl MCVersion { pub const MC_1_6 : MCVersion = MCVersion (9) ; } impl MCVersion { pub const MC_1_7_10 : MCVersion = MCVersion (10) ; } impl MCVersion { pub const MC_1_7 : MCVersion = MCVersion (10) ; } impl MCVersion { pub const MC_1_8_9 : MCVersion = MCVersion (11) ; } impl MCVersion { pub const MC_1_8 : MCVersion = MCVersion (11) ; } impl MCVersion { pub const MC_1_9_4 : MCVersion = MCVersion (12) ; } impl MCVersion { pub const MC_1_9 : MCVersion = MCVersion (12) ; } impl MCVersion { pub const MC_1_10_2 : MCVersion = MCVersion (13) ; } impl MCVersion { pub const MC_1_10 : MCVersion = MCVersion (13) ; } impl MCVersion { pub const MC_1_11_2 : MCVersion = MCVersion (14) ; } impl MCVersion { pub const MC_1_11 : MCVersion = MCVersion (14) ; } impl MCVersion { pub const MC_1_12_2 : MCVersion = MCVersion (15) ; } impl MCVersion { pub const MC_1_12 : MCVersion = MCVersion (15) ; } impl MCVersion { pub const MC_1_13_2 : MCVersion = MCVersion (16) ; } impl MCVersion { pub const MC_1_13 : MCVersion = MCVersion (16) ; } impl MCVersion { pub const MC_1_14_4 : MCVersion = MCVersion (17) ; } impl MCVersion { pub const MC_1_14 : MCVersion = MCVersion (17) ; } impl MCVersion { pub const MC_1_15_2 : MCVersion = MCVersion (18) ; } impl MCVersion { pub const MC_1_15 : MCVersion = MCVersion (18) ; } impl MCVersion { pub const MC_1_16_1 : MCVersion = MCVersion (19) ; } impl MCVersion { pub const MC_1_16_5 : MCVersion = MCVersion (20) ; } impl MCVersion { pub const MC_1_16 : MCVersion = MCVersion (20) ; } impl MCVersion { pub const MC_1_17_1 : MCVersion = MCVersion (21) ; } impl MCVersion { pub const MC_1_17 : MCVersion = MCVersion (21) ; } impl MCVersion { pub const MC_1_18_2 : MCVersion = MCVersion (22) ; } impl MCVersion { pub const MC_1_18 : MCVersion = MCVersion (22) ; } impl MCVersion { pub const MC_1_19_2 : MCVersion = MCVersion (23) ; } impl MCVersion { pub const MC_1_19_4 : MCVersion = MCVersion (24) ; } impl MCVersion { pub const MC_1_19 : MCVersion = MCVersion (24) ; } impl MCVersion { pub const MC_1_20_6 : MCVersion = MCVersion (25) ; } impl MCVersion { pub const MC_1_20 : MCVersion = MCVersion (25) ; } impl MCVersion { pub const MC_1_21_1 : MCVersion = MCVersion (26) ; } impl MCVersion { pub const MC_1_21_3 : MCVersion = MCVersion (27) ; } impl MCVersion { pub const MC_1_21_WD : MCVersion = MCVersion (28) ; } impl MCVersion { pub const MC_1_21 : MCVersion = MCVersion (28) ; } impl MCVersion { pub const MC_NEWEST : MCVersion = MCVersion (28) ; } # [repr (transparent)] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct MCVersion (pub :: std :: os :: raw :: c_uint) ; impl Dimension { pub const DIM_NETHER : Dimension = Dimension (- 1) ; } impl Dimension { pub const DIM_OVERWORLD : Dimension = Dimension (0) ; } impl Dimension { pub const DIM_END : Dimension = Dimension (1) ; } impl Dimension { pub const DIM_UNDEF : Dimension = Dimension (1000) ; } # [repr (transparent)] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct Dimension (pub :: std :: os :: raw :: c_int) ; impl BiomeID { pub const none : BiomeID = BiomeID (- 1) ; } impl BiomeID { pub const ocean : BiomeID = BiomeID (0) ; } impl BiomeID { pub const plains : BiomeID = BiomeID (1) ; } impl BiomeID { pub const desert : BiomeID = BiomeID (2) ; } impl BiomeID { pub const mountains : BiomeID = BiomeID (3) ; } impl BiomeID { pub const extremeHills : BiomeID = BiomeID (3) ; } impl BiomeID { pub const forest : BiomeID = BiomeID (4) ; } impl BiomeID { pub const taiga : BiomeID = BiomeID (5) ; } impl BiomeID { pub const swamp : BiomeID = BiomeID (6) ; } impl BiomeID { pub const swampland : BiomeID = BiomeID (6) ; } impl BiomeID { pub const river : BiomeID = BiomeID (7) ; } impl BiomeID { pub const nether_wastes : BiomeID = BiomeID (8) ; } impl BiomeID { pub const hell : BiomeID = BiomeID (8) ; } impl BiomeID { pub const the_end : BiomeID = BiomeID (9) ; } impl BiomeID { pub const sky : BiomeID = BiomeID (9) ; } impl BiomeID { pub const frozen_ocean : BiomeID = BiomeID (10) ; } impl BiomeID { pub const frozenOcean : BiomeID = BiomeID (10) ; } impl BiomeID { pub const frozen_river : BiomeID = BiomeID (11) ; } impl BiomeID { pub const frozenRiver : BiomeID = BiomeID (11) ; } impl BiomeID { pub const snowy_tundra : BiomeID = BiomeID (12) ; } impl BiomeID { pub const icePlains : BiomeID = BiomeID (12) ; } impl BiomeID { pub const snowy_mountains : BiomeID = BiomeID (13) ; } impl BiomeID { pub const iceMountains : BiomeID = BiomeID (13) ; } impl BiomeID { pub const mushroom_fields : BiomeID = BiomeID (14) ; } impl BiomeID { pub const mushroomIsland : BiomeID = BiomeID (14) ; } impl BiomeID { pub const mushroom_field_shore : BiomeID = BiomeID (15) ; } impl BiomeID { pub const mushroomIslandShore : BiomeID = BiomeID (15) ; } impl BiomeID { pub const beach : BiomeID = BiomeID (16) ; } impl BiomeID { pub const desert_hills : BiomeID = BiomeID (17) ; } impl BiomeID { pub const desertHills : BiomeID = BiomeID (17) ; } impl BiomeID { pub const wooded_hills : BiomeID = BiomeID (18) ; } impl BiomeID { pub const forestHills : BiomeID = BiomeID (18) ; } impl BiomeID { pub const taiga_hills : BiomeID = BiomeID (19) ; } impl BiomeID { pub const taigaHills : BiomeID = BiomeID (19) ; } impl BiomeID { pub const mountain_edge : BiomeID = BiomeID (20) ; } impl BiomeID { pub const extremeHillsEdge : BiomeID = BiomeID (20) ; } impl BiomeID { pub const jungle : BiomeID = BiomeID (21) ; } impl BiomeID { pub const jungle_hills : BiomeID = BiomeID (22) ; } impl BiomeID { pub const jungleHills : BiomeID = BiomeID (22) ; } impl BiomeID { pub const jungle_edge : BiomeID = BiomeID (23) ; } impl BiomeID { pub const jungleEdge : BiomeID = BiomeID (23) ; } impl BiomeID { pub const deep_ocean : BiomeID = BiomeID (24) ; } impl BiomeID { pub const deepOcean : BiomeID = BiomeID (24) ; } impl BiomeID { pub const stone_shore : BiomeID = BiomeID (25) ; } impl BiomeID { pub const stoneBeach : BiomeID = BiomeID (25) ; } impl BiomeID { pub const snowy_beach : BiomeID = BiomeID (26) ; } impl BiomeID { pub const coldBeach : BiomeID = BiomeID (26) ; } impl BiomeID { pub const birch_forest : BiomeID = BiomeID (27) ; } impl BiomeID { pub const birchForest : BiomeID = BiomeID (27) ; } impl BiomeID { pub const birch_forest_hills : BiomeID = BiomeID (28) ; } impl BiomeID { pub const birchForestHills : BiomeID = BiomeID (28) ; } impl BiomeID { pub const dark_forest : BiomeID = BiomeID (29) ; } impl BiomeID { pub const roofedForest : BiomeID = BiomeID (29) ; } impl BiomeID { pub const snowy_taiga : BiomeID = BiomeID (30) ; } impl BiomeID { pub const coldTaiga : BiomeID = BiomeID (30) ; } impl BiomeID { pub const snowy_taiga_hills : BiomeID = BiomeID (31) ; } impl BiomeID { pub const coldTaigaHills : BiomeID = BiomeID (31) ; } impl BiomeID { pub const giant_tree_taiga : BiomeID = BiomeID (32) ; } impl BiomeID { pub const megaTaiga : BiomeID = BiomeID (32) ; } impl BiomeID { pub const giant_tree_taiga_hills : BiomeID = BiomeID (33) ; } impl BiomeID { pub const megaTaigaHills : BiomeID = BiomeID (33) ; } impl BiomeID { pub const wooded_mountains : BiomeID = BiomeID (34) ; } impl BiomeID { pub const extremeHillsPlus : BiomeID = BiomeID (34) ; } impl BiomeID { pub const savanna : BiomeID = BiomeID (35) ; } impl BiomeID { pub const savanna_plateau : BiomeID = BiomeID (36) ; } impl BiomeID { pub const savannaPlateau : BiomeID = BiomeID (36) ; } impl BiomeID { pub const badlands : BiomeID = BiomeID (37) ; } impl BiomeID { pub const mesa : BiomeID = BiomeID (37) ; } impl BiomeID { pub const wooded_badlands_plateau : BiomeID = BiomeID (38) ; } impl BiomeID { pub const mesaPlateau_F : BiomeID = BiomeID (38) ; } impl BiomeID { pub const badlands_plateau : BiomeID = BiomeID (39) ; } impl BiomeID { pub const mesaPlateau : BiomeID = BiomeID (39) ; } impl BiomeID { pub const small_end_islands : BiomeID = BiomeID (40) ; } impl BiomeID { pub const end_midlands : BiomeID = BiomeID (41) ; } impl BiomeID { pub const end_highlands : BiomeID = BiomeID (42) ; } impl BiomeID { pub const end_barrens : BiomeID = BiomeID (43) ; } impl BiomeID { pub const warm_ocean : BiomeID = BiomeID (44) ; } impl BiomeID { pub const warmOcean : BiomeID = BiomeID (44) ; } impl BiomeID { pub const lukewarm_ocean : BiomeID = BiomeID (45) ; } impl BiomeID { pub const lukewarmOcean : BiomeID = BiomeID (45) ; } impl BiomeID { pub const cold_ocean : BiomeID = BiomeID (46) ; } impl BiomeID { pub const coldOcean : BiomeID = BiomeID (46) ; } impl BiomeID { pub const deep_warm_ocean : BiomeID = BiomeID (47) ; } impl BiomeID { pub const warmDeepOcean : BiomeID = BiomeID (47) ; } impl BiomeID { pub const deep_lukewarm_ocean : BiomeID = BiomeID (48) ; } impl BiomeID { pub const lukewarmDeepOcean : BiomeID = BiomeID (48) ; } impl BiomeID { pub const deep_cold_ocean : BiomeID = BiomeID (49) ; } impl BiomeID { pub const coldDeepOcean : BiomeID = BiomeID (49) ; } impl BiomeID { pub const deep_frozen_ocean : BiomeID = BiomeID (50) ; } impl BiomeID { pub const frozenDeepOcean : BiomeID = BiomeID (50) ; } impl BiomeID { pub const seasonal_forest : BiomeID = BiomeID (51) ; } impl BiomeID { pub const rainforest : BiomeID = BiomeID (52) ; } impl BiomeID { pub const shrubland : BiomeID = BiomeID (53) ; } impl BiomeID { pub const the_void : BiomeID = BiomeID (127) ; } impl BiomeID { pub const sunflower_plains : BiomeID = BiomeID (129) ; } impl BiomeID { pub const desert_lakes : BiomeID = BiomeID (130) ; } impl BiomeID { pub const gravelly_mountains : BiomeID = BiomeID (131) ; } impl BiomeID { pub const flower_forest : BiomeID = BiomeID (132) ; } impl BiomeID { pub const taiga_mountains : BiomeID = BiomeID (133) ; } impl BiomeID { pub const swamp_hills : BiomeID = BiomeID (134) ; } impl BiomeID { pub const ice_spikes : BiomeID = BiomeID (140) ; } impl BiomeID { pub const modified_jungle : BiomeID = BiomeID (149) ; } impl BiomeID { pub const modified_jungle_edge : BiomeID = BiomeID (151) ; } impl BiomeID { pub const tall_birch_forest : BiomeID = BiomeID (155) ; } impl BiomeID { pub const tall_birch_hills : BiomeID = BiomeID (156) ; } impl BiomeID { pub const dark_forest_hills : BiomeID = BiomeID (157) ; } impl BiomeID { pub const snowy_taiga_mountains : BiomeID = BiomeID (158) ; } impl BiomeID { pub const giant_spruce_taiga : BiomeID = BiomeID (160) ; } impl BiomeID { pub const giant_spruce_taiga_hills : BiomeID = BiomeID (161) ; } impl BiomeID { pub const modified_gravelly_mountains : BiomeID = BiomeID (162) ; } impl BiomeID { pub const shattered_savanna : BiomeID = BiomeID (163) ; } impl BiomeID { pub const shattered_savanna_plateau : BiomeID = BiomeID (164) ; } impl BiomeID { pub const eroded_badlands : BiomeID = BiomeID (165) ; } impl BiomeID { pub const modified_wooded_badlands_plateau : BiomeID = BiomeID (166) ; } impl BiomeID { pub const modified_badlands_plateau : BiomeID = BiomeID (167) ; } impl BiomeID { pub const bamboo_jungle : BiomeID = BiomeID (168) ; } impl BiomeID { pub const bamboo_jungle_hills : BiomeID = BiomeID (169) ; } impl BiomeID { pub const soul_sand_valley : BiomeID = BiomeID (170) ; } impl BiomeID { pub const crimson_forest : BiomeID = BiomeID (171) ; } impl BiomeID { pub const warped_forest : BiomeID = BiomeID (172) ; } impl BiomeID { pub const basalt_deltas : BiomeID = BiomeID (173) ; } impl BiomeID { pub const dripstone_caves : BiomeID = BiomeID (174) ; } impl BiomeID { pub const lush_caves : BiomeID = BiomeID (175) ; } impl BiomeID { pub const meadow : BiomeID = BiomeID (177) ; } impl BiomeID { pub const grove : BiomeID = BiomeID (178) ; } impl BiomeID { pub const snowy_slopes : BiomeID = BiomeID (179) ; } impl BiomeID { pub const jagged_peaks : BiomeID = BiomeID (180) ; } impl BiomeID { pub const frozen_peaks : BiomeID = BiomeID (181) ; } impl BiomeID { pub const stony_peaks : BiomeID = BiomeID (182) ; } impl BiomeID { pub const old_growth_birch_forest : BiomeID = BiomeID (155) ; } impl BiomeID { pub const old_growth_pine_taiga : BiomeID = BiomeID (32) ; } impl BiomeID { pub const old_growth_spruce_taiga : BiomeID = BiomeID (160) ; } impl BiomeID { pub const snowy_plains : BiomeID = BiomeID (12) ; } impl BiomeID { pub const sparse_jungle : BiomeID = BiomeID (23) ; } impl BiomeID { pub const stony_shore : BiomeID = BiomeID (25) ; } impl BiomeID { pub const windswept_hills : BiomeID = BiomeID (3) ; } impl BiomeID { pub const windswept_forest : BiomeID = BiomeID (34) ; } impl BiomeID { pub const windswept_gravelly_hills : BiomeID = BiomeID (131) ; } impl BiomeID { pub const windswept_savanna : BiomeID = BiomeID (163) ; } impl BiomeID { pub const wooded_badlands : BiomeID = BiomeID (38) ; } impl BiomeID { pub const deep_dark : BiomeID = BiomeID (183) ; } impl BiomeID { pub const mangrove_swamp : BiomeID = BiomeID (184) ; } impl BiomeID { pub const cherry_grove : BiomeID = BiomeID (185) ; } impl BiomeID { pub const pale_garden : BiomeID = BiomeID (186) ; } # [repr (transparent)] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct BiomeID (pub :: std :: os :: raw :: c_int) ; unsafe extern "C" { pub fn biomeExists (mc : :: std :: os :: raw :: c_int , id : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn isOverworld (mc : :: std :: os :: raw :: c_int , id : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getDimension (id : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getMutated (mc : :: std :: os :: raw :: c_int , id : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getCategory (mc : :: std :: os :: raw :: c_int , id : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn areSimilar (mc : :: std :: os :: raw :: c_int , id1 : :: std :: os :: raw :: c_int , id2 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn isMesa (id : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn isShallowOcean (id : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn isDeepOcean (id : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn isOceanic (id : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn isSnowy (id : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } impl BiomeTempCategory { pub const Oceanic : BiomeTempCategory = BiomeTempCategory (0) ; } impl BiomeTempCategory { pub const Warm : BiomeTempCategory = BiomeTempCategory (1) ; } impl BiomeTempCategory { pub const Lush : BiomeTempCategory = BiomeTempCategory (2) ; } impl BiomeTempCategory { pub const Cold : BiomeTempCategory = BiomeTempCategory (3) ; } impl BiomeTempCategory { pub const Freezing : BiomeTempCategory = BiomeTempCategory (4) ; } impl BiomeTempCategory { pub const Special : BiomeTempCategory = BiomeTempCategory (5) ; } # [repr (transparent)] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct BiomeTempCategory (pub :: std :: os :: raw :: c_uint) ; impl LayerId { pub const L_CONTINENT_4096 : LayerId = LayerId (0) ; } impl LayerId { pub const L_ISLAND_4096 : LayerId = LayerId (0) ; } impl LayerId { pub const L_ZOOM_4096 : LayerId = LayerId (1) ; } impl LayerId { pub const L_LAND_4096 : LayerId = LayerId (2) ; } impl LayerId { pub const L_ZOOM_2048 : LayerId = LayerId (3) ; } impl LayerId { pub const L_LAND_2048 : LayerId = LayerId (4) ; } impl LayerId { pub const L_ADD_ISLAND_2048 : LayerId = LayerId (4) ; } impl LayerId { pub const L_ZOOM_1024 : LayerId = LayerId (5) ; } impl LayerId { pub const L_LAND_1024_A : LayerId = LayerId (6) ; } impl LayerId { pub const L_ADD_ISLAND_1024A : LayerId = LayerId (6) ; } impl LayerId { pub const L_LAND_1024_B : LayerId = LayerId (7) ; } impl LayerId { pub const L_ADD_ISLAND_1024B : LayerId = LayerId (7) ; } impl LayerId { pub const L_LAND_1024_C : LayerId = LayerId (8) ; } impl LayerId { pub const L_ADD_ISLAND_1024C : LayerId = LayerId (8) ; } impl LayerId { pub const L_ISLAND_1024 : LayerId = LayerId (9) ; } impl LayerId { pub const L_REMOVE_OCEAN_1024 : LayerId = LayerId (9) ; } impl LayerId { pub const L_SNOW_1024 : LayerId = LayerId (10) ; } impl LayerId { pub const L_ADD_SNOW_1024 : LayerId = LayerId (10) ; } impl LayerId { pub const L_LAND_1024_D : LayerId = LayerId (11) ; } impl LayerId { pub const L_ADD_ISLAND_1024D : LayerId = LayerId (11) ; } impl LayerId { pub const L_COOL_1024 : LayerId = LayerId (12) ; } impl LayerId { pub const L_COOL_WARM_1024 : LayerId = LayerId (12) ; } impl LayerId { pub const L_HEAT_1024 : LayerId = LayerId (13) ; } impl LayerId { pub const L_HEAT_ICE_1024 : LayerId = LayerId (13) ; } impl LayerId { pub const L_SPECIAL_1024 : LayerId = LayerId (14) ; } impl LayerId { pub const L_ZOOM_512 : LayerId = LayerId (15) ; } impl LayerId { pub const L_LAND_512 : LayerId = LayerId (16) ; } impl LayerId { pub const L_ZOOM_256 : LayerId = LayerId (17) ; } impl LayerId { pub const L_LAND_256 : LayerId = LayerId (18) ; } impl LayerId { pub const L_ADD_ISLAND_256 : LayerId = LayerId (18) ; } impl LayerId { pub const L_MUSHROOM_256 : LayerId = LayerId (19) ; } impl LayerId { pub const L_ADD_MUSHROOM_256 : LayerId = LayerId (19) ; } impl LayerId { pub const L_DEEP_OCEAN_256 : LayerId = LayerId (20) ; } impl LayerId { pub const L_BIOME_256 : LayerId = LayerId (21) ; } impl LayerId { pub const L_BAMBOO_256 : LayerId = LayerId (22) ; } impl LayerId { pub const L14_BAMBOO_256 : LayerId = LayerId (22) ; } impl LayerId { pub const L_ZOOM_128 : LayerId = LayerId (23) ; } impl LayerId { pub const L_ZOOM_64 : LayerId = LayerId (24) ; } impl LayerId { pub const L_BIOME_EDGE_64 : LayerId = LayerId (25) ; } impl LayerId { pub const L_NOISE_256 : LayerId = LayerId (26) ; } impl LayerId { pub const L_RIVER_INIT_256 : LayerId = LayerId (26) ; } impl LayerId { pub const L_ZOOM_128_HILLS : LayerId = LayerId (27) ; } impl LayerId { pub const L_ZOOM_64_HILLS : LayerId = LayerId (28) ; } impl LayerId { pub const L_HILLS_64 : LayerId = LayerId (29) ; } impl LayerId { pub const L_SUNFLOWER_64 : LayerId = LayerId (30) ; } impl LayerId { pub const L_RARE_BIOME_64 : LayerId = LayerId (30) ; } impl LayerId { pub const L_ZOOM_32 : LayerId = LayerId (31) ; } impl LayerId { pub const L_LAND_32 : LayerId = LayerId (32) ; } impl LayerId { pub const L_ADD_ISLAND_32 : LayerId = LayerId (32) ; } impl LayerId { pub const L_ZOOM_16 : LayerId = LayerId (33) ; } impl LayerId { pub const L_SHORE_16 : LayerId = LayerId (34) ; } impl LayerId { pub const L_SWAMP_RIVER_16 : LayerId = LayerId (35) ; } impl LayerId { pub const L_ZOOM_8 : LayerId = LayerId (36) ; } impl LayerId { pub const L_ZOOM_4 : LayerId = LayerId (37) ; } impl LayerId { pub const L_SMOOTH_4 : LayerId = LayerId (38) ; } impl LayerId { pub const L_ZOOM_128_RIVER : LayerId = LayerId (39) ; } impl LayerId { pub const L_ZOOM_64_RIVER : LayerId = LayerId (40) ; } impl LayerId { pub const L_ZOOM_32_RIVER : LayerId = LayerId (41) ; } impl LayerId { pub const L_ZOOM_16_RIVER : LayerId = LayerId (42) ; } impl LayerId { pub const L_ZOOM_8_RIVER : LayerId = LayerId (43) ; } impl LayerId { pub const L_ZOOM_4_RIVER : LayerId = LayerId (44) ; } impl LayerId { pub const L_RIVER_4 : LayerId = LayerId (45) ; } impl LayerId { pub const L_SMOOTH_4_RIVER : LayerId = LayerId (46) ; } impl LayerId { pub const L_RIVER_MIX_4 : LayerId = LayerId (47) ; } impl LayerId { pub const L_OCEAN_TEMP_256 : LayerId = LayerId (48) ; } impl LayerId { pub const L13_OCEAN_TEMP_256 : LayerId = LayerId (48) ; } impl LayerId { pub const L_ZOOM_128_OCEAN : LayerId = LayerId (49) ; } impl LayerId { pub const L13_ZOOM_128 : LayerId = LayerId (49) ; } impl LayerId { pub const L_ZOOM_64_OCEAN : LayerId = LayerId (50) ; } impl LayerId { pub const L13_ZOOM_64 : LayerId = LayerId (50) ; } impl LayerId { pub const L_ZOOM_32_OCEAN : LayerId = LayerId (51) ; } impl LayerId { pub const L13_ZOOM_32 : LayerId = LayerId (51) ; } impl LayerId { pub const L_ZOOM_16_OCEAN : LayerId = LayerId (52) ; } impl LayerId { pub const L13_ZOOM_16 : LayerId = LayerId (52) ; } impl LayerId { pub const L_ZOOM_8_OCEAN : LayerId = LayerId (53) ; } impl LayerId { pub const L13_ZOOM_8 : LayerId = LayerId (53) ; } impl LayerId { pub const L_ZOOM_4_OCEAN : LayerId = LayerId (54) ; } impl LayerId { pub const L13_ZOOM_4 : LayerId = LayerId (54) ; } impl LayerId { pub const L_OCEAN_MIX_4 : LayerId = LayerId (55) ; } impl LayerId { pub const L13_OCEAN_MIX_4 : LayerId = LayerId (55) ; } impl LayerId { pub const L_VORONOI_1 : LayerId = LayerId (56) ; } impl LayerId { pub const L_VORONOI_ZOOM_1 : LayerId = LayerId (56) ; } impl LayerId { pub const L_ZOOM_LARGE_A : LayerId = LayerId (57) ; } impl LayerId { pub const L_ZOOM_LARGE_B : LayerId = LayerId (58) ; } impl LayerId { pub const L_ZOOM_L_RIVER_A : LayerId = LayerId (59) ; } impl LayerId { pub const L_ZOOM_L_RIVER_B : LayerId = LayerId (60) ; } impl LayerId { pub const L_NUM : LayerId = LayerId (61) ; } # [repr (transparent)] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct LayerId (pub :: std :: os :: raw :: c_uint) ; pub type mapfunc_t = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Layer { pub getMap : mapfunc_t , pub mc : i8 , pub zoom : i8 , pub edge : i8 , pub scale : :: std :: os :: raw :: c_int , pub layerSalt : u64 , pub startSalt : u64 , pub startSeed : u64 , pub noise : * mut :: std :: os :: raw :: c_void , pub data : * mut :: std :: os :: raw :: c_void , pub p : * mut Layer , pub p2 : * mut Layer , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Layer"] [:: std :: mem :: size_of :: < Layer > () - 72usize] ; ["Alignment of Layer"] [:: std :: mem :: align_of :: < Layer > () - 8usize] ; ["Offset of field: Layer::getMap"] [:: std :: mem :: offset_of ! (Layer , getMap) - 0usize] ; ["Offset of field: Layer::mc"] [:: std :: mem :: offset_of ! (Layer , mc) - 8usize] ; ["Offset of field: Layer::zoom"] [:: std :: mem :: offset_of ! (Layer , zoom) - 9usize] ; ["Offset of field: Layer::edge"] [:: std :: mem :: offset_of ! (Layer , edge) - 10usize] ; ["Offset of field: Layer::scale"] [:: std :: mem :: offset_of ! (Layer , scale) - 12usize] ; ["Offset of field: Layer::layerSalt"] [:: std :: mem :: offset_of ! (Layer , layerSalt) - 16usize] ; ["Offset of field: Layer::startSalt"] [:: std :: mem :: offset_of ! (Layer , startSalt) - 24usize] ; ["Offset of field: Layer::startSeed"] [:: std :: mem :: offset_of ! (Layer , startSeed) - 32usize] ; ["Offset of field: Layer::noise"] [:: std :: mem :: offset_of ! (Layer , noise) - 40usize] ; ["Offset of field: Layer::data"] [:: std :: mem :: offset_of ! (Layer , data) - 48usize] ; ["Offset of field: Layer::p"] [:: std :: mem :: offset_of ! (Layer , p) - 56usize] ; ["Offset of field: Layer::p2"] [:: std :: mem :: offset_of ! (Layer , p2) - 64usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct LayerStack { pub layers : [Layer ; 61usize] , pub entry_1 : * mut Layer , pub entry_4 : * mut Layer , pub entry_16 : * mut Layer , pub entry_64 : * mut Layer , pub entry_256 : * mut Layer , pub oceanRnd : PerlinNoise , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of LayerStack"] [:: std :: mem :: size_of :: < LayerStack > () - 4752usize] ; ["Alignment of LayerStack"] [:: std :: mem :: align_of :: < LayerStack > () - 8usize] ; ["Offset of field: LayerStack::layers"] [:: std :: mem :: offset_of ! (LayerStack , layers) - 0usize] ; ["Offset of field: LayerStack::entry_1"] [:: std :: mem :: offset_of ! (LayerStack , entry_1) - 4392usize] ; ["Offset of field: LayerStack::entry_4"] [:: std :: mem :: offset_of ! (LayerStack , entry_4) - 4400usize] ; ["Offset of field: LayerStack::entry_16"] [:: std :: mem :: offset_of ! (LayerStack , entry_16) - 4408usize] ; ["Offset of field: LayerStack::entry_64"] [:: std :: mem :: offset_of ! (LayerStack , entry_64) - 4416usize] ; ["Offset of field: LayerStack::entry_256"] [:: std :: mem :: offset_of ! (LayerStack , entry_256) - 4424usize] ; ["Offset of field: LayerStack::oceanRnd"] [:: std :: mem :: offset_of ! (LayerStack , oceanRnd) - 4432usize] ; } ; unsafe extern "C" { pub fn setLayerSeed (layer : * mut Layer , worldSeed : u64) ; } unsafe extern "C" { pub fn mapContinent (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapZoomFuzzy (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapZoom (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapLand (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapLand16 (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapLandB18 (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapIsland (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapSnow (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapSnow16 (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapCool (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapHeat (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapSpecial (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapMushroom (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapDeepOcean (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapBiome (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapBamboo (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapNoise (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapBiomeEdge (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapHills (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapRiver (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapSmooth (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapSunflower (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapShore (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapSwampRiver (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapRiverMix (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapOceanTemp (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapOceanMix (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapVoronoi (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapVoronoi114 (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getVoronoiSHA (worldSeed : u64) -> u64 ; } unsafe extern "C" { pub fn voronoiAccess3D (sha : u64 , x : :: std :: os :: raw :: c_int , y : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , x4 : * mut :: std :: os :: raw :: c_int , y4 : * mut :: std :: os :: raw :: c_int , z4 : * mut :: std :: os :: raw :: c_int) ; } unsafe extern "C" { pub fn mapVoronoiPlane (sha : u64 , out : * mut :: std :: os :: raw :: c_int , src : * mut :: std :: os :: raw :: c_int , x : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , w : :: std :: os :: raw :: c_int , h : :: std :: os :: raw :: c_int , y : :: std :: os :: raw :: c_int , px : :: std :: os :: raw :: c_int , pz : :: std :: os :: raw :: c_int , pw : :: std :: os :: raw :: c_int , ph : :: std :: os :: raw :: c_int) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Range { pub scale : :: std :: os :: raw :: c_int , pub x : :: std :: os :: raw :: c_int , pub z : :: std :: os :: raw :: c_int , pub sx : :: std :: os :: raw :: c_int , pub sz : :: std :: os :: raw :: c_int , pub y : :: std :: os :: raw :: c_int , pub sy : :: std :: os :: raw :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Range"] [:: std :: mem :: size_of :: < Range > () - 28usize] ; ["Alignment of Range"] [:: std :: mem :: align_of :: < Range > () - 4usize] ; ["Offset of field: Range::scale"] [:: std :: mem :: offset_of ! (Range , scale) - 0usize] ; ["Offset of field: Range::x"] [:: std :: mem :: offset_of ! (Range , x) - 4usize] ; ["Offset of field: Range::z"] [:: std :: mem :: offset_of ! (Range , z) - 8usize] ; ["Offset of field: Range::sx"] [:: std :: mem :: offset_of ! (Range , sx) - 12usize] ; ["Offset of field: Range::sz"] [:: std :: mem :: offset_of ! (Range , sz) - 16usize] ; ["Offset of field: Range::y"] [:: std :: mem :: offset_of ! (Range , y) - 20usize] ; ["Offset of field: Range::sy"] [:: std :: mem :: offset_of ! (Range , sy) - 24usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct NetherNoise { pub temperature : DoublePerlinNoise , pub humidity : DoublePerlinNoise , pub oct : [PerlinNoise ; 8usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of NetherNoise"] [:: std :: mem :: size_of :: < NetherNoise > () - 2640usize] ; ["Alignment of NetherNoise"] [:: std :: mem :: align_of :: < NetherNoise > () - 8usize] ; ["Offset of field: NetherNoise::temperature"] [:: std :: mem :: offset_of ! (NetherNoise , temperature) - 0usize] ; ["Offset of field: NetherNoise::humidity"] [:: std :: mem :: offset_of ! (NetherNoise , humidity) - 40usize] ; ["Offset of field: NetherNoise::oct"] [:: std :: mem :: offset_of ! (NetherNoise , oct) - 80usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct EndNoise { pub perlin : PerlinNoise , pub mc : :: std :: os :: raw :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of EndNoise"] [:: std :: mem :: size_of :: < EndNoise > () - 328usize] ; ["Alignment of EndNoise"] [:: std :: mem :: align_of :: < EndNoise > () - 8usize] ; ["Offset of field: EndNoise::perlin"] [:: std :: mem :: offset_of ! (EndNoise , perlin) - 0usize] ; ["Offset of field: EndNoise::mc"] [:: std :: mem :: offset_of ! (EndNoise , mc) - 320usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct SurfaceNoise { pub xzScale : f64 , pub yScale : f64 , pub xzFactor : f64 , pub yFactor : f64 , pub octmin : OctaveNoise , pub octmax : OctaveNoise , pub octmain : OctaveNoise , pub octsurf : OctaveNoise , pub octdepth : OctaveNoise , pub oct : [PerlinNoise ; 60usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of SurfaceNoise"] [:: std :: mem :: size_of :: < SurfaceNoise > () - 19312usize] ; ["Alignment of SurfaceNoise"] [:: std :: mem :: align_of :: < SurfaceNoise > () - 8usize] ; ["Offset of field: SurfaceNoise::xzScale"] [:: std :: mem :: offset_of ! (SurfaceNoise , xzScale) - 0usize] ; ["Offset of field: SurfaceNoise::yScale"] [:: std :: mem :: offset_of ! (SurfaceNoise , yScale) - 8usize] ; ["Offset of field: SurfaceNoise::xzFactor"] [:: std :: mem :: offset_of ! (SurfaceNoise , xzFactor) - 16usize] ; ["Offset of field: SurfaceNoise::yFactor"] [:: std :: mem :: offset_of ! (SurfaceNoise , yFactor) - 24usize] ; ["Offset of field: SurfaceNoise::octmin"] [:: std :: mem :: offset_of ! (SurfaceNoise , octmin) - 32usize] ; ["Offset of field: SurfaceNoise::octmax"] [:: std :: mem :: offset_of ! (SurfaceNoise , octmax) - 48usize] ; ["Offset of field: SurfaceNoise::octmain"] [:: std :: mem :: offset_of ! (SurfaceNoise , octmain) - 64usize] ; ["Offset of field: SurfaceNoise::octsurf"] [:: std :: mem :: offset_of ! (SurfaceNoise , octsurf) - 80usize] ; ["Offset of field: SurfaceNoise::octdepth"] [:: std :: mem :: offset_of ! (SurfaceNoise , octdepth) - 96usize] ; ["Offset of field: SurfaceNoise::oct"] [:: std :: mem :: offset_of ! (SurfaceNoise , oct) - 112usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct SurfaceNoiseBeta { pub octmin : OctaveNoise , pub octmax : OctaveNoise , pub octmain : OctaveNoise , pub octcontA : OctaveNoise , pub octcontB : OctaveNoise , pub oct : [PerlinNoise ; 66usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of SurfaceNoiseBeta"] [:: std :: mem :: size_of :: < SurfaceNoiseBeta > () - 21200usize] ; ["Alignment of SurfaceNoiseBeta"] [:: std :: mem :: align_of :: < SurfaceNoiseBeta > () - 8usize] ; ["Offset of field: SurfaceNoiseBeta::octmin"] [:: std :: mem :: offset_of ! (SurfaceNoiseBeta , octmin) - 0usize] ; ["Offset of field: SurfaceNoiseBeta::octmax"] [:: std :: mem :: offset_of ! (SurfaceNoiseBeta , octmax) - 16usize] ; ["Offset of field: SurfaceNoiseBeta::octmain"] [:: std :: mem :: offset_of ! (SurfaceNoiseBeta , octmain) - 32usize] ; ["Offset of field: SurfaceNoiseBeta::octcontA"] [:: std :: mem :: offset_of ! (SurfaceNoiseBeta , octcontA) - 48usize] ; ["Offset of field: SurfaceNoiseBeta::octcontB"] [:: std :: mem :: offset_of ! (SurfaceNoiseBeta , octcontB) - 64usize] ; ["Offset of field: SurfaceNoiseBeta::oct"] [:: std :: mem :: offset_of ! (SurfaceNoiseBeta , oct) - 80usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct SeaLevelColumnNoiseBeta { pub contASample : f64 , pub contBSample : f64 , pub minSample : [f64 ; 2usize] , pub maxSample : [f64 ; 2usize] , pub mainSample : [f64 ; 2usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of SeaLevelColumnNoiseBeta"] [:: std :: mem :: size_of :: < SeaLevelColumnNoiseBeta > () - 64usize] ; ["Alignment of SeaLevelColumnNoiseBeta"] [:: std :: mem :: align_of :: < SeaLevelColumnNoiseBeta > () - 8usize] ; ["Offset of field: SeaLevelColumnNoiseBeta::contASample"] [:: std :: mem :: offset_of ! (SeaLevelColumnNoiseBeta , contASample) - 0usize] ; ["Offset of field: SeaLevelColumnNoiseBeta::contBSample"] [:: std :: mem :: offset_of ! (SeaLevelColumnNoiseBeta , contBSample) - 8usize] ; ["Offset of field: SeaLevelColumnNoiseBeta::minSample"] [:: std :: mem :: offset_of ! (SeaLevelColumnNoiseBeta , minSample) - 16usize] ; ["Offset of field: SeaLevelColumnNoiseBeta::maxSample"] [:: std :: mem :: offset_of ! (SeaLevelColumnNoiseBeta , maxSample) - 32usize] ; ["Offset of field: SeaLevelColumnNoiseBeta::mainSample"] [:: std :: mem :: offset_of ! (SeaLevelColumnNoiseBeta , mainSample) - 48usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Spline { pub len : :: std :: os :: raw :: c_int , pub typ : :: std :: os :: raw :: c_int , pub loc : [f32 ; 12usize] , pub der : [f32 ; 12usize] , pub val : [* mut Spline ; 12usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Spline"] [:: std :: mem :: size_of :: < Spline > () - 200usize] ; ["Alignment of Spline"] [:: std :: mem :: align_of :: < Spline > () - 8usize] ; ["Offset of field: Spline::len"] [:: std :: mem :: offset_of ! (Spline , len) - 0usize] ; ["Offset of field: Spline::typ"] [:: std :: mem :: offset_of ! (Spline , typ) - 4usize] ; ["Offset of field: Spline::loc"] [:: std :: mem :: offset_of ! (Spline , loc) - 8usize] ; ["Offset of field: Spline::der"] [:: std :: mem :: offset_of ! (Spline , der) - 56usize] ; ["Offset of field: Spline::val"] [:: std :: mem :: offset_of ! (Spline , val) - 104usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FixSpline { pub len : :: std :: os :: raw :: c_int , pub val : f32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of FixSpline"] [:: std :: mem :: size_of :: < FixSpline > () - 8usize] ; ["Alignment of FixSpline"] [:: std :: mem :: align_of :: < FixSpline > () - 4usize] ; ["Offset of field: FixSpline::len"] [:: std :: mem :: offset_of ! (FixSpline , len) - 0usize] ; ["Offset of field: FixSpline::val"] [:: std :: mem :: offset_of ! (FixSpline , val) - 4usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct SplineStack { pub stack : [Spline ; 42usize] , pub fstack : [FixSpline ; 151usize] , pub len : :: std :: os :: raw :: c_int , pub flen : :: std :: os :: raw :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of SplineStack"] [:: std :: mem :: size_of :: < SplineStack > () - 9616usize] ; ["Alignment of SplineStack"] [:: std :: mem :: align_of :: < SplineStack > () - 8usize] ; ["Offset of field: SplineStack::stack"] [:: std :: mem :: offset_of ! (SplineStack , stack) - 0usize] ; ["Offset of field: SplineStack::fstack"] [:: std :: mem :: offset_of ! (SplineStack , fstack) - 8400usize] ; ["Offset of field: SplineStack::len"] [:: std :: mem :: offset_of ! (SplineStack , len) - 9608usize] ; ["Offset of field: SplineStack::flen"] [:: std :: mem :: offset_of ! (SplineStack , flen) - 9612usize] ; } ; pub const NP_TEMPERATURE : _bindgen_ty_2 = _bindgen_ty_2 (0) ; pub const NP_HUMIDITY : _bindgen_ty_2 = _bindgen_ty_2 (1) ; pub const NP_CONTINENTALNESS : _bindgen_ty_2 = _bindgen_ty_2 (2) ; pub const NP_EROSION : _bindgen_ty_2 = _bindgen_ty_2 (3) ; pub const NP_SHIFT : _bindgen_ty_2 = _bindgen_ty_2 (4) ; pub const NP_DEPTH : _bindgen_ty_2 = _bindgen_ty_2 (4) ; pub const NP_WEIRDNESS : _bindgen_ty_2 = _bindgen_ty_2 (5) ; pub const NP_MAX : _bindgen_ty_2 = _bindgen_ty_2 (6) ; # [repr (transparent)] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct _bindgen_ty_2 (pub :: std :: os :: raw :: c_uint) ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct BiomeNoise { pub climate : [DoublePerlinNoise ; 6usize] , pub oct : [PerlinNoise ; 46usize] , pub sp : * mut Spline , pub ss : SplineStack , pub nptype : :: std :: os :: raw :: c_int , pub mc : :: std :: os :: raw :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of BiomeNoise"] [:: std :: mem :: size_of :: < BiomeNoise > () - 24592usize] ; ["Alignment of BiomeNoise"] [:: std :: mem :: align_of :: < BiomeNoise > () - 8usize] ; ["Offset of field: BiomeNoise::climate"] [:: std :: mem :: offset_of ! (BiomeNoise , climate) - 0usize] ; ["Offset of field: BiomeNoise::oct"] [:: std :: mem :: offset_of ! (BiomeNoise , oct) - 240usize] ; ["Offset of field: BiomeNoise::sp"] [:: std :: mem :: offset_of ! (BiomeNoise , sp) - 14960usize] ; ["Offset of field: BiomeNoise::ss"] [:: std :: mem :: offset_of ! (BiomeNoise , ss) - 14968usize] ; ["Offset of field: BiomeNoise::nptype"] [:: std :: mem :: offset_of ! (BiomeNoise , nptype) - 24584usize] ; ["Offset of field: BiomeNoise::mc"] [:: std :: mem :: offset_of ! (BiomeNoise , mc) - 24588usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct BiomeNoiseBeta { pub climate : [OctaveNoise ; 3usize] , pub oct : [PerlinNoise ; 10usize] , pub nptype : :: std :: os :: raw :: c_int , pub mc : :: std :: os :: raw :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of BiomeNoiseBeta"] [:: std :: mem :: size_of :: < BiomeNoiseBeta > () - 3256usize] ; ["Alignment of BiomeNoiseBeta"] [:: std :: mem :: align_of :: < BiomeNoiseBeta > () - 8usize] ; ["Offset of field: BiomeNoiseBeta::climate"] [:: std :: mem :: offset_of ! (BiomeNoiseBeta , climate) - 0usize] ; ["Offset of field: BiomeNoiseBeta::oct"] [:: std :: mem :: offset_of ! (BiomeNoiseBeta , oct) - 48usize] ; ["Offset of field: BiomeNoiseBeta::nptype"] [:: std :: mem :: offset_of ! (BiomeNoiseBeta , nptype) - 3248usize] ; ["Offset of field: BiomeNoiseBeta::mc"] [:: std :: mem :: offset_of ! (BiomeNoiseBeta , mc) - 3252usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct BiomeTree { pub steps : * const u32 , pub param : * const i32 , pub nodes : * const u64 , pub order : u32 , pub len : u32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of BiomeTree"] [:: std :: mem :: size_of :: < BiomeTree > () - 32usize] ; ["Alignment of BiomeTree"] [:: std :: mem :: align_of :: < BiomeTree > () - 8usize] ; ["Offset of field: BiomeTree::steps"] [:: std :: mem :: offset_of ! (BiomeTree , steps) - 0usize] ; ["Offset of field: BiomeTree::param"] [:: std :: mem :: offset_of ! (BiomeTree , param) - 8usize] ; ["Offset of field: BiomeTree::nodes"] [:: std :: mem :: offset_of ! (BiomeTree , nodes) - 16usize] ; ["Offset of field: BiomeTree::order"] [:: std :: mem :: offset_of ! (BiomeTree , order) - 24usize] ; ["Offset of field: BiomeTree::len"] [:: std :: mem :: offset_of ! (BiomeTree , len) - 28usize] ; } ; unsafe extern "C" { pub fn initSurfaceNoise (sn : * mut SurfaceNoise , dim : :: std :: os :: raw :: c_int , seed : u64) ; } unsafe extern "C" { pub fn initSurfaceNoiseBeta (snb : * mut SurfaceNoiseBeta , seed : u64) ; } unsafe extern "C" { pub fn sampleSurfaceNoise (sn : * const SurfaceNoise , x : :: std :: os :: raw :: c_int , y : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int) -> f64 ; } unsafe extern "C" { pub fn sampleSurfaceNoiseBetween (sn : * const SurfaceNoise , x : :: std :: os :: raw :: c_int , y : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , noiseMin : f64 , noiseMax : f64) -> f64 ; } unsafe extern "C" { # [doc = " Nether biomes are 3D, and generated at scale 1:4. Use voronoiAccess3D() to\n convert coordinates at 1:1 scale to their 1:4 access. Biome checks for\n structures are generally done at y=0.\n\n The function getNetherBiome() determines the nether biome at a given\n coordinate at scale 1:4. The parameter 'ndel' is an output noise delta for\n optimization purposes and can be ignored (nullable).\n\n Use mapNether2D() to get a 2D area of nether biomes at y=0, scale 1:4.\n\n The mapNether3D() function attempts to optimize the generation of a volume\n at scale 1:4. The output is indexed as:\n out[i_y*(r.sx*r.sz) + i_z*r.sx + i_x].\n If the optimization parameter 'confidence' has a value less than 1.0, the\n generation will generally be faster, but can yield incorrect results in some\n circumstances.\n\n The output buffer for the map-functions need only be of sufficient size to\n hold the generated area (i.e. w*h or r.sx*r.sy*r.sz)."] pub fn setNetherSeed (nn : * mut NetherNoise , seed : u64) ; } unsafe extern "C" { pub fn getNetherBiome (nn : * const NetherNoise , x : :: std :: os :: raw :: c_int , y : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , ndel : * mut f32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapNether2D (nn : * const NetherNoise , out : * mut :: std :: os :: raw :: c_int , x : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , w : :: std :: os :: raw :: c_int , h : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapNether3D (nn : * const NetherNoise , out : * mut :: std :: os :: raw :: c_int , r : Range , confidence : f32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " The scaled Nether generation supports scales 1, 4, 16, 64, and 256.\n It is similar to mapNether3D(), but applies voronoi zoom if necessary, and\n fills the output buffer with nether_wastes for versions older than 1.16."] pub fn genNetherScaled (nn : * const NetherNoise , out : * mut :: std :: os :: raw :: c_int , r : Range , mc : :: std :: os :: raw :: c_int , sha : u64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " End biome generation is based on simplex noise and varies only at a 1:16\n chunk scale which can be generated with mapEndBiome(). The function mapEnd()\n is a variation which also scales this up on a regular grid to 1:4. The final\n access at a 1:1 scale uses voronoi."] pub fn setEndSeed (en : * mut EndNoise , mc : :: std :: os :: raw :: c_int , seed : u64) ; } unsafe extern "C" { pub fn mapEndBiome (en : * const EndNoise , out : * mut :: std :: os :: raw :: c_int , x : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , w : :: std :: os :: raw :: c_int , h : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapEnd (en : * const EndNoise , out : * mut :: std :: os :: raw :: c_int , x : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , w : :: std :: os :: raw :: c_int , h : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getEndSurfaceHeight (mc : :: std :: os :: raw :: c_int , seed : u64 , x : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapEndSurfaceHeight (y : * mut f32 , en : * const EndNoise , sn : * const SurfaceNoise , x : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , w : :: std :: os :: raw :: c_int , h : :: std :: os :: raw :: c_int , scale : :: std :: os :: raw :: c_int , ymin : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " The scaled End generation supports scales 1, 4, 16, and 64.\n The End biomes are usually 2D, but in 1.15+ there is 3D voronoi noise, which\n is controlled by the 'sha' hash of the seed. For scales higher than 1:1, and\n versions up to 1.14, 'sha' is ignored."] pub fn genEndScaled (en : * const EndNoise , out : * mut :: std :: os :: raw :: c_int , r : Range , mc : :: std :: os :: raw :: c_int , sha : u64) -> :: std :: os :: raw :: c_int ; } pub const SAMPLE_NO_SHIFT : _bindgen_ty_3 = _bindgen_ty_3 (1) ; pub const SAMPLE_NO_DEPTH : _bindgen_ty_3 = _bindgen_ty_3 (2) ; pub const SAMPLE_NO_BIOME : _bindgen_ty_3 = _bindgen_ty_3 (4) ; # [repr (transparent)] # [doc = " In 1.18 the Overworld uses a new noise map system for the biome generation.\n The random number generation also has updated to a Xiroshiro128 algorithm.\n The scale is 1:4, and is sampled at each point individually as there is\n currently not much benefit from generating a volume as a whole.\n\n The 1.18 End generation remains similar to 1.17 and does NOT use the\n biome noise."] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct _bindgen_ty_3 (pub :: std :: os :: raw :: c_uint) ; unsafe extern "C" { pub fn initBiomeNoise (bn : * mut BiomeNoise , mc : :: std :: os :: raw :: c_int) ; } unsafe extern "C" { pub fn setBiomeSeed (bn : * mut BiomeNoise , seed : u64 , large : :: std :: os :: raw :: c_int) ; } unsafe extern "C" { pub fn setBetaBiomeSeed (bnb : * mut BiomeNoiseBeta , seed : u64) ; } unsafe extern "C" { pub fn sampleBiomeNoise (bn : * const BiomeNoise , np : * mut i64 , x : :: std :: os :: raw :: c_int , y : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , dat : * mut u64 , sample_flags : u32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn sampleBiomeNoiseBeta (bnb : * const BiomeNoiseBeta , np : * mut i64 , nv : * mut f64 , x : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn approxSurfaceBeta (bnb : * const BiomeNoiseBeta , snb : * const SurfaceNoiseBeta , x : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int) -> f64 ; } unsafe extern "C" { # [doc = " (Alpha 1.2 - Beta 1.7)\n Temperature and humidity values to biome."] pub fn getOldBetaBiome (t : f32 , h : f32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " Uses the global biome tree definitions (see tables/btreeXX.h)\n to map a noise point (i.e. climate) to the corresponding overworld biome."] pub fn climateToBiome (mc : :: std :: os :: raw :: c_int , np : * const u64 , dat : * mut u64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " Initialize BiomeNoise for only a single climate parameter.\n If nptype == NP_DEPTH, the value is sampled at y=0. Note that this value\n changes linearly with the height (i.e. -= y/128).\n A maximum of nmax octaves is set, initializing only the most contributing\n octaves up to that point. Use -1 for a full initialization."] pub fn setClimateParaSeed (bn : * mut BiomeNoise , seed : u64 , large : :: std :: os :: raw :: c_int , nptype : :: std :: os :: raw :: c_int , nmax : :: std :: os :: raw :: c_int) ; } unsafe extern "C" { pub fn sampleClimatePara (bn : * const BiomeNoise , np : * mut i64 , x : f64 , z : f64) -> f64 ; } unsafe extern "C" { # [doc = " Currently, in 1.18, we have to generate biomes one chunk at a time to get an\n accurate mapping of the biomes in the level storage, as there is no longer a\n unique mapping from noise points to biomes (MC-241546). Note that the results\n from this are not suitable for chunk population/structure generation.\n The output is in the form out[x][y][z] for the 64 biome points in the chunk\n section. The coordinates {cx,cy,cz} are all at scale 1:16 and the 'dat'\n argument should be the previous noise sampling and can be left NULL."] pub fn genBiomeNoiseChunkSection (bn : * const BiomeNoise , out : * mut [[:: std :: os :: raw :: c_int ; 4usize] ; 4usize] , cx : :: std :: os :: raw :: c_int , cy : :: std :: os :: raw :: c_int , cz : :: std :: os :: raw :: c_int , dat : * mut u64) ; } unsafe extern "C" { # [doc = " The scaled biome noise generation applies for the Overworld version 1.18+.\n The 'sha' hash of the seed is only required for voronoi at scale 1:1.\n A scale of zero is interpreted as the default 1:4 scale."] pub fn genBiomeNoiseScaled (bn : * const BiomeNoise , out : * mut :: std :: os :: raw :: c_int , r : Range , sha : u64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " Generates the biomes for Beta 1.7, the surface noise is optional and enables\n ocean mapping in areas that fall below the sea level."] pub fn genBiomeNoiseBetaScaled (bnb : * const BiomeNoiseBeta , snb : * const SurfaceNoiseBeta , out : * mut :: std :: os :: raw :: c_int , r : Range) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getBiomeDepthAndScale (id : :: std :: os :: raw :: c_int , depth : * mut f64 , scale : * mut f64 , grass : * mut :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getVoronoiSrcRange (r : Range) -> Range ; } pub const LARGE_BIOMES : _bindgen_ty_4 = _bindgen_ty_4 (1) ; pub const NO_BETA_OCEAN : _bindgen_ty_4 = _bindgen_ty_4 (2) ; pub const FORCE_OCEAN_VARIANTS : _bindgen_ty_4 = _bindgen_ty_4 (4) ; # [repr (transparent)] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct _bindgen_ty_4 (pub :: std :: os :: raw :: c_uint) ; # [repr (C)] # [derive (Copy , Clone)] pub struct Generator { pub mc : :: std :: os :: raw :: c_int , pub dim : :: std :: os :: raw :: c_int , pub flags : u32 , pub seed : u64 , pub sha : u64 , pub __bindgen_anon_1 : Generator__bindgen_ty_1 , pub nn : NetherNoise , pub en : EndNoise , } # [repr (C)] # [derive (Copy , Clone)] pub union Generator__bindgen_ty_1 { pub __bindgen_anon_1 : Generator__bindgen_ty_1__bindgen_ty_1 , pub __bindgen_anon_2 : Generator__bindgen_ty_1__bindgen_ty_2 , pub __bindgen_anon_3 : Generator__bindgen_ty_1__bindgen_ty_3 , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Generator__bindgen_ty_1__bindgen_ty_1 { pub ls : LayerStack , pub xlayer : [Layer ; 5usize] , pub entry : * mut Layer , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Generator__bindgen_ty_1__bindgen_ty_1"] [:: std :: mem :: size_of :: < Generator__bindgen_ty_1__bindgen_ty_1 > () - 5120usize] ; ["Alignment of Generator__bindgen_ty_1__bindgen_ty_1"] [:: std :: mem :: align_of :: < Generator__bindgen_ty_1__bindgen_ty_1 > () - 8usize] ; ["Offset of field: Generator__bindgen_ty_1__bindgen_ty_1::ls"] [:: std :: mem :: offset_of ! (Generator__bindgen_ty_1__bindgen_ty_1 , ls) - 0usize] ; ["Offset of field: Generator__bindgen_ty_1__bindgen_ty_1::xlayer"] [:: std :: mem :: offset_of ! (Generator__bindgen_ty_1__bindgen_ty_1 , xlayer) - 4752usize] ; ["Offset of field: Generator__bindgen_ty_1__bindgen_ty_1::entry"] [:: std :: mem :: offset_of ! (Generator__bindgen_ty_1__bindgen_ty_1 , entry) - 5112usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Generator__bindgen_ty_1__bindgen_ty_2 { pub bn : BiomeNoise , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Generator__bindgen_ty_1__bindgen_ty_2"] [:: std :: mem :: size_of :: < Generator__bindgen_ty_1__bindgen_ty_2 > () - 24592usize] ; ["Alignment of Generator__bindgen_ty_1__bindgen_ty_2"] [:: std :: mem :: align_of :: < Generator__bindgen_ty_1__bindgen_ty_2 > () - 8usize] ; ["Offset of field: Generator__bindgen_ty_1__bindgen_ty_2::bn"] [:: std :: mem :: offset_of ! (Generator__bindgen_ty_1__bindgen_ty_2 , bn) - 0usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Generator__bindgen_ty_1__bindgen_ty_3 { pub bnb : BiomeNoiseBeta , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Generator__bindgen_ty_1__bindgen_ty_3"] [:: std :: mem :: size_of :: < Generator__bindgen_ty_1__bindgen_ty_3 > () - 3256usize] ; ["Alignment of Generator__bindgen_ty_1__bindgen_ty_3"] [:: std :: mem :: align_of :: < Generator__bindgen_ty_1__bindgen_ty_3 > () - 8usize] ; ["Offset of field: Generator__bindgen_ty_1__bindgen_ty_3::bnb"] [:: std :: mem :: offset_of ! (Generator__bindgen_ty_1__bindgen_ty_3 , bnb) - 0usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Generator__bindgen_ty_1"] [:: std :: mem :: size_of :: < Generator__bindgen_ty_1 > () - 24592usize] ; ["Alignment of Generator__bindgen_ty_1"] [:: std :: mem :: align_of :: < Generator__bindgen_ty_1 > () - 8usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Generator"] [:: std :: mem :: size_of :: < Generator > () - 27592usize] ; ["Alignment of Generator"] [:: std :: mem :: align_of :: < Generator > () - 8usize] ; ["Offset of field: Generator::mc"] [:: std :: mem :: offset_of ! (Generator , mc) - 0usize] ; ["Offset of field: Generator::dim"] [:: std :: mem :: offset_of ! (Generator , dim) - 4usize] ; ["Offset of field: Generator::flags"] [:: std :: mem :: offset_of ! (Generator , flags) - 8usize] ; ["Offset of field: Generator::seed"] [:: std :: mem :: offset_of ! (Generator , seed) - 16usize] ; ["Offset of field: Generator::sha"] [:: std :: mem :: offset_of ! (Generator , sha) - 24usize] ; ["Offset of field: Generator::nn"] [:: std :: mem :: offset_of ! (Generator , nn) - 24624usize] ; ["Offset of field: Generator::en"] [:: std :: mem :: offset_of ! (Generator , en) - 27264usize] ; } ; unsafe extern "C" { # [doc = " Sets up a biome generator for a given MC version. The 'flags' can be used to\n control LARGE_BIOMES or to FORCE_OCEAN_VARIANTS to enable ocean variants at\n scales higher than normal."] pub fn setupGenerator (g : * mut Generator , mc : :: std :: os :: raw :: c_int , flags : u32) ; } unsafe extern "C" { # [doc = " Initializes the generator for a given dimension and seed.\n dim=0:   Overworld\n dim=-1:  Nether\n dim=+1:  End"] pub fn applySeed (g : * mut Generator , dim : :: std :: os :: raw :: c_int , seed : u64) ; } unsafe extern "C" { # [doc = " Calculates the buffer size (number of ints) required to generate a cuboidal\n volume of size (sx, sy, sz). If 'sy' is zero the buffer is calculated for a\n 2D plane (which is equivalent to sy=1 here).\n The function allocCache() can be used to allocate the corresponding int\n buffer using malloc()."] pub fn getMinCacheSize (g : * const Generator , scale : :: std :: os :: raw :: c_int , sx : :: std :: os :: raw :: c_int , sy : :: std :: os :: raw :: c_int , sz : :: std :: os :: raw :: c_int) -> usize ; } unsafe extern "C" { pub fn allocCache (g : * const Generator , r : Range) -> * mut :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " Generates the biomes for a cuboidal scaled range given by 'r'.\n (See description of Range for more detail.)\n\n The output is generated inside the cache. Upon success the biome ids can be\n accessed by indexing as:\n  cache[ y*r.sx*r.sz + z*r.sx + x ]\n where (x,y,z) is an relative position inside the range cuboid.\n\n The required length of the cache can be determined with getMinCacheSize().\n\n The return value is zero upon success."] pub fn genBiomes (g : * const Generator , cache : * mut :: std :: os :: raw :: c_int , r : Range) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " Gets the biome for a specified scaled position. Note that the scale should\n be either 1 or 4, for block or biome coordinates respectively.\n Returns none (-1) upon failure."] pub fn getBiomeAt (g : * const Generator , scale : :: std :: os :: raw :: c_int , x : :: std :: os :: raw :: c_int , y : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " Returns the default layer that corresponds to the given scale.\n Supported scales are {0, 1, 4, 16, 64, 256}. A scale of zero indicates the\n custom entry layer 'g->entry'.\n (Overworld, MC <= 1.17)"] pub fn getLayerForScale (g : * const Generator , scale : :: std :: os :: raw :: c_int) -> * const Layer ; } unsafe extern "C" { # [doc = "=============================================================================\n Layered Biome Generation (old interface up to 1.17)\n============================================================================="] pub fn setupLayerStack (g : * mut LayerStack , mc : :: std :: os :: raw :: c_int , largeBiomes : :: std :: os :: raw :: c_int) ; } unsafe extern "C" { pub fn getMinLayerCacheSize (layer : * const Layer , sizeX : :: std :: os :: raw :: c_int , sizeZ : :: std :: os :: raw :: c_int) -> usize ; } unsafe extern "C" { pub fn setupLayer (l : * mut Layer , map : mapfunc_t , mc : :: std :: os :: raw :: c_int , zoom : i8 , edge : i8 , saltbase : u64 , p : * mut Layer , p2 : * mut Layer) -> * mut Layer ; } unsafe extern "C" { pub fn genArea (layer : * const Layer , out : * mut :: std :: os :: raw :: c_int , areaX : :: std :: os :: raw :: c_int , areaZ : :: std :: os :: raw :: c_int , areaWidth : :: std :: os :: raw :: c_int , areaHeight : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " Map an approximation of the Overworld surface height.\n The horizontal scaling is 1:4. If non-null, the ids are filled with the\n biomes of the area. The height (written to y) is in blocks."] pub fn mapApproxHeight (y : * mut f32 , ids : * mut :: std :: os :: raw :: c_int , g : * const Generator , sn : * const SurfaceNoise , x : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , w : :: std :: os :: raw :: c_int , h : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } impl StructureType { pub const Feature : StructureType = StructureType (0) ; } impl StructureType { pub const Desert_Pyramid : StructureType = StructureType (1) ; } impl StructureType { pub const Jungle_Temple : StructureType = StructureType (2) ; } impl StructureType { pub const Jungle_Pyramid : StructureType = StructureType (2) ; } impl StructureType { pub const Swamp_Hut : StructureType = StructureType (3) ; } impl StructureType { pub const Igloo : StructureType = StructureType (4) ; } impl StructureType { pub const Village : StructureType = StructureType (5) ; } impl StructureType { pub const Ocean_Ruin : StructureType = StructureType (6) ; } impl StructureType { pub const Shipwreck : StructureType = StructureType (7) ; } impl StructureType { pub const Monument : StructureType = StructureType (8) ; } impl StructureType { pub const Mansion : StructureType = StructureType (9) ; } impl StructureType { pub const Outpost : StructureType = StructureType (10) ; } impl StructureType { pub const Ruined_Portal : StructureType = StructureType (11) ; } impl StructureType { pub const Ruined_Portal_N : StructureType = StructureType (12) ; } impl StructureType { pub const Ancient_City : StructureType = StructureType (13) ; } impl StructureType { pub const Treasure : StructureType = StructureType (14) ; } impl StructureType { pub const Mineshaft : StructureType = StructureType (15) ; } impl StructureType { pub const Desert_Well : StructureType = StructureType (16) ; } impl StructureType { pub const Geode : StructureType = StructureType (17) ; } impl StructureType { pub const Fortress : StructureType = StructureType (18) ; } impl StructureType { pub const Bastion : StructureType = StructureType (19) ; } impl StructureType { pub const End_City : StructureType = StructureType (20) ; } impl StructureType { pub const End_Gateway : StructureType = StructureType (21) ; } impl StructureType { pub const End_Island : StructureType = StructureType (22) ; } impl StructureType { pub const Trail_Ruins : StructureType = StructureType (23) ; } impl StructureType { pub const Trial_Chambers : StructureType = StructureType (24) ; } impl StructureType { pub const FEATURE_NUM : StructureType = StructureType (25) ; } # [repr (transparent)] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct StructureType (pub :: std :: os :: raw :: c_uint) ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct StructureConfig { pub salt : i32 , pub regionSize : i8 , pub chunkRange : i8 , pub structType : u8 , pub dim : i8 , pub rarity : f32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of StructureConfig"] [:: std :: mem :: size_of :: < StructureConfig > () - 12usize] ; ["Alignment of StructureConfig"] [:: std :: mem :: align_of :: < StructureConfig > () - 4usize] ; ["Offset of field: StructureConfig::salt"] [:: std :: mem :: offset_of ! (StructureConfig , salt) - 0usize] ; ["Offset of field: StructureConfig::regionSize"] [:: std :: mem :: offset_of ! (StructureConfig , regionSize) - 4usize] ; ["Offset of field: StructureConfig::chunkRange"] [:: std :: mem :: offset_of ! (StructureConfig , chunkRange) - 5usize] ; ["Offset of field: StructureConfig::structType"] [:: std :: mem :: offset_of ! (StructureConfig , structType) - 6usize] ; ["Offset of field: StructureConfig::dim"] [:: std :: mem :: offset_of ! (StructureConfig , dim) - 7usize] ; ["Offset of field: StructureConfig::rarity"] [:: std :: mem :: offset_of ! (StructureConfig , rarity) - 8usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Pos { pub x : :: std :: os :: raw :: c_int , pub z : :: std :: os :: raw :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Pos"] [:: std :: mem :: size_of :: < Pos > () - 8usize] ; ["Alignment of Pos"] [:: std :: mem :: align_of :: < Pos > () - 4usize] ; ["Offset of field: Pos::x"] [:: std :: mem :: offset_of ! (Pos , x) - 0usize] ; ["Offset of field: Pos::z"] [:: std :: mem :: offset_of ! (Pos , z) - 4usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Pos3 { pub x : :: std :: os :: raw :: c_int , pub y : :: std :: os :: raw :: c_int , pub z : :: std :: os :: raw :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Pos3"] [:: std :: mem :: size_of :: < Pos3 > () - 12usize] ; ["Alignment of Pos3"] [:: std :: mem :: align_of :: < Pos3 > () - 4usize] ; ["Offset of field: Pos3::x"] [:: std :: mem :: offset_of ! (Pos3 , x) - 0usize] ; ["Offset of field: Pos3::y"] [:: std :: mem :: offset_of ! (Pos3 , y) - 4usize] ; ["Offset of field: Pos3::z"] [:: std :: mem :: offset_of ! (Pos3 , z) - 8usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct StrongholdIter { pub pos : Pos , pub nextapprox : Pos , pub index : :: std :: os :: raw :: c_int , pub ringnum : :: std :: os :: raw :: c_int , pub ringmax : :: std :: os :: raw :: c_int , pub ringidx : :: std :: os :: raw :: c_int , pub angle : f64 , pub dist : f64 , pub rnds : u64 , pub mc : :: std :: os :: raw :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of StrongholdIter"] [:: std :: mem :: size_of :: < StrongholdIter > () - 64usize] ; ["Alignment of StrongholdIter"] [:: std :: mem :: align_of :: < StrongholdIter > () - 8usize] ; ["Offset of field: StrongholdIter::pos"] [:: std :: mem :: offset_of ! (StrongholdIter , pos) - 0usize] ; ["Offset of field: StrongholdIter::nextapprox"] [:: std :: mem :: offset_of ! (StrongholdIter , nextapprox) - 8usize] ; ["Offset of field: StrongholdIter::index"] [:: std :: mem :: offset_of ! (StrongholdIter , index) - 16usize] ; ["Offset of field: StrongholdIter::ringnum"] [:: std :: mem :: offset_of ! (StrongholdIter , ringnum) - 20usize] ; ["Offset of field: StrongholdIter::ringmax"] [:: std :: mem :: offset_of ! (StrongholdIter , ringmax) - 24usize] ; ["Offset of field: StrongholdIter::ringidx"] [:: std :: mem :: offset_of ! (StrongholdIter , ringidx) - 28usize] ; ["Offset of field: StrongholdIter::angle"] [:: std :: mem :: offset_of ! (StrongholdIter , angle) - 32usize] ; ["Offset of field: StrongholdIter::dist"] [:: std :: mem :: offset_of ! (StrongholdIter , dist) - 40usize] ; ["Offset of field: StrongholdIter::rnds"] [:: std :: mem :: offset_of ! (StrongholdIter , rnds) - 48usize] ; ["Offset of field: StrongholdIter::mc"] [:: std :: mem :: offset_of ! (StrongholdIter , mc) - 56usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct StructureVariant { pub _bitfield_align_1 : [u8 ; 0] , pub _bitfield_1 : __BindgenBitfieldUnit < [u8 ; 1usize] > , pub size : u8 , pub start : u8 , pub biome : :: std :: os :: raw :: c_short , pub rotation : u8 , pub mirror : u8 , pub x : i16 , pub y : i16 , pub z : i16 , pub sx : i16 , pub sy : i16 , pub sz : i16 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of StructureVariant"] [:: std :: mem :: size_of :: < StructureVariant > () - 20usize] ; ["Alignment of StructureVariant"] [:: std :: mem :: align_of :: < StructureVariant > () - 2usize] ; ["Offset of field: StructureVariant::size"] [:: std :: mem :: offset_of ! (StructureVariant , size) - 1usize] ; ["Offset of field: StructureVariant::start"] [:: std :: mem :: offset_of ! (StructureVariant , start) - 2usize] ; ["Offset of field: StructureVariant::biome"] [:: std :: mem :: offset_of ! (StructureVariant , biome) - 4usize] ; ["Offset of field: StructureVariant::rotation"] [:: std :: mem :: offset_of ! (StructureVariant , rotation) - 6usize] ; ["Offset of field: StructureVariant::mirror"] [:: std :: mem :: offset_of ! (StructureVariant , mirror) - 7usize] ; ["Offset of field: StructureVariant::x"] [:: std :: mem :: offset_of ! (StructureVariant , x) - 8usize] ; ["Offset of field: StructureVariant::y"] [:: std :: mem :: offset_of ! (StructureVariant , y) - 10usize] ; ["Offset of field: StructureVariant::z"] [:: std :: mem :: offset_of ! (StructureVariant , z) - 12usize] ; ["Offset of field: StructureVariant::sx"] [:: std :: mem :: offset_of ! (StructureVariant , sx) - 14usize] ; ["Offset of field: StructureVariant::sy"] [:: std :: mem :: offset_of ! (StructureVariant , sy) - 16usize] ; ["Offset of field: StructureVariant::sz"] [:: std :: mem :: offset_of ! (StructureVariant , sz) - 18usize] ; } ; impl StructureVariant { # [inline] pub fn abandoned (& self) -> u8 { unsafe { :: std :: mem :: transmute (self . _bitfield_1 . get (0usize , 1u8) as u8) } } # [inline] pub fn set_abandoned (& mut self , val : u8) { unsafe { let val : u8 = :: std :: mem :: transmute (val) ; self . _bitfield_1 . set (0usize , 1u8 , val as u64) } } # [inline] pub unsafe fn abandoned_raw (this : * const Self) -> u8 { unsafe { :: std :: mem :: transmute (< __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_get (:: std :: ptr :: addr_of ! ((* this) . _bitfield_1) , 0usize , 1u8 ,) as u8) } } # [inline] pub unsafe fn set_abandoned_raw (this : * mut Self , val : u8) { unsafe { let val : u8 = :: std :: mem :: transmute (val) ; < __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_set (:: std :: ptr :: addr_of_mut ! ((* this) . _bitfield_1) , 0usize , 1u8 , val as u64 ,) } } # [inline] pub fn giant (& self) -> u8 { unsafe { :: std :: mem :: transmute (self . _bitfield_1 . get (1usize , 1u8) as u8) } } # [inline] pub fn set_giant (& mut self , val : u8) { unsafe { let val : u8 = :: std :: mem :: transmute (val) ; self . _bitfield_1 . set (1usize , 1u8 , val as u64) } } # [inline] pub unsafe fn giant_raw (this : * const Self) -> u8 { unsafe { :: std :: mem :: transmute (< __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_get (:: std :: ptr :: addr_of ! ((* this) . _bitfield_1) , 1usize , 1u8 ,) as u8) } } # [inline] pub unsafe fn set_giant_raw (this : * mut Self , val : u8) { unsafe { let val : u8 = :: std :: mem :: transmute (val) ; < __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_set (:: std :: ptr :: addr_of_mut ! ((* this) . _bitfield_1) , 1usize , 1u8 , val as u64 ,) } } # [inline] pub fn underground (& self) -> u8 { unsafe { :: std :: mem :: transmute (self . _bitfield_1 . get (2usize , 1u8) as u8) } } # [inline] pub fn set_underground (& mut self , val : u8) { unsafe { let val : u8 = :: std :: mem :: transmute (val) ; self . _bitfield_1 . set (2usize , 1u8 , val as u64) } } # [inline] pub unsafe fn underground_raw (this : * const Self) -> u8 { unsafe { :: std :: mem :: transmute (< __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_get (:: std :: ptr :: addr_of ! ((* this) . _bitfield_1) , 2usize , 1u8 ,) as u8) } } # [inline] pub unsafe fn set_underground_raw (this : * mut Self , val : u8) { unsafe { let val : u8 = :: std :: mem :: transmute (val) ; < __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_set (:: std :: ptr :: addr_of_mut ! ((* this) . _bitfield_1) , 2usize , 1u8 , val as u64 ,) } } # [inline] pub fn airpocket (& self) -> u8 { unsafe { :: std :: mem :: transmute (self . _bitfield_1 . get (3usize , 1u8) as u8) } } # [inline] pub fn set_airpocket (& mut self , val : u8) { unsafe { let val : u8 = :: std :: mem :: transmute (val) ; self . _bitfield_1 . set (3usize , 1u8 , val as u64) } } # [inline] pub unsafe fn airpocket_raw (this : * const Self) -> u8 { unsafe { :: std :: mem :: transmute (< __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_get (:: std :: ptr :: addr_of ! ((* this) . _bitfield_1) , 3usize , 1u8 ,) as u8) } } # [inline] pub unsafe fn set_airpocket_raw (this : * mut Self , val : u8) { unsafe { let val : u8 = :: std :: mem :: transmute (val) ; < __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_set (:: std :: ptr :: addr_of_mut ! ((* this) . _bitfield_1) , 3usize , 1u8 , val as u64 ,) } } # [inline] pub fn basement (& self) -> u8 { unsafe { :: std :: mem :: transmute (self . _bitfield_1 . get (4usize , 1u8) as u8) } } # [inline] pub fn set_basement (& mut self , val : u8) { unsafe { let val : u8 = :: std :: mem :: transmute (val) ; self . _bitfield_1 . set (4usize , 1u8 , val as u64) } } # [inline] pub unsafe fn basement_raw (this : * const Self) -> u8 { unsafe { :: std :: mem :: transmute (< __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_get (:: std :: ptr :: addr_of ! ((* this) . _bitfield_1) , 4usize , 1u8 ,) as u8) } } # [inline] pub unsafe fn set_basement_raw (this : * mut Self , val : u8) { unsafe { let val : u8 = :: std :: mem :: transmute (val) ; < __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_set (:: std :: ptr :: addr_of_mut ! ((* this) . _bitfield_1) , 4usize , 1u8 , val as u64 ,) } } # [inline] pub fn cracked (& self) -> u8 { unsafe { :: std :: mem :: transmute (self . _bitfield_1 . get (5usize , 1u8) as u8) } } # [inline] pub fn set_cracked (& mut self , val : u8) { unsafe { let val : u8 = :: std :: mem :: transmute (val) ; self . _bitfield_1 . set (5usize , 1u8 , val as u64) } } # [inline] pub unsafe fn cracked_raw (this : * const Self) -> u8 { unsafe { :: std :: mem :: transmute (< __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_get (:: std :: ptr :: addr_of ! ((* this) . _bitfield_1) , 5usize , 1u8 ,) as u8) } } # [inline] pub unsafe fn set_cracked_raw (this : * mut Self , val : u8) { unsafe { let val : u8 = :: std :: mem :: transmute (val) ; < __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_set (:: std :: ptr :: addr_of_mut ! ((* this) . _bitfield_1) , 5usize , 1u8 , val as u64 ,) } } # [inline] pub fn new_bitfield_1 (abandoned : u8 , giant : u8 , underground : u8 , airpocket : u8 , basement : u8 , cracked : u8) -> __BindgenBitfieldUnit < [u8 ; 1usize] > { let mut __bindgen_bitfield_unit : __BindgenBitfieldUnit < [u8 ; 1usize] > = Default :: default () ; __bindgen_bitfield_unit . set (0usize , 1u8 , { let abandoned : u8 = unsafe { :: std :: mem :: transmute (abandoned) } ; abandoned as u64 }) ; __bindgen_bitfield_unit . set (1usize , 1u8 , { let giant : u8 = unsafe { :: std :: mem :: transmute (giant) } ; giant as u64 }) ; __bindgen_bitfield_unit . set (2usize , 1u8 , { let underground : u8 = unsafe { :: std :: mem :: transmute (underground) } ; underground as u64 }) ; __bindgen_bitfield_unit . set (3usize , 1u8 , { let airpocket : u8 = unsafe { :: std :: mem :: transmute (airpocket) } ; airpocket as u64 }) ; __bindgen_bitfield_unit . set (4usize , 1u8 , { let basement : u8 = unsafe { :: std :: mem :: transmute (basement) } ; basement as u64 }) ; __bindgen_bitfield_unit . set (5usize , 1u8 , { let cracked : u8 = unsafe { :: std :: mem :: transmute (cracked) } ; cracked as u64 }) ; __bindgen_bitfield_unit } } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Piece { pub name : * const :: std :: os :: raw :: c_char , pub pos : Pos3 , pub bb0 : Pos3 , pub bb1 : Pos3 , pub rot : u8 , pub depth : i8 , pub type_ : i8 , pub next : * mut Piece , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Piece"] [:: std :: mem :: size_of :: < Piece > () - 56usize] ; ["Alignment of Piece"] [:: std :: mem :: align_of :: < Piece > () - 8usize] ; ["Offset of field: Piece::name"] [:: std :: mem :: offset_of ! (Piece , name) - 0usize] ; ["Offset of field: Piece::pos"] [:: std :: mem :: offset_of ! (Piece , pos) - 8usize] ; ["Offset of field: Piece::bb0"] [:: std :: mem :: offset_of ! (Piece , bb0) - 20usize] ; ["Offset of field: Piece::bb1"] [:: std :: mem :: offset_of ! (Piece , bb1) - 32usize] ; ["Offset of field: Piece::rot"] [:: std :: mem :: offset_of ! (Piece , rot) - 44usize] ; ["Offset of field: Piece::depth"] [:: std :: mem :: offset_of ! (Piece , depth) - 45usize] ; ["Offset of field: Piece::type_"] [:: std :: mem :: offset_of ! (Piece , type_) - 46usize] ; ["Offset of field: Piece::next"] [:: std :: mem :: offset_of ! (Piece , next) - 48usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct EndIsland { pub x : :: std :: os :: raw :: c_int , pub y : :: std :: os :: raw :: c_int , pub z : :: std :: os :: raw :: c_int , pub r : :: std :: os :: raw :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of EndIsland"] [:: std :: mem :: size_of :: < EndIsland > () - 16usize] ; ["Alignment of EndIsland"] [:: std :: mem :: align_of :: < EndIsland > () - 4usize] ; ["Offset of field: EndIsland::x"] [:: std :: mem :: offset_of ! (EndIsland , x) - 0usize] ; ["Offset of field: EndIsland::y"] [:: std :: mem :: offset_of ! (EndIsland , y) - 4usize] ; ["Offset of field: EndIsland::z"] [:: std :: mem :: offset_of ! (EndIsland , z) - 8usize] ; ["Offset of field: EndIsland::r"] [:: std :: mem :: offset_of ! (EndIsland , r) - 12usize] ; } ; pub const BF_APPROX : _bindgen_ty_5 = _bindgen_ty_5 (1) ; pub const BF_FORCED_OCEAN : _bindgen_ty_5 = _bindgen_ty_5 (4) ; # [repr (transparent)] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct _bindgen_ty_5 (pub :: std :: os :: raw :: c_uint) ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct BiomeFilter { pub tempsToFind : u64 , pub otempToFind : u64 , pub majorToFind : u64 , pub edgesToFind : u64 , pub raresToFind : u64 , pub raresToFindM : u64 , pub shoreToFind : u64 , pub shoreToFindM : u64 , pub riverToFind : u64 , pub riverToFindM : u64 , pub oceanToFind : u64 , pub specialCnt : :: std :: os :: raw :: c_int , pub flags : u32 , pub tempsToExcl : u64 , pub majorToExcl : u64 , pub edgesToExcl : u64 , pub raresToExcl : u64 , pub raresToExclM : u64 , pub shoreToExcl : u64 , pub shoreToExclM : u64 , pub riverToExcl : u64 , pub riverToExclM : u64 , pub biomeToExcl : u64 , pub biomeToExclM : u64 , pub biomeToFind : u64 , pub biomeToFindM : u64 , pub biomeToPick : u64 , pub biomeToPickM : u64 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of BiomeFilter"] [:: std :: mem :: size_of :: < BiomeFilter > () - 216usize] ; ["Alignment of BiomeFilter"] [:: std :: mem :: align_of :: < BiomeFilter > () - 8usize] ; ["Offset of field: BiomeFilter::tempsToFind"] [:: std :: mem :: offset_of ! (BiomeFilter , tempsToFind) - 0usize] ; ["Offset of field: BiomeFilter::otempToFind"] [:: std :: mem :: offset_of ! (BiomeFilter , otempToFind) - 8usize] ; ["Offset of field: BiomeFilter::majorToFind"] [:: std :: mem :: offset_of ! (BiomeFilter , majorToFind) - 16usize] ; ["Offset of field: BiomeFilter::edgesToFind"] [:: std :: mem :: offset_of ! (BiomeFilter , edgesToFind) - 24usize] ; ["Offset of field: BiomeFilter::raresToFind"] [:: std :: mem :: offset_of ! (BiomeFilter , raresToFind) - 32usize] ; ["Offset of field: BiomeFilter::raresToFindM"] [:: std :: mem :: offset_of ! (BiomeFilter , raresToFindM) - 40usize] ; ["Offset of field: BiomeFilter::shoreToFind"] [:: std :: mem :: offset_of ! (BiomeFilter , shoreToFind) - 48usize] ; ["Offset of field: BiomeFilter::shoreToFindM"] [:: std :: mem :: offset_of ! (BiomeFilter , shoreToFindM) - 56usize] ; ["Offset of field: BiomeFilter::riverToFind"] [:: std :: mem :: offset_of ! (BiomeFilter , riverToFind) - 64usize] ; ["Offset of field: BiomeFilter::riverToFindM"] [:: std :: mem :: offset_of ! (BiomeFilter , riverToFindM) - 72usize] ; ["Offset of field: BiomeFilter::oceanToFind"] [:: std :: mem :: offset_of ! (BiomeFilter , oceanToFind) - 80usize] ; ["Offset of field: BiomeFilter::specialCnt"] [:: std :: mem :: offset_of ! (BiomeFilter , specialCnt) - 88usize] ; ["Offset of field: BiomeFilter::flags"] [:: std :: mem :: offset_of ! (BiomeFilter , flags) - 92usize] ; ["Offset of field: BiomeFilter::tempsToExcl"] [:: std :: mem :: offset_of ! (BiomeFilter , tempsToExcl) - 96usize] ; ["Offset of field: BiomeFilter::majorToExcl"] [:: std :: mem :: offset_of ! (BiomeFilter , majorToExcl) - 104usize] ; ["Offset of field: BiomeFilter::edgesToExcl"] [:: std :: mem :: offset_of ! (BiomeFilter , edgesToExcl) - 112usize] ; ["Offset of field: BiomeFilter::raresToExcl"] [:: std :: mem :: offset_of ! (BiomeFilter , raresToExcl) - 120usize] ; ["Offset of field: BiomeFilter::raresToExclM"] [:: std :: mem :: offset_of ! (BiomeFilter , raresToExclM) - 128usize] ; ["Offset of field: BiomeFilter::shoreToExcl"] [:: std :: mem :: offset_of ! (BiomeFilter , shoreToExcl) - 136usize] ; ["Offset of field: BiomeFilter::shoreToExclM"] [:: std :: mem :: offset_of ! (BiomeFilter , shoreToExclM) - 144usize] ; ["Offset of field: BiomeFilter::riverToExcl"] [:: std :: mem :: offset_of ! (BiomeFilter , riverToExcl) - 152usize] ; ["Offset of field: BiomeFilter::riverToExclM"] [:: std :: mem :: offset_of ! (BiomeFilter , riverToExclM) - 160usize] ; ["Offset of field: BiomeFilter::biomeToExcl"] [:: std :: mem :: offset_of ! (BiomeFilter , biomeToExcl) - 168usize] ; ["Offset of field: BiomeFilter::biomeToExclM"] [:: std :: mem :: offset_of ! (BiomeFilter , biomeToExclM) - 176usize] ; ["Offset of field: BiomeFilter::biomeToFind"] [:: std :: mem :: offset_of ! (BiomeFilter , biomeToFind) - 184usize] ; ["Offset of field: BiomeFilter::biomeToFindM"] [:: std :: mem :: offset_of ! (BiomeFilter , biomeToFindM) - 192usize] ; ["Offset of field: BiomeFilter::biomeToPick"] [:: std :: mem :: offset_of ! (BiomeFilter , biomeToPick) - 200usize] ; ["Offset of field: BiomeFilter::biomeToPickM"] [:: std :: mem :: offset_of ! (BiomeFilter , biomeToPickM) - 208usize] ; } ; unsafe extern "C" { pub fn getStructureConfig (structureType : :: std :: os :: raw :: c_int , mc : :: std :: os :: raw :: c_int , sconf : * mut StructureConfig) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getStructurePos (structureType : :: std :: os :: raw :: c_int , mc : :: std :: os :: raw :: c_int , seed : u64 , regX : :: std :: os :: raw :: c_int , regZ : :: std :: os :: raw :: c_int , pos : * mut Pos) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getMineshafts (mc : :: std :: os :: raw :: c_int , seed : u64 , chunkX : :: std :: os :: raw :: c_int , chunkZ : :: std :: os :: raw :: c_int , chunkW : :: std :: os :: raw :: c_int , chunkH : :: std :: os :: raw :: c_int , out : * mut Pos , nout : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getEndIslands (islands : * mut EndIsland , mc : :: std :: os :: raw :: c_int , seed : u64 , chunkX : :: std :: os :: raw :: c_int , chunkZ : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapEndIslandHeight (y : * mut f32 , en : * const EndNoise , seed : u64 , x : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , w : :: std :: os :: raw :: c_int , h : :: std :: os :: raw :: c_int , scale : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn isEndChunkEmpty (en : * const EndNoise , sn : * const SurfaceNoise , seed : u64 , chunkX : :: std :: os :: raw :: c_int , chunkZ : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn initFirstStronghold (sh : * mut StrongholdIter , mc : :: std :: os :: raw :: c_int , s48 : u64) -> Pos ; } unsafe extern "C" { pub fn nextStronghold (sh : * mut StrongholdIter , g : * const Generator) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn estimateSpawn (g : * const Generator , rng : * mut u64) -> Pos ; } unsafe extern "C" { pub fn getSpawn (g : * const Generator) -> Pos ; } unsafe extern "C" { pub fn locateBiome (g : * const Generator , x : :: std :: os :: raw :: c_int , y : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , radius : :: std :: os :: raw :: c_int , validB : u64 , validM : u64 , rng : * mut u64 , passes : * mut :: std :: os :: raw :: c_int) -> Pos ; } unsafe extern "C" { pub fn isViableStructurePos (structType : :: std :: os :: raw :: c_int , g : * mut Generator , blockX : :: std :: os :: raw :: c_int , blockZ : :: std :: os :: raw :: c_int , flags : u32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn isViableFeatureBiome (mc : :: std :: os :: raw :: c_int , structureType : :: std :: os :: raw :: c_int , biomeID : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn isViableStructureTerrain (structType : :: std :: os :: raw :: c_int , g : * mut Generator , blockX : :: std :: os :: raw :: c_int , blockZ : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn isViableEndCityTerrain (g : * const Generator , sn : * const SurfaceNoise , blockX : :: std :: os :: raw :: c_int , blockZ : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getVariant (sv : * mut StructureVariant , structType : :: std :: os :: raw :: c_int , mc : :: std :: os :: raw :: c_int , seed : u64 , blockX : :: std :: os :: raw :: c_int , blockZ : :: std :: os :: raw :: c_int , biomeID : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getEndCityPieces (pieces : * mut Piece , seed : u64 , chunkX : :: std :: os :: raw :: c_int , chunkZ : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } pub const BASE_FLOOR : _bindgen_ty_6 = _bindgen_ty_6 (0) ; pub const BASE_ROOF : _bindgen_ty_6 = _bindgen_ty_6 (1) ; pub const BRIDGE_END : _bindgen_ty_6 = _bindgen_ty_6 (2) ; pub const BRIDGE_GENTLE_STAIRS : _bindgen_ty_6 = _bindgen_ty_6 (3) ; pub const BRIDGE_PIECE : _bindgen_ty_6 = _bindgen_ty_6 (4) ; pub const BRIDGE_STEEP_STAIRS : _bindgen_ty_6 = _bindgen_ty_6 (5) ; pub const FAT_TOWER_BASE : _bindgen_ty_6 = _bindgen_ty_6 (6) ; pub const FAT_TOWER_MIDDLE : _bindgen_ty_6 = _bindgen_ty_6 (7) ; pub const FAT_TOWER_TOP : _bindgen_ty_6 = _bindgen_ty_6 (8) ; pub const SECOND_FLOOR_1 : _bindgen_ty_6 = _bindgen_ty_6 (9) ; pub const SECOND_FLOOR_2 : _bindgen_ty_6 = _bindgen_ty_6 (10) ; pub const SECOND_ROOF : _bindgen_ty_6 = _bindgen_ty_6 (11) ; pub const END_SHIP : _bindgen_ty_6 = _bindgen_ty_6 (12) ; pub const THIRD_FLOOR_1 : _bindgen_ty_6 = _bindgen_ty_6 (13) ; pub const THIRD_FLOOR_2 : _bindgen_ty_6 = _bindgen_ty_6 (14) ; pub const THIRD_ROOF : _bindgen_ty_6 = _bindgen_ty_6 (15) ; pub const TOWER_BASE : _bindgen_ty_6 = _bindgen_ty_6 (16) ; pub const TOWER_FLOOR : _bindgen_ty_6 = _bindgen_ty_6 (17) ; pub const TOWER_PIECE : _bindgen_ty_6 = _bindgen_ty_6 (18) ; pub const TOWER_TOP : _bindgen_ty_6 = _bindgen_ty_6 (19) ; pub const END_CITY_PIECES_MAX : _bindgen_ty_6 = _bindgen_ty_6 (421) ; # [repr (transparent)] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct _bindgen_ty_6 (pub :: std :: os :: raw :: c_uint) ; unsafe extern "C" { pub fn getFortressPieces (list : * mut Piece , n : :: std :: os :: raw :: c_int , mc : :: std :: os :: raw :: c_int , seed : u64 , chunkX : :: std :: os :: raw :: c_int , chunkZ : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } pub const FORTRESS_START : _bindgen_ty_7 = _bindgen_ty_7 (0) ; pub const BRIDGE_STRAIGHT : _bindgen_ty_7 = _bindgen_ty_7 (1) ; pub const BRIDGE_CROSSING : _bindgen_ty_7 = _bindgen_ty_7 (2) ; pub const BRIDGE_FORTIFIED_CROSSING : _bindgen_ty_7 = _bindgen_ty_7 (3) ; pub const BRIDGE_STAIRS : _bindgen_ty_7 = _bindgen_ty_7 (4) ; pub const BRIDGE_SPAWNER : _bindgen_ty_7 = _bindgen_ty_7 (5) ; pub const BRIDGE_CORRIDOR_ENTRANCE : _bindgen_ty_7 = _bindgen_ty_7 (6) ; pub const CORRIDOR_STRAIGHT : _bindgen_ty_7 = _bindgen_ty_7 (7) ; pub const CORRIDOR_CROSSING : _bindgen_ty_7 = _bindgen_ty_7 (8) ; pub const CORRIDOR_TURN_RIGHT : _bindgen_ty_7 = _bindgen_ty_7 (9) ; pub const CORRIDOR_TURN_LEFT : _bindgen_ty_7 = _bindgen_ty_7 (10) ; pub const CORRIDOR_STAIRS : _bindgen_ty_7 = _bindgen_ty_7 (11) ; pub const CORRIDOR_T_CROSSING : _bindgen_ty_7 = _bindgen_ty_7 (12) ; pub const CORRIDOR_NETHER_WART : _bindgen_ty_7 = _bindgen_ty_7 (13) ; pub const FORTRESS_END : _bindgen_ty_7 = _bindgen_ty_7 (14) ; pub const PIECE_COUNT : _bindgen_ty_7 = _bindgen_ty_7 (15) ; # [repr (transparent)] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct _bindgen_ty_7 (pub :: std :: os :: raw :: c_uint) ; unsafe extern "C" { pub fn getFixedEndGateways (mc : :: std :: os :: raw :: c_int , seed : u64 , src : * mut Pos) ; } unsafe extern "C" { pub fn getLinkedGatewayChunk (en : * const EndNoise , sn : * const SurfaceNoise , seed : u64 , src : Pos , dst : * mut Pos) -> Pos ; } unsafe extern "C" { pub fn getLinkedGatewayPos (en : * const EndNoise , sn : * const SurfaceNoise , seed : u64 , src : Pos) -> Pos ; } pub const HouseSmall : _bindgen_ty_8 = _bindgen_ty_8 (0) ; pub const Church : _bindgen_ty_8 = _bindgen_ty_8 (1) ; pub const Library : _bindgen_ty_8 = _bindgen_ty_8 (2) ; pub const WoodHut : _bindgen_ty_8 = _bindgen_ty_8 (3) ; pub const Butcher : _bindgen_ty_8 = _bindgen_ty_8 (4) ; pub const FarmLarge : _bindgen_ty_8 = _bindgen_ty_8 (5) ; pub const FarmSmall : _bindgen_ty_8 = _bindgen_ty_8 (6) ; pub const Blacksmith : _bindgen_ty_8 = _bindgen_ty_8 (7) ; pub const HouseLarge : _bindgen_ty_8 = _bindgen_ty_8 (8) ; pub const HOUSE_NUM : _bindgen_ty_8 = _bindgen_ty_8 (9) ; # [repr (transparent)] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct _bindgen_ty_8 (pub :: std :: os :: raw :: c_uint) ; unsafe extern "C" { pub fn getHouseList (houses : * mut :: std :: os :: raw :: c_int , seed : u64 , chunkX : :: std :: os :: raw :: c_int , chunkZ : :: std :: os :: raw :: c_int) -> u64 ; } unsafe extern "C" { pub fn monteCarloBiomes (g : * mut Generator , r : Range , rng : * mut u64 , coverage : f64 , confidence : f64 , eval : :: std :: option :: Option < unsafe extern "C" fn (g : * mut Generator , scale : :: std :: os :: raw :: c_int , x : :: std :: os :: raw :: c_int , y : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , data : * mut :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int > , data : * mut :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn setupBiomeFilter (bf : * mut BiomeFilter , mc : :: std :: os :: raw :: c_int , flags : u32 , required : * const :: std :: os :: raw :: c_int , requiredLen : :: std :: os :: raw :: c_int , excluded : * const :: std :: os :: raw :: c_int , excludedLen : :: std :: os :: raw :: c_int , matchany : * const :: std :: os :: raw :: c_int , matchanyLen : :: std :: os :: raw :: c_int) ; } unsafe extern "C" { pub fn checkForBiomes (g : * mut Generator , cache : * mut :: std :: os :: raw :: c_int , r : Range , dim : :: std :: os :: raw :: c_int , seed : u64 , filter : * const BiomeFilter , stop : * mut :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn checkForBiomesAtLayer (ls : * mut LayerStack , entry : * mut Layer , cache : * mut :: std :: os :: raw :: c_int , seed : u64 , x : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , w : :: std :: os :: raw :: c_uint , h : :: std :: os :: raw :: c_uint , filter : * const BiomeFilter) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn checkForTemps (g : * mut LayerStack , seed : u64 , x : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , w : :: std :: os :: raw :: c_int , h : :: std :: os :: raw :: c_int , tc : * const :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getBiomeCenters (pos : * mut Pos , siz : * mut :: std :: os :: raw :: c_int , nmax : :: std :: os :: raw :: c_int , g : * mut Generator , r : Range , match_ : :: std :: os :: raw :: c_int , minsiz : :: std :: os :: raw :: c_int , tol : :: std :: os :: raw :: c_int , stop : * mut :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn canBiomeGenerate (layerId : :: std :: os :: raw :: c_int , mc : :: std :: os :: raw :: c_int , flags : u32 , biomeID : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn genPotential (mL : * mut u64 , mM : * mut u64 , layerId : :: std :: os :: raw :: c_int , mc : :: std :: os :: raw :: c_int , flags : u32 , biomeID : :: std :: os :: raw :: c_int) ; } unsafe extern "C" { pub fn getAvailableBiomes (mL : * mut u64 , mM : * mut u64 , layerId : :: std :: os :: raw :: c_int , mc : :: std :: os :: raw :: c_int , flags : u32) ; } unsafe extern "C" { # [doc = " Runs a gradient descent towards the minimum of the noise parameter times a\n given factor. The algorithm is restricted to the area (x,z,w,h) and starts\n at (i0,j0) relative to (x,z). The iteration is terminated when either\n 1) a fix point has been reached,\n 2) maxiter iterations have been completed,\n 3) or the sampling position has moved more than maxrad away from (i0,j0).\n\n Alpha is an optimization argument that is used to determine the length of\n large steps based on the current gradient.\n\n Optionally, the iteration can also call the custom function:\n  func(data, x, z, factor*para_noise(x,z));\n\n The return value is the minimum value reached."] pub fn getParaDescent (para : * const DoublePerlinNoise , factor : f64 , x : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , w : :: std :: os :: raw :: c_int , h : :: std :: os :: raw :: c_int , i0 : :: std :: os :: raw :: c_int , j0 : :: std :: os :: raw :: c_int , maxrad : :: std :: os :: raw :: c_int , maxiter : :: std :: os :: raw :: c_int , alpha : f64 , data : * mut :: std :: os :: raw :: c_void , func : :: std :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: std :: os :: raw :: c_void , arg2 : :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : f64) -> :: std :: os :: raw :: c_int >) -> f64 ; } unsafe extern "C" { # [doc = " Determines the value range of a climate noise parameter over the given area.\n The sampling has scale 1:4 and sampling shift is not considered, so biomes\n could potentially *leak* in at the boarders.\n An optional function:\n  func(data, x, z, climate_noise(x,z))\n is called in each gradient descent iteration. If this function returns\n non-zero the search is aborted, the results are undefined and a non-zero\n error is returned.\n\n The results are written to pmin and pmax (which would be cast to an integer\n during boime mapping). Nullable, to look for minima and maxima separately."] pub fn getParaRange (para : * const DoublePerlinNoise , pmin : * mut f64 , pmax : * mut f64 , x : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , w : :: std :: os :: raw :: c_int , h : :: std :: os :: raw :: c_int , data : * mut :: std :: os :: raw :: c_void , func : :: std :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: std :: os :: raw :: c_void , arg2 : :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : f64) -> :: std :: os :: raw :: c_int >) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " Gets the min/max parameter values within which a biome change can occur."] pub fn getBiomeParaExtremes (mc : :: std :: os :: raw :: c_int) -> * const :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " Gets the min/max possible noise parameter values at which the given biome\n can generate. The values are in min/max pairs in order of:\n temperature, humidity, continentalness, erosion, depth, weirdness."] pub fn getBiomeParaLimits (mc : :: std :: os :: raw :: c_int , id : :: std :: os :: raw :: c_int) -> * const :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " Determines which biomes are able to generate given a set of climate\n parameter limits. Possible biomes are marked non-zero in the 'ids'."] pub fn getPossibleBiomesForLimits (ids : * mut :: std :: os :: raw :: c_char , mc : :: std :: os :: raw :: c_int , limits : * mut [:: std :: os :: raw :: c_int ; 2usize]) ; } unsafe extern "C" { # [doc = " Find the largest rectangle in ids[sx][sz] which consists only of 'match'.\n The limit corners are written to p0 and p1. Returned is the rectangle's area."] pub fn getLargestRec (match_ : :: std :: os :: raw :: c_int , ids : * const :: std :: os :: raw :: c_int , sx : :: std :: os :: raw :: c_int , sz : :: std :: os :: raw :: c_int , p0 : * mut Pos , p1 : * mut Pos) -> :: std :: os :: raw :: c_int ; } pub type __gnuc_va_list = __builtin_va_list ; # [repr (C)] # [derive (Copy , Clone)] pub struct __mbstate_t { pub __count : :: std :: os :: raw :: c_int , pub __value : __mbstate_t__bindgen_ty_1 , } # [repr (C)] # [derive (Copy , Clone)] pub union __mbstate_t__bindgen_ty_1 { pub __wch : :: std :: os :: raw :: c_uint , pub __wchb : [:: std :: os :: raw :: c_char ; 4usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __mbstate_t__bindgen_ty_1"] [:: std :: mem :: size_of :: < __mbstate_t__bindgen_ty_1 > () - 4usize] ; ["Alignment of __mbstate_t__bindgen_ty_1"] [:: std :: mem :: align_of :: < __mbstate_t__bindgen_ty_1 > () - 4usize] ; ["Offset of field: __mbstate_t__bindgen_ty_1::__wch"] [:: std :: mem :: offset_of ! (__mbstate_t__bindgen_ty_1 , __wch) - 0usize] ; ["Offset of field: __mbstate_t__bindgen_ty_1::__wchb"] [:: std :: mem :: offset_of ! (__mbstate_t__bindgen_ty_1 , __wchb) - 0usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __mbstate_t"] [:: std :: mem :: size_of :: < __mbstate_t > () - 8usize] ; ["Alignment of __mbstate_t"] [:: std :: mem :: align_of :: < __mbstate_t > () - 4usize] ; ["Offset of field: __mbstate_t::__count"] [:: std :: mem :: offset_of ! (__mbstate_t , __count) - 0usize] ; ["Offset of field: __mbstate_t::__value"] [:: std :: mem :: offset_of ! (__mbstate_t , __value) - 4usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub struct _G_fpos_t { pub __pos : __off_t , pub __state : __mbstate_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of _G_fpos_t"] [:: std :: mem :: size_of :: < _G_fpos_t > () - 16usize] ; ["Alignment of _G_fpos_t"] [:: std :: mem :: align_of :: < _G_fpos_t > () - 8usize] ; ["Offset of field: _G_fpos_t::__pos"] [:: std :: mem :: offset_of ! (_G_fpos_t , __pos) - 0usize] ; ["Offset of field: _G_fpos_t::__state"] [:: std :: mem :: offset_of ! (_G_fpos_t , __state) - 8usize] ; } ; pub type __fpos_t = _G_fpos_t ; # [repr (C)] # [derive (Copy , Clone)] pub struct _G_fpos64_t { pub __pos : __off64_t , pub __state : __mbstate_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of _G_fpos64_t"] [:: std :: mem :: size_of :: < _G_fpos64_t > () - 16usize] ; ["Alignment of _G_fpos64_t"] [:: std :: mem :: align_of :: < _G_fpos64_t > () - 8usize] ; ["Offset of field: _G_fpos64_t::__pos"] [:: std :: mem :: offset_of ! (_G_fpos64_t , __pos) - 0usize] ; ["Offset of field: _G_fpos64_t::__state"] [:: std :: mem :: offset_of ! (_G_fpos64_t , __state) - 8usize] ; } ; pub type __fpos64_t = _G_fpos64_t ; pub type __FILE = _IO_FILE ; pub type FILE = _IO_FILE ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_marker { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_codecvt { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_wide_data { _unused : [u8 ; 0] , } pub type _IO_lock_t = :: std :: os :: raw :: c_void ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_FILE { pub _flags : :: std :: os :: raw :: c_int , pub _IO_read_ptr : * mut :: std :: os :: raw :: c_char , pub _IO_read_end : * mut :: std :: os :: raw :: c_char , pub _IO_read_base : * mut :: std :: os :: raw :: c_char , pub _IO_write_base : * mut :: std :: os :: raw :: c_char , pub _IO_write_ptr : * mut :: std :: os :: raw :: c_char , pub _IO_write_end : * mut :: std :: os :: raw :: c_char , pub _IO_buf_base : * mut :: std :: os :: raw :: c_char , pub _IO_buf_end : * mut :: std :: os :: raw :: c_char , pub _IO_save_base : * mut :: std :: os :: raw :: c_char , pub _IO_backup_base : * mut :: std :: os :: raw :: c_char , pub _IO_save_end : * mut :: std :: os :: raw :: c_char , pub _markers : * mut _IO_marker , pub _chain : * mut _IO_FILE , pub _fileno : :: std :: os :: raw :: c_int , pub _bitfield_align_1 : [u32 ; 0] , pub _bitfield_1 : __BindgenBitfieldUnit < [u8 ; 3usize] > , pub _short_backupbuf : [:: std :: os :: raw :: c_char ; 1usize] , pub _old_offset : __off_t , pub _cur_column : :: std :: os :: raw :: c_ushort , pub _vtable_offset : :: std :: os :: raw :: c_schar , pub _shortbuf : [:: std :: os :: raw :: c_char ; 1usize] , pub _lock : * mut _IO_lock_t , pub _offset : __off64_t , pub _codecvt : * mut _IO_codecvt , pub _wide_data : * mut _IO_wide_data , pub _freeres_list : * mut _IO_FILE , pub _freeres_buf : * mut :: std :: os :: raw :: c_void , pub _prevchain : * mut * mut _IO_FILE , pub _mode : :: std :: os :: raw :: c_int , pub _unused3 : :: std :: os :: raw :: c_int , pub _total_written : __uint64_t , pub _unused2 : [:: std :: os :: raw :: c_char ; 8usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of _IO_FILE"] [:: std :: mem :: size_of :: < _IO_FILE > () - 216usize] ; ["Alignment of _IO_FILE"] [:: std :: mem :: align_of :: < _IO_FILE > () - 8usize] ; ["Offset of field: _IO_FILE::_flags"] [:: std :: mem :: offset_of ! (_IO_FILE , _flags) - 0usize] ; ["Offset of field: _IO_FILE::_IO_read_ptr"] [:: std :: mem :: offset_of ! (_IO_FILE , _IO_read_ptr) - 8usize] ; ["Offset of field: _IO_FILE::_IO_read_end"] [:: std :: mem :: offset_of ! (_IO_FILE , _IO_read_end) - 16usize] ; ["Offset of field: _IO_FILE::_IO_read_base"] [:: std :: mem :: offset_of ! (_IO_FILE , _IO_read_base) - 24usize] ; ["Offset of field: _IO_FILE::_IO_write_base"] [:: std :: mem :: offset_of ! (_IO_FILE , _IO_write_base) - 32usize] ; ["Offset of field: _IO_FILE::_IO_write_ptr"] [:: std :: mem :: offset_of ! (_IO_FILE , _IO_write_ptr) - 40usize] ; ["Offset of field: _IO_FILE::_IO_write_end"] [:: std :: mem :: offset_of ! (_IO_FILE , _IO_write_end) - 48usize] ; ["Offset of field: _IO_FILE::_IO_buf_base"] [:: std :: mem :: offset_of ! (_IO_FILE , _IO_buf_base) - 56usize] ; ["Offset of field: _IO_FILE::_IO_buf_end"] [:: std :: mem :: offset_of ! (_IO_FILE , _IO_buf_end) - 64usize] ; ["Offset of field: _IO_FILE::_IO_save_base"] [:: std :: mem :: offset_of ! (_IO_FILE , _IO_save_base) - 72usize] ; ["Offset of field: _IO_FILE::_IO_backup_base"] [:: std :: mem :: offset_of ! (_IO_FILE , _IO_backup_base) - 80usize] ; ["Offset of field: _IO_FILE::_IO_save_end"] [:: std :: mem :: offset_of ! (_IO_FILE , _IO_save_end) - 88usize] ; ["Offset of field: _IO_FILE::_markers"] [:: std :: mem :: offset_of ! (_IO_FILE , _markers) - 96usize] ; ["Offset of field: _IO_FILE::_chain"] [:: std :: mem :: offset_of ! (_IO_FILE , _chain) - 104usize] ; ["Offset of field: _IO_FILE::_fileno"] [:: std :: mem :: offset_of ! (_IO_FILE , _fileno) - 112usize] ; ["Offset of field: _IO_FILE::_short_backupbuf"] [:: std :: mem :: offset_of ! (_IO_FILE , _short_backupbuf) - 119usize] ; ["Offset of field: _IO_FILE::_old_offset"] [:: std :: mem :: offset_of ! (_IO_FILE , _old_offset) - 120usize] ; ["Offset of field: _IO_FILE::_cur_column"] [:: std :: mem :: offset_of ! (_IO_FILE , _cur_column) - 128usize] ; ["Offset of field: _IO_FILE::_vtable_offset"] [:: std :: mem :: offset_of ! (_IO_FILE , _vtable_offset) - 130usize] ; ["Offset of field: _IO_FILE::_shortbuf"] [:: std :: mem :: offset_of ! (_IO_FILE , _shortbuf) - 131usize] ; ["Offset of field: _IO_FILE::_lock"] [:: std :: mem :: offset_of ! (_IO_FILE , _lock) - 136usize] ; ["Offset of field: _IO_FILE::_offset"] [:: std :: mem :: offset_of ! (_IO_FILE , _offset) - 144usize] ; ["Offset of field: _IO_FILE::_codecvt"] [:: std :: mem :: offset_of ! (_IO_FILE , _codecvt) - 152usize] ; ["Offset of field: _IO_FILE::_wide_data"] [:: std :: mem :: offset_of ! (_IO_FILE , _wide_data) - 160usize] ; ["Offset of field: _IO_FILE::_freeres_list"] [:: std :: mem :: offset_of ! (_IO_FILE , _freeres_list) - 168usize] ; ["Offset of field: _IO_FILE::_freeres_buf"] [:: std :: mem :: offset_of ! (_IO_FILE , _freeres_buf) - 176usize] ; ["Offset of field: _IO_FILE::_prevchain"] [:: std :: mem :: offset_of ! (_IO_FILE , _prevchain) - 184usize] ; ["Offset of field: _IO_FILE::_mode"] [:: std :: mem :: offset_of ! (_IO_FILE , _mode) - 192usize] ; ["Offset of field: _IO_FILE::_unused3"] [:: std :: mem :: offset_of ! (_IO_FILE , _unused3) - 196usize] ; ["Offset of field: _IO_FILE::_total_written"] [:: std :: mem :: offset_of ! (_IO_FILE , _total_written) - 200usize] ; ["Offset of field: _IO_FILE::_unused2"] [:: std :: mem :: offset_of ! (_IO_FILE , _unused2) - 208usize] ; } ; impl _IO_FILE { # [inline] pub fn _flags2 (& self) -> :: std :: os :: raw :: c_int { unsafe { :: std :: mem :: transmute (self . _bitfield_1 . get (0usize , 24u8) as u32) } } # [inline] pub fn set__flags2 (& mut self , val : :: std :: os :: raw :: c_int) { unsafe { let val : u32 = :: std :: mem :: transmute (val) ; self . _bitfield_1 . set (0usize , 24u8 , val as u64) } } # [inline] pub unsafe fn _flags2_raw (this : * const Self) -> :: std :: os :: raw :: c_int { unsafe { :: std :: mem :: transmute (< __BindgenBitfieldUnit < [u8 ; 3usize] > > :: raw_get (:: std :: ptr :: addr_of ! ((* this) . _bitfield_1) , 0usize , 24u8 ,) as u32) } } # [inline] pub unsafe fn set__flags2_raw (this : * mut Self , val : :: std :: os :: raw :: c_int) { unsafe { let val : u32 = :: std :: mem :: transmute (val) ; < __BindgenBitfieldUnit < [u8 ; 3usize] > > :: raw_set (:: std :: ptr :: addr_of_mut ! ((* this) . _bitfield_1) , 0usize , 24u8 , val as u64 ,) } } # [inline] pub fn new_bitfield_1 (_flags2 : :: std :: os :: raw :: c_int) -> __BindgenBitfieldUnit < [u8 ; 3usize] > { let mut __bindgen_bitfield_unit : __BindgenBitfieldUnit < [u8 ; 3usize] > = Default :: default () ; __bindgen_bitfield_unit . set (0usize , 24u8 , { let _flags2 : u32 = unsafe { :: std :: mem :: transmute (_flags2) } ; _flags2 as u64 }) ; __bindgen_bitfield_unit } } pub type cookie_read_function_t = :: std :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: std :: os :: raw :: c_void , __buf : * mut :: std :: os :: raw :: c_char , __nbytes : usize) -> __ssize_t > ; pub type cookie_write_function_t = :: std :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: std :: os :: raw :: c_void , __buf : * const :: std :: os :: raw :: c_char , __nbytes : usize) -> __ssize_t > ; pub type cookie_seek_function_t = :: std :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: std :: os :: raw :: c_void , __pos : * mut __off64_t , __w : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int > ; pub type cookie_close_function_t = :: std :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_cookie_io_functions_t { pub read : cookie_read_function_t , pub write : cookie_write_function_t , pub seek : cookie_seek_function_t , pub close : cookie_close_function_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of _IO_cookie_io_functions_t"] [:: std :: mem :: size_of :: < _IO_cookie_io_functions_t > () - 32usize] ; ["Alignment of _IO_cookie_io_functions_t"] [:: std :: mem :: align_of :: < _IO_cookie_io_functions_t > () - 8usize] ; ["Offset of field: _IO_cookie_io_functions_t::read"] [:: std :: mem :: offset_of ! (_IO_cookie_io_functions_t , read) - 0usize] ; ["Offset of field: _IO_cookie_io_functions_t::write"] [:: std :: mem :: offset_of ! (_IO_cookie_io_functions_t , write) - 8usize] ; ["Offset of field: _IO_cookie_io_functions_t::seek"] [:: std :: mem :: offset_of ! (_IO_cookie_io_functions_t , seek) - 16usize] ; ["Offset of field: _IO_cookie_io_functions_t::close"] [:: std :: mem :: offset_of ! (_IO_cookie_io_functions_t , close) - 24usize] ; } ; pub type cookie_io_functions_t = _IO_cookie_io_functions_t ; pub type va_list = __gnuc_va_list ; pub type fpos_t = __fpos_t ; unsafe extern "C" { pub static mut stdin : * mut FILE ; } unsafe extern "C" { pub static mut stdout : * mut FILE ; } unsafe extern "C" { pub static mut stderr : * mut FILE ; } unsafe extern "C" { pub fn remove (__filename : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn rename (__old : * const :: std :: os :: raw :: c_char , __new : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn renameat (__oldfd : :: std :: os :: raw :: c_int , __old : * const :: std :: os :: raw :: c_char , __newfd : :: std :: os :: raw :: c_int , __new : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn fclose (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn tmpfile () -> * mut FILE ; } unsafe extern "C" { pub fn tmpnam (arg1 : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn tmpnam_r (__s : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn tempnam (__dir : * const :: std :: os :: raw :: c_char , __pfx : * const :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn fflush (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn fflush_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn fopen (__filename : * const :: std :: os :: raw :: c_char , __modes : * const :: std :: os :: raw :: c_char) -> * mut FILE ; } unsafe extern "C" { pub fn freopen (__filename : * const :: std :: os :: raw :: c_char , __modes : * const :: std :: os :: raw :: c_char , __stream : * mut FILE) -> * mut FILE ; } unsafe extern "C" { pub fn fdopen (__fd : :: std :: os :: raw :: c_int , __modes : * const :: std :: os :: raw :: c_char) -> * mut FILE ; } unsafe extern "C" { pub fn fopencookie (__magic_cookie : * mut :: std :: os :: raw :: c_void , __modes : * const :: std :: os :: raw :: c_char , __io_funcs : cookie_io_functions_t) -> * mut FILE ; } unsafe extern "C" { pub fn fmemopen (__s : * mut :: std :: os :: raw :: c_void , __len : usize , __modes : * const :: std :: os :: raw :: c_char) -> * mut FILE ; } unsafe extern "C" { pub fn open_memstream (__bufloc : * mut * mut :: std :: os :: raw :: c_char , __sizeloc : * mut usize) -> * mut FILE ; } unsafe extern "C" { pub fn setbuf (__stream : * mut FILE , __buf : * mut :: std :: os :: raw :: c_char) ; } unsafe extern "C" { pub fn setvbuf (__stream : * mut FILE , __buf : * mut :: std :: os :: raw :: c_char , __modes : :: std :: os :: raw :: c_int , __n : usize) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn setbuffer (__stream : * mut FILE , __buf : * mut :: std :: os :: raw :: c_char , __size : usize) ; } unsafe extern "C" { pub fn setlinebuf (__stream : * mut FILE) ; } unsafe extern "C" { pub fn fprintf (__stream : * mut FILE , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn printf (__format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn sprintf (__s : * mut :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn vfprintf (__s : * mut FILE , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn vprintf (__format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn vsprintf (__s : * mut :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn snprintf (__s : * mut :: std :: os :: raw :: c_char , __maxlen : :: std :: os :: raw :: c_ulong , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn vsnprintf (__s : * mut :: std :: os :: raw :: c_char , __maxlen : :: std :: os :: raw :: c_ulong , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn vasprintf (__ptr : * mut * mut :: std :: os :: raw :: c_char , __f : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __asprintf (__ptr : * mut * mut :: std :: os :: raw :: c_char , __fmt : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn asprintf (__ptr : * mut * mut :: std :: os :: raw :: c_char , __fmt : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn vdprintf (__fd : :: std :: os :: raw :: c_int , __fmt : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn dprintf (__fd : :: std :: os :: raw :: c_int , __fmt : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn fscanf (__stream : * mut FILE , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn scanf (__format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn sscanf (__s : * const :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [link_name = "\u{1}__isoc99_fscanf"] pub fn fscanf1 (__stream : * mut FILE , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [link_name = "\u{1}__isoc99_scanf"] pub fn scanf1 (__format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [link_name = "\u{1}__isoc99_sscanf"] pub fn sscanf1 (__s : * const :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn vfscanf (__s : * mut FILE , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn vscanf (__format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn vsscanf (__s : * const :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [link_name = "\u{1}__isoc99_vfscanf"] pub fn vfscanf1 (__s : * mut FILE , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [link_name = "\u{1}__isoc99_vscanf"] pub fn vscanf1 (__format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [link_name = "\u{1}__isoc99_vsscanf"] pub fn vsscanf1 (__s : * const :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn fgetc (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getc (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getchar () -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getc_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getchar_unlocked () -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn fgetc_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn fputc (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn putc (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn putchar (__c : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn fputc_unlocked (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn putc_unlocked (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn putchar_unlocked (__c : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getw (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn putw (__w : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn fgets (__s : * mut :: std :: os :: raw :: c_char , __n : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn __getdelim (__lineptr : * mut * mut :: std :: os :: raw :: c_char , __n : * mut usize , __delimiter : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> __ssize_t ; } unsafe extern "C" { pub fn getdelim (__lineptr : * mut * mut :: std :: os :: raw :: c_char , __n : * mut usize , __delimiter : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> __ssize_t ; } unsafe extern "C" { pub fn getline (__lineptr : * mut * mut :: std :: os :: raw :: c_char , __n : * mut usize , __stream : * mut FILE) -> __ssize_t ; } unsafe extern "C" { pub fn fputs (__s : * const :: std :: os :: raw :: c_char , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn puts (__s : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn ungetc (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn fread (__ptr : * mut :: std :: os :: raw :: c_void , __size : :: std :: os :: raw :: c_ulong , __n : :: std :: os :: raw :: c_ulong , __stream : * mut FILE) -> :: std :: os :: raw :: c_ulong ; } unsafe extern "C" { pub fn fwrite (__ptr : * const :: std :: os :: raw :: c_void , __size : :: std :: os :: raw :: c_ulong , __n : :: std :: os :: raw :: c_ulong , __s : * mut FILE) -> :: std :: os :: raw :: c_ulong ; } unsafe extern "C" { pub fn fread_unlocked (__ptr : * mut :: std :: os :: raw :: c_void , __size : usize , __n : usize , __stream : * mut FILE) -> usize ; } unsafe extern "C" { pub fn fwrite_unlocked (__ptr : * const :: std :: os :: raw :: c_void , __size : usize , __n : usize , __stream : * mut FILE) -> usize ; } unsafe extern "C" { pub fn fseek (__stream : * mut FILE , __off : :: std :: os :: raw :: c_long , __whence : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn ftell (__stream : * mut FILE) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn rewind (__stream : * mut FILE) ; } unsafe extern "C" { pub fn fseeko (__stream : * mut FILE , __off : __off_t , __whence : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn ftello (__stream : * mut FILE) -> __off_t ; } unsafe extern "C" { pub fn fgetpos (__stream : * mut FILE , __pos : * mut fpos_t) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn fsetpos (__stream : * mut FILE , __pos : * const fpos_t) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn clearerr (__stream : * mut FILE) ; } unsafe extern "C" { pub fn feof (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn ferror (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn clearerr_unlocked (__stream : * mut FILE) ; } unsafe extern "C" { pub fn feof_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn ferror_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn perror (__s : * const :: std :: os :: raw :: c_char) ; } unsafe extern "C" { pub fn fileno (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn fileno_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn pclose (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn popen (__command : * const :: std :: os :: raw :: c_char , __modes : * const :: std :: os :: raw :: c_char) -> * mut FILE ; } unsafe extern "C" { pub fn ctermid (__s : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn flockfile (__stream : * mut FILE) ; } unsafe extern "C" { pub fn ftrylockfile (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn funlockfile (__stream : * mut FILE) ; } unsafe extern "C" { pub fn __uflow (arg1 : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __overflow (arg1 : * mut FILE , arg2 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " Quad-Witch-Huts\n\n  For a quad-structure, we mainly care about relative positioning, so we can\n  get away with just checking the regions near the origin: (0,0),(0,1),(1,0)\n  and (1,1) and then move the structures to the desired position.\n\n  Futhermore, the PRNG that determines the chunk positions inside each region,\n  performs some modular arithmatic on the 48-bit numbers which causes some\n  restrictions on the lower bits when looking for near perfect structure\n  positions. This is difficult to prove, but can be used to reduce the number\n  of free bits to 28 which can be comfortably brute-forced to get the entire\n  set of quad-structure candidates. Each of the seeds found this way\n  describes entire set of possible quad-witch-huts (with degrees of freedom\n  for region-transposition, as well as the top 16-bit bits)."] pub static low20QuadIdeal : [u64 ; 4usize] ; } unsafe extern "C" { pub static low20QuadClassic : [u64 ; 5usize] ; } unsafe extern "C" { pub static low20QuadHutNormal : [u64 ; 11usize] ; } unsafe extern "C" { pub static low20QuadHutBarely : [u64 ; 29usize] ; } pub const CST_NONE : _bindgen_ty_9 = _bindgen_ty_9 (0) ; pub const CST_IDEAL : _bindgen_ty_9 = _bindgen_ty_9 (1) ; pub const CST_CLASSIC : _bindgen_ty_9 = _bindgen_ty_9 (2) ; pub const CST_NORMAL : _bindgen_ty_9 = _bindgen_ty_9 (3) ; pub const CST_BARELY : _bindgen_ty_9 = _bindgen_ty_9 (4) ; # [repr (transparent)] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct _bindgen_ty_9 (pub :: std :: os :: raw :: c_uint) ; unsafe extern "C" { pub fn getQuadHutCst (low20 : u64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn searchAll48 (seedbuf : * mut * mut u64 , buflen : * mut u64 , path : * const :: std :: os :: raw :: c_char , threads : :: std :: os :: raw :: c_int , lowBits : * const u64 , lowBitN : :: std :: os :: raw :: c_int , check : :: std :: option :: Option < unsafe extern "C" fn (s48 : u64 , data : * mut :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int > , data : * mut :: std :: os :: raw :: c_void , stop : * mut :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getOptimalAfk (p : * mut Pos , ax : :: std :: os :: raw :: c_int , ay : :: std :: os :: raw :: c_int , az : :: std :: os :: raw :: c_int , spcnt : * mut :: std :: os :: raw :: c_int) -> Pos ; } unsafe extern "C" { pub fn scanForQuads (sconf : StructureConfig , radius : :: std :: os :: raw :: c_int , s48 : u64 , lowBits : * const u64 , lowBitN : :: std :: os :: raw :: c_int , salt : u64 , x : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , w : :: std :: os :: raw :: c_int , h : :: std :: os :: raw :: c_int , qplist : * mut Pos , n : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn loadSavedSeeds (fnam : * const :: std :: os :: raw :: c_char , scnt : * mut u64) -> * mut u64 ; } unsafe extern "C" { # [doc = " convert between version enum and text"] pub fn mc2str (mc : :: std :: os :: raw :: c_int) -> * const :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn str2mc (s : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " get the resource id name for a biome (for versions 1.13+)"] pub fn biome2str (mc : :: std :: os :: raw :: c_int , id : :: std :: os :: raw :: c_int) -> * const :: std :: os :: raw :: c_char ; } unsafe extern "C" { # [doc = " get the resource id name for a structure"] pub fn struct2str (stype : :: std :: os :: raw :: c_int) -> * const :: std :: os :: raw :: c_char ; } unsafe extern "C" { # [doc = " initialize a biome colormap with some defaults"] pub fn initBiomeColors (biomeColors : * mut [:: std :: os :: raw :: c_uchar ; 3usize]) ; } unsafe extern "C" { pub fn initBiomeTypeColors (biomeColors : * mut [:: std :: os :: raw :: c_uchar ; 3usize]) ; } unsafe extern "C" { pub fn parseBiomeColors (biomeColors : * mut [:: std :: os :: raw :: c_uchar ; 3usize] , buf : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn biomesToImage (pixels : * mut :: std :: os :: raw :: c_uchar , biomeColors : * mut [:: std :: os :: raw :: c_uchar ; 3usize] , biomes : * const :: std :: os :: raw :: c_int , sx : :: std :: os :: raw :: c_uint , sy : :: std :: os :: raw :: c_uint , pixscale : :: std :: os :: raw :: c_uint , flip : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn savePPM (path : * const :: std :: os :: raw :: c_char , pixels : * const :: std :: os :: raw :: c_uchar , sx : :: std :: os :: raw :: c_uint , sy : :: std :: os :: raw :: c_uint) -> :: std :: os :: raw :: c_int ; } pub type __builtin_va_list = [__va_list_tag ; 1usize] ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __va_list_tag { pub gp_offset : :: std :: os :: raw :: c_uint , pub fp_offset : :: std :: os :: raw :: c_uint , pub overflow_arg_area : * mut :: std :: os :: raw :: c_void , pub reg_save_area : * mut :: std :: os :: raw :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __va_list_tag"] [:: std :: mem :: size_of :: < __va_list_tag > () - 24usize] ; ["Alignment of __va_list_tag"] [:: std :: mem :: align_of :: < __va_list_tag > () - 8usize] ; ["Offset of field: __va_list_tag::gp_offset"] [:: std :: mem :: offset_of ! (__va_list_tag , gp_offset) - 0usize] ; ["Offset of field: __va_list_tag::fp_offset"] [:: std :: mem :: offset_of ! (__va_list_tag , fp_offset) - 4usize] ; ["Offset of field: __va_list_tag::overflow_arg_area"] [:: std :: mem :: offset_of ! (__va_list_tag , overflow_arg_area) - 8usize] ; ["Offset of field: __va_list_tag::reg_save_area"] [:: std :: mem :: offset_of ! (__va_list_tag , reg_save_area) - 16usize] ; } ;
[INFO] [stdout] 3 + # [repr (C)] # [derive (Copy , Clone , Debug , Default , Eq , Hash , Ord , PartialEq , PartialOrd)] pub struct __BindgenBitfieldUnit < Storage > { storage : Storage , } impl < Storage > __BindgenBitfieldUnit < Storage > { # [inline] pub const fn new (storage : Storage) -> Self { Self { storage } } } impl < Storage > __BindgenBitfieldUnit < Storage > where Storage : AsRef < [u8] > + AsMut < [u8] >, { # [inline] fn extract_bit (byte : u8 , index : usize) -> bool { let bit_index = if cfg ! (target_endian = "big") { 7 - (index % 8) } else { index % 8 } ; let mask = 1 << bit_index ; byte & mask == mask } # [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] ; Self :: extract_bit (byte , index) } # [inline] pub unsafe fn raw_get_bit (this : * const Self , index : usize) -> bool { debug_assert ! (index / 8 < core :: mem :: size_of ::< Storage > ()) ; let byte_index = index / 8 ; let byte = * (core :: ptr :: addr_of ! ((* this) . storage) as * const u8) . offset (byte_index as isize) ; Self :: extract_bit (byte , index) } # [inline] fn change_bit (byte : u8 , index : usize , val : bool) -> u8 { let bit_index = if cfg ! (target_endian = "big") { 7 - (index % 8) } else { index % 8 } ; let mask = 1 << bit_index ; if val { byte | mask } else { byte & ! 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] ; * byte = Self :: change_bit (* byte , index , val) ; } # [inline] pub unsafe fn raw_set_bit (this : * mut Self , index : usize , val : bool) { debug_assert ! (index / 8 < core :: mem :: size_of ::< Storage > ()) ; let byte_index = index / 8 ; let byte = (core :: ptr :: addr_of_mut ! ((* this) . storage) as * mut u8) . offset (byte_index as isize) ; * byte = Self :: change_bit (* byte , index , val) ; } # [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) { let index = if cfg ! (target_endian = "big") { bit_width as usize - 1 - i } else { i } ; val |= 1 << index ; } } val } # [inline] pub unsafe fn raw_get (this : * const Self , bit_offset : usize , bit_width : u8 ,) -> u64 { debug_assert ! (bit_width <= 64) ; debug_assert ! (bit_offset / 8 < core :: mem :: size_of ::< Storage > ()) ; debug_assert ! ((bit_offset + (bit_width as usize)) / 8 <= core :: mem :: size_of ::< Storage > ()) ; let mut val = 0 ; for i in 0 .. (bit_width as usize) { if Self :: raw_get_bit (this , i + bit_offset) { let index = if cfg ! (target_endian = "big") { bit_width as usize - 1 - i } else { i } ; val |= 1 << index ; } } 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 ; let index = if cfg ! (target_endian = "big") { bit_width as usize - 1 - i } else { i } ; self . set_bit (index + bit_offset , val_bit_is_set) ; } } # [inline] pub unsafe fn raw_set (this : * mut Self , bit_offset : usize , bit_width : u8 , val : u64 ,) { debug_assert ! (bit_width <= 64) ; debug_assert ! (bit_offset / 8 < core :: mem :: size_of ::< Storage > ()) ; debug_assert ! ((bit_offset + (bit_width as usize)) / 8 <= core :: mem :: size_of ::< Storage > ()) ; for i in 0 .. (bit_width as usize) { let mask = 1 << i ; let val_bit_is_set = val & mask == mask ; let index = if cfg ! (target_endian = "big") { bit_width as usize - 1 - i } else { i } ; Self :: raw_set_bit (this , index + bit_offset , val_bit_is_set) ; } } } # [derive (PartialEq , Copy , Clone , Hash , Debug , Default)] # [repr (C)] pub struct __BindgenComplex < T > { pub re : T , pub im : T } pub const __STDC_FORMAT_MACROS : u32 = 1 ; pub const _FEATURES_H : u32 = 1 ; pub const _DEFAULT_SOURCE : u32 = 1 ; pub const __GLIBC_USE_ISOC2Y : u32 = 0 ; pub const __GLIBC_USE_ISOC23 : u32 = 0 ; pub const __USE_ISOC11 : u32 = 1 ; pub const __USE_ISOC99 : u32 = 1 ; pub const __USE_ISOC95 : u32 = 1 ; pub const __USE_POSIX_IMPLICITLY : u32 = 1 ; pub const _POSIX_SOURCE : u32 = 1 ; pub const _POSIX_C_SOURCE : u32 = 202405 ; pub const __USE_POSIX : u32 = 1 ; pub const __USE_POSIX2 : u32 = 1 ; pub const __USE_POSIX199309 : u32 = 1 ; pub const __USE_POSIX199506 : u32 = 1 ; pub const __USE_XOPEN2K : u32 = 1 ; pub const __USE_XOPEN2K8 : u32 = 1 ; pub const _ATFILE_SOURCE : u32 = 1 ; pub const __USE_XOPEN2K24 : u32 = 1 ; pub const __WORDSIZE : u32 = 64 ; pub const __WORDSIZE_TIME64_COMPAT32 : u32 = 1 ; pub const __SYSCALL_WORDSIZE : u32 = 64 ; pub const __TIMESIZE : u32 = 64 ; pub const __USE_TIME_BITS64 : u32 = 1 ; pub const __USE_MISC : u32 = 1 ; pub const __USE_ATFILE : u32 = 1 ; pub const __USE_FORTIFY_LEVEL : u32 = 0 ; pub const __GLIBC_USE_DEPRECATED_GETS : u32 = 0 ; pub const __GLIBC_USE_DEPRECATED_SCANF : u32 = 0 ; pub const __GLIBC_USE_C23_STRTOL : u32 = 0 ; pub const _STDC_PREDEF_H : u32 = 1 ; pub const __STDC_IEC_559__ : u32 = 1 ; pub const __STDC_IEC_60559_BFP__ : u32 = 201404 ; pub const __STDC_IEC_559_COMPLEX__ : u32 = 1 ; pub const __STDC_IEC_60559_COMPLEX__ : u32 = 201404 ; pub const __STDC_ISO_10646__ : u32 = 201706 ; pub const __GNU_LIBRARY__ : u32 = 6 ; pub const __GLIBC__ : u32 = 2 ; pub const __GLIBC_MINOR__ : u32 = 43 ; pub const _SYS_CDEFS_H : u32 = 1 ; pub const __glibc_c99_flexarr_available : u32 = 1 ; pub const __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI : u32 = 0 ; pub const __HAVE_GENERIC_SELECTION : u32 = 1 ; pub const __GLIBC_USE_LIB_EXT2 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_BFP_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_BFP_EXT_C23 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_FUNCS_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_FUNCS_EXT_C23 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_TYPES_EXT : u32 = 0 ; pub const _STDLIB_H : u32 = 1 ; pub const WNOHANG : u32 = 1 ; pub const WUNTRACED : u32 = 2 ; pub const WSTOPPED : u32 = 2 ; pub const WEXITED : u32 = 4 ; pub const WCONTINUED : u32 = 8 ; pub const WNOWAIT : u32 = 16777216 ; pub const __WNOTHREAD : u32 = 536870912 ; pub const __WALL : u32 = 1073741824 ; pub const __WCLONE : u32 = 2147483648 ; pub const __W_CONTINUED : u32 = 65535 ; pub const __WCOREFLAG : u32 = 128 ; pub const __HAVE_FLOAT128 : u32 = 1 ; pub const __HAVE_DISTINCT_FLOAT128 : u32 = 1 ; pub const __HAVE_FLOAT64X : u32 = 1 ; pub const __HAVE_FLOAT64X_LONG_DOUBLE : u32 = 1 ; pub const __HAVE_FLOAT16 : u32 = 0 ; pub const __HAVE_FLOAT32 : u32 = 1 ; pub const __HAVE_FLOAT64 : u32 = 1 ; pub const __HAVE_FLOAT32X : u32 = 1 ; pub const __HAVE_FLOAT128X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT16 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT32 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT64 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT32X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT64X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT128X : u32 = 0 ; pub const __HAVE_FLOATN_NOT_TYPEDEF : u32 = 0 ; pub const __ldiv_t_defined : u32 = 1 ; pub const __lldiv_t_defined : u32 = 1 ; pub const RAND_MAX : u32 = 2147483647 ; pub const EXIT_FAILURE : u32 = 1 ; pub const EXIT_SUCCESS : u32 = 0 ; pub const _SYS_TYPES_H : u32 = 1 ; pub const _BITS_TYPES_H : u32 = 1 ; pub const _BITS_TYPESIZES_H : u32 = 1 ; pub const __OFF_T_MATCHES_OFF64_T : u32 = 1 ; pub const __INO_T_MATCHES_INO64_T : u32 = 1 ; pub const __RLIM_T_MATCHES_RLIM64_T : u32 = 1 ; pub const __STATFS_MATCHES_STATFS64 : u32 = 1 ; pub const __KERNEL_OLD_TIMEVAL_MATCHES_TIMEVAL64 : u32 = 1 ; pub const __FD_SETSIZE : u32 = 1024 ; pub const _BITS_TIME64_H : u32 = 1 ; pub const __clock_t_defined : u32 = 1 ; pub const __clockid_t_defined : u32 = 1 ; pub const __time_t_defined : u32 = 1 ; pub const __timer_t_defined : u32 = 1 ; pub const _BITS_STDINT_INTN_H : u32 = 1 ; pub const __BIT_TYPES_DEFINED__ : u32 = 1 ; pub const _ENDIAN_H : u32 = 1 ; pub const _BITS_ENDIAN_H : u32 = 1 ; pub const __LITTLE_ENDIAN : u32 = 1234 ; pub const __BIG_ENDIAN : u32 = 4321 ; pub const __PDP_ENDIAN : u32 = 3412 ; pub const _BITS_ENDIANNESS_H : u32 = 1 ; pub const __BYTE_ORDER : u32 = 1234 ; pub const __FLOAT_WORD_ORDER : u32 = 1234 ; pub const LITTLE_ENDIAN : u32 = 1234 ; pub const BIG_ENDIAN : u32 = 4321 ; pub const PDP_ENDIAN : u32 = 3412 ; pub const BYTE_ORDER : u32 = 1234 ; pub const _BITS_BYTESWAP_H : u32 = 1 ; pub const _BITS_UINTN_IDENTITY_H : u32 = 1 ; pub const _SYS_SELECT_H : u32 = 1 ; pub const __sigset_t_defined : u32 = 1 ; pub const __timeval_defined : u32 = 1 ; pub const _STRUCT_TIMESPEC : u32 = 1 ; pub const FD_SETSIZE : u32 = 1024 ; pub const _BITS_PTHREADTYPES_COMMON_H : u32 = 1 ; pub const _THREAD_SHARED_TYPES_H : u32 = 1 ; pub const _BITS_PTHREADTYPES_ARCH_H : u32 = 1 ; pub const __SIZEOF_PTHREAD_MUTEX_T : u32 = 40 ; pub const __SIZEOF_PTHREAD_ATTR_T : u32 = 56 ; pub const __SIZEOF_PTHREAD_RWLOCK_T : u32 = 56 ; pub const __SIZEOF_PTHREAD_BARRIER_T : u32 = 32 ; pub const __SIZEOF_PTHREAD_MUTEXATTR_T : u32 = 4 ; pub const __SIZEOF_PTHREAD_COND_T : u32 = 48 ; pub const __SIZEOF_PTHREAD_CONDATTR_T : u32 = 4 ; pub const __SIZEOF_PTHREAD_RWLOCKATTR_T : u32 = 8 ; pub const __SIZEOF_PTHREAD_BARRIERATTR_T : u32 = 4 ; pub const _THREAD_MUTEX_INTERNAL_H : u32 = 1 ; pub const __PTHREAD_MUTEX_HAVE_PREV : u32 = 1 ; pub const __have_pthread_attr_t : u32 = 1 ; pub const _ALLOCA_H : u32 = 1 ; pub const _INTTYPES_H : u32 = 1 ; pub const _STDINT_H : u32 = 1 ; pub const _BITS_WCHAR_H : u32 = 1 ; pub const _BITS_STDINT_UINTN_H : u32 = 1 ; pub const _BITS_STDINT_LEAST_H : u32 = 1 ; pub const INT8_MIN : i32 = - 128 ; pub const INT16_MIN : i32 = - 32768 ; pub const INT32_MIN : i32 = - 2147483648 ; pub const INT8_MAX : u32 = 127 ; pub const INT16_MAX : u32 = 32767 ; pub const INT32_MAX : u32 = 2147483647 ; pub const UINT8_MAX : u32 = 255 ; pub const UINT16_MAX : u32 = 65535 ; pub const UINT32_MAX : u32 = 4294967295 ; pub const INT_LEAST8_MIN : i32 = - 128 ; pub const INT_LEAST16_MIN : i32 = - 32768 ; pub const INT_LEAST32_MIN : i32 = - 2147483648 ; pub const INT_LEAST8_MAX : u32 = 127 ; pub const INT_LEAST16_MAX : u32 = 32767 ; pub const INT_LEAST32_MAX : u32 = 2147483647 ; pub const UINT_LEAST8_MAX : u32 = 255 ; pub const UINT_LEAST16_MAX : u32 = 65535 ; pub const UINT_LEAST32_MAX : u32 = 4294967295 ; pub const INT_FAST8_MIN : i32 = - 128 ; pub const INT_FAST16_MIN : i64 = - 9223372036854775808 ; pub const INT_FAST32_MIN : i64 = - 9223372036854775808 ; pub const INT_FAST8_MAX : u32 = 127 ; pub const INT_FAST16_MAX : u64 = 9223372036854775807 ; pub const INT_FAST32_MAX : u64 = 9223372036854775807 ; pub const UINT_FAST8_MAX : u32 = 255 ; pub const UINT_FAST16_MAX : i32 = - 1 ; pub const UINT_FAST32_MAX : i32 = - 1 ; pub const INTPTR_MIN : i64 = - 9223372036854775808 ; pub const INTPTR_MAX : u64 = 9223372036854775807 ; pub const UINTPTR_MAX : i32 = - 1 ; pub const PTRDIFF_MIN : i64 = - 9223372036854775808 ; pub const PTRDIFF_MAX : u64 = 9223372036854775807 ; pub const SIG_ATOMIC_MIN : i32 = - 2147483648 ; pub const SIG_ATOMIC_MAX : u32 = 2147483647 ; pub const SIZE_MAX : i32 = - 1 ; pub const WINT_MIN : u32 = 0 ; pub const WINT_MAX : u32 = 4294967295 ; pub const ____gwchar_t_defined : u32 = 1 ; pub const __PRI64_PREFIX : & [u8 ; 2] = b"l\0" ; pub const __PRIPTR_PREFIX : & [u8 ; 2] = b"l\0" ; pub const PRId8 : & [u8 ; 4] = b"hhd\0" ; pub const PRId16 : & [u8 ; 3] = b"hd\0" ; pub const PRId32 : & [u8 ; 2] = b"d\0" ; pub const PRId64 : & [u8 ; 3] = b"ld\0" ; pub const PRIdLEAST8 : & [u8 ; 4] = b"hhd\0" ; pub const PRIdLEAST16 : & [u8 ; 3] = b"hd\0" ; pub const PRIdLEAST32 : & [u8 ; 2] = b"d\0" ; pub const PRIdLEAST64 : & [u8 ; 3] = b"ld\0" ; pub const PRIdFAST8 : & [u8 ; 4] = b"hhd\0" ; pub const PRIdFAST16 : & [u8 ; 3] = b"ld\0" ; pub const PRIdFAST32 : & [u8 ; 3] = b"ld\0" ; pub const PRIdFAST64 : & [u8 ; 3] = b"ld\0" ; pub const PRIi8 : & [u8 ; 4] = b"hhi\0" ; pub const PRIi16 : & [u8 ; 3] = b"hi\0" ; pub const PRIi32 : & [u8 ; 2] = b"i\0" ; pub const PRIi64 : & [u8 ; 3] = b"li\0" ; pub const PRIiLEAST8 : & [u8 ; 4] = b"hhi\0" ; pub const PRIiLEAST16 : & [u8 ; 3] = b"hi\0" ; pub const PRIiLEAST32 : & [u8 ; 2] = b"i\0" ; pub const PRIiLEAST64 : & [u8 ; 3] = b"li\0" ; pub const PRIiFAST8 : & [u8 ; 4] = b"hhi\0" ; pub const PRIiFAST16 : & [u8 ; 3] = b"li\0" ; pub const PRIiFAST32 : & [u8 ; 3] = b"li\0" ; pub const PRIiFAST64 : & [u8 ; 3] = b"li\0" ; pub const PRIo8 : & [u8 ; 4] = b"hho\0" ; pub const PRIo16 : & [u8 ; 3] = b"ho\0" ; pub const PRIo32 : & [u8 ; 2] = b"o\0" ; pub const PRIo64 : & [u8 ; 3] = b"lo\0" ; pub const PRIoLEAST8 : & [u8 ; 4] = b"hho\0" ; pub const PRIoLEAST16 : & [u8 ; 3] = b"ho\0" ; pub const PRIoLEAST32 : & [u8 ; 2] = b"o\0" ; pub const PRIoLEAST64 : & [u8 ; 3] = b"lo\0" ; pub const PRIoFAST8 : & [u8 ; 4] = b"hho\0" ; pub const PRIoFAST16 : & [u8 ; 3] = b"lo\0" ; pub const PRIoFAST32 : & [u8 ; 3] = b"lo\0" ; pub const PRIoFAST64 : & [u8 ; 3] = b"lo\0" ; pub const PRIu8 : & [u8 ; 4] = b"hhu\0" ; pub const PRIu16 : & [u8 ; 3] = b"hu\0" ; pub const PRIu32 : & [u8 ; 2] = b"u\0" ; pub const PRIu64 : & [u8 ; 3] = b"lu\0" ; pub const PRIuLEAST8 : & [u8 ; 4] = b"hhu\0" ; pub const PRIuLEAST16 : & [u8 ; 3] = b"hu\0" ; pub const PRIuLEAST32 : & [u8 ; 2] = b"u\0" ; pub const PRIuLEAST64 : & [u8 ; 3] = b"lu\0" ; pub const PRIuFAST8 : & [u8 ; 4] = b"hhu\0" ; pub const PRIuFAST16 : & [u8 ; 3] = b"lu\0" ; pub const PRIuFAST32 : & [u8 ; 3] = b"lu\0" ; pub const PRIuFAST64 : & [u8 ; 3] = b"lu\0" ; pub const PRIx8 : & [u8 ; 4] = b"hhx\0" ; pub const PRIx16 : & [u8 ; 3] = b"hx\0" ; pub const PRIx32 : & [u8 ; 2] = b"x\0" ; pub const PRIx64 : & [u8 ; 3] = b"lx\0" ; pub const PRIxLEAST8 : & [u8 ; 4] = b"hhx\0" ; pub const PRIxLEAST16 : & [u8 ; 3] = b"hx\0" ; pub const PRIxLEAST32 : & [u8 ; 2] = b"x\0" ; pub const PRIxLEAST64 : & [u8 ; 3] = b"lx\0" ; pub const PRIxFAST8 : & [u8 ; 4] = b"hhx\0" ; pub const PRIxFAST16 : & [u8 ; 3] = b"lx\0" ; pub const PRIxFAST32 : & [u8 ; 3] = b"lx\0" ; pub const PRIxFAST64 : & [u8 ; 3] = b"lx\0" ; pub const PRIX8 : & [u8 ; 4] = b"hhX\0" ; pub const PRIX16 : & [u8 ; 3] = b"hX\0" ; pub const PRIX32 : & [u8 ; 2] = b"X\0" ; pub const PRIX64 : & [u8 ; 3] = b"lX\0" ; pub const PRIXLEAST8 : & [u8 ; 4] = b"hhX\0" ; pub const PRIXLEAST16 : & [u8 ; 3] = b"hX\0" ; pub const PRIXLEAST32 : & [u8 ; 2] = b"X\0" ; pub const PRIXLEAST64 : & [u8 ; 3] = b"lX\0" ; pub const PRIXFAST8 : & [u8 ; 4] = b"hhX\0" ; pub const PRIXFAST16 : & [u8 ; 3] = b"lX\0" ; pub const PRIXFAST32 : & [u8 ; 3] = b"lX\0" ; pub const PRIXFAST64 : & [u8 ; 3] = b"lX\0" ; pub const PRIdMAX : & [u8 ; 3] = b"ld\0" ; pub const PRIiMAX : & [u8 ; 3] = b"li\0" ; pub const PRIoMAX : & [u8 ; 3] = b"lo\0" ; pub const PRIuMAX : & [u8 ; 3] = b"lu\0" ; pub const PRIxMAX : & [u8 ; 3] = b"lx\0" ; pub const PRIXMAX : & [u8 ; 3] = b"lX\0" ; pub const PRIdPTR : & [u8 ; 3] = b"ld\0" ; pub const PRIiPTR : & [u8 ; 3] = b"li\0" ; pub const PRIoPTR : & [u8 ; 3] = b"lo\0" ; pub const PRIuPTR : & [u8 ; 3] = b"lu\0" ; pub const PRIxPTR : & [u8 ; 3] = b"lx\0" ; pub const PRIXPTR : & [u8 ; 3] = b"lX\0" ; pub const SCNd8 : & [u8 ; 4] = b"hhd\0" ; pub const SCNd16 : & [u8 ; 3] = b"hd\0" ; pub const SCNd32 : & [u8 ; 2] = b"d\0" ; pub const SCNd64 : & [u8 ; 3] = b"ld\0" ; pub const SCNdLEAST8 : & [u8 ; 4] = b"hhd\0" ; pub const SCNdLEAST16 : & [u8 ; 3] = b"hd\0" ; pub const SCNdLEAST32 : & [u8 ; 2] = b"d\0" ; pub const SCNdLEAST64 : & [u8 ; 3] = b"ld\0" ; pub const SCNdFAST8 : & [u8 ; 4] = b"hhd\0" ; pub const SCNdFAST16 : & [u8 ; 3] = b"ld\0" ; pub const SCNdFAST32 : & [u8 ; 3] = b"ld\0" ; pub const SCNdFAST64 : & [u8 ; 3] = b"ld\0" ; pub const SCNi8 : & [u8 ; 4] = b"hhi\0" ; pub const SCNi16 : & [u8 ; 3] = b"hi\0" ; pub const SCNi32 : & [u8 ; 2] = b"i\0" ; pub const SCNi64 : & [u8 ; 3] = b"li\0" ; pub const SCNiLEAST8 : & [u8 ; 4] = b"hhi\0" ; pub const SCNiLEAST16 : & [u8 ; 3] = b"hi\0" ; pub const SCNiLEAST32 : & [u8 ; 2] = b"i\0" ; pub const SCNiLEAST64 : & [u8 ; 3] = b"li\0" ; pub const SCNiFAST8 : & [u8 ; 4] = b"hhi\0" ; pub const SCNiFAST16 : & [u8 ; 3] = b"li\0" ; pub const SCNiFAST32 : & [u8 ; 3] = b"li\0" ; pub const SCNiFAST64 : & [u8 ; 3] = b"li\0" ; pub const SCNu8 : & [u8 ; 4] = b"hhu\0" ; pub const SCNu16 : & [u8 ; 3] = b"hu\0" ; pub const SCNu32 : & [u8 ; 2] = b"u\0" ; pub const SCNu64 : & [u8 ; 3] = b"lu\0" ; pub const SCNuLEAST8 : & [u8 ; 4] = b"hhu\0" ; pub const SCNuLEAST16 : & [u8 ; 3] = b"hu\0" ; pub const SCNuLEAST32 : & [u8 ; 2] = b"u\0" ; pub const SCNuLEAST64 : & [u8 ; 3] = b"lu\0" ; pub const SCNuFAST8 : & [u8 ; 4] = b"hhu\0" ; pub const SCNuFAST16 : & [u8 ; 3] = b"lu\0" ; pub const SCNuFAST32 : & [u8 ; 3] = b"lu\0" ; pub const SCNuFAST64 : & [u8 ; 3] = b"lu\0" ; pub const SCNo8 : & [u8 ; 4] = b"hho\0" ; pub const SCNo16 : & [u8 ; 3] = b"ho\0" ; pub const SCNo32 : & [u8 ; 2] = b"o\0" ; pub const SCNo64 : & [u8 ; 3] = b"lo\0" ; pub const SCNoLEAST8 : & [u8 ; 4] = b"hho\0" ; pub const SCNoLEAST16 : & [u8 ; 3] = b"ho\0" ; pub const SCNoLEAST32 : & [u8 ; 2] = b"o\0" ; pub const SCNoLEAST64 : & [u8 ; 3] = b"lo\0" ; pub const SCNoFAST8 : & [u8 ; 4] = b"hho\0" ; pub const SCNoFAST16 : & [u8 ; 3] = b"lo\0" ; pub const SCNoFAST32 : & [u8 ; 3] = b"lo\0" ; pub const SCNoFAST64 : & [u8 ; 3] = b"lo\0" ; pub const SCNx8 : & [u8 ; 4] = b"hhx\0" ; pub const SCNx16 : & [u8 ; 3] = b"hx\0" ; pub const SCNx32 : & [u8 ; 2] = b"x\0" ; pub const SCNx64 : & [u8 ; 3] = b"lx\0" ; pub const SCNxLEAST8 : & [u8 ; 4] = b"hhx\0" ; pub const SCNxLEAST16 : & [u8 ; 3] = b"hx\0" ; pub const SCNxLEAST32 : & [u8 ; 2] = b"x\0" ; pub const SCNxLEAST64 : & [u8 ; 3] = b"lx\0" ; pub const SCNxFAST8 : & [u8 ; 4] = b"hhx\0" ; pub const SCNxFAST16 : & [u8 ; 3] = b"lx\0" ; pub const SCNxFAST32 : & [u8 ; 3] = b"lx\0" ; pub const SCNxFAST64 : & [u8 ; 3] = b"lx\0" ; pub const SCNdMAX : & [u8 ; 3] = b"ld\0" ; pub const SCNiMAX : & [u8 ; 3] = b"li\0" ; pub const SCNoMAX : & [u8 ; 3] = b"lo\0" ; pub const SCNuMAX : & [u8 ; 3] = b"lu\0" ; pub const SCNxMAX : & [u8 ; 3] = b"lx\0" ; pub const SCNdPTR : & [u8 ; 3] = b"ld\0" ; pub const SCNiPTR : & [u8 ; 3] = b"li\0" ; pub const SCNoPTR : & [u8 ; 3] = b"lo\0" ; pub const SCNuPTR : & [u8 ; 3] = b"lu\0" ; pub const SCNxPTR : & [u8 ; 3] = b"lx\0" ; pub const _MATH_H : u32 = 1 ; pub const _BITS_LIBM_SIMD_DECL_STUBS_H : u32 = 1 ; pub const __FP_LOGB0_IS_MIN : u32 = 1 ; pub const __FP_LOGBNAN_IS_MIN : u32 = 1 ; pub const FP_ILOGB0 : i32 = - 2147483648 ; pub const FP_ILOGBNAN : i32 = - 2147483648 ; pub const __MATH_DECLARING_DOUBLE : u32 = 1 ; pub const __MATH_DECLARING_FLOATN : u32 = 0 ; pub const __MATH_DECLARE_LDOUBLE : u32 = 1 ; pub const MATH_ERRNO : u32 = 1 ; pub const MATH_ERREXCEPT : u32 = 2 ; pub const math_errhandling : u32 = 3 ; pub const M_E : f64 = 2.718281828459045 ; pub const M_LOG2E : f64 = 1.4426950408889634 ; pub const M_LOG10E : f64 = 0.4342944819032518 ; pub const M_LN2 : f64 = 0.6931471805599453 ; pub const M_LN10 : f64 = 2.302585092994046 ; pub const M_PI : f64 = 3.141592653589793 ; pub const M_PI_2 : f64 = 1.5707963267948966 ; pub const M_PI_4 : f64 = 0.7853981633974483 ; pub const M_1_PI : f64 = 0.3183098861837907 ; pub const M_2_PI : f64 = 0.6366197723675814 ; pub const M_2_SQRTPI : f64 = 1.1283791670955126 ; pub const M_SQRT2 : f64 = 1.4142135623730951 ; pub const M_SQRT1_2 : f64 = 0.7071067811865476 ; pub const LAYER_INIT_SHA : i32 = - 1 ; pub const _STDIO_H : u32 = 1 ; pub const _____fpos_t_defined : u32 = 1 ; pub const ____mbstate_t_defined : u32 = 1 ; pub const _____fpos64_t_defined : u32 = 1 ; pub const ____FILE_defined : u32 = 1 ; pub const __FILE_defined : u32 = 1 ; pub const __struct_FILE_defined : u32 = 1 ; pub const _IO_EOF_SEEN : u32 = 16 ; pub const _IO_ERR_SEEN : u32 = 32 ; pub const _IO_USER_LOCK : u32 = 32768 ; pub const __cookie_io_functions_t_defined : u32 = 1 ; pub const _IOFBF : u32 = 0 ; pub const _IOLBF : u32 = 1 ; pub const _IONBF : u32 = 2 ; pub const BUFSIZ : u32 = 8192 ; pub const EOF : i32 = - 1 ; pub const SEEK_SET : u32 = 0 ; pub const SEEK_CUR : u32 = 1 ; pub const SEEK_END : u32 = 2 ; pub const P_tmpdir : & [u8 ; 5] = b"/tmp\0" ; pub const L_tmpnam : u32 = 20 ; pub const TMP_MAX : u32 = 238328 ; pub const _BITS_STDIO_LIM_H : u32 = 1 ; pub const FILENAME_MAX : u32 = 4096 ; pub const L_ctermid : u32 = 9 ; pub const FOPEN_MAX : u32 = 16 ; pub type wchar_t = :: std :: os :: raw :: c_int ; pub type __cfloat128 = __BindgenComplex < u128 > ; pub type _Float128 = u128 ; pub type _Float32 = f32 ; pub type _Float64 = f64 ; pub type _Float32x = f64 ; pub type _Float64x = u128 ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct div_t { pub quot : :: std :: os :: raw :: c_int , pub rem : :: std :: os :: raw :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of div_t"] [:: std :: mem :: size_of :: < div_t > () - 8usize] ; ["Alignment of div_t"] [:: std :: mem :: align_of :: < div_t > () - 4usize] ; ["Offset of field: div_t::quot"] [:: std :: mem :: offset_of ! (div_t , quot) - 0usize] ; ["Offset of field: div_t::rem"] [:: std :: mem :: offset_of ! (div_t , rem) - 4usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ldiv_t { pub quot : :: std :: os :: raw :: c_long , pub rem : :: std :: os :: raw :: c_long , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ldiv_t"] [:: std :: mem :: size_of :: < ldiv_t > () - 16usize] ; ["Alignment of ldiv_t"] [:: std :: mem :: align_of :: < ldiv_t > () - 8usize] ; ["Offset of field: ldiv_t::quot"] [:: std :: mem :: offset_of ! (ldiv_t , quot) - 0usize] ; ["Offset of field: ldiv_t::rem"] [:: std :: mem :: offset_of ! (ldiv_t , rem) - 8usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct lldiv_t { pub quot : :: std :: os :: raw :: c_longlong , pub rem : :: std :: os :: raw :: c_longlong , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of lldiv_t"] [:: std :: mem :: size_of :: < lldiv_t > () - 16usize] ; ["Alignment of lldiv_t"] [:: std :: mem :: align_of :: < lldiv_t > () - 8usize] ; ["Offset of field: lldiv_t::quot"] [:: std :: mem :: offset_of ! (lldiv_t , quot) - 0usize] ; ["Offset of field: lldiv_t::rem"] [:: std :: mem :: offset_of ! (lldiv_t , rem) - 8usize] ; } ; unsafe extern "C" { pub fn __ctype_get_mb_cur_max () -> usize ; } unsafe extern "C" { pub fn atof (__nptr : * const :: std :: os :: raw :: c_char) -> f64 ; } unsafe extern "C" { pub fn atoi (__nptr : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn atol (__nptr : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn atoll (__nptr : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn strtod (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char) -> f64 ; } unsafe extern "C" { pub fn strtof (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char) -> f32 ; } unsafe extern "C" { pub fn strtold (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char) -> u128 ; } unsafe extern "C" { pub fn strtol (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn strtoul (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_ulong ; } unsafe extern "C" { pub fn strtoq (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn strtouq (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_ulonglong ; } unsafe extern "C" { pub fn strtoll (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn strtoull (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_ulonglong ; } unsafe extern "C" { pub fn l64a (__n : :: std :: os :: raw :: c_long) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn a64l (__s : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_long ; } pub type __u_char = :: std :: os :: raw :: c_uchar ; pub type __u_short = :: std :: os :: raw :: c_ushort ; pub type __u_int = :: std :: os :: raw :: c_uint ; pub type __u_long = :: std :: os :: raw :: c_ulong ; 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_long ; pub type __uint64_t = :: std :: os :: raw :: c_ulong ; pub type __int_least8_t = __int8_t ; pub type __uint_least8_t = __uint8_t ; pub type __int_least16_t = __int16_t ; pub type __uint_least16_t = __uint16_t ; pub type __int_least32_t = __int32_t ; pub type __uint_least32_t = __uint32_t ; pub type __int_least64_t = __int64_t ; pub type __uint_least64_t = __uint64_t ; pub type __quad_t = :: std :: os :: raw :: c_long ; pub type __u_quad_t = :: std :: os :: raw :: c_ulong ; pub type __intmax_t = :: std :: os :: raw :: c_long ; pub type __uintmax_t = :: std :: os :: raw :: c_ulong ; pub type __dev_t = :: std :: os :: raw :: c_ulong ; pub type __uid_t = :: std :: os :: raw :: c_uint ; pub type __gid_t = :: std :: os :: raw :: c_uint ; pub type __ino_t = :: std :: os :: raw :: c_ulong ; pub type __ino64_t = :: std :: os :: raw :: c_ulong ; pub type __mode_t = :: std :: os :: raw :: c_uint ; pub type __nlink_t = :: std :: os :: raw :: c_ulong ; pub type __off_t = :: std :: os :: raw :: c_long ; pub type __off64_t = :: std :: os :: raw :: c_long ; pub type __pid_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [:: std :: os :: raw :: c_int ; 2usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __fsid_t"] [:: std :: mem :: size_of :: < __fsid_t > () - 8usize] ; ["Alignment of __fsid_t"] [:: std :: mem :: align_of :: < __fsid_t > () - 4usize] ; ["Offset of field: __fsid_t::__val"] [:: std :: mem :: offset_of ! (__fsid_t , __val) - 0usize] ; } ; pub type __clock_t = :: std :: os :: raw :: c_long ; pub type __rlim_t = :: std :: os :: raw :: c_ulong ; pub type __rlim64_t = :: std :: os :: raw :: c_ulong ; pub type __id_t = :: std :: os :: raw :: c_uint ; pub type __time_t = :: std :: os :: raw :: c_long ; pub type __useconds_t = :: std :: os :: raw :: c_uint ; pub type __suseconds_t = :: std :: os :: raw :: c_long ; pub type __suseconds64_t = :: std :: os :: raw :: c_long ; pub type __daddr_t = :: std :: os :: raw :: c_int ; pub type __key_t = :: std :: os :: raw :: c_int ; pub type __clockid_t = :: std :: os :: raw :: c_int ; pub type __timer_t = * mut :: std :: os :: raw :: c_void ; pub type __blksize_t = :: std :: os :: raw :: c_long ; pub type __blkcnt_t = :: std :: os :: raw :: c_long ; pub type __blkcnt64_t = :: std :: os :: raw :: c_long ; pub type __fsblkcnt_t = :: std :: os :: raw :: c_ulong ; pub type __fsblkcnt64_t = :: std :: os :: raw :: c_ulong ; pub type __fsfilcnt_t = :: std :: os :: raw :: c_ulong ; pub type __fsfilcnt64_t = :: std :: os :: raw :: c_ulong ; pub type __fsword_t = :: std :: os :: raw :: c_long ; pub type __ssize_t = :: std :: os :: raw :: c_long ; pub type __syscall_slong_t = :: std :: os :: raw :: c_long ; pub type __syscall_ulong_t = :: std :: os :: raw :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut :: std :: os :: raw :: c_char ; pub type __intptr_t = :: std :: os :: raw :: c_long ; pub type __socklen_t = :: std :: os :: raw :: c_uint ; pub type __sig_atomic_t = :: std :: os :: raw :: c_int ; pub type u_char = __u_char ; pub type u_short = __u_short ; pub type u_int = __u_int ; pub type u_long = __u_long ; pub type quad_t = __quad_t ; pub type u_quad_t = __u_quad_t ; pub type fsid_t = __fsid_t ; pub type loff_t = __loff_t ; pub type ino_t = __ino_t ; pub type dev_t = __dev_t ; pub type gid_t = __gid_t ; pub type mode_t = __mode_t ; pub type nlink_t = __nlink_t ; pub type uid_t = __uid_t ; pub type off_t = __off_t ; pub type pid_t = __pid_t ; pub type id_t = __id_t ; pub type daddr_t = __daddr_t ; pub type caddr_t = __caddr_t ; pub type key_t = __key_t ; pub type clock_t = __clock_t ; pub type clockid_t = __clockid_t ; pub type time_t = __time_t ; pub type timer_t = __timer_t ; pub type ulong = :: std :: os :: raw :: c_ulong ; pub type ushort = :: std :: os :: raw :: c_ushort ; pub type uint = :: std :: os :: raw :: c_uint ; pub type u_int8_t = __uint8_t ; pub type u_int16_t = __uint16_t ; pub type u_int32_t = __uint32_t ; pub type u_int64_t = __uint64_t ; pub type register_t = :: std :: os :: raw :: c_long ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __sigset_t { pub __val : [:: std :: os :: raw :: c_ulong ; 16usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __sigset_t"] [:: std :: mem :: size_of :: < __sigset_t > () - 128usize] ; ["Alignment of __sigset_t"] [:: std :: mem :: align_of :: < __sigset_t > () - 8usize] ; ["Offset of field: __sigset_t::__val"] [:: std :: mem :: offset_of ! (__sigset_t , __val) - 0usize] ; } ; pub type sigset_t = __sigset_t ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct timeval { pub tv_sec : __time_t , pub tv_usec : __suseconds_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of timeval"] [:: std :: mem :: size_of :: < timeval > () - 16usize] ; ["Alignment of timeval"] [:: std :: mem :: align_of :: < timeval > () - 8usize] ; ["Offset of field: timeval::tv_sec"] [:: std :: mem :: offset_of ! (timeval , tv_sec) - 0usize] ; ["Offset of field: timeval::tv_usec"] [:: std :: mem :: offset_of ! (timeval , tv_usec) - 8usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct timespec { pub tv_sec : __time_t , pub tv_nsec : __syscall_slong_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of timespec"] [:: std :: mem :: size_of :: < timespec > () - 16usize] ; ["Alignment of timespec"] [:: std :: mem :: align_of :: < timespec > () - 8usize] ; ["Offset of field: timespec::tv_sec"] [:: std :: mem :: offset_of ! (timespec , tv_sec) - 0usize] ; ["Offset of field: timespec::tv_nsec"] [:: std :: mem :: offset_of ! (timespec , tv_nsec) - 8usize] ; } ; pub type suseconds_t = __suseconds_t ; pub type __fd_mask = :: std :: os :: raw :: c_long ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct fd_set { pub __fds_bits : [__fd_mask ; 16usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of fd_set"] [:: std :: mem :: size_of :: < fd_set > () - 128usize] ; ["Alignment of fd_set"] [:: std :: mem :: align_of :: < fd_set > () - 8usize] ; ["Offset of field: fd_set::__fds_bits"] [:: std :: mem :: offset_of ! (fd_set , __fds_bits) - 0usize] ; } ; pub type fd_mask = __fd_mask ; unsafe extern "C" { pub fn select (__nfds : :: std :: os :: raw :: c_int , __readfds : * mut fd_set , __writefds : * mut fd_set , __exceptfds : * mut fd_set , __timeout : * mut timeval) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn pselect (__nfds : :: std :: os :: raw :: c_int , __readfds : * mut fd_set , __writefds : * mut fd_set , __exceptfds : * mut fd_set , __timeout : * const timespec , __sigmask : * const __sigset_t) -> :: std :: os :: raw :: c_int ; } pub type blksize_t = __blksize_t ; pub type blkcnt_t = __blkcnt_t ; pub type fsblkcnt_t = __fsblkcnt_t ; pub type fsfilcnt_t = __fsfilcnt_t ; # [repr (C)] # [derive (Copy , Clone)] pub union __atomic_wide_counter { pub __value64 : :: std :: os :: raw :: c_ulonglong , pub __value32 : __atomic_wide_counter__bindgen_ty_1 , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __atomic_wide_counter__bindgen_ty_1 { pub __low : :: std :: os :: raw :: c_uint , pub __high : :: std :: os :: raw :: c_uint , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __atomic_wide_counter__bindgen_ty_1"] [:: std :: mem :: size_of :: < __atomic_wide_counter__bindgen_ty_1 > () - 8usize] ; ["Alignment of __atomic_wide_counter__bindgen_ty_1"] [:: std :: mem :: align_of :: < __atomic_wide_counter__bindgen_ty_1 > () - 4usize] ; ["Offset of field: __atomic_wide_counter__bindgen_ty_1::__low"] [:: std :: mem :: offset_of ! (__atomic_wide_counter__bindgen_ty_1 , __low) - 0usize] ; ["Offset of field: __atomic_wide_counter__bindgen_ty_1::__high"] [:: std :: mem :: offset_of ! (__atomic_wide_counter__bindgen_ty_1 , __high) - 4usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __atomic_wide_counter"] [:: std :: mem :: size_of :: < __atomic_wide_counter > () - 8usize] ; ["Alignment of __atomic_wide_counter"] [:: std :: mem :: align_of :: < __atomic_wide_counter > () - 8usize] ; ["Offset of field: __atomic_wide_counter::__value64"] [:: std :: mem :: offset_of ! (__atomic_wide_counter , __value64) - 0usize] ; ["Offset of field: __atomic_wide_counter::__value32"] [:: std :: mem :: offset_of ! (__atomic_wide_counter , __value32) - 0usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_internal_list { pub __prev : * mut __pthread_internal_list , pub __next : * mut __pthread_internal_list , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __pthread_internal_list"] [:: std :: mem :: size_of :: < __pthread_internal_list > () - 16usize] ; ["Alignment of __pthread_internal_list"] [:: std :: mem :: align_of :: < __pthread_internal_list > () - 8usize] ; ["Offset of field: __pthread_internal_list::__prev"] [:: std :: mem :: offset_of ! (__pthread_internal_list , __prev) - 0usize] ; ["Offset of field: __pthread_internal_list::__next"] [:: std :: mem :: offset_of ! (__pthread_internal_list , __next) - 8usize] ; } ; pub type __pthread_list_t = __pthread_internal_list ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_internal_slist { pub __next : * mut __pthread_internal_slist , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __pthread_internal_slist"] [:: std :: mem :: size_of :: < __pthread_internal_slist > () - 8usize] ; ["Alignment of __pthread_internal_slist"] [:: std :: mem :: align_of :: < __pthread_internal_slist > () - 8usize] ; ["Offset of field: __pthread_internal_slist::__next"] [:: std :: mem :: offset_of ! (__pthread_internal_slist , __next) - 0usize] ; } ; pub type __pthread_slist_t = __pthread_internal_slist ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_mutex_s { pub __lock : :: std :: os :: raw :: c_int , pub __count : :: std :: os :: raw :: c_uint , pub __owner : :: std :: os :: raw :: c_int , pub __nusers : :: std :: os :: raw :: c_uint , pub __kind : :: std :: os :: raw :: c_int , pub __spins : :: std :: os :: raw :: c_short , pub __unused : :: std :: os :: raw :: c_short , pub __list : __pthread_list_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __pthread_mutex_s"] [:: std :: mem :: size_of :: < __pthread_mutex_s > () - 40usize] ; ["Alignment of __pthread_mutex_s"] [:: std :: mem :: align_of :: < __pthread_mutex_s > () - 8usize] ; ["Offset of field: __pthread_mutex_s::__lock"] [:: std :: mem :: offset_of ! (__pthread_mutex_s , __lock) - 0usize] ; ["Offset of field: __pthread_mutex_s::__count"] [:: std :: mem :: offset_of ! (__pthread_mutex_s , __count) - 4usize] ; ["Offset of field: __pthread_mutex_s::__owner"] [:: std :: mem :: offset_of ! (__pthread_mutex_s , __owner) - 8usize] ; ["Offset of field: __pthread_mutex_s::__nusers"] [:: std :: mem :: offset_of ! (__pthread_mutex_s , __nusers) - 12usize] ; ["Offset of field: __pthread_mutex_s::__kind"] [:: std :: mem :: offset_of ! (__pthread_mutex_s , __kind) - 16usize] ; ["Offset of field: __pthread_mutex_s::__spins"] [:: std :: mem :: offset_of ! (__pthread_mutex_s , __spins) - 20usize] ; ["Offset of field: __pthread_mutex_s::__unused"] [:: std :: mem :: offset_of ! (__pthread_mutex_s , __unused) - 22usize] ; ["Offset of field: __pthread_mutex_s::__list"] [:: std :: mem :: offset_of ! (__pthread_mutex_s , __list) - 24usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_rwlock_arch_t { pub __readers : :: std :: os :: raw :: c_uint , pub __writers : :: std :: os :: raw :: c_uint , pub __wrphase_futex : :: std :: os :: raw :: c_uint , pub __writers_futex : :: std :: os :: raw :: c_uint , pub __pad3 : :: std :: os :: raw :: c_uint , pub __pad4 : :: std :: os :: raw :: c_uint , pub __cur_writer : :: std :: os :: raw :: c_int , pub __shared : :: std :: os :: raw :: c_int , pub __pad1 : :: std :: os :: raw :: c_ulong , pub __pad2 : :: std :: os :: raw :: c_ulong , pub __flags : :: std :: os :: raw :: c_uint , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __pthread_rwlock_arch_t"] [:: std :: mem :: size_of :: < __pthread_rwlock_arch_t > () - 56usize] ; ["Alignment of __pthread_rwlock_arch_t"] [:: std :: mem :: align_of :: < __pthread_rwlock_arch_t > () - 8usize] ; ["Offset of field: __pthread_rwlock_arch_t::__readers"] [:: std :: mem :: offset_of ! (__pthread_rwlock_arch_t , __readers) - 0usize] ; ["Offset of field: __pthread_rwlock_arch_t::__writers"] [:: std :: mem :: offset_of ! (__pthread_rwlock_arch_t , __writers) - 4usize] ; ["Offset of field: __pthread_rwlock_arch_t::__wrphase_futex"] [:: std :: mem :: offset_of ! (__pthread_rwlock_arch_t , __wrphase_futex) - 8usize] ; ["Offset of field: __pthread_rwlock_arch_t::__writers_futex"] [:: std :: mem :: offset_of ! (__pthread_rwlock_arch_t , __writers_futex) - 12usize] ; ["Offset of field: __pthread_rwlock_arch_t::__pad3"] [:: std :: mem :: offset_of ! (__pthread_rwlock_arch_t , __pad3) - 16usize] ; ["Offset of field: __pthread_rwlock_arch_t::__pad4"] [:: std :: mem :: offset_of ! (__pthread_rwlock_arch_t , __pad4) - 20usize] ; ["Offset of field: __pthread_rwlock_arch_t::__cur_writer"] [:: std :: mem :: offset_of ! (__pthread_rwlock_arch_t , __cur_writer) - 24usize] ; ["Offset of field: __pthread_rwlock_arch_t::__shared"] [:: std :: mem :: offset_of ! (__pthread_rwlock_arch_t , __shared) - 28usize] ; ["Offset of field: __pthread_rwlock_arch_t::__pad1"] [:: std :: mem :: offset_of ! (__pthread_rwlock_arch_t , __pad1) - 32usize] ; ["Offset of field: __pthread_rwlock_arch_t::__pad2"] [:: std :: mem :: offset_of ! (__pthread_rwlock_arch_t , __pad2) - 40usize] ; ["Offset of field: __pthread_rwlock_arch_t::__flags"] [:: std :: mem :: offset_of ! (__pthread_rwlock_arch_t , __flags) - 48usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub struct __pthread_cond_s { pub __wseq : __atomic_wide_counter , pub __g1_start : __atomic_wide_counter , pub __g_size : [:: std :: os :: raw :: c_uint ; 2usize] , pub __g1_orig_size : :: std :: os :: raw :: c_uint , pub __wrefs : :: std :: os :: raw :: c_uint , pub __g_signals : [:: std :: os :: raw :: c_uint ; 2usize] , pub __unused_initialized_1 : :: std :: os :: raw :: c_uint , pub __unused_initialized_2 : :: std :: os :: raw :: c_uint , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __pthread_cond_s"] [:: std :: mem :: size_of :: < __pthread_cond_s > () - 48usize] ; ["Alignment of __pthread_cond_s"] [:: std :: mem :: align_of :: < __pthread_cond_s > () - 8usize] ; ["Offset of field: __pthread_cond_s::__wseq"] [:: std :: mem :: offset_of ! (__pthread_cond_s , __wseq) - 0usize] ; ["Offset of field: __pthread_cond_s::__g1_start"] [:: std :: mem :: offset_of ! (__pthread_cond_s , __g1_start) - 8usize] ; ["Offset of field: __pthread_cond_s::__g_size"] [:: std :: mem :: offset_of ! (__pthread_cond_s , __g_size) - 16usize] ; ["Offset of field: __pthread_cond_s::__g1_orig_size"] [:: std :: mem :: offset_of ! (__pthread_cond_s , __g1_orig_size) - 24usize] ; ["Offset of field: __pthread_cond_s::__wrefs"] [:: std :: mem :: offset_of ! (__pthread_cond_s , __wrefs) - 28usize] ; ["Offset of field: __pthread_cond_s::__g_signals"] [:: std :: mem :: offset_of ! (__pthread_cond_s , __g_signals) - 32usize] ; ["Offset of field: __pthread_cond_s::__unused_initialized_1"] [:: std :: mem :: offset_of ! (__pthread_cond_s , __unused_initialized_1) - 40usize] ; ["Offset of field: __pthread_cond_s::__unused_initialized_2"] [:: std :: mem :: offset_of ! (__pthread_cond_s , __unused_initialized_2) - 44usize] ; } ; pub type __tss_t = :: std :: os :: raw :: c_uint ; pub type __thrd_t = :: std :: os :: raw :: c_ulong ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __once_flag { pub __data : :: std :: os :: raw :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __once_flag"] [:: std :: mem :: size_of :: < __once_flag > () - 4usize] ; ["Alignment of __once_flag"] [:: std :: mem :: align_of :: < __once_flag > () - 4usize] ; ["Offset of field: __once_flag::__data"] [:: std :: mem :: offset_of ! (__once_flag , __data) - 0usize] ; } ; pub type pthread_t = :: std :: os :: raw :: c_ulong ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_mutexattr_t { pub __size : [:: std :: os :: raw :: c_char ; 4usize] , pub __align : :: std :: os :: raw :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_mutexattr_t"] [:: std :: mem :: size_of :: < pthread_mutexattr_t > () - 4usize] ; ["Alignment of pthread_mutexattr_t"] [:: std :: mem :: align_of :: < pthread_mutexattr_t > () - 4usize] ; ["Offset of field: pthread_mutexattr_t::__size"] [:: std :: mem :: offset_of ! (pthread_mutexattr_t , __size) - 0usize] ; ["Offset of field: pthread_mutexattr_t::__align"] [:: std :: mem :: offset_of ! (pthread_mutexattr_t , __align) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_condattr_t { pub __size : [:: std :: os :: raw :: c_char ; 4usize] , pub __align : :: std :: os :: raw :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_condattr_t"] [:: std :: mem :: size_of :: < pthread_condattr_t > () - 4usize] ; ["Alignment of pthread_condattr_t"] [:: std :: mem :: align_of :: < pthread_condattr_t > () - 4usize] ; ["Offset of field: pthread_condattr_t::__size"] [:: std :: mem :: offset_of ! (pthread_condattr_t , __size) - 0usize] ; ["Offset of field: pthread_condattr_t::__align"] [:: std :: mem :: offset_of ! (pthread_condattr_t , __align) - 0usize] ; } ; pub type pthread_key_t = :: std :: os :: raw :: c_uint ; pub type pthread_once_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_attr_t { pub __size : [:: std :: os :: raw :: c_char ; 56usize] , pub __align : :: std :: os :: raw :: c_long , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_attr_t"] [:: std :: mem :: size_of :: < pthread_attr_t > () - 56usize] ; ["Alignment of pthread_attr_t"] [:: std :: mem :: align_of :: < pthread_attr_t > () - 8usize] ; ["Offset of field: pthread_attr_t::__size"] [:: std :: mem :: offset_of ! (pthread_attr_t , __size) - 0usize] ; ["Offset of field: pthread_attr_t::__align"] [:: std :: mem :: offset_of ! (pthread_attr_t , __align) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_mutex_t { pub __data : __pthread_mutex_s , pub __size : [:: std :: os :: raw :: c_char ; 40usize] , pub __align : :: std :: os :: raw :: c_long , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_mutex_t"] [:: std :: mem :: size_of :: < pthread_mutex_t > () - 40usize] ; ["Alignment of pthread_mutex_t"] [:: std :: mem :: align_of :: < pthread_mutex_t > () - 8usize] ; ["Offset of field: pthread_mutex_t::__data"] [:: std :: mem :: offset_of ! (pthread_mutex_t , __data) - 0usize] ; ["Offset of field: pthread_mutex_t::__size"] [:: std :: mem :: offset_of ! (pthread_mutex_t , __size) - 0usize] ; ["Offset of field: pthread_mutex_t::__align"] [:: std :: mem :: offset_of ! (pthread_mutex_t , __align) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_cond_t { pub __data : __pthread_cond_s , pub __size : [:: std :: os :: raw :: c_char ; 48usize] , pub __align : :: std :: os :: raw :: c_longlong , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_cond_t"] [:: std :: mem :: size_of :: < pthread_cond_t > () - 48usize] ; ["Alignment of pthread_cond_t"] [:: std :: mem :: align_of :: < pthread_cond_t > () - 8usize] ; ["Offset of field: pthread_cond_t::__data"] [:: std :: mem :: offset_of ! (pthread_cond_t , __data) - 0usize] ; ["Offset of field: pthread_cond_t::__size"] [:: std :: mem :: offset_of ! (pthread_cond_t , __size) - 0usize] ; ["Offset of field: pthread_cond_t::__align"] [:: std :: mem :: offset_of ! (pthread_cond_t , __align) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_rwlock_t { pub __data : __pthread_rwlock_arch_t , pub __size : [:: std :: os :: raw :: c_char ; 56usize] , pub __align : :: std :: os :: raw :: c_long , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_rwlock_t"] [:: std :: mem :: size_of :: < pthread_rwlock_t > () - 56usize] ; ["Alignment of pthread_rwlock_t"] [:: std :: mem :: align_of :: < pthread_rwlock_t > () - 8usize] ; ["Offset of field: pthread_rwlock_t::__data"] [:: std :: mem :: offset_of ! (pthread_rwlock_t , __data) - 0usize] ; ["Offset of field: pthread_rwlock_t::__size"] [:: std :: mem :: offset_of ! (pthread_rwlock_t , __size) - 0usize] ; ["Offset of field: pthread_rwlock_t::__align"] [:: std :: mem :: offset_of ! (pthread_rwlock_t , __align) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_rwlockattr_t { pub __size : [:: std :: os :: raw :: c_char ; 8usize] , pub __align : :: std :: os :: raw :: c_long , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_rwlockattr_t"] [:: std :: mem :: size_of :: < pthread_rwlockattr_t > () - 8usize] ; ["Alignment of pthread_rwlockattr_t"] [:: std :: mem :: align_of :: < pthread_rwlockattr_t > () - 8usize] ; ["Offset of field: pthread_rwlockattr_t::__size"] [:: std :: mem :: offset_of ! (pthread_rwlockattr_t , __size) - 0usize] ; ["Offset of field: pthread_rwlockattr_t::__align"] [:: std :: mem :: offset_of ! (pthread_rwlockattr_t , __align) - 0usize] ; } ; pub type pthread_spinlock_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_barrier_t { pub __size : [:: std :: os :: raw :: c_char ; 32usize] , pub __align : :: std :: os :: raw :: c_long , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_barrier_t"] [:: std :: mem :: size_of :: < pthread_barrier_t > () - 32usize] ; ["Alignment of pthread_barrier_t"] [:: std :: mem :: align_of :: < pthread_barrier_t > () - 8usize] ; ["Offset of field: pthread_barrier_t::__size"] [:: std :: mem :: offset_of ! (pthread_barrier_t , __size) - 0usize] ; ["Offset of field: pthread_barrier_t::__align"] [:: std :: mem :: offset_of ! (pthread_barrier_t , __align) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_barrierattr_t { pub __size : [:: std :: os :: raw :: c_char ; 4usize] , pub __align : :: std :: os :: raw :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_barrierattr_t"] [:: std :: mem :: size_of :: < pthread_barrierattr_t > () - 4usize] ; ["Alignment of pthread_barrierattr_t"] [:: std :: mem :: align_of :: < pthread_barrierattr_t > () - 4usize] ; ["Offset of field: pthread_barrierattr_t::__size"] [:: std :: mem :: offset_of ! (pthread_barrierattr_t , __size) - 0usize] ; ["Offset of field: pthread_barrierattr_t::__align"] [:: std :: mem :: offset_of ! (pthread_barrierattr_t , __align) - 0usize] ; } ; unsafe extern "C" { pub fn random () -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn srandom (__seed : :: std :: os :: raw :: c_uint) ; } unsafe extern "C" { pub fn initstate (__seed : :: std :: os :: raw :: c_uint , __statebuf : * mut :: std :: os :: raw :: c_char , __statelen : usize) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn setstate (__statebuf : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct random_data { pub fptr : * mut i32 , pub rptr : * mut i32 , pub state : * mut i32 , pub rand_type : :: std :: os :: raw :: c_int , pub rand_deg : :: std :: os :: raw :: c_int , pub rand_sep : :: std :: os :: raw :: c_int , pub end_ptr : * mut i32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of random_data"] [:: std :: mem :: size_of :: < random_data > () - 48usize] ; ["Alignment of random_data"] [:: std :: mem :: align_of :: < random_data > () - 8usize] ; ["Offset of field: random_data::fptr"] [:: std :: mem :: offset_of ! (random_data , fptr) - 0usize] ; ["Offset of field: random_data::rptr"] [:: std :: mem :: offset_of ! (random_data , rptr) - 8usize] ; ["Offset of field: random_data::state"] [:: std :: mem :: offset_of ! (random_data , state) - 16usize] ; ["Offset of field: random_data::rand_type"] [:: std :: mem :: offset_of ! (random_data , rand_type) - 24usize] ; ["Offset of field: random_data::rand_deg"] [:: std :: mem :: offset_of ! (random_data , rand_deg) - 28usize] ; ["Offset of field: random_data::rand_sep"] [:: std :: mem :: offset_of ! (random_data , rand_sep) - 32usize] ; ["Offset of field: random_data::end_ptr"] [:: std :: mem :: offset_of ! (random_data , end_ptr) - 40usize] ; } ; unsafe extern "C" { pub fn random_r (__buf : * mut random_data , __result : * mut i32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn srandom_r (__seed : :: std :: os :: raw :: c_uint , __buf : * mut random_data) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn initstate_r (__seed : :: std :: os :: raw :: c_uint , __statebuf : * mut :: std :: os :: raw :: c_char , __statelen : usize , __buf : * mut random_data) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn setstate_r (__statebuf : * mut :: std :: os :: raw :: c_char , __buf : * mut random_data) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn rand () -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn srand (__seed : :: std :: os :: raw :: c_uint) ; } unsafe extern "C" { pub fn rand_r (__seed : * mut :: std :: os :: raw :: c_uint) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn drand48 () -> f64 ; } unsafe extern "C" { pub fn erand48 (__xsubi : * mut :: std :: os :: raw :: c_ushort) -> f64 ; } unsafe extern "C" { pub fn lrand48 () -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn nrand48 (__xsubi : * mut :: std :: os :: raw :: c_ushort) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn mrand48 () -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn jrand48 (__xsubi : * mut :: std :: os :: raw :: c_ushort) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn srand48 (__seedval : :: std :: os :: raw :: c_long) ; } unsafe extern "C" { pub fn seed48 (__seed16v : * mut :: std :: os :: raw :: c_ushort) -> * mut :: std :: os :: raw :: c_ushort ; } unsafe extern "C" { pub fn lcong48 (__param : * mut :: std :: os :: raw :: c_ushort) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct drand48_data { pub __x : [:: std :: os :: raw :: c_ushort ; 3usize] , pub __old_x : [:: std :: os :: raw :: c_ushort ; 3usize] , pub __c : :: std :: os :: raw :: c_ushort , pub __init : :: std :: os :: raw :: c_ushort , pub __a : :: std :: os :: raw :: c_ulonglong , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of drand48_data"] [:: std :: mem :: size_of :: < drand48_data > () - 24usize] ; ["Alignment of drand48_data"] [:: std :: mem :: align_of :: < drand48_data > () - 8usize] ; ["Offset of field: drand48_data::__x"] [:: std :: mem :: offset_of ! (drand48_data , __x) - 0usize] ; ["Offset of field: drand48_data::__old_x"] [:: std :: mem :: offset_of ! (drand48_data , __old_x) - 6usize] ; ["Offset of field: drand48_data::__c"] [:: std :: mem :: offset_of ! (drand48_data , __c) - 12usize] ; ["Offset of field: drand48_data::__init"] [:: std :: mem :: offset_of ! (drand48_data , __init) - 14usize] ; ["Offset of field: drand48_data::__a"] [:: std :: mem :: offset_of ! (drand48_data , __a) - 16usize] ; } ; unsafe extern "C" { pub fn drand48_r (__buffer : * mut drand48_data , __result : * mut f64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn erand48_r (__xsubi : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data , __result : * mut f64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn lrand48_r (__buffer : * mut drand48_data , __result : * mut :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn nrand48_r (__xsubi : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data , __result : * mut :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mrand48_r (__buffer : * mut drand48_data , __result : * mut :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn jrand48_r (__xsubi : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data , __result : * mut :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn srand48_r (__seedval : :: std :: os :: raw :: c_long , __buffer : * mut drand48_data) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn seed48_r (__seed16v : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn lcong48_r (__param : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn arc4random () -> __uint32_t ; } unsafe extern "C" { pub fn arc4random_buf (__buf : * mut :: std :: os :: raw :: c_void , __size : usize) ; } unsafe extern "C" { pub fn arc4random_uniform (__upper_bound : __uint32_t) -> __uint32_t ; } unsafe extern "C" { pub fn malloc (__size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } unsafe extern "C" { pub fn calloc (__nmemb : :: std :: os :: raw :: c_ulong , __size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } unsafe extern "C" { pub fn realloc (__ptr : * mut :: std :: os :: raw :: c_void , __size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } unsafe extern "C" { pub fn free (__ptr : * mut :: std :: os :: raw :: c_void) ; } unsafe extern "C" { pub fn reallocarray (__ptr : * mut :: std :: os :: raw :: c_void , __nmemb : usize , __size : usize) -> * mut :: std :: os :: raw :: c_void ; } unsafe extern "C" { pub fn alloca (__size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } unsafe extern "C" { pub fn valloc (__size : usize) -> * mut :: std :: os :: raw :: c_void ; } unsafe extern "C" { pub fn posix_memalign (__memptr : * mut * mut :: std :: os :: raw :: c_void , __alignment : usize , __size : usize) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn aligned_alloc (__alignment : :: std :: os :: raw :: c_ulong , __size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } unsafe extern "C" { pub fn abort () -> ! ; } unsafe extern "C" { pub fn atexit (__func : :: std :: option :: Option < unsafe extern "C" fn () >) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn at_quick_exit (__func : :: std :: option :: Option < unsafe extern "C" fn () >) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn on_exit (__func : :: std :: option :: Option < unsafe extern "C" fn (__status : :: std :: os :: raw :: c_int , __arg : * mut :: std :: os :: raw :: c_void) > , __arg : * mut :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn exit (__status : :: std :: os :: raw :: c_int) -> ! ; } unsafe extern "C" { pub fn quick_exit (__status : :: std :: os :: raw :: c_int) -> ! ; } unsafe extern "C" { pub fn _Exit (__status : :: std :: os :: raw :: c_int) -> ! ; } unsafe extern "C" { pub fn getenv (__name : * const :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn putenv (__string : * mut :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn setenv (__name : * const :: std :: os :: raw :: c_char , __value : * const :: std :: os :: raw :: c_char , __replace : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn unsetenv (__name : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn clearenv () -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mktemp (__template : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn mkstemp (__template : * mut :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mkstemps (__template : * mut :: std :: os :: raw :: c_char , __suffixlen : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mkdtemp (__template : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn system (__command : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn realpath (__name : * const :: std :: os :: raw :: c_char , __resolved : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } pub type __compar_fn_t = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * const :: std :: os :: raw :: c_void , arg2 : * const :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int > ; unsafe extern "C" { pub fn bsearch (__key : * const :: std :: os :: raw :: c_void , __base : * const :: std :: os :: raw :: c_void , __nmemb : usize , __size : usize , __compar : __compar_fn_t) -> * mut :: std :: os :: raw :: c_void ; } unsafe extern "C" { pub fn qsort (__base : * mut :: std :: os :: raw :: c_void , __nmemb : usize , __size : usize , __compar : __compar_fn_t) ; } unsafe extern "C" { pub fn abs (__x : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn labs (__x : :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn llabs (__x : :: std :: os :: raw :: c_longlong) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn div (__numer : :: std :: os :: raw :: c_int , __denom : :: std :: os :: raw :: c_int) -> div_t ; } unsafe extern "C" { pub fn ldiv (__numer : :: std :: os :: raw :: c_long , __denom : :: std :: os :: raw :: c_long) -> ldiv_t ; } unsafe extern "C" { pub fn lldiv (__numer : :: std :: os :: raw :: c_longlong , __denom : :: std :: os :: raw :: c_longlong) -> lldiv_t ; } unsafe extern "C" { pub fn ecvt (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn fcvt (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn gcvt (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn qecvt (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn qfcvt (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn qgcvt (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn ecvt_r (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char , __len : usize) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn fcvt_r (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char , __len : usize) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn qecvt_r (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char , __len : usize) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn qfcvt_r (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char , __len : usize) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mblen (__s : * const :: std :: os :: raw :: c_char , __n : usize) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mbtowc (__pwc : * mut wchar_t , __s : * const :: std :: os :: raw :: c_char , __n : usize) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn wctomb (__s : * mut :: std :: os :: raw :: c_char , __wchar : wchar_t) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mbstowcs (__pwcs : * mut wchar_t , __s : * const :: std :: os :: raw :: c_char , __n : usize) -> usize ; } unsafe extern "C" { pub fn wcstombs (__s : * mut :: std :: os :: raw :: c_char , __pwcs : * const wchar_t , __n : usize) -> usize ; } unsafe extern "C" { pub fn rpmatch (__response : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getsubopt (__optionp : * mut * mut :: std :: os :: raw :: c_char , __tokens : * const * mut :: std :: os :: raw :: c_char , __valuep : * mut * mut :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getloadavg (__loadavg : * mut f64 , __nelem : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } # [repr (C)] # [repr (align (16))] # [derive (Debug , Copy , Clone)] pub struct max_align_t { pub __clang_max_align_nonce1 : :: std :: os :: raw :: c_longlong , pub __bindgen_padding_0 : u64 , pub __clang_max_align_nonce2 : u128 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of max_align_t"] [:: std :: mem :: size_of :: < max_align_t > () - 32usize] ; ["Alignment of max_align_t"] [:: std :: mem :: align_of :: < max_align_t > () - 16usize] ; ["Offset of field: max_align_t::__clang_max_align_nonce1"] [:: std :: mem :: offset_of ! (max_align_t , __clang_max_align_nonce1) - 0usize] ; ["Offset of field: max_align_t::__clang_max_align_nonce2"] [:: std :: mem :: offset_of ! (max_align_t , __clang_max_align_nonce2) - 16usize] ; } ; pub type int_least8_t = __int_least8_t ; pub type int_least16_t = __int_least16_t ; pub type int_least32_t = __int_least32_t ; pub type int_least64_t = __int_least64_t ; pub type uint_least8_t = __uint_least8_t ; pub type uint_least16_t = __uint_least16_t ; pub type uint_least32_t = __uint_least32_t ; pub type uint_least64_t = __uint_least64_t ; pub type int_fast8_t = :: std :: os :: raw :: c_schar ; pub type int_fast16_t = :: std :: os :: raw :: c_long ; pub type int_fast32_t = :: std :: os :: raw :: c_long ; pub type int_fast64_t = :: std :: os :: raw :: c_long ; pub type uint_fast8_t = :: std :: os :: raw :: c_uchar ; pub type uint_fast16_t = :: std :: os :: raw :: c_ulong ; pub type uint_fast32_t = :: std :: os :: raw :: c_ulong ; pub type uint_fast64_t = :: std :: os :: raw :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub type __gwchar_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct imaxdiv_t { pub quot : :: std :: os :: raw :: c_long , pub rem : :: std :: os :: raw :: c_long , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of imaxdiv_t"] [:: std :: mem :: size_of :: < imaxdiv_t > () - 16usize] ; ["Alignment of imaxdiv_t"] [:: std :: mem :: align_of :: < imaxdiv_t > () - 8usize] ; ["Offset of field: imaxdiv_t::quot"] [:: std :: mem :: offset_of ! (imaxdiv_t , quot) - 0usize] ; ["Offset of field: imaxdiv_t::rem"] [:: std :: mem :: offset_of ! (imaxdiv_t , rem) - 8usize] ; } ; unsafe extern "C" { pub fn imaxabs (__n : intmax_t) -> intmax_t ; } unsafe extern "C" { pub fn imaxdiv (__numer : intmax_t , __denom : intmax_t) -> imaxdiv_t ; } unsafe extern "C" { pub fn strtoimax (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> intmax_t ; } unsafe extern "C" { pub fn strtoumax (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> uintmax_t ; } unsafe extern "C" { pub fn wcstoimax (__nptr : * const __gwchar_t , __endptr : * mut * mut __gwchar_t , __base : :: std :: os :: raw :: c_int) -> intmax_t ; } unsafe extern "C" { pub fn wcstoumax (__nptr : * const __gwchar_t , __endptr : * mut * mut __gwchar_t , __base : :: std :: os :: raw :: c_int) -> uintmax_t ; } # [doc = "=============================================================================\n                      Compiler and Platform Features\n============================================================================="] pub type i8_ = i8 ; pub type u8_ = u8 ; pub type i16_ = i16 ; pub type u16_ = u16 ; pub type i32_ = i32 ; pub type u32_ = u32 ; pub type i64_ = i64 ; pub type u64_ = u64 ; pub type f32_ = f32 ; pub type f64_ = f64 ; # [doc = "=============================================================================\n                               Xoroshiro 128\n============================================================================="] # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Xoroshiro { pub lo : u64 , pub hi : u64 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Xoroshiro"] [:: std :: mem :: size_of :: < Xoroshiro > () - 16usize] ; ["Alignment of Xoroshiro"] [:: std :: mem :: align_of :: < Xoroshiro > () - 8usize] ; ["Offset of field: Xoroshiro::lo"] [:: std :: mem :: offset_of ! (Xoroshiro , lo) - 0usize] ; ["Offset of field: Xoroshiro::hi"] [:: std :: mem :: offset_of ! (Xoroshiro , hi) - 8usize] ; } ; pub type float_t = f32 ; pub type double_t = f64 ; unsafe extern "C" { pub fn __fpclassify (__value : f64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __signbit (__value : f64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __isinf (__value : f64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __finite (__value : f64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __isnan (__value : f64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __iseqsig (__x : f64 , __y : f64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __issignaling (__value : f64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn acos (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __acos (__x : f64) -> f64 ; } unsafe extern "C" { pub fn asin (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __asin (__x : f64) -> f64 ; } unsafe extern "C" { pub fn atan (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __atan (__x : f64) -> f64 ; } unsafe extern "C" { pub fn atan2 (__y : f64 , __x : f64) -> f64 ; } unsafe extern "C" { pub fn __atan2 (__y : f64 , __x : f64) -> f64 ; } unsafe extern "C" { pub fn cos (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __cos (__x : f64) -> f64 ; } unsafe extern "C" { pub fn sin (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __sin (__x : f64) -> f64 ; } unsafe extern "C" { pub fn tan (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __tan (__x : f64) -> f64 ; } unsafe extern "C" { pub fn cosh (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __cosh (__x : f64) -> f64 ; } unsafe extern "C" { pub fn sinh (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __sinh (__x : f64) -> f64 ; } unsafe extern "C" { pub fn tanh (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __tanh (__x : f64) -> f64 ; } unsafe extern "C" { pub fn acosh (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __acosh (__x : f64) -> f64 ; } unsafe extern "C" { pub fn asinh (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __asinh (__x : f64) -> f64 ; } unsafe extern "C" { pub fn atanh (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __atanh (__x : f64) -> f64 ; } unsafe extern "C" { pub fn exp (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __exp (__x : f64) -> f64 ; } unsafe extern "C" { pub fn frexp (__x : f64 , __exponent : * mut :: std :: os :: raw :: c_int) -> f64 ; } unsafe extern "C" { pub fn __frexp (__x : f64 , __exponent : * mut :: std :: os :: raw :: c_int) -> f64 ; } unsafe extern "C" { pub fn ldexp (__x : f64 , __exponent : :: std :: os :: raw :: c_int) -> f64 ; } unsafe extern "C" { pub fn __ldexp (__x : f64 , __exponent : :: std :: os :: raw :: c_int) -> f64 ; } unsafe extern "C" { pub fn log (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __log (__x : f64) -> f64 ; } unsafe extern "C" { pub fn log10 (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __log10 (__x : f64) -> f64 ; } unsafe extern "C" { pub fn modf (__x : f64 , __iptr : * mut f64) -> f64 ; } unsafe extern "C" { pub fn __modf (__x : f64 , __iptr : * mut f64) -> f64 ; } unsafe extern "C" { pub fn expm1 (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __expm1 (__x : f64) -> f64 ; } unsafe extern "C" { pub fn log1p (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __log1p (__x : f64) -> f64 ; } unsafe extern "C" { pub fn logb (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __logb (__x : f64) -> f64 ; } unsafe extern "C" { pub fn exp2 (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __exp2 (__x : f64) -> f64 ; } unsafe extern "C" { pub fn log2 (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __log2 (__x : f64) -> f64 ; } unsafe extern "C" { pub fn pow (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn __pow (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn sqrt (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __sqrt (__x : f64) -> f64 ; } unsafe extern "C" { pub fn hypot (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn __hypot (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn cbrt (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __cbrt (__x : f64) -> f64 ; } unsafe extern "C" { pub fn ceil (__x : f64) -> f64 ; } unsafe extern "C" { pub fn fabs (__x : f64) -> f64 ; } unsafe extern "C" { pub fn floor (__x : f64) -> f64 ; } unsafe extern "C" { pub fn fmod (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn __fmod (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn isinf (__value : f64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn finite (__value : f64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn drem (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn __drem (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn significand (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __significand (__x : f64) -> f64 ; } unsafe extern "C" { pub fn copysign (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn nan (__tagb : * const :: std :: os :: raw :: c_char) -> f64 ; } unsafe extern "C" { pub fn __nan (__tagb : * const :: std :: os :: raw :: c_char) -> f64 ; } unsafe extern "C" { pub fn isnan (__value : f64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn j0 (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn __j0 (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn j1 (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn __j1 (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn jn (arg1 : :: std :: os :: raw :: c_int , arg2 : f64) -> f64 ; } unsafe extern "C" { pub fn __jn (arg1 : :: std :: os :: raw :: c_int , arg2 : f64) -> f64 ; } unsafe extern "C" { pub fn y0 (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn __y0 (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn y1 (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn __y1 (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn yn (arg1 : :: std :: os :: raw :: c_int , arg2 : f64) -> f64 ; } unsafe extern "C" { pub fn __yn (arg1 : :: std :: os :: raw :: c_int , arg2 : f64) -> f64 ; } unsafe extern "C" { pub fn erf (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn __erf (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn erfc (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn __erfc (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn lgamma (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn __lgamma (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn tgamma (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn __tgamma (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn gamma (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn __gamma (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn lgamma_r (arg1 : f64 , __signgamp : * mut :: std :: os :: raw :: c_int) -> f64 ; } unsafe extern "C" { pub fn __lgamma_r (arg1 : f64 , __signgamp : * mut :: std :: os :: raw :: c_int) -> f64 ; } unsafe extern "C" { pub fn rint (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __rint (__x : f64) -> f64 ; } unsafe extern "C" { pub fn nextafter (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn __nextafter (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn nexttoward (__x : f64 , __y : u128) -> f64 ; } unsafe extern "C" { pub fn __nexttoward (__x : f64 , __y : u128) -> f64 ; } unsafe extern "C" { pub fn remainder (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn __remainder (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn scalbn (__x : f64 , __n : :: std :: os :: raw :: c_int) -> f64 ; } unsafe extern "C" { pub fn __scalbn (__x : f64 , __n : :: std :: os :: raw :: c_int) -> f64 ; } unsafe extern "C" { pub fn ilogb (__x : f64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __ilogb (__x : f64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn scalbln (__x : f64 , __n : :: std :: os :: raw :: c_long) -> f64 ; } unsafe extern "C" { pub fn __scalbln (__x : f64 , __n : :: std :: os :: raw :: c_long) -> f64 ; } unsafe extern "C" { pub fn nearbyint (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __nearbyint (__x : f64) -> f64 ; } unsafe extern "C" { pub fn round (__x : f64) -> f64 ; } unsafe extern "C" { pub fn trunc (__x : f64) -> f64 ; } unsafe extern "C" { pub fn remquo (__x : f64 , __y : f64 , __quo : * mut :: std :: os :: raw :: c_int) -> f64 ; } unsafe extern "C" { pub fn __remquo (__x : f64 , __y : f64 , __quo : * mut :: std :: os :: raw :: c_int) -> f64 ; } unsafe extern "C" { pub fn lrint (__x : f64) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn __lrint (__x : f64) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn llrint (__x : f64) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn __llrint (__x : f64) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn lround (__x : f64) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn __lround (__x : f64) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn llround (__x : f64) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn __llround (__x : f64) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn fdim (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn __fdim (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn fmax (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn fmin (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn fma (__x : f64 , __y : f64 , __z : f64) -> f64 ; } unsafe extern "C" { pub fn __fma (__x : f64 , __y : f64 , __z : f64) -> f64 ; } unsafe extern "C" { pub fn scalb (__x : f64 , __n : f64) -> f64 ; } unsafe extern "C" { pub fn __scalb (__x : f64 , __n : f64) -> f64 ; } unsafe extern "C" { pub fn __fpclassifyf (__value : f32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __signbitf (__value : f32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __isinff (__value : f32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __finitef (__value : f32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __isnanf (__value : f32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __iseqsigf (__x : f32 , __y : f32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __issignalingf (__value : f32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn acosf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __acosf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn asinf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __asinf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn atanf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __atanf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn atan2f (__y : f32 , __x : f32) -> f32 ; } unsafe extern "C" { pub fn __atan2f (__y : f32 , __x : f32) -> f32 ; } unsafe extern "C" { pub fn cosf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __cosf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn sinf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __sinf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn tanf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __tanf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn coshf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __coshf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn sinhf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __sinhf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn tanhf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __tanhf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn acoshf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __acoshf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn asinhf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __asinhf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn atanhf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __atanhf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn expf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __expf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn frexpf (__x : f32 , __exponent : * mut :: std :: os :: raw :: c_int) -> f32 ; } unsafe extern "C" { pub fn __frexpf (__x : f32 , __exponent : * mut :: std :: os :: raw :: c_int) -> f32 ; } unsafe extern "C" { pub fn ldexpf (__x : f32 , __exponent : :: std :: os :: raw :: c_int) -> f32 ; } unsafe extern "C" { pub fn __ldexpf (__x : f32 , __exponent : :: std :: os :: raw :: c_int) -> f32 ; } unsafe extern "C" { pub fn logf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __logf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn log10f (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __log10f (__x : f32) -> f32 ; } unsafe extern "C" { pub fn modff (__x : f32 , __iptr : * mut f32) -> f32 ; } unsafe extern "C" { pub fn __modff (__x : f32 , __iptr : * mut f32) -> f32 ; } unsafe extern "C" { pub fn expm1f (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __expm1f (__x : f32) -> f32 ; } unsafe extern "C" { pub fn log1pf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __log1pf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn logbf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __logbf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn exp2f (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __exp2f (__x : f32) -> f32 ; } unsafe extern "C" { pub fn log2f (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __log2f (__x : f32) -> f32 ; } unsafe extern "C" { pub fn powf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn __powf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn sqrtf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __sqrtf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn hypotf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn __hypotf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn cbrtf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __cbrtf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn ceilf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn fabsf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn floorf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn fmodf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn __fmodf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn isinff (__value : f32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn finitef (__value : f32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn dremf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn __dremf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn significandf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __significandf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn copysignf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn nanf (__tagb : * const :: std :: os :: raw :: c_char) -> f32 ; } unsafe extern "C" { pub fn __nanf (__tagb : * const :: std :: os :: raw :: c_char) -> f32 ; } unsafe extern "C" { pub fn isnanf (__value : f32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn j0f (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn __j0f (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn j1f (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn __j1f (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn jnf (arg1 : :: std :: os :: raw :: c_int , arg2 : f32) -> f32 ; } unsafe extern "C" { pub fn __jnf (arg1 : :: std :: os :: raw :: c_int , arg2 : f32) -> f32 ; } unsafe extern "C" { pub fn y0f (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn __y0f (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn y1f (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn __y1f (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn ynf (arg1 : :: std :: os :: raw :: c_int , arg2 : f32) -> f32 ; } unsafe extern "C" { pub fn __ynf (arg1 : :: std :: os :: raw :: c_int , arg2 : f32) -> f32 ; } unsafe extern "C" { pub fn erff (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn __erff (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn erfcf (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn __erfcf (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn lgammaf (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn __lgammaf (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn tgammaf (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn __tgammaf (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn gammaf (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn __gammaf (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn lgammaf_r (arg1 : f32 , __signgamp : * mut :: std :: os :: raw :: c_int) -> f32 ; } unsafe extern "C" { pub fn __lgammaf_r (arg1 : f32 , __signgamp : * mut :: std :: os :: raw :: c_int) -> f32 ; } unsafe extern "C" { pub fn rintf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __rintf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn nextafterf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn __nextafterf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn nexttowardf (__x : f32 , __y : u128) -> f32 ; } unsafe extern "C" { pub fn __nexttowardf (__x : f32 , __y : u128) -> f32 ; } unsafe extern "C" { pub fn remainderf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn __remainderf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn scalbnf (__x : f32 , __n : :: std :: os :: raw :: c_int) -> f32 ; } unsafe extern "C" { pub fn __scalbnf (__x : f32 , __n : :: std :: os :: raw :: c_int) -> f32 ; } unsafe extern "C" { pub fn ilogbf (__x : f32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __ilogbf (__x : f32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn scalblnf (__x : f32 , __n : :: std :: os :: raw :: c_long) -> f32 ; } unsafe extern "C" { pub fn __scalblnf (__x : f32 , __n : :: std :: os :: raw :: c_long) -> f32 ; } unsafe extern "C" { pub fn nearbyintf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __nearbyintf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn roundf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn truncf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn remquof (__x : f32 , __y : f32 , __quo : * mut :: std :: os :: raw :: c_int) -> f32 ; } unsafe extern "C" { pub fn __remquof (__x : f32 , __y : f32 , __quo : * mut :: std :: os :: raw :: c_int) -> f32 ; } unsafe extern "C" { pub fn lrintf (__x : f32) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn __lrintf (__x : f32) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn llrintf (__x : f32) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn __llrintf (__x : f32) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn lroundf (__x : f32) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn __lroundf (__x : f32) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn llroundf (__x : f32) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn __llroundf (__x : f32) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn fdimf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn __fdimf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn fmaxf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn fminf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn fmaf (__x : f32 , __y : f32 , __z : f32) -> f32 ; } unsafe extern "C" { pub fn __fmaf (__x : f32 , __y : f32 , __z : f32) -> f32 ; } unsafe extern "C" { pub fn scalbf (__x : f32 , __n : f32) -> f32 ; } unsafe extern "C" { pub fn __scalbf (__x : f32 , __n : f32) -> f32 ; } unsafe extern "C" { pub fn __fpclassifyl (__value : u128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __signbitl (__value : u128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __isinfl (__value : u128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __finitel (__value : u128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __isnanl (__value : u128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __iseqsigl (__x : u128 , __y : u128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __issignalingl (__value : u128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn acosl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __acosl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn asinl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __asinl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn atanl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __atanl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn atan2l (__y : u128 , __x : u128) -> u128 ; } unsafe extern "C" { pub fn __atan2l (__y : u128 , __x : u128) -> u128 ; } unsafe extern "C" { pub fn cosl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __cosl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn sinl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __sinl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn tanl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __tanl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn coshl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __coshl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn sinhl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __sinhl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn tanhl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __tanhl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn acoshl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __acoshl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn asinhl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __asinhl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn atanhl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __atanhl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn expl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __expl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn frexpl (__x : u128 , __exponent : * mut :: std :: os :: raw :: c_int) -> u128 ; } unsafe extern "C" { pub fn __frexpl (__x : u128 , __exponent : * mut :: std :: os :: raw :: c_int) -> u128 ; } unsafe extern "C" { pub fn ldexpl (__x : u128 , __exponent : :: std :: os :: raw :: c_int) -> u128 ; } unsafe extern "C" { pub fn __ldexpl (__x : u128 , __exponent : :: std :: os :: raw :: c_int) -> u128 ; } unsafe extern "C" { pub fn logl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __logl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn log10l (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __log10l (__x : u128) -> u128 ; } unsafe extern "C" { pub fn modfl (__x : u128 , __iptr : * mut u128) -> u128 ; } unsafe extern "C" { pub fn __modfl (__x : u128 , __iptr : * mut u128) -> u128 ; } unsafe extern "C" { pub fn expm1l (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __expm1l (__x : u128) -> u128 ; } unsafe extern "C" { pub fn log1pl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __log1pl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn logbl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __logbl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn exp2l (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __exp2l (__x : u128) -> u128 ; } unsafe extern "C" { pub fn log2l (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __log2l (__x : u128) -> u128 ; } unsafe extern "C" { pub fn powl (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn __powl (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn sqrtl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __sqrtl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn hypotl (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn __hypotl (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn cbrtl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __cbrtl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn ceill (__x : u128) -> u128 ; } unsafe extern "C" { pub fn fabsl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn floorl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn fmodl (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn __fmodl (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn isinfl (__value : u128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn finitel (__value : u128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn dreml (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn __dreml (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn significandl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __significandl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn copysignl (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn nanl (__tagb : * const :: std :: os :: raw :: c_char) -> u128 ; } unsafe extern "C" { pub fn __nanl (__tagb : * const :: std :: os :: raw :: c_char) -> u128 ; } unsafe extern "C" { pub fn isnanl (__value : u128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn j0l (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn __j0l (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn j1l (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn __j1l (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn jnl (arg1 : :: std :: os :: raw :: c_int , arg2 : u128) -> u128 ; } unsafe extern "C" { pub fn __jnl (arg1 : :: std :: os :: raw :: c_int , arg2 : u128) -> u128 ; } unsafe extern "C" { pub fn y0l (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn __y0l (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn y1l (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn __y1l (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn ynl (arg1 : :: std :: os :: raw :: c_int , arg2 : u128) -> u128 ; } unsafe extern "C" { pub fn __ynl (arg1 : :: std :: os :: raw :: c_int , arg2 : u128) -> u128 ; } unsafe extern "C" { pub fn erfl (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn __erfl (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn erfcl (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn __erfcl (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn lgammal (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn __lgammal (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn tgammal (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn __tgammal (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn gammal (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn __gammal (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn lgammal_r (arg1 : u128 , __signgamp : * mut :: std :: os :: raw :: c_int) -> u128 ; } unsafe extern "C" { pub fn __lgammal_r (arg1 : u128 , __signgamp : * mut :: std :: os :: raw :: c_int) -> u128 ; } unsafe extern "C" { pub fn rintl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __rintl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn nextafterl (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn __nextafterl (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn nexttowardl (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn __nexttowardl (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn remainderl (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn __remainderl (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn scalbnl (__x : u128 , __n : :: std :: os :: raw :: c_int) -> u128 ; } unsafe extern "C" { pub fn __scalbnl (__x : u128 , __n : :: std :: os :: raw :: c_int) -> u128 ; } unsafe extern "C" { pub fn ilogbl (__x : u128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __ilogbl (__x : u128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn scalblnl (__x : u128 , __n : :: std :: os :: raw :: c_long) -> u128 ; } unsafe extern "C" { pub fn __scalblnl (__x : u128 , __n : :: std :: os :: raw :: c_long) -> u128 ; } unsafe extern "C" { pub fn nearbyintl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __nearbyintl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn roundl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn truncl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn remquol (__x : u128 , __y : u128 , __quo : * mut :: std :: os :: raw :: c_int) -> u128 ; } unsafe extern "C" { pub fn __remquol (__x : u128 , __y : u128 , __quo : * mut :: std :: os :: raw :: c_int) -> u128 ; } unsafe extern "C" { pub fn lrintl (__x : u128) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn __lrintl (__x : u128) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn llrintl (__x : u128) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn __llrintl (__x : u128) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn lroundl (__x : u128) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn __lroundl (__x : u128) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn llroundl (__x : u128) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn __llroundl (__x : u128) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn fdiml (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn __fdiml (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn fmaxl (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn fminl (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn fmal (__x : u128 , __y : u128 , __z : u128) -> u128 ; } unsafe extern "C" { pub fn __fmal (__x : u128 , __y : u128 , __z : u128) -> u128 ; } unsafe extern "C" { pub fn scalbl (__x : u128 , __n : u128) -> u128 ; } unsafe extern "C" { pub fn __scalbl (__x : u128 , __n : u128) -> u128 ; } unsafe extern "C" { pub fn __fpclassifyf128 (__value : _Float128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __signbitf128 (__value : _Float128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __isinff128 (__value : _Float128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __finitef128 (__value : _Float128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __isnanf128 (__value : _Float128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __iseqsigf128 (__x : _Float128 , __y : _Float128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __issignalingf128 (__value : _Float128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub static mut signgam : :: std :: os :: raw :: c_int ; } pub const FP_NAN : _bindgen_ty_1 = _bindgen_ty_1 (0) ; pub const FP_INFINITE : _bindgen_ty_1 = _bindgen_ty_1 (1) ; pub const FP_ZERO : _bindgen_ty_1 = _bindgen_ty_1 (2) ; pub const FP_SUBNORMAL : _bindgen_ty_1 = _bindgen_ty_1 (3) ; pub const FP_NORMAL : _bindgen_ty_1 = _bindgen_ty_1 (4) ; # [repr (transparent)] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct _bindgen_ty_1 (pub :: std :: os :: raw :: c_uint) ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct PerlinNoise { pub d : [u8 ; 257usize] , pub h2 : u8 , pub a : f64 , pub b : f64 , pub c : f64 , pub amplitude : f64 , pub lacunarity : f64 , pub d2 : f64 , pub t2 : f64 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of PerlinNoise"] [:: std :: mem :: size_of :: < PerlinNoise > () - 320usize] ; ["Alignment of PerlinNoise"] [:: std :: mem :: align_of :: < PerlinNoise > () - 8usize] ; ["Offset of field: PerlinNoise::d"] [:: std :: mem :: offset_of ! (PerlinNoise , d) - 0usize] ; ["Offset of field: PerlinNoise::h2"] [:: std :: mem :: offset_of ! (PerlinNoise , h2) - 257usize] ; ["Offset of field: PerlinNoise::a"] [:: std :: mem :: offset_of ! (PerlinNoise , a) - 264usize] ; ["Offset of field: PerlinNoise::b"] [:: std :: mem :: offset_of ! (PerlinNoise , b) - 272usize] ; ["Offset of field: PerlinNoise::c"] [:: std :: mem :: offset_of ! (PerlinNoise , c) - 280usize] ; ["Offset of field: PerlinNoise::amplitude"] [:: std :: mem :: offset_of ! (PerlinNoise , amplitude) - 288usize] ; ["Offset of field: PerlinNoise::lacunarity"] [:: std :: mem :: offset_of ! (PerlinNoise , lacunarity) - 296usize] ; ["Offset of field: PerlinNoise::d2"] [:: std :: mem :: offset_of ! (PerlinNoise , d2) - 304usize] ; ["Offset of field: PerlinNoise::t2"] [:: std :: mem :: offset_of ! (PerlinNoise , t2) - 312usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct OctaveNoise { pub octcnt : :: std :: os :: raw :: c_int , pub octaves : * mut PerlinNoise , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of OctaveNoise"] [:: std :: mem :: size_of :: < OctaveNoise > () - 16usize] ; ["Alignment of OctaveNoise"] [:: std :: mem :: align_of :: < OctaveNoise > () - 8usize] ; ["Offset of field: OctaveNoise::octcnt"] [:: std :: mem :: offset_of ! (OctaveNoise , octcnt) - 0usize] ; ["Offset of field: OctaveNoise::octaves"] [:: std :: mem :: offset_of ! (OctaveNoise , octaves) - 8usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct DoublePerlinNoise { pub amplitude : f64 , pub octA : OctaveNoise , pub octB : OctaveNoise , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of DoublePerlinNoise"] [:: std :: mem :: size_of :: < DoublePerlinNoise > () - 40usize] ; ["Alignment of DoublePerlinNoise"] [:: std :: mem :: align_of :: < DoublePerlinNoise > () - 8usize] ; ["Offset of field: DoublePerlinNoise::amplitude"] [:: std :: mem :: offset_of ! (DoublePerlinNoise , amplitude) - 0usize] ; ["Offset of field: DoublePerlinNoise::octA"] [:: std :: mem :: offset_of ! (DoublePerlinNoise , octA) - 8usize] ; ["Offset of field: DoublePerlinNoise::octB"] [:: std :: mem :: offset_of ! (DoublePerlinNoise , octB) - 24usize] ; } ; unsafe extern "C" { # [doc = " Perlin noise"] pub fn perlinInit (noise : * mut PerlinNoise , seed : * mut u64) ; } unsafe extern "C" { pub fn xPerlinInit (noise : * mut PerlinNoise , xr : * mut Xoroshiro) ; } unsafe extern "C" { pub fn samplePerlin (noise : * const PerlinNoise , x : f64 , y : f64 , z : f64 , yamp : f64 , ymin : f64) -> f64 ; } unsafe extern "C" { pub fn sampleSimplex2D (noise : * const PerlinNoise , x : f64 , y : f64) -> f64 ; } unsafe extern "C" { # [doc = " Perlin Octaves"] pub fn octaveInit (noise : * mut OctaveNoise , seed : * mut u64 , octaves : * mut PerlinNoise , omin : :: std :: os :: raw :: c_int , len : :: std :: os :: raw :: c_int) ; } unsafe extern "C" { pub fn octaveInitBeta (noise : * mut OctaveNoise , seed : * mut u64 , octaves : * mut PerlinNoise , octcnt : :: std :: os :: raw :: c_int , lac : f64 , lacMul : f64 , persist : f64 , persistMul : f64) ; } unsafe extern "C" { pub fn xOctaveInit (noise : * mut OctaveNoise , xr : * mut Xoroshiro , octaves : * mut PerlinNoise , amplitudes : * const f64 , omin : :: std :: os :: raw :: c_int , len : :: std :: os :: raw :: c_int , nmax : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn sampleOctave (noise : * const OctaveNoise , x : f64 , y : f64 , z : f64) -> f64 ; } unsafe extern "C" { pub fn sampleOctaveAmp (noise : * const OctaveNoise , x : f64 , y : f64 , z : f64 , yamp : f64 , ymin : f64 , ydefault : :: std :: os :: raw :: c_int) -> f64 ; } unsafe extern "C" { pub fn sampleOctave2D (noise : * const OctaveNoise , x : f64 , z : f64) -> f64 ; } unsafe extern "C" { pub fn sampleOctaveBeta17Biome (noise : * const OctaveNoise , x : f64 , z : f64) -> f64 ; } unsafe extern "C" { pub fn sampleOctaveBeta17Terrain (noise : * const OctaveNoise , v : * mut f64 , x : f64 , z : f64 , yLacFlag : :: std :: os :: raw :: c_int , lacmin : f64) ; } unsafe extern "C" { # [doc = " Double Perlin"] pub fn doublePerlinInit (noise : * mut DoublePerlinNoise , seed : * mut u64 , octavesA : * mut PerlinNoise , octavesB : * mut PerlinNoise , omin : :: std :: os :: raw :: c_int , len : :: std :: os :: raw :: c_int) ; } unsafe extern "C" { pub fn xDoublePerlinInit (noise : * mut DoublePerlinNoise , xr : * mut Xoroshiro , octaves : * mut PerlinNoise , amplitudes : * const f64 , omin : :: std :: os :: raw :: c_int , len : :: std :: os :: raw :: c_int , nmax : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn sampleDoublePerlin (noise : * const DoublePerlinNoise , x : f64 , y : f64 , z : f64) -> f64 ; } impl MCVersion { pub const MC_UNDEF : MCVersion = MCVersion (0) ; } impl MCVersion { pub const MC_B1_7 : MCVersion = MCVersion (1) ; } impl MCVersion { pub const MC_B1_8 : MCVersion = MCVersion (2) ; } impl MCVersion { pub const MC_1_0_0 : MCVersion = MCVersion (3) ; } impl MCVersion { pub const MC_1_0 : MCVersion = MCVersion (3) ; } impl MCVersion { pub const MC_1_1_0 : MCVersion = MCVersion (4) ; } impl MCVersion { pub const MC_1_1 : MCVersion = MCVersion (4) ; } impl MCVersion { pub const MC_1_2_5 : MCVersion = MCVersion (5) ; } impl MCVersion { pub const MC_1_2 : MCVersion = MCVersion (5) ; } impl MCVersion { pub const MC_1_3_2 : MCVersion = MCVersion (6) ; } impl MCVersion { pub const MC_1_3 : MCVersion = MCVersion (6) ; } impl MCVersion { pub const MC_1_4_7 : MCVersion = MCVersion (7) ; } impl MCVersion { pub const MC_1_4 : MCVersion = MCVersion (7) ; } impl MCVersion { pub const MC_1_5_2 : MCVersion = MCVersion (8) ; } impl MCVersion { pub const MC_1_5 : MCVersion = MCVersion (8) ; } impl MCVersion { pub const MC_1_6_4 : MCVersion = MCVersion (9) ; } impl MCVersion { pub const MC_1_6 : MCVersion = MCVersion (9) ; } impl MCVersion { pub const MC_1_7_10 : MCVersion = MCVersion (10) ; } impl MCVersion { pub const MC_1_7 : MCVersion = MCVersion (10) ; } impl MCVersion { pub const MC_1_8_9 : MCVersion = MCVersion (11) ; } impl MCVersion { pub const MC_1_8 : MCVersion = MCVersion (11) ; } impl MCVersion { pub const MC_1_9_4 : MCVersion = MCVersion (12) ; } impl MCVersion { pub const MC_1_9 : MCVersion = MCVersion (12) ; } impl MCVersion { pub const MC_1_10_2 : MCVersion = MCVersion (13) ; } impl MCVersion { pub const MC_1_10 : MCVersion = MCVersion (13) ; } impl MCVersion { pub const MC_1_11_2 : MCVersion = MCVersion (14) ; } impl MCVersion { pub const MC_1_11 : MCVersion = MCVersion (14) ; } impl MCVersion { pub const MC_1_12_2 : MCVersion = MCVersion (15) ; } impl MCVersion { pub const MC_1_12 : MCVersion = MCVersion (15) ; } impl MCVersion { pub const MC_1_13_2 : MCVersion = MCVersion (16) ; } impl MCVersion { pub const MC_1_13 : MCVersion = MCVersion (16) ; } impl MCVersion { pub const MC_1_14_4 : MCVersion = MCVersion (17) ; } impl MCVersion { pub const MC_1_14 : MCVersion = MCVersion (17) ; } impl MCVersion { pub const MC_1_15_2 : MCVersion = MCVersion (18) ; } impl MCVersion { pub const MC_1_15 : MCVersion = MCVersion (18) ; } impl MCVersion { pub const MC_1_16_1 : MCVersion = MCVersion (19) ; } impl MCVersion { pub const MC_1_16_5 : MCVersion = MCVersion (20) ; } impl MCVersion { pub const MC_1_16 : MCVersion = MCVersion (20) ; } impl MCVersion { pub const MC_1_17_1 : MCVersion = MCVersion (21) ; } impl MCVersion { pub const MC_1_17 : MCVersion = MCVersion (21) ; } impl MCVersion { pub const MC_1_18_2 : MCVersion = MCVersion (22) ; } impl MCVersion { pub const MC_1_18 : MCVersion = MCVersion (22) ; } impl MCVersion { pub const MC_1_19_2 : MCVersion = MCVersion (23) ; } impl MCVersion { pub const MC_1_19_4 : MCVersion = MCVersion (24) ; } impl MCVersion { pub const MC_1_19 : MCVersion = MCVersion (24) ; } impl MCVersion { pub const MC_1_20_6 : MCVersion = MCVersion (25) ; } impl MCVersion { pub const MC_1_20 : MCVersion = MCVersion (25) ; } impl MCVersion { pub const MC_1_21_1 : MCVersion = MCVersion (26) ; } impl MCVersion { pub const MC_1_21_3 : MCVersion = MCVersion (27) ; } impl MCVersion { pub const MC_1_21_WD : MCVersion = MCVersion (28) ; } impl MCVersion { pub const MC_1_21 : MCVersion = MCVersion (28) ; } impl MCVersion { pub const MC_NEWEST : MCVersion = MCVersion (28) ; } # [repr (transparent)] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct MCVersion (pub :: std :: os :: raw :: c_uint) ; impl Dimension { pub const DIM_NETHER : Dimension = Dimension (- 1) ; } impl Dimension { pub const DIM_OVERWORLD : Dimension = Dimension (0) ; } impl Dimension { pub const DIM_END : Dimension = Dimension (1) ; } impl Dimension { pub const DIM_UNDEF : Dimension = Dimension (1000) ; } # [repr (transparent)] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct Dimension (pub :: std :: os :: raw :: c_int) ; impl BiomeID { pub const none : BiomeID = BiomeID (- 1) ; } impl BiomeID { pub const ocean : BiomeID = BiomeID (0) ; } impl BiomeID { pub const plains : BiomeID = BiomeID (1) ; } impl BiomeID { pub const desert : BiomeID = BiomeID (2) ; } impl BiomeID { pub const mountains : BiomeID = BiomeID (3) ; } impl BiomeID { pub const extremeHills : BiomeID = BiomeID (3) ; } impl BiomeID { pub const forest : BiomeID = BiomeID (4) ; } impl BiomeID { pub const taiga : BiomeID = BiomeID (5) ; } impl BiomeID { pub const swamp : BiomeID = BiomeID (6) ; } impl BiomeID { pub const swampland : BiomeID = BiomeID (6) ; } impl BiomeID { pub const river : BiomeID = BiomeID (7) ; } impl BiomeID { pub const nether_wastes : BiomeID = BiomeID (8) ; } impl BiomeID { pub const hell : BiomeID = BiomeID (8) ; } impl BiomeID { pub const the_end : BiomeID = BiomeID (9) ; } impl BiomeID { pub const sky : BiomeID = BiomeID (9) ; } impl BiomeID { pub const frozen_ocean : BiomeID = BiomeID (10) ; } impl BiomeID { pub const frozenOcean : BiomeID = BiomeID (10) ; } impl BiomeID { pub const frozen_river : BiomeID = BiomeID (11) ; } impl BiomeID { pub const frozenRiver : BiomeID = BiomeID (11) ; } impl BiomeID { pub const snowy_tundra : BiomeID = BiomeID (12) ; } impl BiomeID { pub const icePlains : BiomeID = BiomeID (12) ; } impl BiomeID { pub const snowy_mountains : BiomeID = BiomeID (13) ; } impl BiomeID { pub const iceMountains : BiomeID = BiomeID (13) ; } impl BiomeID { pub const mushroom_fields : BiomeID = BiomeID (14) ; } impl BiomeID { pub const mushroomIsland : BiomeID = BiomeID (14) ; } impl BiomeID { pub const mushroom_field_shore : BiomeID = BiomeID (15) ; } impl BiomeID { pub const mushroomIslandShore : BiomeID = BiomeID (15) ; } impl BiomeID { pub const beach : BiomeID = BiomeID (16) ; } impl BiomeID { pub const desert_hills : BiomeID = BiomeID (17) ; } impl BiomeID { pub const desertHills : BiomeID = BiomeID (17) ; } impl BiomeID { pub const wooded_hills : BiomeID = BiomeID (18) ; } impl BiomeID { pub const forestHills : BiomeID = BiomeID (18) ; } impl BiomeID { pub const taiga_hills : BiomeID = BiomeID (19) ; } impl BiomeID { pub const taigaHills : BiomeID = BiomeID (19) ; } impl BiomeID { pub const mountain_edge : BiomeID = BiomeID (20) ; } impl BiomeID { pub const extremeHillsEdge : BiomeID = BiomeID (20) ; } impl BiomeID { pub const jungle : BiomeID = BiomeID (21) ; } impl BiomeID { pub const jungle_hills : BiomeID = BiomeID (22) ; } impl BiomeID { pub const jungleHills : BiomeID = BiomeID (22) ; } impl BiomeID { pub const jungle_edge : BiomeID = BiomeID (23) ; } impl BiomeID { pub const jungleEdge : BiomeID = BiomeID (23) ; } impl BiomeID { pub const deep_ocean : BiomeID = BiomeID (24) ; } impl BiomeID { pub const deepOcean : BiomeID = BiomeID (24) ; } impl BiomeID { pub const stone_shore : BiomeID = BiomeID (25) ; } impl BiomeID { pub const stoneBeach : BiomeID = BiomeID (25) ; } impl BiomeID { pub const snowy_beach : BiomeID = BiomeID (26) ; } impl BiomeID { pub const coldBeach : BiomeID = BiomeID (26) ; } impl BiomeID { pub const birch_forest : BiomeID = BiomeID (27) ; } impl BiomeID { pub const birchForest : BiomeID = BiomeID (27) ; } impl BiomeID { pub const birch_forest_hills : BiomeID = BiomeID (28) ; } impl BiomeID { pub const birchForestHills : BiomeID = BiomeID (28) ; } impl BiomeID { pub const dark_forest : BiomeID = BiomeID (29) ; } impl BiomeID { pub const roofedForest : BiomeID = BiomeID (29) ; } impl BiomeID { pub const snowy_taiga : BiomeID = BiomeID (30) ; } impl BiomeID { pub const coldTaiga : BiomeID = BiomeID (30) ; } impl BiomeID { pub const snowy_taiga_hills : BiomeID = BiomeID (31) ; } impl BiomeID { pub const coldTaigaHills : BiomeID = BiomeID (31) ; } impl BiomeID { pub const giant_tree_taiga : BiomeID = BiomeID (32) ; } impl BiomeID { pub const megaTaiga : BiomeID = BiomeID (32) ; } impl BiomeID { pub const giant_tree_taiga_hills : BiomeID = BiomeID (33) ; } impl BiomeID { pub const megaTaigaHills : BiomeID = BiomeID (33) ; } impl BiomeID { pub const wooded_mountains : BiomeID = BiomeID (34) ; } impl BiomeID { pub const extremeHillsPlus : BiomeID = BiomeID (34) ; } impl BiomeID { pub const savanna : BiomeID = BiomeID (35) ; } impl BiomeID { pub const savanna_plateau : BiomeID = BiomeID (36) ; } impl BiomeID { pub const savannaPlateau : BiomeID = BiomeID (36) ; } impl BiomeID { pub const badlands : BiomeID = BiomeID (37) ; } impl BiomeID { pub const mesa : BiomeID = BiomeID (37) ; } impl BiomeID { pub const wooded_badlands_plateau : BiomeID = BiomeID (38) ; } impl BiomeID { pub const mesaPlateau_F : BiomeID = BiomeID (38) ; } impl BiomeID { pub const badlands_plateau : BiomeID = BiomeID (39) ; } impl BiomeID { pub const mesaPlateau : BiomeID = BiomeID (39) ; } impl BiomeID { pub const small_end_islands : BiomeID = BiomeID (40) ; } impl BiomeID { pub const end_midlands : BiomeID = BiomeID (41) ; } impl BiomeID { pub const end_highlands : BiomeID = BiomeID (42) ; } impl BiomeID { pub const end_barrens : BiomeID = BiomeID (43) ; } impl BiomeID { pub const warm_ocean : BiomeID = BiomeID (44) ; } impl BiomeID { pub const warmOcean : BiomeID = BiomeID (44) ; } impl BiomeID { pub const lukewarm_ocean : BiomeID = BiomeID (45) ; } impl BiomeID { pub const lukewarmOcean : BiomeID = BiomeID (45) ; } impl BiomeID { pub const cold_ocean : BiomeID = BiomeID (46) ; } impl BiomeID { pub const coldOcean : BiomeID = BiomeID (46) ; } impl BiomeID { pub const deep_warm_ocean : BiomeID = BiomeID (47) ; } impl BiomeID { pub const warmDeepOcean : BiomeID = BiomeID (47) ; } impl BiomeID { pub const deep_lukewarm_ocean : BiomeID = BiomeID (48) ; } impl BiomeID { pub const lukewarmDeepOcean : BiomeID = BiomeID (48) ; } impl BiomeID { pub const deep_cold_ocean : BiomeID = BiomeID (49) ; } impl BiomeID { pub const coldDeepOcean : BiomeID = BiomeID (49) ; } impl BiomeID { pub const deep_frozen_ocean : BiomeID = BiomeID (50) ; } impl BiomeID { pub const frozenDeepOcean : BiomeID = BiomeID (50) ; } impl BiomeID { pub const seasonal_forest : BiomeID = BiomeID (51) ; } impl BiomeID { pub const rainforest : BiomeID = BiomeID (52) ; } impl BiomeID { pub const shrubland : BiomeID = BiomeID (53) ; } impl BiomeID { pub const the_void : BiomeID = BiomeID (127) ; } impl BiomeID { pub const sunflower_plains : BiomeID = BiomeID (129) ; } impl BiomeID { pub const desert_lakes : BiomeID = BiomeID (130) ; } impl BiomeID { pub const gravelly_mountains : BiomeID = BiomeID (131) ; } impl BiomeID { pub const flower_forest : BiomeID = BiomeID (132) ; } impl BiomeID { pub const taiga_mountains : BiomeID = BiomeID (133) ; } impl BiomeID { pub const swamp_hills : BiomeID = BiomeID (134) ; } impl BiomeID { pub const ice_spikes : BiomeID = BiomeID (140) ; } impl BiomeID { pub const modified_jungle : BiomeID = BiomeID (149) ; } impl BiomeID { pub const modified_jungle_edge : BiomeID = BiomeID (151) ; } impl BiomeID { pub const tall_birch_forest : BiomeID = BiomeID (155) ; } impl BiomeID { pub const tall_birch_hills : BiomeID = BiomeID (156) ; } impl BiomeID { pub const dark_forest_hills : BiomeID = BiomeID (157) ; } impl BiomeID { pub const snowy_taiga_mountains : BiomeID = BiomeID (158) ; } impl BiomeID { pub const giant_spruce_taiga : BiomeID = BiomeID (160) ; } impl BiomeID { pub const giant_spruce_taiga_hills : BiomeID = BiomeID (161) ; } impl BiomeID { pub const modified_gravelly_mountains : BiomeID = BiomeID (162) ; } impl BiomeID { pub const shattered_savanna : BiomeID = BiomeID (163) ; } impl BiomeID { pub const shattered_savanna_plateau : BiomeID = BiomeID (164) ; } impl BiomeID { pub const eroded_badlands : BiomeID = BiomeID (165) ; } impl BiomeID { pub const modified_wooded_badlands_plateau : BiomeID = BiomeID (166) ; } impl BiomeID { pub const modified_badlands_plateau : BiomeID = BiomeID (167) ; } impl BiomeID { pub const bamboo_jungle : BiomeID = BiomeID (168) ; } impl BiomeID { pub const bamboo_jungle_hills : BiomeID = BiomeID (169) ; } impl BiomeID { pub const soul_sand_valley : BiomeID = BiomeID (170) ; } impl BiomeID { pub const crimson_forest : BiomeID = BiomeID (171) ; } impl BiomeID { pub const warped_forest : BiomeID = BiomeID (172) ; } impl BiomeID { pub const basalt_deltas : BiomeID = BiomeID (173) ; } impl BiomeID { pub const dripstone_caves : BiomeID = BiomeID (174) ; } impl BiomeID { pub const lush_caves : BiomeID = BiomeID (175) ; } impl BiomeID { pub const meadow : BiomeID = BiomeID (177) ; } impl BiomeID { pub const grove : BiomeID = BiomeID (178) ; } impl BiomeID { pub const snowy_slopes : BiomeID = BiomeID (179) ; } impl BiomeID { pub const jagged_peaks : BiomeID = BiomeID (180) ; } impl BiomeID { pub const frozen_peaks : BiomeID = BiomeID (181) ; } impl BiomeID { pub const stony_peaks : BiomeID = BiomeID (182) ; } impl BiomeID { pub const old_growth_birch_forest : BiomeID = BiomeID (155) ; } impl BiomeID { pub const old_growth_pine_taiga : BiomeID = BiomeID (32) ; } impl BiomeID { pub const old_growth_spruce_taiga : BiomeID = BiomeID (160) ; } impl BiomeID { pub const snowy_plains : BiomeID = BiomeID (12) ; } impl BiomeID { pub const sparse_jungle : BiomeID = BiomeID (23) ; } impl BiomeID { pub const stony_shore : BiomeID = BiomeID (25) ; } impl BiomeID { pub const windswept_hills : BiomeID = BiomeID (3) ; } impl BiomeID { pub const windswept_forest : BiomeID = BiomeID (34) ; } impl BiomeID { pub const windswept_gravelly_hills : BiomeID = BiomeID (131) ; } impl BiomeID { pub const windswept_savanna : BiomeID = BiomeID (163) ; } impl BiomeID { pub const wooded_badlands : BiomeID = BiomeID (38) ; } impl BiomeID { pub const deep_dark : BiomeID = BiomeID (183) ; } impl BiomeID { pub const mangrove_swamp : BiomeID = BiomeID (184) ; } impl BiomeID { pub const cherry_grove : BiomeID = BiomeID (185) ; } impl BiomeID { pub const pale_garden : BiomeID = BiomeID (186) ; } # [repr (transparent)] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct BiomeID (pub :: std :: os :: raw :: c_int) ; unsafe extern "C" { pub fn biomeExists (mc : :: std :: os :: raw :: c_int , id : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn isOverworld (mc : :: std :: os :: raw :: c_int , id : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getDimension (id : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getMutated (mc : :: std :: os :: raw :: c_int , id : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getCategory (mc : :: std :: os :: raw :: c_int , id : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn areSimilar (mc : :: std :: os :: raw :: c_int , id1 : :: std :: os :: raw :: c_int , id2 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn isMesa (id : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn isShallowOcean (id : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn isDeepOcean (id : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn isOceanic (id : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn isSnowy (id : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } impl BiomeTempCategory { pub const Oceanic : BiomeTempCategory = BiomeTempCategory (0) ; } impl BiomeTempCategory { pub const Warm : BiomeTempCategory = BiomeTempCategory (1) ; } impl BiomeTempCategory { pub const Lush : BiomeTempCategory = BiomeTempCategory (2) ; } impl BiomeTempCategory { pub const Cold : BiomeTempCategory = BiomeTempCategory (3) ; } impl BiomeTempCategory { pub const Freezing : BiomeTempCategory = BiomeTempCategory (4) ; } impl BiomeTempCategory { pub const Special : BiomeTempCategory = BiomeTempCategory (5) ; } # [repr (transparent)] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct BiomeTempCategory (pub :: std :: os :: raw :: c_uint) ; impl LayerId { pub const L_CONTINENT_4096 : LayerId = LayerId (0) ; } impl LayerId { pub const L_ISLAND_4096 : LayerId = LayerId (0) ; } impl LayerId { pub const L_ZOOM_4096 : LayerId = LayerId (1) ; } impl LayerId { pub const L_LAND_4096 : LayerId = LayerId (2) ; } impl LayerId { pub const L_ZOOM_2048 : LayerId = LayerId (3) ; } impl LayerId { pub const L_LAND_2048 : LayerId = LayerId (4) ; } impl LayerId { pub const L_ADD_ISLAND_2048 : LayerId = LayerId (4) ; } impl LayerId { pub const L_ZOOM_1024 : LayerId = LayerId (5) ; } impl LayerId { pub const L_LAND_1024_A : LayerId = LayerId (6) ; } impl LayerId { pub const L_ADD_ISLAND_1024A : LayerId = LayerId (6) ; } impl LayerId { pub const L_LAND_1024_B : LayerId = LayerId (7) ; } impl LayerId { pub const L_ADD_ISLAND_1024B : LayerId = LayerId (7) ; } impl LayerId { pub const L_LAND_1024_C : LayerId = LayerId (8) ; } impl LayerId { pub const L_ADD_ISLAND_1024C : LayerId = LayerId (8) ; } impl LayerId { pub const L_ISLAND_1024 : LayerId = LayerId (9) ; } impl LayerId { pub const L_REMOVE_OCEAN_1024 : LayerId = LayerId (9) ; } impl LayerId { pub const L_SNOW_1024 : LayerId = LayerId (10) ; } impl LayerId { pub const L_ADD_SNOW_1024 : LayerId = LayerId (10) ; } impl LayerId { pub const L_LAND_1024_D : LayerId = LayerId (11) ; } impl LayerId { pub const L_ADD_ISLAND_1024D : LayerId = LayerId (11) ; } impl LayerId { pub const L_COOL_1024 : LayerId = LayerId (12) ; } impl LayerId { pub const L_COOL_WARM_1024 : LayerId = LayerId (12) ; } impl LayerId { pub const L_HEAT_1024 : LayerId = LayerId (13) ; } impl LayerId { pub const L_HEAT_ICE_1024 : LayerId = LayerId (13) ; } impl LayerId { pub const L_SPECIAL_1024 : LayerId = LayerId (14) ; } impl LayerId { pub const L_ZOOM_512 : LayerId = LayerId (15) ; } impl LayerId { pub const L_LAND_512 : LayerId = LayerId (16) ; } impl LayerId { pub const L_ZOOM_256 : LayerId = LayerId (17) ; } impl LayerId { pub const L_LAND_256 : LayerId = LayerId (18) ; } impl LayerId { pub const L_ADD_ISLAND_256 : LayerId = LayerId (18) ; } impl LayerId { pub const L_MUSHROOM_256 : LayerId = LayerId (19) ; } impl LayerId { pub const L_ADD_MUSHROOM_256 : LayerId = LayerId (19) ; } impl LayerId { pub const L_DEEP_OCEAN_256 : LayerId = LayerId (20) ; } impl LayerId { pub const L_BIOME_256 : LayerId = LayerId (21) ; } impl LayerId { pub const L_BAMBOO_256 : LayerId = LayerId (22) ; } impl LayerId { pub const L14_BAMBOO_256 : LayerId = LayerId (22) ; } impl LayerId { pub const L_ZOOM_128 : LayerId = LayerId (23) ; } impl LayerId { pub const L_ZOOM_64 : LayerId = LayerId (24) ; } impl LayerId { pub const L_BIOME_EDGE_64 : LayerId = LayerId (25) ; } impl LayerId { pub const L_NOISE_256 : LayerId = LayerId (26) ; } impl LayerId { pub const L_RIVER_INIT_256 : LayerId = LayerId (26) ; } impl LayerId { pub const L_ZOOM_128_HILLS : LayerId = LayerId (27) ; } impl LayerId { pub const L_ZOOM_64_HILLS : LayerId = LayerId (28) ; } impl LayerId { pub const L_HILLS_64 : LayerId = LayerId (29) ; } impl LayerId { pub const L_SUNFLOWER_64 : LayerId = LayerId (30) ; } impl LayerId { pub const L_RARE_BIOME_64 : LayerId = LayerId (30) ; } impl LayerId { pub const L_ZOOM_32 : LayerId = LayerId (31) ; } impl LayerId { pub const L_LAND_32 : LayerId = LayerId (32) ; } impl LayerId { pub const L_ADD_ISLAND_32 : LayerId = LayerId (32) ; } impl LayerId { pub const L_ZOOM_16 : LayerId = LayerId (33) ; } impl LayerId { pub const L_SHORE_16 : LayerId = LayerId (34) ; } impl LayerId { pub const L_SWAMP_RIVER_16 : LayerId = LayerId (35) ; } impl LayerId { pub const L_ZOOM_8 : LayerId = LayerId (36) ; } impl LayerId { pub const L_ZOOM_4 : LayerId = LayerId (37) ; } impl LayerId { pub const L_SMOOTH_4 : LayerId = LayerId (38) ; } impl LayerId { pub const L_ZOOM_128_RIVER : LayerId = LayerId (39) ; } impl LayerId { pub const L_ZOOM_64_RIVER : LayerId = LayerId (40) ; } impl LayerId { pub const L_ZOOM_32_RIVER : LayerId = LayerId (41) ; } impl LayerId { pub const L_ZOOM_16_RIVER : LayerId = LayerId (42) ; } impl LayerId { pub const L_ZOOM_8_RIVER : LayerId = LayerId (43) ; } impl LayerId { pub const L_ZOOM_4_RIVER : LayerId = LayerId (44) ; } impl LayerId { pub const L_RIVER_4 : LayerId = LayerId (45) ; } impl LayerId { pub const L_SMOOTH_4_RIVER : LayerId = LayerId (46) ; } impl LayerId { pub const L_RIVER_MIX_4 : LayerId = LayerId (47) ; } impl LayerId { pub const L_OCEAN_TEMP_256 : LayerId = LayerId (48) ; } impl LayerId { pub const L13_OCEAN_TEMP_256 : LayerId = LayerId (48) ; } impl LayerId { pub const L_ZOOM_128_OCEAN : LayerId = LayerId (49) ; } impl LayerId { pub const L13_ZOOM_128 : LayerId = LayerId (49) ; } impl LayerId { pub const L_ZOOM_64_OCEAN : LayerId = LayerId (50) ; } impl LayerId { pub const L13_ZOOM_64 : LayerId = LayerId (50) ; } impl LayerId { pub const L_ZOOM_32_OCEAN : LayerId = LayerId (51) ; } impl LayerId { pub const L13_ZOOM_32 : LayerId = LayerId (51) ; } impl LayerId { pub const L_ZOOM_16_OCEAN : LayerId = LayerId (52) ; } impl LayerId { pub const L13_ZOOM_16 : LayerId = LayerId (52) ; } impl LayerId { pub const L_ZOOM_8_OCEAN : LayerId = LayerId (53) ; } impl LayerId { pub const L13_ZOOM_8 : LayerId = LayerId (53) ; } impl LayerId { pub const L_ZOOM_4_OCEAN : LayerId = LayerId (54) ; } impl LayerId { pub const L13_ZOOM_4 : LayerId = LayerId (54) ; } impl LayerId { pub const L_OCEAN_MIX_4 : LayerId = LayerId (55) ; } impl LayerId { pub const L13_OCEAN_MIX_4 : LayerId = LayerId (55) ; } impl LayerId { pub const L_VORONOI_1 : LayerId = LayerId (56) ; } impl LayerId { pub const L_VORONOI_ZOOM_1 : LayerId = LayerId (56) ; } impl LayerId { pub const L_ZOOM_LARGE_A : LayerId = LayerId (57) ; } impl LayerId { pub const L_ZOOM_LARGE_B : LayerId = LayerId (58) ; } impl LayerId { pub const L_ZOOM_L_RIVER_A : LayerId = LayerId (59) ; } impl LayerId { pub const L_ZOOM_L_RIVER_B : LayerId = LayerId (60) ; } impl LayerId { pub const L_NUM : LayerId = LayerId (61) ; } # [repr (transparent)] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct LayerId (pub :: std :: os :: raw :: c_uint) ; pub type mapfunc_t = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Layer { pub getMap : mapfunc_t , pub mc : i8 , pub zoom : i8 , pub edge : i8 , pub scale : :: std :: os :: raw :: c_int , pub layerSalt : u64 , pub startSalt : u64 , pub startSeed : u64 , pub noise : * mut :: std :: os :: raw :: c_void , pub data : * mut :: std :: os :: raw :: c_void , pub p : * mut Layer , pub p2 : * mut Layer , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Layer"] [:: std :: mem :: size_of :: < Layer > () - 72usize] ; ["Alignment of Layer"] [:: std :: mem :: align_of :: < Layer > () - 8usize] ; ["Offset of field: Layer::getMap"] [:: std :: mem :: offset_of ! (Layer , getMap) - 0usize] ; ["Offset of field: Layer::mc"] [:: std :: mem :: offset_of ! (Layer , mc) - 8usize] ; ["Offset of field: Layer::zoom"] [:: std :: mem :: offset_of ! (Layer , zoom) - 9usize] ; ["Offset of field: Layer::edge"] [:: std :: mem :: offset_of ! (Layer , edge) - 10usize] ; ["Offset of field: Layer::scale"] [:: std :: mem :: offset_of ! (Layer , scale) - 12usize] ; ["Offset of field: Layer::layerSalt"] [:: std :: mem :: offset_of ! (Layer , layerSalt) - 16usize] ; ["Offset of field: Layer::startSalt"] [:: std :: mem :: offset_of ! (Layer , startSalt) - 24usize] ; ["Offset of field: Layer::startSeed"] [:: std :: mem :: offset_of ! (Layer , startSeed) - 32usize] ; ["Offset of field: Layer::noise"] [:: std :: mem :: offset_of ! (Layer , noise) - 40usize] ; ["Offset of field: Layer::data"] [:: std :: mem :: offset_of ! (Layer , data) - 48usize] ; ["Offset of field: Layer::p"] [:: std :: mem :: offset_of ! (Layer , p) - 56usize] ; ["Offset of field: Layer::p2"] [:: std :: mem :: offset_of ! (Layer , p2) - 64usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct LayerStack { pub layers : [Layer ; 61usize] , pub entry_1 : * mut Layer , pub entry_4 : * mut Layer , pub entry_16 : * mut Layer , pub entry_64 : * mut Layer , pub entry_256 : * mut Layer , pub oceanRnd : PerlinNoise , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of LayerStack"] [:: std :: mem :: size_of :: < LayerStack > () - 4752usize] ; ["Alignment of LayerStack"] [:: std :: mem :: align_of :: < LayerStack > () - 8usize] ; ["Offset of field: LayerStack::layers"] [:: std :: mem :: offset_of ! (LayerStack , layers) - 0usize] ; ["Offset of field: LayerStack::entry_1"] [:: std :: mem :: offset_of ! (LayerStack , entry_1) - 4392usize] ; ["Offset of field: LayerStack::entry_4"] [:: std :: mem :: offset_of ! (LayerStack , entry_4) - 4400usize] ; ["Offset of field: LayerStack::entry_16"] [:: std :: mem :: offset_of ! (LayerStack , entry_16) - 4408usize] ; ["Offset of field: LayerStack::entry_64"] [:: std :: mem :: offset_of ! (LayerStack , entry_64) - 4416usize] ; ["Offset of field: LayerStack::entry_256"] [:: std :: mem :: offset_of ! (LayerStack , entry_256) - 4424usize] ; ["Offset of field: LayerStack::oceanRnd"] [:: std :: mem :: offset_of ! (LayerStack , oceanRnd) - 4432usize] ; } ; unsafe extern "C" { pub fn setLayerSeed (layer : * mut Layer , worldSeed : u64) ; } unsafe extern "C" { pub fn mapContinent (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapZoomFuzzy (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapZoom (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapLand (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapLand16 (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapLandB18 (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapIsland (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapSnow (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapSnow16 (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapCool (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapHeat (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapSpecial (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapMushroom (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapDeepOcean (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapBiome (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapBamboo (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapNoise (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapBiomeEdge (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapHills (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapRiver (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapSmooth (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapSunflower (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapShore (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapSwampRiver (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapRiverMix (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapOceanTemp (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapOceanMix (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapVoronoi (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapVoronoi114 (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getVoronoiSHA (worldSeed : u64) -> u64 ; } unsafe extern "C" { pub fn voronoiAccess3D (sha : u64 , x : :: std :: os :: raw :: c_int , y : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , x4 : * mut :: std :: os :: raw :: c_int , y4 : * mut :: std :: os :: raw :: c_int , z4 : * mut :: std :: os :: raw :: c_int) ; } unsafe extern "C" { pub fn mapVoronoiPlane (sha : u64 , out : * mut :: std :: os :: raw :: c_int , src : * mut :: std :: os :: raw :: c_int , x : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , w : :: std :: os :: raw :: c_int , h : :: std :: os :: raw :: c_int , y : :: std :: os :: raw :: c_int , px : :: std :: os :: raw :: c_int , pz : :: std :: os :: raw :: c_int , pw : :: std :: os :: raw :: c_int , ph : :: std :: os :: raw :: c_int) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Range { pub scale : :: std :: os :: raw :: c_int , pub x : :: std :: os :: raw :: c_int , pub z : :: std :: os :: raw :: c_int , pub sx : :: std :: os :: raw :: c_int , pub sz : :: std :: os :: raw :: c_int , pub y : :: std :: os :: raw :: c_int , pub sy : :: std :: os :: raw :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Range"] [:: std :: mem :: size_of :: < Range > () - 28usize] ; ["Alignment of Range"] [:: std :: mem :: align_of :: < Range > () - 4usize] ; ["Offset of field: Range::scale"] [:: std :: mem :: offset_of ! (Range , scale) - 0usize] ; ["Offset of field: Range::x"] [:: std :: mem :: offset_of ! (Range , x) - 4usize] ; ["Offset of field: Range::z"] [:: std :: mem :: offset_of ! (Range , z) - 8usize] ; ["Offset of field: Range::sx"] [:: std :: mem :: offset_of ! (Range , sx) - 12usize] ; ["Offset of field: Range::sz"] [:: std :: mem :: offset_of ! (Range , sz) - 16usize] ; ["Offset of field: Range::y"] [:: std :: mem :: offset_of ! (Range , y) - 20usize] ; ["Offset of field: Range::sy"] [:: std :: mem :: offset_of ! (Range , sy) - 24usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct NetherNoise { pub temperature : DoublePerlinNoise , pub humidity : DoublePerlinNoise , pub oct : [PerlinNoise ; 8usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of NetherNoise"] [:: std :: mem :: size_of :: < NetherNoise > () - 2640usize] ; ["Alignment of NetherNoise"] [:: std :: mem :: align_of :: < NetherNoise > () - 8usize] ; ["Offset of field: NetherNoise::temperature"] [:: std :: mem :: offset_of ! (NetherNoise , temperature) - 0usize] ; ["Offset of field: NetherNoise::humidity"] [:: std :: mem :: offset_of ! (NetherNoise , humidity) - 40usize] ; ["Offset of field: NetherNoise::oct"] [:: std :: mem :: offset_of ! (NetherNoise , oct) - 80usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct EndNoise { pub perlin : PerlinNoise , pub mc : :: std :: os :: raw :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of EndNoise"] [:: std :: mem :: size_of :: < EndNoise > () - 328usize] ; ["Alignment of EndNoise"] [:: std :: mem :: align_of :: < EndNoise > () - 8usize] ; ["Offset of field: EndNoise::perlin"] [:: std :: mem :: offset_of ! (EndNoise , perlin) - 0usize] ; ["Offset of field: EndNoise::mc"] [:: std :: mem :: offset_of ! (EndNoise , mc) - 320usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct SurfaceNoise { pub xzScale : f64 , pub yScale : f64 , pub xzFactor : f64 , pub yFactor : f64 , pub octmin : OctaveNoise , pub octmax : OctaveNoise , pub octmain : OctaveNoise , pub octsurf : OctaveNoise , pub octdepth : OctaveNoise , pub oct : [PerlinNoise ; 60usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of SurfaceNoise"] [:: std :: mem :: size_of :: < SurfaceNoise > () - 19312usize] ; ["Alignment of SurfaceNoise"] [:: std :: mem :: align_of :: < SurfaceNoise > () - 8usize] ; ["Offset of field: SurfaceNoise::xzScale"] [:: std :: mem :: offset_of ! (SurfaceNoise , xzScale) - 0usize] ; ["Offset of field: SurfaceNoise::yScale"] [:: std :: mem :: offset_of ! (SurfaceNoise , yScale) - 8usize] ; ["Offset of field: SurfaceNoise::xzFactor"] [:: std :: mem :: offset_of ! (SurfaceNoise , xzFactor) - 16usize] ; ["Offset of field: SurfaceNoise::yFactor"] [:: std :: mem :: offset_of ! (SurfaceNoise , yFactor) - 24usize] ; ["Offset of field: SurfaceNoise::octmin"] [:: std :: mem :: offset_of ! (SurfaceNoise , octmin) - 32usize] ; ["Offset of field: SurfaceNoise::octmax"] [:: std :: mem :: offset_of ! (SurfaceNoise , octmax) - 48usize] ; ["Offset of field: SurfaceNoise::octmain"] [:: std :: mem :: offset_of ! (SurfaceNoise , octmain) - 64usize] ; ["Offset of field: SurfaceNoise::octsurf"] [:: std :: mem :: offset_of ! (SurfaceNoise , octsurf) - 80usize] ; ["Offset of field: SurfaceNoise::octdepth"] [:: std :: mem :: offset_of ! (SurfaceNoise , octdepth) - 96usize] ; ["Offset of field: SurfaceNoise::oct"] [:: std :: mem :: offset_of ! (SurfaceNoise , oct) - 112usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct SurfaceNoiseBeta { pub octmin : OctaveNoise , pub octmax : OctaveNoise , pub octmain : OctaveNoise , pub octcontA : OctaveNoise , pub octcontB : OctaveNoise , pub oct : [PerlinNoise ; 66usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of SurfaceNoiseBeta"] [:: std :: mem :: size_of :: < SurfaceNoiseBeta > () - 21200usize] ; ["Alignment of SurfaceNoiseBeta"] [:: std :: mem :: align_of :: < SurfaceNoiseBeta > () - 8usize] ; ["Offset of field: SurfaceNoiseBeta::octmin"] [:: std :: mem :: offset_of ! (SurfaceNoiseBeta , octmin) - 0usize] ; ["Offset of field: SurfaceNoiseBeta::octmax"] [:: std :: mem :: offset_of ! (SurfaceNoiseBeta , octmax) - 16usize] ; ["Offset of field: SurfaceNoiseBeta::octmain"] [:: std :: mem :: offset_of ! (SurfaceNoiseBeta , octmain) - 32usize] ; ["Offset of field: SurfaceNoiseBeta::octcontA"] [:: std :: mem :: offset_of ! (SurfaceNoiseBeta , octcontA) - 48usize] ; ["Offset of field: SurfaceNoiseBeta::octcontB"] [:: std :: mem :: offset_of ! (SurfaceNoiseBeta , octcontB) - 64usize] ; ["Offset of field: SurfaceNoiseBeta::oct"] [:: std :: mem :: offset_of ! (SurfaceNoiseBeta , oct) - 80usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct SeaLevelColumnNoiseBeta { pub contASample : f64 , pub contBSample : f64 , pub minSample : [f64 ; 2usize] , pub maxSample : [f64 ; 2usize] , pub mainSample : [f64 ; 2usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of SeaLevelColumnNoiseBeta"] [:: std :: mem :: size_of :: < SeaLevelColumnNoiseBeta > () - 64usize] ; ["Alignment of SeaLevelColumnNoiseBeta"] [:: std :: mem :: align_of :: < SeaLevelColumnNoiseBeta > () - 8usize] ; ["Offset of field: SeaLevelColumnNoiseBeta::contASample"] [:: std :: mem :: offset_of ! (SeaLevelColumnNoiseBeta , contASample) - 0usize] ; ["Offset of field: SeaLevelColumnNoiseBeta::contBSample"] [:: std :: mem :: offset_of ! (SeaLevelColumnNoiseBeta , contBSample) - 8usize] ; ["Offset of field: SeaLevelColumnNoiseBeta::minSample"] [:: std :: mem :: offset_of ! (SeaLevelColumnNoiseBeta , minSample) - 16usize] ; ["Offset of field: SeaLevelColumnNoiseBeta::maxSample"] [:: std :: mem :: offset_of ! (SeaLevelColumnNoiseBeta , maxSample) - 32usize] ; ["Offset of field: SeaLevelColumnNoiseBeta::mainSample"] [:: std :: mem :: offset_of ! (SeaLevelColumnNoiseBeta , mainSample) - 48usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Spline { pub len : :: std :: os :: raw :: c_int , pub typ : :: std :: os :: raw :: c_int , pub loc : [f32 ; 12usize] , pub der : [f32 ; 12usize] , pub val : [* mut Spline ; 12usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Spline"] [:: std :: mem :: size_of :: < Spline > () - 200usize] ; ["Alignment of Spline"] [:: std :: mem :: align_of :: < Spline > () - 8usize] ; ["Offset of field: Spline::len"] [:: std :: mem :: offset_of ! (Spline , len) - 0usize] ; ["Offset of field: Spline::typ"] [:: std :: mem :: offset_of ! (Spline , typ) - 4usize] ; ["Offset of field: Spline::loc"] [:: std :: mem :: offset_of ! (Spline , loc) - 8usize] ; ["Offset of field: Spline::der"] [:: std :: mem :: offset_of ! (Spline , der) - 56usize] ; ["Offset of field: Spline::val"] [:: std :: mem :: offset_of ! (Spline , val) - 104usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FixSpline { pub len : :: std :: os :: raw :: c_int , pub val : f32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of FixSpline"] [:: std :: mem :: size_of :: < FixSpline > () - 8usize] ; ["Alignment of FixSpline"] [:: std :: mem :: align_of :: < FixSpline > () - 4usize] ; ["Offset of field: FixSpline::len"] [:: std :: mem :: offset_of ! (FixSpline , len) - 0usize] ; ["Offset of field: FixSpline::val"] [:: std :: mem :: offset_of ! (FixSpline , val) - 4usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct SplineStack { pub stack : [Spline ; 42usize] , pub fstack : [FixSpline ; 151usize] , pub len : :: std :: os :: raw :: c_int , pub flen : :: std :: os :: raw :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of SplineStack"] [:: std :: mem :: size_of :: < SplineStack > () - 9616usize] ; ["Alignment of SplineStack"] [:: std :: mem :: align_of :: < SplineStack > () - 8usize] ; ["Offset of field: SplineStack::stack"] [:: std :: mem :: offset_of ! (SplineStack , stack) - 0usize] ; ["Offset of field: SplineStack::fstack"] [:: std :: mem :: offset_of ! (SplineStack , fstack) - 8400usize] ; ["Offset of field: SplineStack::len"] [:: std :: mem :: offset_of ! (SplineStack , len) - 9608usize] ; ["Offset of field: SplineStack::flen"] [:: std :: mem :: offset_of ! (SplineStack , flen) - 9612usize] ; } ; pub const NP_TEMPERATURE : _bindgen_ty_2 = _bindgen_ty_2 (0) ; pub const NP_HUMIDITY : _bindgen_ty_2 = _bindgen_ty_2 (1) ; pub const NP_CONTINENTALNESS : _bindgen_ty_2 = _bindgen_ty_2 (2) ; pub const NP_EROSION : _bindgen_ty_2 = _bindgen_ty_2 (3) ; pub const NP_SHIFT : _bindgen_ty_2 = _bindgen_ty_2 (4) ; pub const NP_DEPTH : _bindgen_ty_2 = _bindgen_ty_2 (4) ; pub const NP_WEIRDNESS : _bindgen_ty_2 = _bindgen_ty_2 (5) ; pub const NP_MAX : _bindgen_ty_2 = _bindgen_ty_2 (6) ; # [repr (transparent)] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct _bindgen_ty_2 (pub :: std :: os :: raw :: c_uint) ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct BiomeNoise { pub climate : [DoublePerlinNoise ; 6usize] , pub oct : [PerlinNoise ; 46usize] , pub sp : * mut Spline , pub ss : SplineStack , pub nptype : :: std :: os :: raw :: c_int , pub mc : :: std :: os :: raw :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of BiomeNoise"] [:: std :: mem :: size_of :: < BiomeNoise > () - 24592usize] ; ["Alignment of BiomeNoise"] [:: std :: mem :: align_of :: < BiomeNoise > () - 8usize] ; ["Offset of field: BiomeNoise::climate"] [:: std :: mem :: offset_of ! (BiomeNoise , climate) - 0usize] ; ["Offset of field: BiomeNoise::oct"] [:: std :: mem :: offset_of ! (BiomeNoise , oct) - 240usize] ; ["Offset of field: BiomeNoise::sp"] [:: std :: mem :: offset_of ! (BiomeNoise , sp) - 14960usize] ; ["Offset of field: BiomeNoise::ss"] [:: std :: mem :: offset_of ! (BiomeNoise , ss) - 14968usize] ; ["Offset of field: BiomeNoise::nptype"] [:: std :: mem :: offset_of ! (BiomeNoise , nptype) - 24584usize] ; ["Offset of field: BiomeNoise::mc"] [:: std :: mem :: offset_of ! (BiomeNoise , mc) - 24588usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct BiomeNoiseBeta { pub climate : [OctaveNoise ; 3usize] , pub oct : [PerlinNoise ; 10usize] , pub nptype : :: std :: os :: raw :: c_int , pub mc : :: std :: os :: raw :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of BiomeNoiseBeta"] [:: std :: mem :: size_of :: < BiomeNoiseBeta > () - 3256usize] ; ["Alignment of BiomeNoiseBeta"] [:: std :: mem :: align_of :: < BiomeNoiseBeta > () - 8usize] ; ["Offset of field: BiomeNoiseBeta::climate"] [:: std :: mem :: offset_of ! (BiomeNoiseBeta , climate) - 0usize] ; ["Offset of field: BiomeNoiseBeta::oct"] [:: std :: mem :: offset_of ! (BiomeNoiseBeta , oct) - 48usize] ; ["Offset of field: BiomeNoiseBeta::nptype"] [:: std :: mem :: offset_of ! (BiomeNoiseBeta , nptype) - 3248usize] ; ["Offset of field: BiomeNoiseBeta::mc"] [:: std :: mem :: offset_of ! (BiomeNoiseBeta , mc) - 3252usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct BiomeTree { pub steps : * const u32 , pub param : * const i32 , pub nodes : * const u64 , pub order : u32 , pub len : u32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of BiomeTree"] [:: std :: mem :: size_of :: < BiomeTree > () - 32usize] ; ["Alignment of BiomeTree"] [:: std :: mem :: align_of :: < BiomeTree > () - 8usize] ; ["Offset of field: BiomeTree::steps"] [:: std :: mem :: offset_of ! (BiomeTree , steps) - 0usize] ; ["Offset of field: BiomeTree::param"] [:: std :: mem :: offset_of ! (BiomeTree , param) - 8usize] ; ["Offset of field: BiomeTree::nodes"] [:: std :: mem :: offset_of ! (BiomeTree , nodes) - 16usize] ; ["Offset of field: BiomeTree::order"] [:: std :: mem :: offset_of ! (BiomeTree , order) - 24usize] ; ["Offset of field: BiomeTree::len"] [:: std :: mem :: offset_of ! (BiomeTree , len) - 28usize] ; } ; unsafe extern "C" { pub fn initSurfaceNoise (sn : * mut SurfaceNoise , dim : :: std :: os :: raw :: c_int , seed : u64) ; } unsafe extern "C" { pub fn initSurfaceNoiseBeta (snb : * mut SurfaceNoiseBeta , seed : u64) ; } unsafe extern "C" { pub fn sampleSurfaceNoise (sn : * const SurfaceNoise , x : :: std :: os :: raw :: c_int , y : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int) -> f64 ; } unsafe extern "C" { pub fn sampleSurfaceNoiseBetween (sn : * const SurfaceNoise , x : :: std :: os :: raw :: c_int , y : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , noiseMin : f64 , noiseMax : f64) -> f64 ; } unsafe extern "C" { # [doc = " Nether biomes are 3D, and generated at scale 1:4. Use voronoiAccess3D() to\n convert coordinates at 1:1 scale to their 1:4 access. Biome checks for\n structures are generally done at y=0.\n\n The function getNetherBiome() determines the nether biome at a given\n coordinate at scale 1:4. The parameter 'ndel' is an output noise delta for\n optimization purposes and can be ignored (nullable).\n\n Use mapNether2D() to get a 2D area of nether biomes at y=0, scale 1:4.\n\n The mapNether3D() function attempts to optimize the generation of a volume\n at scale 1:4. The output is indexed as:\n out[i_y*(r.sx*r.sz) + i_z*r.sx + i_x].\n If the optimization parameter 'confidence' has a value less than 1.0, the\n generation will generally be faster, but can yield incorrect results in some\n circumstances.\n\n The output buffer for the map-functions need only be of sufficient size to\n hold the generated area (i.e. w*h or r.sx*r.sy*r.sz)."] pub fn setNetherSeed (nn : * mut NetherNoise , seed : u64) ; } unsafe extern "C" { pub fn getNetherBiome (nn : * const NetherNoise , x : :: std :: os :: raw :: c_int , y : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , ndel : * mut f32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapNether2D (nn : * const NetherNoise , out : * mut :: std :: os :: raw :: c_int , x : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , w : :: std :: os :: raw :: c_int , h : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapNether3D (nn : * const NetherNoise , out : * mut :: std :: os :: raw :: c_int , r : Range , confidence : f32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " The scaled Nether generation supports scales 1, 4, 16, 64, and 256.\n It is similar to mapNether3D(), but applies voronoi zoom if necessary, and\n fills the output buffer with nether_wastes for versions older than 1.16."] pub fn genNetherScaled (nn : * const NetherNoise , out : * mut :: std :: os :: raw :: c_int , r : Range , mc : :: std :: os :: raw :: c_int , sha : u64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " End biome generation is based on simplex noise and varies only at a 1:16\n chunk scale which can be generated with mapEndBiome(). The function mapEnd()\n is a variation which also scales this up on a regular grid to 1:4. The final\n access at a 1:1 scale uses voronoi."] pub fn setEndSeed (en : * mut EndNoise , mc : :: std :: os :: raw :: c_int , seed : u64) ; } unsafe extern "C" { pub fn mapEndBiome (en : * const EndNoise , out : * mut :: std :: os :: raw :: c_int , x : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , w : :: std :: os :: raw :: c_int , h : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapEnd (en : * const EndNoise , out : * mut :: std :: os :: raw :: c_int , x : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , w : :: std :: os :: raw :: c_int , h : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getEndSurfaceHeight (mc : :: std :: os :: raw :: c_int , seed : u64 , x : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapEndSurfaceHeight (y : * mut f32 , en : * const EndNoise , sn : * const SurfaceNoise , x : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , w : :: std :: os :: raw :: c_int , h : :: std :: os :: raw :: c_int , scale : :: std :: os :: raw :: c_int , ymin : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " The scaled End generation supports scales 1, 4, 16, and 64.\n The End biomes are usually 2D, but in 1.15+ there is 3D voronoi noise, which\n is controlled by the 'sha' hash of the seed. For scales higher than 1:1, and\n versions up to 1.14, 'sha' is ignored."] pub fn genEndScaled (en : * const EndNoise , out : * mut :: std :: os :: raw :: c_int , r : Range , mc : :: std :: os :: raw :: c_int , sha : u64) -> :: std :: os :: raw :: c_int ; } pub const SAMPLE_NO_SHIFT : _bindgen_ty_3 = _bindgen_ty_3 (1) ; pub const SAMPLE_NO_DEPTH : _bindgen_ty_3 = _bindgen_ty_3 (2) ; pub const SAMPLE_NO_BIOME : _bindgen_ty_3 = _bindgen_ty_3 (4) ; # [repr (transparent)] # [doc = " In 1.18 the Overworld uses a new noise map system for the biome generation.\n The random number generation also has updated to a Xiroshiro128 algorithm.\n The scale is 1:4, and is sampled at each point individually as there is\n currently not much benefit from generating a volume as a whole.\n\n The 1.18 End generation remains similar to 1.17 and does NOT use the\n biome noise."] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct _bindgen_ty_3 (pub :: std :: os :: raw :: c_uint) ; unsafe extern "C" { pub fn initBiomeNoise (bn : * mut BiomeNoise , mc : :: std :: os :: raw :: c_int) ; } unsafe extern "C" { pub fn setBiomeSeed (bn : * mut BiomeNoise , seed : u64 , large : :: std :: os :: raw :: c_int) ; } unsafe extern "C" { pub fn setBetaBiomeSeed (bnb : * mut BiomeNoiseBeta , seed : u64) ; } unsafe extern "C" { pub fn sampleBiomeNoise (bn : * const BiomeNoise , np : * mut i64 , x : :: std :: os :: raw :: c_int , y : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , dat : * mut u64 , sample_flags : u32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn sampleBiomeNoiseBeta (bnb : * const BiomeNoiseBeta , np : * mut i64 , nv : * mut f64 , x : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn approxSurfaceBeta (bnb : * const BiomeNoiseBeta , snb : * const SurfaceNoiseBeta , x : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int) -> f64 ; } unsafe extern "C" { # [doc = " (Alpha 1.2 - Beta 1.7)\n Temperature and humidity values to biome."] pub fn getOldBetaBiome (t : f32 , h : f32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " Uses the global biome tree definitions (see tables/btreeXX.h)\n to map a noise point (i.e. climate) to the corresponding overworld biome."] pub fn climateToBiome (mc : :: std :: os :: raw :: c_int , np : * const u64 , dat : * mut u64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " Initialize BiomeNoise for only a single climate parameter.\n If nptype == NP_DEPTH, the value is sampled at y=0. Note that this value\n changes linearly with the height (i.e. -= y/128).\n A maximum of nmax octaves is set, initializing only the most contributing\n octaves up to that point. Use -1 for a full initialization."] pub fn setClimateParaSeed (bn : * mut BiomeNoise , seed : u64 , large : :: std :: os :: raw :: c_int , nptype : :: std :: os :: raw :: c_int , nmax : :: std :: os :: raw :: c_int) ; } unsafe extern "C" { pub fn sampleClimatePara (bn : * const BiomeNoise , np : * mut i64 , x : f64 , z : f64) -> f64 ; } unsafe extern "C" { # [doc = " Currently, in 1.18, we have to generate biomes one chunk at a time to get an\n accurate mapping of the biomes in the level storage, as there is no longer a\n unique mapping from noise points to biomes (MC-241546). Note that the results\n from this are not suitable for chunk population/structure generation.\n The output is in the form out[x][y][z] for the 64 biome points in the chunk\n section. The coordinates {cx,cy,cz} are all at scale 1:16 and the 'dat'\n argument should be the previous noise sampling and can be left NULL."] pub fn genBiomeNoiseChunkSection (bn : * const BiomeNoise , out : * mut [[:: std :: os :: raw :: c_int ; 4usize] ; 4usize] , cx : :: std :: os :: raw :: c_int , cy : :: std :: os :: raw :: c_int , cz : :: std :: os :: raw :: c_int , dat : * mut u64) ; } unsafe extern "C" { # [doc = " The scaled biome noise generation applies for the Overworld version 1.18+.\n The 'sha' hash of the seed is only required for voronoi at scale 1:1.\n A scale of zero is interpreted as the default 1:4 scale."] pub fn genBiomeNoiseScaled (bn : * const BiomeNoise , out : * mut :: std :: os :: raw :: c_int , r : Range , sha : u64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " Generates the biomes for Beta 1.7, the surface noise is optional and enables\n ocean mapping in areas that fall below the sea level."] pub fn genBiomeNoiseBetaScaled (bnb : * const BiomeNoiseBeta , snb : * const SurfaceNoiseBeta , out : * mut :: std :: os :: raw :: c_int , r : Range) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getBiomeDepthAndScale (id : :: std :: os :: raw :: c_int , depth : * mut f64 , scale : * mut f64 , grass : * mut :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getVoronoiSrcRange (r : Range) -> Range ; } pub const LARGE_BIOMES : _bindgen_ty_4 = _bindgen_ty_4 (1) ; pub const NO_BETA_OCEAN : _bindgen_ty_4 = _bindgen_ty_4 (2) ; pub const FORCE_OCEAN_VARIANTS : _bindgen_ty_4 = _bindgen_ty_4 (4) ; # [repr (transparent)] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct _bindgen_ty_4 (pub :: std :: os :: raw :: c_uint) ; # [repr (C)] # [derive (Copy , Clone)] pub struct Generator { pub mc : :: std :: os :: raw :: c_int , pub dim : :: std :: os :: raw :: c_int , pub flags : u32 , pub seed : u64 , pub sha : u64 , pub __bindgen_anon_1 : Generator__bindgen_ty_1 , pub nn : NetherNoise , pub en : EndNoise , } # [repr (C)] # [derive (Copy , Clone)] pub union Generator__bindgen_ty_1 { pub __bindgen_anon_1 : Generator__bindgen_ty_1__bindgen_ty_1 , pub __bindgen_anon_2 : Generator__bindgen_ty_1__bindgen_ty_2 , pub __bindgen_anon_3 : Generator__bindgen_ty_1__bindgen_ty_3 , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Generator__bindgen_ty_1__bindgen_ty_1 { pub ls : LayerStack , pub xlayer : [Layer ; 5usize] , pub entry : * mut Layer , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Generator__bindgen_ty_1__bindgen_ty_1"] [:: std :: mem :: size_of :: < Generator__bindgen_ty_1__bindgen_ty_1 > () - 5120usize] ; ["Alignment of Generator__bindgen_ty_1__bindgen_ty_1"] [:: std :: mem :: align_of :: < Generator__bindgen_ty_1__bindgen_ty_1 > () - 8usize] ; ["Offset of field: Generator__bindgen_ty_1__bindgen_ty_1::ls"] [:: std :: mem :: offset_of ! (Generator__bindgen_ty_1__bindgen_ty_1 , ls) - 0usize] ; ["Offset of field: Generator__bindgen_ty_1__bindgen_ty_1::xlayer"] [:: std :: mem :: offset_of ! (Generator__bindgen_ty_1__bindgen_ty_1 , xlayer) - 4752usize] ; ["Offset of field: Generator__bindgen_ty_1__bindgen_ty_1::entry"] [:: std :: mem :: offset_of ! (Generator__bindgen_ty_1__bindgen_ty_1 , entry) - 5112usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Generator__bindgen_ty_1__bindgen_ty_2 { pub bn : BiomeNoise , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Generator__bindgen_ty_1__bindgen_ty_2"] [:: std :: mem :: size_of :: < Generator__bindgen_ty_1__bindgen_ty_2 > () - 24592usize] ; ["Alignment of Generator__bindgen_ty_1__bindgen_ty_2"] [:: std :: mem :: align_of :: < Generator__bindgen_ty_1__bindgen_ty_2 > () - 8usize] ; ["Offset of field: Generator__bindgen_ty_1__bindgen_ty_2::bn"] [:: std :: mem :: offset_of ! (Generator__bindgen_ty_1__bindgen_ty_2 , bn) - 0usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Generator__bindgen_ty_1__bindgen_ty_3 { pub bnb : BiomeNoiseBeta , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Generator__bindgen_ty_1__bindgen_ty_3"] [:: std :: mem :: size_of :: < Generator__bindgen_ty_1__bindgen_ty_3 > () - 3256usize] ; ["Alignment of Generator__bindgen_ty_1__bindgen_ty_3"] [:: std :: mem :: align_of :: < Generator__bindgen_ty_1__bindgen_ty_3 > () - 8usize] ; ["Offset of field: Generator__bindgen_ty_1__bindgen_ty_3::bnb"] [:: std :: mem :: offset_of ! (Generator__bindgen_ty_1__bindgen_ty_3 , bnb) - 0usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Generator__bindgen_ty_1"] [:: std :: mem :: size_of :: < Generator__bindgen_ty_1 > () - 24592usize] ; ["Alignment of Generator__bindgen_ty_1"] [:: std :: mem :: align_of :: < Generator__bindgen_ty_1 > () - 8usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Generator"] [:: std :: mem :: size_of :: < Generator > () - 27592usize] ; ["Alignment of Generator"] [:: std :: mem :: align_of :: < Generator > () - 8usize] ; ["Offset of field: Generator::mc"] [:: std :: mem :: offset_of ! (Generator , mc) - 0usize] ; ["Offset of field: Generator::dim"] [:: std :: mem :: offset_of ! (Generator , dim) - 4usize] ; ["Offset of field: Generator::flags"] [:: std :: mem :: offset_of ! (Generator , flags) - 8usize] ; ["Offset of field: Generator::seed"] [:: std :: mem :: offset_of ! (Generator , seed) - 16usize] ; ["Offset of field: Generator::sha"] [:: std :: mem :: offset_of ! (Generator , sha) - 24usize] ; ["Offset of field: Generator::nn"] [:: std :: mem :: offset_of ! (Generator , nn) - 24624usize] ; ["Offset of field: Generator::en"] [:: std :: mem :: offset_of ! (Generator , en) - 27264usize] ; } ; unsafe extern "C" { # [doc = " Sets up a biome generator for a given MC version. The 'flags' can be used to\n control LARGE_BIOMES or to FORCE_OCEAN_VARIANTS to enable ocean variants at\n scales higher than normal."] pub fn setupGenerator (g : * mut Generator , mc : :: std :: os :: raw :: c_int , flags : u32) ; } unsafe extern "C" { # [doc = " Initializes the generator for a given dimension and seed.\n dim=0:   Overworld\n dim=-1:  Nether\n dim=+1:  End"] pub fn applySeed (g : * mut Generator , dim : :: std :: os :: raw :: c_int , seed : u64) ; } unsafe extern "C" { # [doc = " Calculates the buffer size (number of ints) required to generate a cuboidal\n volume of size (sx, sy, sz). If 'sy' is zero the buffer is calculated for a\n 2D plane (which is equivalent to sy=1 here).\n The function allocCache() can be used to allocate the corresponding int\n buffer using malloc()."] pub fn getMinCacheSize (g : * const Generator , scale : :: std :: os :: raw :: c_int , sx : :: std :: os :: raw :: c_int , sy : :: std :: os :: raw :: c_int , sz : :: std :: os :: raw :: c_int) -> usize ; } unsafe extern "C" { pub fn allocCache (g : * const Generator , r : Range) -> * mut :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " Generates the biomes for a cuboidal scaled range given by 'r'.\n (See description of Range for more detail.)\n\n The output is generated inside the cache. Upon success the biome ids can be\n accessed by indexing as:\n  cache[ y*r.sx*r.sz + z*r.sx + x ]\n where (x,y,z) is an relative position inside the range cuboid.\n\n The required length of the cache can be determined with getMinCacheSize().\n\n The return value is zero upon success."] pub fn genBiomes (g : * const Generator , cache : * mut :: std :: os :: raw :: c_int , r : Range) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " Gets the biome for a specified scaled position. Note that the scale should\n be either 1 or 4, for block or biome coordinates respectively.\n Returns none (-1) upon failure."] pub fn getBiomeAt (g : * const Generator , scale : :: std :: os :: raw :: c_int , x : :: std :: os :: raw :: c_int , y : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " Returns the default layer that corresponds to the given scale.\n Supported scales are {0, 1, 4, 16, 64, 256}. A scale of zero indicates the\n custom entry layer 'g->entry'.\n (Overworld, MC <= 1.17)"] pub fn getLayerForScale (g : * const Generator , scale : :: std :: os :: raw :: c_int) -> * const Layer ; } unsafe extern "C" { # [doc = "=============================================================================\n Layered Biome Generation (old interface up to 1.17)\n============================================================================="] pub fn setupLayerStack (g : * mut LayerStack , mc : :: std :: os :: raw :: c_int , largeBiomes : :: std :: os :: raw :: c_int) ; } unsafe extern "C" { pub fn getMinLayerCacheSize (layer : * const Layer , sizeX : :: std :: os :: raw :: c_int , sizeZ : :: std :: os :: raw :: c_int) -> usize ; } unsafe extern "C" { pub fn setupLayer (l : * mut Layer , map : mapfunc_t , mc : :: std :: os :: raw :: c_int , zoom : i8 , edge : i8 , saltbase : u64 , p : * mut Layer , p2 : * mut Layer) -> * mut Layer ; } unsafe extern "C" { pub fn genArea (layer : * const Layer , out : * mut :: std :: os :: raw :: c_int , areaX : :: std :: os :: raw :: c_int , areaZ : :: std :: os :: raw :: c_int , areaWidth : :: std :: os :: raw :: c_int , areaHeight : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " Map an approximation of the Overworld surface height.\n The horizontal scaling is 1:4. If non-null, the ids are filled with the\n biomes of the area. The height (written to y) is in blocks."] pub fn mapApproxHeight (y : * mut f32 , ids : * mut :: std :: os :: raw :: c_int , g : * const Generator , sn : * const SurfaceNoise , x : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , w : :: std :: os :: raw :: c_int , h : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } impl StructureType { pub const Feature : StructureType = StructureType (0) ; } impl StructureType { pub const Desert_Pyramid : StructureType = StructureType (1) ; } impl StructureType { pub const Jungle_Temple : StructureType = StructureType (2) ; } impl StructureType { pub const Jungle_Pyramid : StructureType = StructureType (2) ; } impl StructureType { pub const Swamp_Hut : StructureType = StructureType (3) ; } impl StructureType { pub const Igloo : StructureType = StructureType (4) ; } impl StructureType { pub const Village : StructureType = StructureType (5) ; } impl StructureType { pub const Ocean_Ruin : StructureType = StructureType (6) ; } impl StructureType { pub const Shipwreck : StructureType = StructureType (7) ; } impl StructureType { pub const Monument : StructureType = StructureType (8) ; } impl StructureType { pub const Mansion : StructureType = StructureType (9) ; } impl StructureType { pub const Outpost : StructureType = StructureType (10) ; } impl StructureType { pub const Ruined_Portal : StructureType = StructureType (11) ; } impl StructureType { pub const Ruined_Portal_N : StructureType = StructureType (12) ; } impl StructureType { pub const Ancient_City : StructureType = StructureType (13) ; } impl StructureType { pub const Treasure : StructureType = StructureType (14) ; } impl StructureType { pub const Mineshaft : StructureType = StructureType (15) ; } impl StructureType { pub const Desert_Well : StructureType = StructureType (16) ; } impl StructureType { pub const Geode : StructureType = StructureType (17) ; } impl StructureType { pub const Fortress : StructureType = StructureType (18) ; } impl StructureType { pub const Bastion : StructureType = StructureType (19) ; } impl StructureType { pub const End_City : StructureType = StructureType (20) ; } impl StructureType { pub const End_Gateway : StructureType = StructureType (21) ; } impl StructureType { pub const End_Island : StructureType = StructureType (22) ; } impl StructureType { pub const Trail_Ruins : StructureType = StructureType (23) ; } impl StructureType { pub const Trial_Chambers : StructureType = StructureType (24) ; } impl StructureType { pub const FEATURE_NUM : StructureType = StructureType (25) ; } # [repr (transparent)] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct StructureType (pub :: std :: os :: raw :: c_uint) ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct StructureConfig { pub salt : i32 , pub regionSize : i8 , pub chunkRange : i8 , pub structType : u8 , pub dim : i8 , pub rarity : f32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of StructureConfig"] [:: std :: mem :: size_of :: < StructureConfig > () - 12usize] ; ["Alignment of StructureConfig"] [:: std :: mem :: align_of :: < StructureConfig > () - 4usize] ; ["Offset of field: StructureConfig::salt"] [:: std :: mem :: offset_of ! (StructureConfig , salt) - 0usize] ; ["Offset of field: StructureConfig::regionSize"] [:: std :: mem :: offset_of ! (StructureConfig , regionSize) - 4usize] ; ["Offset of field: StructureConfig::chunkRange"] [:: std :: mem :: offset_of ! (StructureConfig , chunkRange) - 5usize] ; ["Offset of field: StructureConfig::structType"] [:: std :: mem :: offset_of ! (StructureConfig , structType) - 6usize] ; ["Offset of field: StructureConfig::dim"] [:: std :: mem :: offset_of ! (StructureConfig , dim) - 7usize] ; ["Offset of field: StructureConfig::rarity"] [:: std :: mem :: offset_of ! (StructureConfig , rarity) - 8usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Pos { pub x : :: std :: os :: raw :: c_int , pub z : :: std :: os :: raw :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Pos"] [:: std :: mem :: size_of :: < Pos > () - 8usize] ; ["Alignment of Pos"] [:: std :: mem :: align_of :: < Pos > () - 4usize] ; ["Offset of field: Pos::x"] [:: std :: mem :: offset_of ! (Pos , x) - 0usize] ; ["Offset of field: Pos::z"] [:: std :: mem :: offset_of ! (Pos , z) - 4usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Pos3 { pub x : :: std :: os :: raw :: c_int , pub y : :: std :: os :: raw :: c_int , pub z : :: std :: os :: raw :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Pos3"] [:: std :: mem :: size_of :: < Pos3 > () - 12usize] ; ["Alignment of Pos3"] [:: std :: mem :: align_of :: < Pos3 > () - 4usize] ; ["Offset of field: Pos3::x"] [:: std :: mem :: offset_of ! (Pos3 , x) - 0usize] ; ["Offset of field: Pos3::y"] [:: std :: mem :: offset_of ! (Pos3 , y) - 4usize] ; ["Offset of field: Pos3::z"] [:: std :: mem :: offset_of ! (Pos3 , z) - 8usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct StrongholdIter { pub pos : Pos , pub nextapprox : Pos , pub index : :: std :: os :: raw :: c_int , pub ringnum : :: std :: os :: raw :: c_int , pub ringmax : :: std :: os :: raw :: c_int , pub ringidx : :: std :: os :: raw :: c_int , pub angle : f64 , pub dist : f64 , pub rnds : u64 , pub mc : :: std :: os :: raw :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of StrongholdIter"] [:: std :: mem :: size_of :: < StrongholdIter > () - 64usize] ; ["Alignment of StrongholdIter"] [:: std :: mem :: align_of :: < StrongholdIter > () - 8usize] ; ["Offset of field: StrongholdIter::pos"] [:: std :: mem :: offset_of ! (StrongholdIter , pos) - 0usize] ; ["Offset of field: StrongholdIter::nextapprox"] [:: std :: mem :: offset_of ! (StrongholdIter , nextapprox) - 8usize] ; ["Offset of field: StrongholdIter::index"] [:: std :: mem :: offset_of ! (StrongholdIter , index) - 16usize] ; ["Offset of field: StrongholdIter::ringnum"] [:: std :: mem :: offset_of ! (StrongholdIter , ringnum) - 20usize] ; ["Offset of field: StrongholdIter::ringmax"] [:: std :: mem :: offset_of ! (StrongholdIter , ringmax) - 24usize] ; ["Offset of field: StrongholdIter::ringidx"] [:: std :: mem :: offset_of ! (StrongholdIter , ringidx) - 28usize] ; ["Offset of field: StrongholdIter::angle"] [:: std :: mem :: offset_of ! (StrongholdIter , angle) - 32usize] ; ["Offset of field: StrongholdIter::dist"] [:: std :: mem :: offset_of ! (StrongholdIter , dist) - 40usize] ; ["Offset of field: StrongholdIter::rnds"] [:: std :: mem :: offset_of ! (StrongholdIter , rnds) - 48usize] ; ["Offset of field: StrongholdIter::mc"] [:: std :: mem :: offset_of ! (StrongholdIter , mc) - 56usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct StructureVariant { pub _bitfield_align_1 : [u8 ; 0] , pub _bitfield_1 : __BindgenBitfieldUnit < [u8 ; 1usize] > , pub size : u8 , pub start : u8 , pub biome : :: std :: os :: raw :: c_short , pub rotation : u8 , pub mirror : u8 , pub x : i16 , pub y : i16 , pub z : i16 , pub sx : i16 , pub sy : i16 , pub sz : i16 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of StructureVariant"] [:: std :: mem :: size_of :: < StructureVariant > () - 20usize] ; ["Alignment of StructureVariant"] [:: std :: mem :: align_of :: < StructureVariant > () - 2usize] ; ["Offset of field: StructureVariant::size"] [:: std :: mem :: offset_of ! (StructureVariant , size) - 1usize] ; ["Offset of field: StructureVariant::start"] [:: std :: mem :: offset_of ! (StructureVariant , start) - 2usize] ; ["Offset of field: StructureVariant::biome"] [:: std :: mem :: offset_of ! (StructureVariant , biome) - 4usize] ; ["Offset of field: StructureVariant::rotation"] [:: std :: mem :: offset_of ! (StructureVariant , rotation) - 6usize] ; ["Offset of field: StructureVariant::mirror"] [:: std :: mem :: offset_of ! (StructureVariant , mirror) - 7usize] ; ["Offset of field: StructureVariant::x"] [:: std :: mem :: offset_of ! (StructureVariant , x) - 8usize] ; ["Offset of field: StructureVariant::y"] [:: std :: mem :: offset_of ! (StructureVariant , y) - 10usize] ; ["Offset of field: StructureVariant::z"] [:: std :: mem :: offset_of ! (StructureVariant , z) - 12usize] ; ["Offset of field: StructureVariant::sx"] [:: std :: mem :: offset_of ! (StructureVariant , sx) - 14usize] ; ["Offset of field: StructureVariant::sy"] [:: std :: mem :: offset_of ! (StructureVariant , sy) - 16usize] ; ["Offset of field: StructureVariant::sz"] [:: std :: mem :: offset_of ! (StructureVariant , sz) - 18usize] ; } ; impl StructureVariant { # [inline] pub fn abandoned (& self) -> u8 { unsafe { :: std :: mem :: transmute (self . _bitfield_1 . get (0usize , 1u8) as u8) } } # [inline] pub fn set_abandoned (& mut self , val : u8) { unsafe { let val : u8 = :: std :: mem :: transmute (val) ; self . _bitfield_1 . set (0usize , 1u8 , val as u64) } } # [inline] pub unsafe fn abandoned_raw (this : * const Self) -> u8 { unsafe { :: std :: mem :: transmute (< __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_get (:: std :: ptr :: addr_of ! ((* this) . _bitfield_1) , 0usize , 1u8 ,) as u8) } } # [inline] pub unsafe fn set_abandoned_raw (this : * mut Self , val : u8) { unsafe { let val : u8 = :: std :: mem :: transmute (val) ; < __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_set (:: std :: ptr :: addr_of_mut ! ((* this) . _bitfield_1) , 0usize , 1u8 , val as u64 ,) } } # [inline] pub fn giant (& self) -> u8 { unsafe { :: std :: mem :: transmute (self . _bitfield_1 . get (1usize , 1u8) as u8) } } # [inline] pub fn set_giant (& mut self , val : u8) { unsafe { let val : u8 = :: std :: mem :: transmute (val) ; self . _bitfield_1 . set (1usize , 1u8 , val as u64) } } # [inline] pub unsafe fn giant_raw (this : * const Self) -> u8 { unsafe { :: std :: mem :: transmute (< __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_get (:: std :: ptr :: addr_of ! ((* this) . _bitfield_1) , 1usize , 1u8 ,) as u8) } } # [inline] pub unsafe fn set_giant_raw (this : * mut Self , val : u8) { unsafe { let val : u8 = :: std :: mem :: transmute (val) ; < __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_set (:: std :: ptr :: addr_of_mut ! ((* this) . _bitfield_1) , 1usize , 1u8 , val as u64 ,) } } # [inline] pub fn underground (& self) -> u8 { unsafe { :: std :: mem :: transmute (self . _bitfield_1 . get (2usize , 1u8) as u8) } } # [inline] pub fn set_underground (& mut self , val : u8) { unsafe { let val : u8 = :: std :: mem :: transmute (val) ; self . _bitfield_1 . set (2usize , 1u8 , val as u64) } } # [inline] pub unsafe fn underground_raw (this : * const Self) -> u8 { unsafe { :: std :: mem :: transmute (< __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_get (:: std :: ptr :: addr_of ! ((* this) . _bitfield_1) , 2usize , 1u8 ,) as u8) } } # [inline] pub unsafe fn set_underground_raw (this : * mut Self , val : u8) { unsafe { let val : u8 = :: std :: mem :: transmute (val) ; < __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_set (:: std :: ptr :: addr_of_mut ! ((* this) . _bitfield_1) , 2usize , 1u8 , val as u64 ,) } } # [inline] pub fn airpocket (& self) -> u8 { unsafe { :: std :: mem :: transmute (self . _bitfield_1 . get (3usize , 1u8) as u8) } } # [inline] pub fn set_airpocket (& mut self , val : u8) { unsafe { let val : u8 = :: std :: mem :: transmute (val) ; self . _bitfield_1 . set (3usize , 1u8 , val as u64) } } # [inline] pub unsafe fn airpocket_raw (this : * const Self) -> u8 { unsafe { :: std :: mem :: transmute (< __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_get (:: std :: ptr :: addr_of ! ((* this) . _bitfield_1) , 3usize , 1u8 ,) as u8) } } # [inline] pub unsafe fn set_airpocket_raw (this : * mut Self , val : u8) { unsafe { let val : u8 = :: std :: mem :: transmute (val) ; < __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_set (:: std :: ptr :: addr_of_mut ! ((* this) . _bitfield_1) , 3usize , 1u8 , val as u64 ,) } } # [inline] pub fn basement (& self) -> u8 { unsafe { :: std :: mem :: transmute (self . _bitfield_1 . get (4usize , 1u8) as u8) } } # [inline] pub fn set_basement (& mut self , val : u8) { unsafe { let val : u8 = :: std :: mem :: transmute (val) ; self . _bitfield_1 . set (4usize , 1u8 , val as u64) } } # [inline] pub unsafe fn basement_raw (this : * const Self) -> u8 { unsafe { :: std :: mem :: transmute (< __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_get (:: std :: ptr :: addr_of ! ((* this) . _bitfield_1) , 4usize , 1u8 ,) as u8) } } # [inline] pub unsafe fn set_basement_raw (this : * mut Self , val : u8) { unsafe { let val : u8 = :: std :: mem :: transmute (val) ; < __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_set (:: std :: ptr :: addr_of_mut ! ((* this) . _bitfield_1) , 4usize , 1u8 , val as u64 ,) } } # [inline] pub fn cracked (& self) -> u8 { unsafe { :: std :: mem :: transmute (self . _bitfield_1 . get (5usize , 1u8) as u8) } } # [inline] pub fn set_cracked (& mut self , val : u8) { unsafe { let val : u8 = :: std :: mem :: transmute (val) ; self . _bitfield_1 . set (5usize , 1u8 , val as u64) } } # [inline] pub unsafe fn cracked_raw (this : * const Self) -> u8 { unsafe { :: std :: mem :: transmute (< __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_get (:: std :: ptr :: addr_of ! ((* this) . _bitfield_1) , 5usize , 1u8 ,) as u8) } } # [inline] pub unsafe fn set_cracked_raw (this : * mut Self , val : u8) { unsafe { let val : u8 = :: std :: mem :: transmute (val) ; < __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_set (:: std :: ptr :: addr_of_mut ! ((* this) . _bitfield_1) , 5usize , 1u8 , val as u64 ,) } } # [inline] pub fn new_bitfield_1 (abandoned : u8 , giant : u8 , underground : u8 , airpocket : u8 , basement : u8 , cracked : u8) -> __BindgenBitfieldUnit < [u8 ; 1usize] > { let mut __bindgen_bitfield_unit : __BindgenBitfieldUnit < [u8 ; 1usize] > = Default :: default () ; __bindgen_bitfield_unit . set (0usize , 1u8 , { let abandoned : u8 = unsafe { :: std :: mem :: transmute (abandoned) } ; abandoned as u64 }) ; __bindgen_bitfield_unit . set (1usize , 1u8 , { let giant : u8 = unsafe { :: std :: mem :: transmute (giant) } ; giant as u64 }) ; __bindgen_bitfield_unit . set (2usize , 1u8 , { let underground : u8 = unsafe { :: std :: mem :: transmute (underground) } ; underground as u64 }) ; __bindgen_bitfield_unit . set (3usize , 1u8 , { let airpocket : u8 = unsafe { :: std :: mem :: transmute (airpocket) } ; airpocket as u64 }) ; __bindgen_bitfield_unit . set (4usize , 1u8 , { let basement : u8 = unsafe { :: std :: mem :: transmute (basement) } ; basement as u64 }) ; __bindgen_bitfield_unit . set (5usize , 1u8 , { let cracked : u8 = unsafe { :: std :: mem :: transmute (cracked) } ; cracked as u64 }) ; __bindgen_bitfield_unit } } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Piece { pub name : * const :: std :: os :: raw :: c_char , pub pos : Pos3 , pub bb0 : Pos3 , pub bb1 : Pos3 , pub rot : u8 , pub depth : i8 , pub type_ : i8 , pub next : * mut Piece , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Piece"] [:: std :: mem :: size_of :: < Piece > () - 56usize] ; ["Alignment of Piece"] [:: std :: mem :: align_of :: < Piece > () - 8usize] ; ["Offset of field: Piece::name"] [:: std :: mem :: offset_of ! (Piece , name) - 0usize] ; ["Offset of field: Piece::pos"] [:: std :: mem :: offset_of ! (Piece , pos) - 8usize] ; ["Offset of field: Piece::bb0"] [:: std :: mem :: offset_of ! (Piece , bb0) - 20usize] ; ["Offset of field: Piece::bb1"] [:: std :: mem :: offset_of ! (Piece , bb1) - 32usize] ; ["Offset of field: Piece::rot"] [:: std :: mem :: offset_of ! (Piece , rot) - 44usize] ; ["Offset of field: Piece::depth"] [:: std :: mem :: offset_of ! (Piece , depth) - 45usize] ; ["Offset of field: Piece::type_"] [:: std :: mem :: offset_of ! (Piece , type_) - 46usize] ; ["Offset of field: Piece::next"] [:: std :: mem :: offset_of ! (Piece , next) - 48usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct EndIsland { pub x : :: std :: os :: raw :: c_int , pub y : :: std :: os :: raw :: c_int , pub z : :: std :: os :: raw :: c_int , pub r : :: std :: os :: raw :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of EndIsland"] [:: std :: mem :: size_of :: < EndIsland > () - 16usize] ; ["Alignment of EndIsland"] [:: std :: mem :: align_of :: < EndIsland > () - 4usize] ; ["Offset of field: EndIsland::x"] [:: std :: mem :: offset_of ! (EndIsland , x) - 0usize] ; ["Offset of field: EndIsland::y"] [:: std :: mem :: offset_of ! (EndIsland , y) - 4usize] ; ["Offset of field: EndIsland::z"] [:: std :: mem :: offset_of ! (EndIsland , z) - 8usize] ; ["Offset of field: EndIsland::r"] [:: std :: mem :: offset_of ! (EndIsland , r) - 12usize] ; } ; pub const BF_APPROX : _bindgen_ty_5 = _bindgen_ty_5 (1) ; pub const BF_FORCED_OCEAN : _bindgen_ty_5 = _bindgen_ty_5 (4) ; # [repr (transparent)] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct _bindgen_ty_5 (pub :: std :: os :: raw :: c_uint) ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct BiomeFilter { pub tempsToFind : u64 , pub otempToFind : u64 , pub majorToFind : u64 , pub edgesToFind : u64 , pub raresToFind : u64 , pub raresToFindM : u64 , pub shoreToFind : u64 , pub shoreToFindM : u64 , pub riverToFind : u64 , pub riverToFindM : u64 , pub oceanToFind : u64 , pub specialCnt : :: std :: os :: raw :: c_int , pub flags : u32 , pub tempsToExcl : u64 , pub majorToExcl : u64 , pub edgesToExcl : u64 , pub raresToExcl : u64 , pub raresToExclM : u64 , pub shoreToExcl : u64 , pub shoreToExclM : u64 , pub riverToExcl : u64 , pub riverToExclM : u64 , pub biomeToExcl : u64 , pub biomeToExclM : u64 , pub biomeToFind : u64 , pub biomeToFindM : u64 , pub biomeToPick : u64 , pub biomeToPickM : u64 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of BiomeFilter"] [:: std :: mem :: size_of :: < BiomeFilter > () - 216usize] ; ["Alignment of BiomeFilter"] [:: std :: mem :: align_of :: < BiomeFilter > () - 8usize] ; ["Offset of field: BiomeFilter::tempsToFind"] [:: std :: mem :: offset_of ! (BiomeFilter , tempsToFind) - 0usize] ; ["Offset of field: BiomeFilter::otempToFind"] [:: std :: mem :: offset_of ! (BiomeFilter , otempToFind) - 8usize] ; ["Offset of field: BiomeFilter::majorToFind"] [:: std :: mem :: offset_of ! (BiomeFilter , majorToFind) - 16usize] ; ["Offset of field: BiomeFilter::edgesToFind"] [:: std :: mem :: offset_of ! (BiomeFilter , edgesToFind) - 24usize] ; ["Offset of field: BiomeFilter::raresToFind"] [:: std :: mem :: offset_of ! (BiomeFilter , raresToFind) - 32usize] ; ["Offset of field: BiomeFilter::raresToFindM"] [:: std :: mem :: offset_of ! (BiomeFilter , raresToFindM) - 40usize] ; ["Offset of field: BiomeFilter::shoreToFind"] [:: std :: mem :: offset_of ! (BiomeFilter , shoreToFind) - 48usize] ; ["Offset of field: BiomeFilter::shoreToFindM"] [:: std :: mem :: offset_of ! (BiomeFilter , shoreToFindM) - 56usize] ; ["Offset of field: BiomeFilter::riverToFind"] [:: std :: mem :: offset_of ! (BiomeFilter , riverToFind) - 64usize] ; ["Offset of field: BiomeFilter::riverToFindM"] [:: std :: mem :: offset_of ! (BiomeFilter , riverToFindM) - 72usize] ; ["Offset of field: BiomeFilter::oceanToFind"] [:: std :: mem :: offset_of ! (BiomeFilter , oceanToFind) - 80usize] ; ["Offset of field: BiomeFilter::specialCnt"] [:: std :: mem :: offset_of ! (BiomeFilter , specialCnt) - 88usize] ; ["Offset of field: BiomeFilter::flags"] [:: std :: mem :: offset_of ! (BiomeFilter , flags) - 92usize] ; ["Offset of field: BiomeFilter::tempsToExcl"] [:: std :: mem :: offset_of ! (BiomeFilter , tempsToExcl) - 96usize] ; ["Offset of field: BiomeFilter::majorToExcl"] [:: std :: mem :: offset_of ! (BiomeFilter , majorToExcl) - 104usize] ; ["Offset of field: BiomeFilter::edgesToExcl"] [:: std :: mem :: offset_of ! (BiomeFilter , edgesToExcl) - 112usize] ; ["Offset of field: BiomeFilter::raresToExcl"] [:: std :: mem :: offset_of ! (BiomeFilter , raresToExcl) - 120usize] ; ["Offset of field: BiomeFilter::raresToExclM"] [:: std :: mem :: offset_of ! (BiomeFilter , raresToExclM) - 128usize] ; ["Offset of field: BiomeFilter::shoreToExcl"] [:: std :: mem :: offset_of ! (BiomeFilter , shoreToExcl) - 136usize] ; ["Offset of field: BiomeFilter::shoreToExclM"] [:: std :: mem :: offset_of ! (BiomeFilter , shoreToExclM) - 144usize] ; ["Offset of field: BiomeFilter::riverToExcl"] [:: std :: mem :: offset_of ! (BiomeFilter , riverToExcl) - 152usize] ; ["Offset of field: BiomeFilter::riverToExclM"] [:: std :: mem :: offset_of ! (BiomeFilter , riverToExclM) - 160usize] ; ["Offset of field: BiomeFilter::biomeToExcl"] [:: std :: mem :: offset_of ! (BiomeFilter , biomeToExcl) - 168usize] ; ["Offset of field: BiomeFilter::biomeToExclM"] [:: std :: mem :: offset_of ! (BiomeFilter , biomeToExclM) - 176usize] ; ["Offset of field: BiomeFilter::biomeToFind"] [:: std :: mem :: offset_of ! (BiomeFilter , biomeToFind) - 184usize] ; ["Offset of field: BiomeFilter::biomeToFindM"] [:: std :: mem :: offset_of ! (BiomeFilter , biomeToFindM) - 192usize] ; ["Offset of field: BiomeFilter::biomeToPick"] [:: std :: mem :: offset_of ! (BiomeFilter , biomeToPick) - 200usize] ; ["Offset of field: BiomeFilter::biomeToPickM"] [:: std :: mem :: offset_of ! (BiomeFilter , biomeToPickM) - 208usize] ; } ; unsafe extern "C" { pub fn getStructureConfig (structureType : :: std :: os :: raw :: c_int , mc : :: std :: os :: raw :: c_int , sconf : * mut StructureConfig) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getStructurePos (structureType : :: std :: os :: raw :: c_int , mc : :: std :: os :: raw :: c_int , seed : u64 , regX : :: std :: os :: raw :: c_int , regZ : :: std :: os :: raw :: c_int , pos : * mut Pos) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getMineshafts (mc : :: std :: os :: raw :: c_int , seed : u64 , chunkX : :: std :: os :: raw :: c_int , chunkZ : :: std :: os :: raw :: c_int , chunkW : :: std :: os :: raw :: c_int , chunkH : :: std :: os :: raw :: c_int , out : * mut Pos , nout : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getEndIslands (islands : * mut EndIsland , mc : :: std :: os :: raw :: c_int , seed : u64 , chunkX : :: std :: os :: raw :: c_int , chunkZ : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapEndIslandHeight (y : * mut f32 , en : * const EndNoise , seed : u64 , x : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , w : :: std :: os :: raw :: c_int , h : :: std :: os :: raw :: c_int , scale : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn isEndChunkEmpty (en : * const EndNoise , sn : * const SurfaceNoise , seed : u64 , chunkX : :: std :: os :: raw :: c_int , chunkZ : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn initFirstStronghold (sh : * mut StrongholdIter , mc : :: std :: os :: raw :: c_int , s48 : u64) -> Pos ; } unsafe extern "C" { pub fn nextStronghold (sh : * mut StrongholdIter , g : * const Generator) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn estimateSpawn (g : * const Generator , rng : * mut u64) -> Pos ; } unsafe extern "C" { pub fn getSpawn (g : * const Generator) -> Pos ; } unsafe extern "C" { pub fn locateBiome (g : * const Generator , x : :: std :: os :: raw :: c_int , y : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , radius : :: std :: os :: raw :: c_int , validB : u64 , validM : u64 , rng : * mut u64 , passes : * mut :: std :: os :: raw :: c_int) -> Pos ; } unsafe extern "C" { pub fn isViableStructurePos (structType : :: std :: os :: raw :: c_int , g : * mut Generator , blockX : :: std :: os :: raw :: c_int , blockZ : :: std :: os :: raw :: c_int , flags : u32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn isViableFeatureBiome (mc : :: std :: os :: raw :: c_int , structureType : :: std :: os :: raw :: c_int , biomeID : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn isViableStructureTerrain (structType : :: std :: os :: raw :: c_int , g : * mut Generator , blockX : :: std :: os :: raw :: c_int , blockZ : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn isViableEndCityTerrain (g : * const Generator , sn : * const SurfaceNoise , blockX : :: std :: os :: raw :: c_int , blockZ : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getVariant (sv : * mut StructureVariant , structType : :: std :: os :: raw :: c_int , mc : :: std :: os :: raw :: c_int , seed : u64 , blockX : :: std :: os :: raw :: c_int , blockZ : :: std :: os :: raw :: c_int , biomeID : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getEndCityPieces (pieces : * mut Piece , seed : u64 , chunkX : :: std :: os :: raw :: c_int , chunkZ : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } pub const BASE_FLOOR : _bindgen_ty_6 = _bindgen_ty_6 (0) ; pub const BASE_ROOF : _bindgen_ty_6 = _bindgen_ty_6 (1) ; pub const BRIDGE_END : _bindgen_ty_6 = _bindgen_ty_6 (2) ; pub const BRIDGE_GENTLE_STAIRS : _bindgen_ty_6 = _bindgen_ty_6 (3) ; pub const BRIDGE_PIECE : _bindgen_ty_6 = _bindgen_ty_6 (4) ; pub const BRIDGE_STEEP_STAIRS : _bindgen_ty_6 = _bindgen_ty_6 (5) ; pub const FAT_TOWER_BASE : _bindgen_ty_6 = _bindgen_ty_6 (6) ; pub const FAT_TOWER_MIDDLE : _bindgen_ty_6 = _bindgen_ty_6 (7) ; pub const FAT_TOWER_TOP : _bindgen_ty_6 = _bindgen_ty_6 (8) ; pub const SECOND_FLOOR_1 : _bindgen_ty_6 = _bindgen_ty_6 (9) ; pub const SECOND_FLOOR_2 : _bindgen_ty_6 = _bindgen_ty_6 (10) ; pub const SECOND_ROOF : _bindgen_ty_6 = _bindgen_ty_6 (11) ; pub const END_SHIP : _bindgen_ty_6 = _bindgen_ty_6 (12) ; pub const THIRD_FLOOR_1 : _bindgen_ty_6 = _bindgen_ty_6 (13) ; pub const THIRD_FLOOR_2 : _bindgen_ty_6 = _bindgen_ty_6 (14) ; pub const THIRD_ROOF : _bindgen_ty_6 = _bindgen_ty_6 (15) ; pub const TOWER_BASE : _bindgen_ty_6 = _bindgen_ty_6 (16) ; pub const TOWER_FLOOR : _bindgen_ty_6 = _bindgen_ty_6 (17) ; pub const TOWER_PIECE : _bindgen_ty_6 = _bindgen_ty_6 (18) ; pub const TOWER_TOP : _bindgen_ty_6 = _bindgen_ty_6 (19) ; pub const END_CITY_PIECES_MAX : _bindgen_ty_6 = _bindgen_ty_6 (421) ; # [repr (transparent)] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct _bindgen_ty_6 (pub :: std :: os :: raw :: c_uint) ; unsafe extern "C" { pub fn getFortressPieces (list : * mut Piece , n : :: std :: os :: raw :: c_int , mc : :: std :: os :: raw :: c_int , seed : u64 , chunkX : :: std :: os :: raw :: c_int , chunkZ : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } pub const FORTRESS_START : _bindgen_ty_7 = _bindgen_ty_7 (0) ; pub const BRIDGE_STRAIGHT : _bindgen_ty_7 = _bindgen_ty_7 (1) ; pub const BRIDGE_CROSSING : _bindgen_ty_7 = _bindgen_ty_7 (2) ; pub const BRIDGE_FORTIFIED_CROSSING : _bindgen_ty_7 = _bindgen_ty_7 (3) ; pub const BRIDGE_STAIRS : _bindgen_ty_7 = _bindgen_ty_7 (4) ; pub const BRIDGE_SPAWNER : _bindgen_ty_7 = _bindgen_ty_7 (5) ; pub const BRIDGE_CORRIDOR_ENTRANCE : _bindgen_ty_7 = _bindgen_ty_7 (6) ; pub const CORRIDOR_STRAIGHT : _bindgen_ty_7 = _bindgen_ty_7 (7) ; pub const CORRIDOR_CROSSING : _bindgen_ty_7 = _bindgen_ty_7 (8) ; pub const CORRIDOR_TURN_RIGHT : _bindgen_ty_7 = _bindgen_ty_7 (9) ; pub const CORRIDOR_TURN_LEFT : _bindgen_ty_7 = _bindgen_ty_7 (10) ; pub const CORRIDOR_STAIRS : _bindgen_ty_7 = _bindgen_ty_7 (11) ; pub const CORRIDOR_T_CROSSING : _bindgen_ty_7 = _bindgen_ty_7 (12) ; pub const CORRIDOR_NETHER_WART : _bindgen_ty_7 = _bindgen_ty_7 (13) ; pub const FORTRESS_END : _bindgen_ty_7 = _bindgen_ty_7 (14) ; pub const PIECE_COUNT : _bindgen_ty_7 = _bindgen_ty_7 (15) ; # [repr (transparent)] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct _bindgen_ty_7 (pub :: std :: os :: raw :: c_uint) ; unsafe extern "C" { pub fn getFixedEndGateways (mc : :: std :: os :: raw :: c_int , seed : u64 , src : * mut Pos) ; } unsafe extern "C" { pub fn getLinkedGatewayChunk (en : * const EndNoise , sn : * const SurfaceNoise , seed : u64 , src : Pos , dst : * mut Pos) -> Pos ; } unsafe extern "C" { pub fn getLinkedGatewayPos (en : * const EndNoise , sn : * const SurfaceNoise , seed : u64 , src : Pos) -> Pos ; } pub const HouseSmall : _bindgen_ty_8 = _bindgen_ty_8 (0) ; pub const Church : _bindgen_ty_8 = _bindgen_ty_8 (1) ; pub const Library : _bindgen_ty_8 = _bindgen_ty_8 (2) ; pub const WoodHut : _bindgen_ty_8 = _bindgen_ty_8 (3) ; pub const Butcher : _bindgen_ty_8 = _bindgen_ty_8 (4) ; pub const FarmLarge : _bindgen_ty_8 = _bindgen_ty_8 (5) ; pub const FarmSmall : _bindgen_ty_8 = _bindgen_ty_8 (6) ; pub const Blacksmith : _bindgen_ty_8 = _bindgen_ty_8 (7) ; pub const HouseLarge : _bindgen_ty_8 = _bindgen_ty_8 (8) ; pub const HOUSE_NUM : _bindgen_ty_8 = _bindgen_ty_8 (9) ; # [repr (transparent)] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct _bindgen_ty_8 (pub :: std :: os :: raw :: c_uint) ; unsafe extern "C" { pub fn getHouseList (houses : * mut :: std :: os :: raw :: c_int , seed : u64 , chunkX : :: std :: os :: raw :: c_int , chunkZ : :: std :: os :: raw :: c_int) -> u64 ; } unsafe extern "C" { pub fn monteCarloBiomes (g : * mut Generator , r : Range , rng : * mut u64 , coverage : f64 , confidence : f64 , eval : :: std :: option :: Option < unsafe extern "C" fn (g : * mut Generator , scale : :: std :: os :: raw :: c_int , x : :: std :: os :: raw :: c_int , y : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , data : * mut :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int > , data : * mut :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn setupBiomeFilter (bf : * mut BiomeFilter , mc : :: std :: os :: raw :: c_int , flags : u32 , required : * const :: std :: os :: raw :: c_int , requiredLen : :: std :: os :: raw :: c_int , excluded : * const :: std :: os :: raw :: c_int , excludedLen : :: std :: os :: raw :: c_int , matchany : * const :: std :: os :: raw :: c_int , matchanyLen : :: std :: os :: raw :: c_int) ; } unsafe extern "C" { pub fn checkForBiomes (g : * mut Generator , cache : * mut :: std :: os :: raw :: c_int , r : Range , dim : :: std :: os :: raw :: c_int , seed : u64 , filter : * const BiomeFilter , stop : * mut :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn checkForBiomesAtLayer (ls : * mut LayerStack , entry : * mut Layer , cache : * mut :: std :: os :: raw :: c_int , seed : u64 , x : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , w : :: std :: os :: raw :: c_uint , h : :: std :: os :: raw :: c_uint , filter : * const BiomeFilter) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn checkForTemps (g : * mut LayerStack , seed : u64 , x : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , w : :: std :: os :: raw :: c_int , h : :: std :: os :: raw :: c_int , tc : * const :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getBiomeCenters (pos : * mut Pos , siz : * mut :: std :: os :: raw :: c_int , nmax : :: std :: os :: raw :: c_int , g : * mut Generator , r : Range , match_ : :: std :: os :: raw :: c_int , minsiz : :: std :: os :: raw :: c_int , tol : :: std :: os :: raw :: c_int , stop : * mut :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn canBiomeGenerate (layerId : :: std :: os :: raw :: c_int , mc : :: std :: os :: raw :: c_int , flags : u32 , biomeID : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn genPotential (mL : * mut u64 , mM : * mut u64 , layerId : :: std :: os :: raw :: c_int , mc : :: std :: os :: raw :: c_int , flags : u32 , biomeID : :: std :: os :: raw :: c_int) ; } unsafe extern "C" { pub fn getAvailableBiomes (mL : * mut u64 , mM : * mut u64 , layerId : :: std :: os :: raw :: c_int , mc : :: std :: os :: raw :: c_int , flags : u32) ; } unsafe extern "C" { # [doc = " Runs a gradient descent towards the minimum of the noise parameter times a\n given factor. The algorithm is restricted to the area (x,z,w,h) and starts\n at (i0,j0) relative to (x,z). The iteration is terminated when either\n 1) a fix point has been reached,\n 2) maxiter iterations have been completed,\n 3) or the sampling position has moved more than maxrad away from (i0,j0).\n\n Alpha is an optimization argument that is used to determine the length of\n large steps based on the current gradient.\n\n Optionally, the iteration can also call the custom function:\n  func(data, x, z, factor*para_noise(x,z));\n\n The return value is the minimum value reached."] pub fn getParaDescent (para : * const DoublePerlinNoise , factor : f64 , x : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , w : :: std :: os :: raw :: c_int , h : :: std :: os :: raw :: c_int , i0 : :: std :: os :: raw :: c_int , j0 : :: std :: os :: raw :: c_int , maxrad : :: std :: os :: raw :: c_int , maxiter : :: std :: os :: raw :: c_int , alpha : f64 , data : * mut :: std :: os :: raw :: c_void , func : :: std :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: std :: os :: raw :: c_void , arg2 : :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : f64) -> :: std :: os :: raw :: c_int >) -> f64 ; } unsafe extern "C" { # [doc = " Determines the value range of a climate noise parameter over the given area.\n The sampling has scale 1:4 and sampling shift is not considered, so biomes\n could potentially *leak* in at the boarders.\n An optional function:\n  func(data, x, z, climate_noise(x,z))\n is called in each gradient descent iteration. If this function returns\n non-zero the search is aborted, the results are undefined and a non-zero\n error is returned.\n\n The results are written to pmin and pmax (which would be cast to an integer\n during boime mapping). Nullable, to look for minima and maxima separately."] pub fn getParaRange (para : * const DoublePerlinNoise , pmin : * mut f64 , pmax : * mut f64 , x : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , w : :: std :: os :: raw :: c_int , h : :: std :: os :: raw :: c_int , data : * mut :: std :: os :: raw :: c_void , func : :: std :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: std :: os :: raw :: c_void , arg2 : :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : f64) -> :: std :: os :: raw :: c_int >) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " Gets the min/max parameter values within which a biome change can occur."] pub fn getBiomeParaExtremes (mc : :: std :: os :: raw :: c_int) -> * const :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " Gets the min/max possible noise parameter values at which the given biome\n can generate. The values are in min/max pairs in order of:\n temperature, humidity, continentalness, erosion, depth, weirdness."] pub fn getBiomeParaLimits (mc : :: std :: os :: raw :: c_int , id : :: std :: os :: raw :: c_int) -> * const :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " Determines which biomes are able to generate given a set of climate\n parameter limits. Possible biomes are marked non-zero in the 'ids'."] pub fn getPossibleBiomesForLimits (ids : * mut :: std :: os :: raw :: c_char , mc : :: std :: os :: raw :: c_int , limits : * mut [:: std :: os :: raw :: c_int ; 2usize]) ; } unsafe extern "C" { # [doc = " Find the largest rectangle in ids[sx][sz] which consists only of 'match'.\n The limit corners are written to p0 and p1. Returned is the rectangle's area."] pub fn getLargestRec (match_ : :: std :: os :: raw :: c_int , ids : * const :: std :: os :: raw :: c_int , sx : :: std :: os :: raw :: c_int , sz : :: std :: os :: raw :: c_int , p0 : * mut Pos , p1 : * mut Pos) -> :: std :: os :: raw :: c_int ; } pub type __gnuc_va_list = __builtin_va_list ; # [repr (C)] # [derive (Copy , Clone)] pub struct __mbstate_t { pub __count : :: std :: os :: raw :: c_int , pub __value : __mbstate_t__bindgen_ty_1 , } # [repr (C)] # [derive (Copy , Clone)] pub union __mbstate_t__bindgen_ty_1 { pub __wch : :: std :: os :: raw :: c_uint , pub __wchb : [:: std :: os :: raw :: c_char ; 4usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __mbstate_t__bindgen_ty_1"] [:: std :: mem :: size_of :: < __mbstate_t__bindgen_ty_1 > () - 4usize] ; ["Alignment of __mbstate_t__bindgen_ty_1"] [:: std :: mem :: align_of :: < __mbstate_t__bindgen_ty_1 > () - 4usize] ; ["Offset of field: __mbstate_t__bindgen_ty_1::__wch"] [:: std :: mem :: offset_of ! (__mbstate_t__bindgen_ty_1 , __wch) - 0usize] ; ["Offset of field: __mbstate_t__bindgen_ty_1::__wchb"] [:: std :: mem :: offset_of ! (__mbstate_t__bindgen_ty_1 , __wchb) - 0usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __mbstate_t"] [:: std :: mem :: size_of :: < __mbstate_t > () - 8usize] ; ["Alignment of __mbstate_t"] [:: std :: mem :: align_of :: < __mbstate_t > () - 4usize] ; ["Offset of field: __mbstate_t::__count"] [:: std :: mem :: offset_of ! (__mbstate_t , __count) - 0usize] ; ["Offset of field: __mbstate_t::__value"] [:: std :: mem :: offset_of ! (__mbstate_t , __value) - 4usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub struct _G_fpos_t { pub __pos : __off_t , pub __state : __mbstate_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of _G_fpos_t"] [:: std :: mem :: size_of :: < _G_fpos_t > () - 16usize] ; ["Alignment of _G_fpos_t"] [:: std :: mem :: align_of :: < _G_fpos_t > () - 8usize] ; ["Offset of field: _G_fpos_t::__pos"] [:: std :: mem :: offset_of ! (_G_fpos_t , __pos) - 0usize] ; ["Offset of field: _G_fpos_t::__state"] [:: std :: mem :: offset_of ! (_G_fpos_t , __state) - 8usize] ; } ; pub type __fpos_t = _G_fpos_t ; # [repr (C)] # [derive (Copy , Clone)] pub struct _G_fpos64_t { pub __pos : __off64_t , pub __state : __mbstate_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of _G_fpos64_t"] [:: std :: mem :: size_of :: < _G_fpos64_t > () - 16usize] ; ["Alignment of _G_fpos64_t"] [:: std :: mem :: align_of :: < _G_fpos64_t > () - 8usize] ; ["Offset of field: _G_fpos64_t::__pos"] [:: std :: mem :: offset_of ! (_G_fpos64_t , __pos) - 0usize] ; ["Offset of field: _G_fpos64_t::__state"] [:: std :: mem :: offset_of ! (_G_fpos64_t , __state) - 8usize] ; } ; pub type __fpos64_t = _G_fpos64_t ; pub type __FILE = _IO_FILE ; pub type FILE = _IO_FILE ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_marker { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_codecvt { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_wide_data { _unused : [u8 ; 0] , } pub type _IO_lock_t = :: std :: os :: raw :: c_void ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_FILE { pub _flags : :: std :: os :: raw :: c_int , pub _IO_read_ptr : * mut :: std :: os :: raw :: c_char , pub _IO_read_end : * mut :: std :: os :: raw :: c_char , pub _IO_read_base : * mut :: std :: os :: raw :: c_char , pub _IO_write_base : * mut :: std :: os :: raw :: c_char , pub _IO_write_ptr : * mut :: std :: os :: raw :: c_char , pub _IO_write_end : * mut :: std :: os :: raw :: c_char , pub _IO_buf_base : * mut :: std :: os :: raw :: c_char , pub _IO_buf_end : * mut :: std :: os :: raw :: c_char , pub _IO_save_base : * mut :: std :: os :: raw :: c_char , pub _IO_backup_base : * mut :: std :: os :: raw :: c_char , pub _IO_save_end : * mut :: std :: os :: raw :: c_char , pub _markers : * mut _IO_marker , pub _chain : * mut _IO_FILE , pub _fileno : :: std :: os :: raw :: c_int , pub _bitfield_align_1 : [u32 ; 0] , pub _bitfield_1 : __BindgenBitfieldUnit < [u8 ; 3usize] > , pub _short_backupbuf : [:: std :: os :: raw :: c_char ; 1usize] , pub _old_offset : __off_t , pub _cur_column : :: std :: os :: raw :: c_ushort , pub _vtable_offset : :: std :: os :: raw :: c_schar , pub _shortbuf : [:: std :: os :: raw :: c_char ; 1usize] , pub _lock : * mut _IO_lock_t , pub _offset : __off64_t , pub _codecvt : * mut _IO_codecvt , pub _wide_data : * mut _IO_wide_data , pub _freeres_list : * mut _IO_FILE , pub _freeres_buf : * mut :: std :: os :: raw :: c_void , pub _prevchain : * mut * mut _IO_FILE , pub _mode : :: std :: os :: raw :: c_int , pub _unused3 : :: std :: os :: raw :: c_int , pub _total_written : __uint64_t , pub _unused2 : [:: std :: os :: raw :: c_char ; 8usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of _IO_FILE"] [:: std :: mem :: size_of :: < _IO_FILE > () - 216usize] ; ["Alignment of _IO_FILE"] [:: std :: mem :: align_of :: < _IO_FILE > () - 8usize] ; ["Offset of field: _IO_FILE::_flags"] [:: std :: mem :: offset_of ! (_IO_FILE , _flags) - 0usize] ; ["Offset of field: _IO_FILE::_IO_read_ptr"] [:: std :: mem :: offset_of ! (_IO_FILE , _IO_read_ptr) - 8usize] ; ["Offset of field: _IO_FILE::_IO_read_end"] [:: std :: mem :: offset_of ! (_IO_FILE , _IO_read_end) - 16usize] ; ["Offset of field: _IO_FILE::_IO_read_base"] [:: std :: mem :: offset_of ! (_IO_FILE , _IO_read_base) - 24usize] ; ["Offset of field: _IO_FILE::_IO_write_base"] [:: std :: mem :: offset_of ! (_IO_FILE , _IO_write_base) - 32usize] ; ["Offset of field: _IO_FILE::_IO_write_ptr"] [:: std :: mem :: offset_of ! (_IO_FILE , _IO_write_ptr) - 40usize] ; ["Offset of field: _IO_FILE::_IO_write_end"] [:: std :: mem :: offset_of ! (_IO_FILE , _IO_write_end) - 48usize] ; ["Offset of field: _IO_FILE::_IO_buf_base"] [:: std :: mem :: offset_of ! (_IO_FILE , _IO_buf_base) - 56usize] ; ["Offset of field: _IO_FILE::_IO_buf_end"] [:: std :: mem :: offset_of ! (_IO_FILE , _IO_buf_end) - 64usize] ; ["Offset of field: _IO_FILE::_IO_save_base"] [:: std :: mem :: offset_of ! (_IO_FILE , _IO_save_base) - 72usize] ; ["Offset of field: _IO_FILE::_IO_backup_base"] [:: std :: mem :: offset_of ! (_IO_FILE , _IO_backup_base) - 80usize] ; ["Offset of field: _IO_FILE::_IO_save_end"] [:: std :: mem :: offset_of ! (_IO_FILE , _IO_save_end) - 88usize] ; ["Offset of field: _IO_FILE::_markers"] [:: std :: mem :: offset_of ! (_IO_FILE , _markers) - 96usize] ; ["Offset of field: _IO_FILE::_chain"] [:: std :: mem :: offset_of ! (_IO_FILE , _chain) - 104usize] ; ["Offset of field: _IO_FILE::_fileno"] [:: std :: mem :: offset_of ! (_IO_FILE , _fileno) - 112usize] ; ["Offset of field: _IO_FILE::_short_backupbuf"] [:: std :: mem :: offset_of ! (_IO_FILE , _short_backupbuf) - 119usize] ; ["Offset of field: _IO_FILE::_old_offset"] [:: std :: mem :: offset_of ! (_IO_FILE , _old_offset) - 120usize] ; ["Offset of field: _IO_FILE::_cur_column"] [:: std :: mem :: offset_of ! (_IO_FILE , _cur_column) - 128usize] ; ["Offset of field: _IO_FILE::_vtable_offset"] [:: std :: mem :: offset_of ! (_IO_FILE , _vtable_offset) - 130usize] ; ["Offset of field: _IO_FILE::_shortbuf"] [:: std :: mem :: offset_of ! (_IO_FILE , _shortbuf) - 131usize] ; ["Offset of field: _IO_FILE::_lock"] [:: std :: mem :: offset_of ! (_IO_FILE , _lock) - 136usize] ; ["Offset of field: _IO_FILE::_offset"] [:: std :: mem :: offset_of ! (_IO_FILE , _offset) - 144usize] ; ["Offset of field: _IO_FILE::_codecvt"] [:: std :: mem :: offset_of ! (_IO_FILE , _codecvt) - 152usize] ; ["Offset of field: _IO_FILE::_wide_data"] [:: std :: mem :: offset_of ! (_IO_FILE , _wide_data) - 160usize] ; ["Offset of field: _IO_FILE::_freeres_list"] [:: std :: mem :: offset_of ! (_IO_FILE , _freeres_list) - 168usize] ; ["Offset of field: _IO_FILE::_freeres_buf"] [:: std :: mem :: offset_of ! (_IO_FILE , _freeres_buf) - 176usize] ; ["Offset of field: _IO_FILE::_prevchain"] [:: std :: mem :: offset_of ! (_IO_FILE , _prevchain) - 184usize] ; ["Offset of field: _IO_FILE::_mode"] [:: std :: mem :: offset_of ! (_IO_FILE , _mode) - 192usize] ; ["Offset of field: _IO_FILE::_unused3"] [:: std :: mem :: offset_of ! (_IO_FILE , _unused3) - 196usize] ; ["Offset of field: _IO_FILE::_total_written"] [:: std :: mem :: offset_of ! (_IO_FILE , _total_written) - 200usize] ; ["Offset of field: _IO_FILE::_unused2"] [:: std :: mem :: offset_of ! (_IO_FILE , _unused2) - 208usize] ; } ; impl _IO_FILE { # [inline] pub fn _flags2 (& self) -> :: std :: os :: raw :: c_int { unsafe { :: std :: mem :: transmute (self . _bitfield_1 . get (0usize , 24u8) as u32) } } # [inline] pub fn set__flags2 (& mut self , val : :: std :: os :: raw :: c_int) { unsafe { let val : u32 = :: std :: mem :: transmute (val) ; self . _bitfield_1 . set (0usize , 24u8 , val as u64) } } # [inline] pub unsafe fn _flags2_raw (this : * const Self) -> :: std :: os :: raw :: c_int { unsafe { u32::cast_signed (< __BindgenBitfieldUnit < [u8 ; 3usize] > > :: raw_get (:: std :: ptr :: addr_of ! ((* this) . _bitfield_1) , 0usize , 24u8 ,) as u32) } } # [inline] pub unsafe fn set__flags2_raw (this : * mut Self , val : :: std :: os :: raw :: c_int) { unsafe { let val : u32 = :: std :: mem :: transmute (val) ; < __BindgenBitfieldUnit < [u8 ; 3usize] > > :: raw_set (:: std :: ptr :: addr_of_mut ! ((* this) . _bitfield_1) , 0usize , 24u8 , val as u64 ,) } } # [inline] pub fn new_bitfield_1 (_flags2 : :: std :: os :: raw :: c_int) -> __BindgenBitfieldUnit < [u8 ; 3usize] > { let mut __bindgen_bitfield_unit : __BindgenBitfieldUnit < [u8 ; 3usize] > = Default :: default () ; __bindgen_bitfield_unit . set (0usize , 24u8 , { let _flags2 : u32 = unsafe { :: std :: mem :: transmute (_flags2) } ; _flags2 as u64 }) ; __bindgen_bitfield_unit } } pub type cookie_read_function_t = :: std :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: std :: os :: raw :: c_void , __buf : * mut :: std :: os :: raw :: c_char , __nbytes : usize) -> __ssize_t > ; pub type cookie_write_function_t = :: std :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: std :: os :: raw :: c_void , __buf : * const :: std :: os :: raw :: c_char , __nbytes : usize) -> __ssize_t > ; pub type cookie_seek_function_t = :: std :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: std :: os :: raw :: c_void , __pos : * mut __off64_t , __w : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int > ; pub type cookie_close_function_t = :: std :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_cookie_io_functions_t { pub read : cookie_read_function_t , pub write : cookie_write_function_t , pub seek : cookie_seek_function_t , pub close : cookie_close_function_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of _IO_cookie_io_functions_t"] [:: std :: mem :: size_of :: < _IO_cookie_io_functions_t > () - 32usize] ; ["Alignment of _IO_cookie_io_functions_t"] [:: std :: mem :: align_of :: < _IO_cookie_io_functions_t > () - 8usize] ; ["Offset of field: _IO_cookie_io_functions_t::read"] [:: std :: mem :: offset_of ! (_IO_cookie_io_functions_t , read) - 0usize] ; ["Offset of field: _IO_cookie_io_functions_t::write"] [:: std :: mem :: offset_of ! (_IO_cookie_io_functions_t , write) - 8usize] ; ["Offset of field: _IO_cookie_io_functions_t::seek"] [:: std :: mem :: offset_of ! (_IO_cookie_io_functions_t , seek) - 16usize] ; ["Offset of field: _IO_cookie_io_functions_t::close"] [:: std :: mem :: offset_of ! (_IO_cookie_io_functions_t , close) - 24usize] ; } ; pub type cookie_io_functions_t = _IO_cookie_io_functions_t ; pub type va_list = __gnuc_va_list ; pub type fpos_t = __fpos_t ; unsafe extern "C" { pub static mut stdin : * mut FILE ; } unsafe extern "C" { pub static mut stdout : * mut FILE ; } unsafe extern "C" { pub static mut stderr : * mut FILE ; } unsafe extern "C" { pub fn remove (__filename : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn rename (__old : * const :: std :: os :: raw :: c_char , __new : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn renameat (__oldfd : :: std :: os :: raw :: c_int , __old : * const :: std :: os :: raw :: c_char , __newfd : :: std :: os :: raw :: c_int , __new : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn fclose (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn tmpfile () -> * mut FILE ; } unsafe extern "C" { pub fn tmpnam (arg1 : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn tmpnam_r (__s : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn tempnam (__dir : * const :: std :: os :: raw :: c_char , __pfx : * const :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn fflush (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn fflush_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn fopen (__filename : * const :: std :: os :: raw :: c_char , __modes : * const :: std :: os :: raw :: c_char) -> * mut FILE ; } unsafe extern "C" { pub fn freopen (__filename : * const :: std :: os :: raw :: c_char , __modes : * const :: std :: os :: raw :: c_char , __stream : * mut FILE) -> * mut FILE ; } unsafe extern "C" { pub fn fdopen (__fd : :: std :: os :: raw :: c_int , __modes : * const :: std :: os :: raw :: c_char) -> * mut FILE ; } unsafe extern "C" { pub fn fopencookie (__magic_cookie : * mut :: std :: os :: raw :: c_void , __modes : * const :: std :: os :: raw :: c_char , __io_funcs : cookie_io_functions_t) -> * mut FILE ; } unsafe extern "C" { pub fn fmemopen (__s : * mut :: std :: os :: raw :: c_void , __len : usize , __modes : * const :: std :: os :: raw :: c_char) -> * mut FILE ; } unsafe extern "C" { pub fn open_memstream (__bufloc : * mut * mut :: std :: os :: raw :: c_char , __sizeloc : * mut usize) -> * mut FILE ; } unsafe extern "C" { pub fn setbuf (__stream : * mut FILE , __buf : * mut :: std :: os :: raw :: c_char) ; } unsafe extern "C" { pub fn setvbuf (__stream : * mut FILE , __buf : * mut :: std :: os :: raw :: c_char , __modes : :: std :: os :: raw :: c_int , __n : usize) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn setbuffer (__stream : * mut FILE , __buf : * mut :: std :: os :: raw :: c_char , __size : usize) ; } unsafe extern "C" { pub fn setlinebuf (__stream : * mut FILE) ; } unsafe extern "C" { pub fn fprintf (__stream : * mut FILE , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn printf (__format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn sprintf (__s : * mut :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn vfprintf (__s : * mut FILE , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn vprintf (__format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn vsprintf (__s : * mut :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn snprintf (__s : * mut :: std :: os :: raw :: c_char , __maxlen : :: std :: os :: raw :: c_ulong , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn vsnprintf (__s : * mut :: std :: os :: raw :: c_char , __maxlen : :: std :: os :: raw :: c_ulong , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn vasprintf (__ptr : * mut * mut :: std :: os :: raw :: c_char , __f : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __asprintf (__ptr : * mut * mut :: std :: os :: raw :: c_char , __fmt : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn asprintf (__ptr : * mut * mut :: std :: os :: raw :: c_char , __fmt : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn vdprintf (__fd : :: std :: os :: raw :: c_int , __fmt : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn dprintf (__fd : :: std :: os :: raw :: c_int , __fmt : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn fscanf (__stream : * mut FILE , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn scanf (__format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn sscanf (__s : * const :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [link_name = "\u{1}__isoc99_fscanf"] pub fn fscanf1 (__stream : * mut FILE , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [link_name = "\u{1}__isoc99_scanf"] pub fn scanf1 (__format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [link_name = "\u{1}__isoc99_sscanf"] pub fn sscanf1 (__s : * const :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn vfscanf (__s : * mut FILE , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn vscanf (__format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn vsscanf (__s : * const :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [link_name = "\u{1}__isoc99_vfscanf"] pub fn vfscanf1 (__s : * mut FILE , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [link_name = "\u{1}__isoc99_vscanf"] pub fn vscanf1 (__format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [link_name = "\u{1}__isoc99_vsscanf"] pub fn vsscanf1 (__s : * const :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn fgetc (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getc (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getchar () -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getc_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getchar_unlocked () -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn fgetc_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn fputc (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn putc (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn putchar (__c : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn fputc_unlocked (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn putc_unlocked (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn putchar_unlocked (__c : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getw (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn putw (__w : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn fgets (__s : * mut :: std :: os :: raw :: c_char , __n : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn __getdelim (__lineptr : * mut * mut :: std :: os :: raw :: c_char , __n : * mut usize , __delimiter : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> __ssize_t ; } unsafe extern "C" { pub fn getdelim (__lineptr : * mut * mut :: std :: os :: raw :: c_char , __n : * mut usize , __delimiter : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> __ssize_t ; } unsafe extern "C" { pub fn getline (__lineptr : * mut * mut :: std :: os :: raw :: c_char , __n : * mut usize , __stream : * mut FILE) -> __ssize_t ; } unsafe extern "C" { pub fn fputs (__s : * const :: std :: os :: raw :: c_char , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn puts (__s : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn ungetc (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn fread (__ptr : * mut :: std :: os :: raw :: c_void , __size : :: std :: os :: raw :: c_ulong , __n : :: std :: os :: raw :: c_ulong , __stream : * mut FILE) -> :: std :: os :: raw :: c_ulong ; } unsafe extern "C" { pub fn fwrite (__ptr : * const :: std :: os :: raw :: c_void , __size : :: std :: os :: raw :: c_ulong , __n : :: std :: os :: raw :: c_ulong , __s : * mut FILE) -> :: std :: os :: raw :: c_ulong ; } unsafe extern "C" { pub fn fread_unlocked (__ptr : * mut :: std :: os :: raw :: c_void , __size : usize , __n : usize , __stream : * mut FILE) -> usize ; } unsafe extern "C" { pub fn fwrite_unlocked (__ptr : * const :: std :: os :: raw :: c_void , __size : usize , __n : usize , __stream : * mut FILE) -> usize ; } unsafe extern "C" { pub fn fseek (__stream : * mut FILE , __off : :: std :: os :: raw :: c_long , __whence : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn ftell (__stream : * mut FILE) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn rewind (__stream : * mut FILE) ; } unsafe extern "C" { pub fn fseeko (__stream : * mut FILE , __off : __off_t , __whence : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn ftello (__stream : * mut FILE) -> __off_t ; } unsafe extern "C" { pub fn fgetpos (__stream : * mut FILE , __pos : * mut fpos_t) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn fsetpos (__stream : * mut FILE , __pos : * const fpos_t) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn clearerr (__stream : * mut FILE) ; } unsafe extern "C" { pub fn feof (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn ferror (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn clearerr_unlocked (__stream : * mut FILE) ; } unsafe extern "C" { pub fn feof_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn ferror_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn perror (__s : * const :: std :: os :: raw :: c_char) ; } unsafe extern "C" { pub fn fileno (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn fileno_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn pclose (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn popen (__command : * const :: std :: os :: raw :: c_char , __modes : * const :: std :: os :: raw :: c_char) -> * mut FILE ; } unsafe extern "C" { pub fn ctermid (__s : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn flockfile (__stream : * mut FILE) ; } unsafe extern "C" { pub fn ftrylockfile (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn funlockfile (__stream : * mut FILE) ; } unsafe extern "C" { pub fn __uflow (arg1 : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __overflow (arg1 : * mut FILE , arg2 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " Quad-Witch-Huts\n\n  For a quad-structure, we mainly care about relative positioning, so we can\n  get away with just checking the regions near the origin: (0,0),(0,1),(1,0)\n  and (1,1) and then move the structures to the desired position.\n\n  Futhermore, the PRNG that determines the chunk positions inside each region,\n  performs some modular arithmatic on the 48-bit numbers which causes some\n  restrictions on the lower bits when looking for near perfect structure\n  positions. This is difficult to prove, but can be used to reduce the number\n  of free bits to 28 which can be comfortably brute-forced to get the entire\n  set of quad-structure candidates. Each of the seeds found this way\n  describes entire set of possible quad-witch-huts (with degrees of freedom\n  for region-transposition, as well as the top 16-bit bits)."] pub static low20QuadIdeal : [u64 ; 4usize] ; } unsafe extern "C" { pub static low20QuadClassic : [u64 ; 5usize] ; } unsafe extern "C" { pub static low20QuadHutNormal : [u64 ; 11usize] ; } unsafe extern "C" { pub static low20QuadHutBarely : [u64 ; 29usize] ; } pub const CST_NONE : _bindgen_ty_9 = _bindgen_ty_9 (0) ; pub const CST_IDEAL : _bindgen_ty_9 = _bindgen_ty_9 (1) ; pub const CST_CLASSIC : _bindgen_ty_9 = _bindgen_ty_9 (2) ; pub const CST_NORMAL : _bindgen_ty_9 = _bindgen_ty_9 (3) ; pub const CST_BARELY : _bindgen_ty_9 = _bindgen_ty_9 (4) ; # [repr (transparent)] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct _bindgen_ty_9 (pub :: std :: os :: raw :: c_uint) ; unsafe extern "C" { pub fn getQuadHutCst (low20 : u64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn searchAll48 (seedbuf : * mut * mut u64 , buflen : * mut u64 , path : * const :: std :: os :: raw :: c_char , threads : :: std :: os :: raw :: c_int , lowBits : * const u64 , lowBitN : :: std :: os :: raw :: c_int , check : :: std :: option :: Option < unsafe extern "C" fn (s48 : u64 , data : * mut :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int > , data : * mut :: std :: os :: raw :: c_void , stop : * mut :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getOptimalAfk (p : * mut Pos , ax : :: std :: os :: raw :: c_int , ay : :: std :: os :: raw :: c_int , az : :: std :: os :: raw :: c_int , spcnt : * mut :: std :: os :: raw :: c_int) -> Pos ; } unsafe extern "C" { pub fn scanForQuads (sconf : StructureConfig , radius : :: std :: os :: raw :: c_int , s48 : u64 , lowBits : * const u64 , lowBitN : :: std :: os :: raw :: c_int , salt : u64 , x : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , w : :: std :: os :: raw :: c_int , h : :: std :: os :: raw :: c_int , qplist : * mut Pos , n : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn loadSavedSeeds (fnam : * const :: std :: os :: raw :: c_char , scnt : * mut u64) -> * mut u64 ; } unsafe extern "C" { # [doc = " convert between version enum and text"] pub fn mc2str (mc : :: std :: os :: raw :: c_int) -> * const :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn str2mc (s : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " get the resource id name for a biome (for versions 1.13+)"] pub fn biome2str (mc : :: std :: os :: raw :: c_int , id : :: std :: os :: raw :: c_int) -> * const :: std :: os :: raw :: c_char ; } unsafe extern "C" { # [doc = " get the resource id name for a structure"] pub fn struct2str (stype : :: std :: os :: raw :: c_int) -> * const :: std :: os :: raw :: c_char ; } unsafe extern "C" { # [doc = " initialize a biome colormap with some defaults"] pub fn initBiomeColors (biomeColors : * mut [:: std :: os :: raw :: c_uchar ; 3usize]) ; } unsafe extern "C" { pub fn initBiomeTypeColors (biomeColors : * mut [:: std :: os :: raw :: c_uchar ; 3usize]) ; } unsafe extern "C" { pub fn parseBiomeColors (biomeColors : * mut [:: std :: os :: raw :: c_uchar ; 3usize] , buf : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn biomesToImage (pixels : * mut :: std :: os :: raw :: c_uchar , biomeColors : * mut [:: std :: os :: raw :: c_uchar ; 3usize] , biomes : * const :: std :: os :: raw :: c_int , sx : :: std :: os :: raw :: c_uint , sy : :: std :: os :: raw :: c_uint , pixscale : :: std :: os :: raw :: c_uint , flip : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn savePPM (path : * const :: std :: os :: raw :: c_char , pixels : * const :: std :: os :: raw :: c_uchar , sx : :: std :: os :: raw :: c_uint , sy : :: std :: os :: raw :: c_uint) -> :: std :: os :: raw :: c_int ; } pub type __builtin_va_list = [__va_list_tag ; 1usize] ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __va_list_tag { pub gp_offset : :: std :: os :: raw :: c_uint , pub fp_offset : :: std :: os :: raw :: c_uint , pub overflow_arg_area : * mut :: std :: os :: raw :: c_void , pub reg_save_area : * mut :: std :: os :: raw :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __va_list_tag"] [:: std :: mem :: size_of :: < __va_list_tag > () - 24usize] ; ["Alignment of __va_list_tag"] [:: std :: mem :: align_of :: < __va_list_tag > () - 8usize] ; ["Offset of field: __va_list_tag::gp_offset"] [:: std :: mem :: offset_of ! (__va_list_tag , gp_offset) - 0usize] ; ["Offset of field: __va_list_tag::fp_offset"] [:: std :: mem :: offset_of ! (__va_list_tag , fp_offset) - 4usize] ; ["Offset of field: __va_list_tag::overflow_arg_area"] [:: std :: mem :: offset_of ! (__va_list_tag , overflow_arg_area) - 8usize] ; ["Offset of field: __va_list_tag::reg_save_area"] [:: std :: mem :: offset_of ! (__va_list_tag , reg_save_area) - 16usize] ; } ;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary transmute
[INFO] [stdout]  --> /opt/rustwide/target/debug/build/cubiomes-sys-067509f04bd29817/out/bindings.rs:3:215887
[INFO] [stdout]   |
[INFO] [stdout] 3 | ...: os :: raw :: c_int) { unsafe { let val : u32 = :: std :: mem :: transmute (val) ; < __BindgenBitfieldUnit < [u8 ; 3usize] > > ::...
[INFO] [stdout]   |                                                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout] help: replace this with
[INFO] [stdout]   |
[INFO] [stdout] 3 - # [repr (C)] # [derive (Copy , Clone , Debug , Default , Eq , Hash , Ord , PartialEq , PartialOrd)] pub struct __BindgenBitfieldUnit < Storage > { storage : Storage , } impl < Storage > __BindgenBitfieldUnit < Storage > { # [inline] pub const fn new (storage : Storage) -> Self { Self { storage } } } impl < Storage > __BindgenBitfieldUnit < Storage > where Storage : AsRef < [u8] > + AsMut < [u8] >, { # [inline] fn extract_bit (byte : u8 , index : usize) -> bool { let bit_index = if cfg ! (target_endian = "big") { 7 - (index % 8) } else { index % 8 } ; let mask = 1 << bit_index ; byte & mask == mask } # [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] ; Self :: extract_bit (byte , index) } # [inline] pub unsafe fn raw_get_bit (this : * const Self , index : usize) -> bool { debug_assert ! (index / 8 < core :: mem :: size_of ::< Storage > ()) ; let byte_index = index / 8 ; let byte = * (core :: ptr :: addr_of ! ((* this) . storage) as * const u8) . offset (byte_index as isize) ; Self :: extract_bit (byte , index) } # [inline] fn change_bit (byte : u8 , index : usize , val : bool) -> u8 { let bit_index = if cfg ! (target_endian = "big") { 7 - (index % 8) } else { index % 8 } ; let mask = 1 << bit_index ; if val { byte | mask } else { byte & ! 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] ; * byte = Self :: change_bit (* byte , index , val) ; } # [inline] pub unsafe fn raw_set_bit (this : * mut Self , index : usize , val : bool) { debug_assert ! (index / 8 < core :: mem :: size_of ::< Storage > ()) ; let byte_index = index / 8 ; let byte = (core :: ptr :: addr_of_mut ! ((* this) . storage) as * mut u8) . offset (byte_index as isize) ; * byte = Self :: change_bit (* byte , index , val) ; } # [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) { let index = if cfg ! (target_endian = "big") { bit_width as usize - 1 - i } else { i } ; val |= 1 << index ; } } val } # [inline] pub unsafe fn raw_get (this : * const Self , bit_offset : usize , bit_width : u8 ,) -> u64 { debug_assert ! (bit_width <= 64) ; debug_assert ! (bit_offset / 8 < core :: mem :: size_of ::< Storage > ()) ; debug_assert ! ((bit_offset + (bit_width as usize)) / 8 <= core :: mem :: size_of ::< Storage > ()) ; let mut val = 0 ; for i in 0 .. (bit_width as usize) { if Self :: raw_get_bit (this , i + bit_offset) { let index = if cfg ! (target_endian = "big") { bit_width as usize - 1 - i } else { i } ; val |= 1 << index ; } } 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 ; let index = if cfg ! (target_endian = "big") { bit_width as usize - 1 - i } else { i } ; self . set_bit (index + bit_offset , val_bit_is_set) ; } } # [inline] pub unsafe fn raw_set (this : * mut Self , bit_offset : usize , bit_width : u8 , val : u64 ,) { debug_assert ! (bit_width <= 64) ; debug_assert ! (bit_offset / 8 < core :: mem :: size_of ::< Storage > ()) ; debug_assert ! ((bit_offset + (bit_width as usize)) / 8 <= core :: mem :: size_of ::< Storage > ()) ; for i in 0 .. (bit_width as usize) { let mask = 1 << i ; let val_bit_is_set = val & mask == mask ; let index = if cfg ! (target_endian = "big") { bit_width as usize - 1 - i } else { i } ; Self :: raw_set_bit (this , index + bit_offset , val_bit_is_set) ; } } } # [derive (PartialEq , Copy , Clone , Hash , Debug , Default)] # [repr (C)] pub struct __BindgenComplex < T > { pub re : T , pub im : T } pub const __STDC_FORMAT_MACROS : u32 = 1 ; pub const _FEATURES_H : u32 = 1 ; pub const _DEFAULT_SOURCE : u32 = 1 ; pub const __GLIBC_USE_ISOC2Y : u32 = 0 ; pub const __GLIBC_USE_ISOC23 : u32 = 0 ; pub const __USE_ISOC11 : u32 = 1 ; pub const __USE_ISOC99 : u32 = 1 ; pub const __USE_ISOC95 : u32 = 1 ; pub const __USE_POSIX_IMPLICITLY : u32 = 1 ; pub const _POSIX_SOURCE : u32 = 1 ; pub const _POSIX_C_SOURCE : u32 = 202405 ; pub const __USE_POSIX : u32 = 1 ; pub const __USE_POSIX2 : u32 = 1 ; pub const __USE_POSIX199309 : u32 = 1 ; pub const __USE_POSIX199506 : u32 = 1 ; pub const __USE_XOPEN2K : u32 = 1 ; pub const __USE_XOPEN2K8 : u32 = 1 ; pub const _ATFILE_SOURCE : u32 = 1 ; pub const __USE_XOPEN2K24 : u32 = 1 ; pub const __WORDSIZE : u32 = 64 ; pub const __WORDSIZE_TIME64_COMPAT32 : u32 = 1 ; pub const __SYSCALL_WORDSIZE : u32 = 64 ; pub const __TIMESIZE : u32 = 64 ; pub const __USE_TIME_BITS64 : u32 = 1 ; pub const __USE_MISC : u32 = 1 ; pub const __USE_ATFILE : u32 = 1 ; pub const __USE_FORTIFY_LEVEL : u32 = 0 ; pub const __GLIBC_USE_DEPRECATED_GETS : u32 = 0 ; pub const __GLIBC_USE_DEPRECATED_SCANF : u32 = 0 ; pub const __GLIBC_USE_C23_STRTOL : u32 = 0 ; pub const _STDC_PREDEF_H : u32 = 1 ; pub const __STDC_IEC_559__ : u32 = 1 ; pub const __STDC_IEC_60559_BFP__ : u32 = 201404 ; pub const __STDC_IEC_559_COMPLEX__ : u32 = 1 ; pub const __STDC_IEC_60559_COMPLEX__ : u32 = 201404 ; pub const __STDC_ISO_10646__ : u32 = 201706 ; pub const __GNU_LIBRARY__ : u32 = 6 ; pub const __GLIBC__ : u32 = 2 ; pub const __GLIBC_MINOR__ : u32 = 43 ; pub const _SYS_CDEFS_H : u32 = 1 ; pub const __glibc_c99_flexarr_available : u32 = 1 ; pub const __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI : u32 = 0 ; pub const __HAVE_GENERIC_SELECTION : u32 = 1 ; pub const __GLIBC_USE_LIB_EXT2 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_BFP_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_BFP_EXT_C23 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_FUNCS_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_FUNCS_EXT_C23 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_TYPES_EXT : u32 = 0 ; pub const _STDLIB_H : u32 = 1 ; pub const WNOHANG : u32 = 1 ; pub const WUNTRACED : u32 = 2 ; pub const WSTOPPED : u32 = 2 ; pub const WEXITED : u32 = 4 ; pub const WCONTINUED : u32 = 8 ; pub const WNOWAIT : u32 = 16777216 ; pub const __WNOTHREAD : u32 = 536870912 ; pub const __WALL : u32 = 1073741824 ; pub const __WCLONE : u32 = 2147483648 ; pub const __W_CONTINUED : u32 = 65535 ; pub const __WCOREFLAG : u32 = 128 ; pub const __HAVE_FLOAT128 : u32 = 1 ; pub const __HAVE_DISTINCT_FLOAT128 : u32 = 1 ; pub const __HAVE_FLOAT64X : u32 = 1 ; pub const __HAVE_FLOAT64X_LONG_DOUBLE : u32 = 1 ; pub const __HAVE_FLOAT16 : u32 = 0 ; pub const __HAVE_FLOAT32 : u32 = 1 ; pub const __HAVE_FLOAT64 : u32 = 1 ; pub const __HAVE_FLOAT32X : u32 = 1 ; pub const __HAVE_FLOAT128X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT16 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT32 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT64 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT32X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT64X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT128X : u32 = 0 ; pub const __HAVE_FLOATN_NOT_TYPEDEF : u32 = 0 ; pub const __ldiv_t_defined : u32 = 1 ; pub const __lldiv_t_defined : u32 = 1 ; pub const RAND_MAX : u32 = 2147483647 ; pub const EXIT_FAILURE : u32 = 1 ; pub const EXIT_SUCCESS : u32 = 0 ; pub const _SYS_TYPES_H : u32 = 1 ; pub const _BITS_TYPES_H : u32 = 1 ; pub const _BITS_TYPESIZES_H : u32 = 1 ; pub const __OFF_T_MATCHES_OFF64_T : u32 = 1 ; pub const __INO_T_MATCHES_INO64_T : u32 = 1 ; pub const __RLIM_T_MATCHES_RLIM64_T : u32 = 1 ; pub const __STATFS_MATCHES_STATFS64 : u32 = 1 ; pub const __KERNEL_OLD_TIMEVAL_MATCHES_TIMEVAL64 : u32 = 1 ; pub const __FD_SETSIZE : u32 = 1024 ; pub const _BITS_TIME64_H : u32 = 1 ; pub const __clock_t_defined : u32 = 1 ; pub const __clockid_t_defined : u32 = 1 ; pub const __time_t_defined : u32 = 1 ; pub const __timer_t_defined : u32 = 1 ; pub const _BITS_STDINT_INTN_H : u32 = 1 ; pub const __BIT_TYPES_DEFINED__ : u32 = 1 ; pub const _ENDIAN_H : u32 = 1 ; pub const _BITS_ENDIAN_H : u32 = 1 ; pub const __LITTLE_ENDIAN : u32 = 1234 ; pub const __BIG_ENDIAN : u32 = 4321 ; pub const __PDP_ENDIAN : u32 = 3412 ; pub const _BITS_ENDIANNESS_H : u32 = 1 ; pub const __BYTE_ORDER : u32 = 1234 ; pub const __FLOAT_WORD_ORDER : u32 = 1234 ; pub const LITTLE_ENDIAN : u32 = 1234 ; pub const BIG_ENDIAN : u32 = 4321 ; pub const PDP_ENDIAN : u32 = 3412 ; pub const BYTE_ORDER : u32 = 1234 ; pub const _BITS_BYTESWAP_H : u32 = 1 ; pub const _BITS_UINTN_IDENTITY_H : u32 = 1 ; pub const _SYS_SELECT_H : u32 = 1 ; pub const __sigset_t_defined : u32 = 1 ; pub const __timeval_defined : u32 = 1 ; pub const _STRUCT_TIMESPEC : u32 = 1 ; pub const FD_SETSIZE : u32 = 1024 ; pub const _BITS_PTHREADTYPES_COMMON_H : u32 = 1 ; pub const _THREAD_SHARED_TYPES_H : u32 = 1 ; pub const _BITS_PTHREADTYPES_ARCH_H : u32 = 1 ; pub const __SIZEOF_PTHREAD_MUTEX_T : u32 = 40 ; pub const __SIZEOF_PTHREAD_ATTR_T : u32 = 56 ; pub const __SIZEOF_PTHREAD_RWLOCK_T : u32 = 56 ; pub const __SIZEOF_PTHREAD_BARRIER_T : u32 = 32 ; pub const __SIZEOF_PTHREAD_MUTEXATTR_T : u32 = 4 ; pub const __SIZEOF_PTHREAD_COND_T : u32 = 48 ; pub const __SIZEOF_PTHREAD_CONDATTR_T : u32 = 4 ; pub const __SIZEOF_PTHREAD_RWLOCKATTR_T : u32 = 8 ; pub const __SIZEOF_PTHREAD_BARRIERATTR_T : u32 = 4 ; pub const _THREAD_MUTEX_INTERNAL_H : u32 = 1 ; pub const __PTHREAD_MUTEX_HAVE_PREV : u32 = 1 ; pub const __have_pthread_attr_t : u32 = 1 ; pub const _ALLOCA_H : u32 = 1 ; pub const _INTTYPES_H : u32 = 1 ; pub const _STDINT_H : u32 = 1 ; pub const _BITS_WCHAR_H : u32 = 1 ; pub const _BITS_STDINT_UINTN_H : u32 = 1 ; pub const _BITS_STDINT_LEAST_H : u32 = 1 ; pub const INT8_MIN : i32 = - 128 ; pub const INT16_MIN : i32 = - 32768 ; pub const INT32_MIN : i32 = - 2147483648 ; pub const INT8_MAX : u32 = 127 ; pub const INT16_MAX : u32 = 32767 ; pub const INT32_MAX : u32 = 2147483647 ; pub const UINT8_MAX : u32 = 255 ; pub const UINT16_MAX : u32 = 65535 ; pub const UINT32_MAX : u32 = 4294967295 ; pub const INT_LEAST8_MIN : i32 = - 128 ; pub const INT_LEAST16_MIN : i32 = - 32768 ; pub const INT_LEAST32_MIN : i32 = - 2147483648 ; pub const INT_LEAST8_MAX : u32 = 127 ; pub const INT_LEAST16_MAX : u32 = 32767 ; pub const INT_LEAST32_MAX : u32 = 2147483647 ; pub const UINT_LEAST8_MAX : u32 = 255 ; pub const UINT_LEAST16_MAX : u32 = 65535 ; pub const UINT_LEAST32_MAX : u32 = 4294967295 ; pub const INT_FAST8_MIN : i32 = - 128 ; pub const INT_FAST16_MIN : i64 = - 9223372036854775808 ; pub const INT_FAST32_MIN : i64 = - 9223372036854775808 ; pub const INT_FAST8_MAX : u32 = 127 ; pub const INT_FAST16_MAX : u64 = 9223372036854775807 ; pub const INT_FAST32_MAX : u64 = 9223372036854775807 ; pub const UINT_FAST8_MAX : u32 = 255 ; pub const UINT_FAST16_MAX : i32 = - 1 ; pub const UINT_FAST32_MAX : i32 = - 1 ; pub const INTPTR_MIN : i64 = - 9223372036854775808 ; pub const INTPTR_MAX : u64 = 9223372036854775807 ; pub const UINTPTR_MAX : i32 = - 1 ; pub const PTRDIFF_MIN : i64 = - 9223372036854775808 ; pub const PTRDIFF_MAX : u64 = 9223372036854775807 ; pub const SIG_ATOMIC_MIN : i32 = - 2147483648 ; pub const SIG_ATOMIC_MAX : u32 = 2147483647 ; pub const SIZE_MAX : i32 = - 1 ; pub const WINT_MIN : u32 = 0 ; pub const WINT_MAX : u32 = 4294967295 ; pub const ____gwchar_t_defined : u32 = 1 ; pub const __PRI64_PREFIX : & [u8 ; 2] = b"l\0" ; pub const __PRIPTR_PREFIX : & [u8 ; 2] = b"l\0" ; pub const PRId8 : & [u8 ; 4] = b"hhd\0" ; pub const PRId16 : & [u8 ; 3] = b"hd\0" ; pub const PRId32 : & [u8 ; 2] = b"d\0" ; pub const PRId64 : & [u8 ; 3] = b"ld\0" ; pub const PRIdLEAST8 : & [u8 ; 4] = b"hhd\0" ; pub const PRIdLEAST16 : & [u8 ; 3] = b"hd\0" ; pub const PRIdLEAST32 : & [u8 ; 2] = b"d\0" ; pub const PRIdLEAST64 : & [u8 ; 3] = b"ld\0" ; pub const PRIdFAST8 : & [u8 ; 4] = b"hhd\0" ; pub const PRIdFAST16 : & [u8 ; 3] = b"ld\0" ; pub const PRIdFAST32 : & [u8 ; 3] = b"ld\0" ; pub const PRIdFAST64 : & [u8 ; 3] = b"ld\0" ; pub const PRIi8 : & [u8 ; 4] = b"hhi\0" ; pub const PRIi16 : & [u8 ; 3] = b"hi\0" ; pub const PRIi32 : & [u8 ; 2] = b"i\0" ; pub const PRIi64 : & [u8 ; 3] = b"li\0" ; pub const PRIiLEAST8 : & [u8 ; 4] = b"hhi\0" ; pub const PRIiLEAST16 : & [u8 ; 3] = b"hi\0" ; pub const PRIiLEAST32 : & [u8 ; 2] = b"i\0" ; pub const PRIiLEAST64 : & [u8 ; 3] = b"li\0" ; pub const PRIiFAST8 : & [u8 ; 4] = b"hhi\0" ; pub const PRIiFAST16 : & [u8 ; 3] = b"li\0" ; pub const PRIiFAST32 : & [u8 ; 3] = b"li\0" ; pub const PRIiFAST64 : & [u8 ; 3] = b"li\0" ; pub const PRIo8 : & [u8 ; 4] = b"hho\0" ; pub const PRIo16 : & [u8 ; 3] = b"ho\0" ; pub const PRIo32 : & [u8 ; 2] = b"o\0" ; pub const PRIo64 : & [u8 ; 3] = b"lo\0" ; pub const PRIoLEAST8 : & [u8 ; 4] = b"hho\0" ; pub const PRIoLEAST16 : & [u8 ; 3] = b"ho\0" ; pub const PRIoLEAST32 : & [u8 ; 2] = b"o\0" ; pub const PRIoLEAST64 : & [u8 ; 3] = b"lo\0" ; pub const PRIoFAST8 : & [u8 ; 4] = b"hho\0" ; pub const PRIoFAST16 : & [u8 ; 3] = b"lo\0" ; pub const PRIoFAST32 : & [u8 ; 3] = b"lo\0" ; pub const PRIoFAST64 : & [u8 ; 3] = b"lo\0" ; pub const PRIu8 : & [u8 ; 4] = b"hhu\0" ; pub const PRIu16 : & [u8 ; 3] = b"hu\0" ; pub const PRIu32 : & [u8 ; 2] = b"u\0" ; pub const PRIu64 : & [u8 ; 3] = b"lu\0" ; pub const PRIuLEAST8 : & [u8 ; 4] = b"hhu\0" ; pub const PRIuLEAST16 : & [u8 ; 3] = b"hu\0" ; pub const PRIuLEAST32 : & [u8 ; 2] = b"u\0" ; pub const PRIuLEAST64 : & [u8 ; 3] = b"lu\0" ; pub const PRIuFAST8 : & [u8 ; 4] = b"hhu\0" ; pub const PRIuFAST16 : & [u8 ; 3] = b"lu\0" ; pub const PRIuFAST32 : & [u8 ; 3] = b"lu\0" ; pub const PRIuFAST64 : & [u8 ; 3] = b"lu\0" ; pub const PRIx8 : & [u8 ; 4] = b"hhx\0" ; pub const PRIx16 : & [u8 ; 3] = b"hx\0" ; pub const PRIx32 : & [u8 ; 2] = b"x\0" ; pub const PRIx64 : & [u8 ; 3] = b"lx\0" ; pub const PRIxLEAST8 : & [u8 ; 4] = b"hhx\0" ; pub const PRIxLEAST16 : & [u8 ; 3] = b"hx\0" ; pub const PRIxLEAST32 : & [u8 ; 2] = b"x\0" ; pub const PRIxLEAST64 : & [u8 ; 3] = b"lx\0" ; pub const PRIxFAST8 : & [u8 ; 4] = b"hhx\0" ; pub const PRIxFAST16 : & [u8 ; 3] = b"lx\0" ; pub const PRIxFAST32 : & [u8 ; 3] = b"lx\0" ; pub const PRIxFAST64 : & [u8 ; 3] = b"lx\0" ; pub const PRIX8 : & [u8 ; 4] = b"hhX\0" ; pub const PRIX16 : & [u8 ; 3] = b"hX\0" ; pub const PRIX32 : & [u8 ; 2] = b"X\0" ; pub const PRIX64 : & [u8 ; 3] = b"lX\0" ; pub const PRIXLEAST8 : & [u8 ; 4] = b"hhX\0" ; pub const PRIXLEAST16 : & [u8 ; 3] = b"hX\0" ; pub const PRIXLEAST32 : & [u8 ; 2] = b"X\0" ; pub const PRIXLEAST64 : & [u8 ; 3] = b"lX\0" ; pub const PRIXFAST8 : & [u8 ; 4] = b"hhX\0" ; pub const PRIXFAST16 : & [u8 ; 3] = b"lX\0" ; pub const PRIXFAST32 : & [u8 ; 3] = b"lX\0" ; pub const PRIXFAST64 : & [u8 ; 3] = b"lX\0" ; pub const PRIdMAX : & [u8 ; 3] = b"ld\0" ; pub const PRIiMAX : & [u8 ; 3] = b"li\0" ; pub const PRIoMAX : & [u8 ; 3] = b"lo\0" ; pub const PRIuMAX : & [u8 ; 3] = b"lu\0" ; pub const PRIxMAX : & [u8 ; 3] = b"lx\0" ; pub const PRIXMAX : & [u8 ; 3] = b"lX\0" ; pub const PRIdPTR : & [u8 ; 3] = b"ld\0" ; pub const PRIiPTR : & [u8 ; 3] = b"li\0" ; pub const PRIoPTR : & [u8 ; 3] = b"lo\0" ; pub const PRIuPTR : & [u8 ; 3] = b"lu\0" ; pub const PRIxPTR : & [u8 ; 3] = b"lx\0" ; pub const PRIXPTR : & [u8 ; 3] = b"lX\0" ; pub const SCNd8 : & [u8 ; 4] = b"hhd\0" ; pub const SCNd16 : & [u8 ; 3] = b"hd\0" ; pub const SCNd32 : & [u8 ; 2] = b"d\0" ; pub const SCNd64 : & [u8 ; 3] = b"ld\0" ; pub const SCNdLEAST8 : & [u8 ; 4] = b"hhd\0" ; pub const SCNdLEAST16 : & [u8 ; 3] = b"hd\0" ; pub const SCNdLEAST32 : & [u8 ; 2] = b"d\0" ; pub const SCNdLEAST64 : & [u8 ; 3] = b"ld\0" ; pub const SCNdFAST8 : & [u8 ; 4] = b"hhd\0" ; pub const SCNdFAST16 : & [u8 ; 3] = b"ld\0" ; pub const SCNdFAST32 : & [u8 ; 3] = b"ld\0" ; pub const SCNdFAST64 : & [u8 ; 3] = b"ld\0" ; pub const SCNi8 : & [u8 ; 4] = b"hhi\0" ; pub const SCNi16 : & [u8 ; 3] = b"hi\0" ; pub const SCNi32 : & [u8 ; 2] = b"i\0" ; pub const SCNi64 : & [u8 ; 3] = b"li\0" ; pub const SCNiLEAST8 : & [u8 ; 4] = b"hhi\0" ; pub const SCNiLEAST16 : & [u8 ; 3] = b"hi\0" ; pub const SCNiLEAST32 : & [u8 ; 2] = b"i\0" ; pub const SCNiLEAST64 : & [u8 ; 3] = b"li\0" ; pub const SCNiFAST8 : & [u8 ; 4] = b"hhi\0" ; pub const SCNiFAST16 : & [u8 ; 3] = b"li\0" ; pub const SCNiFAST32 : & [u8 ; 3] = b"li\0" ; pub const SCNiFAST64 : & [u8 ; 3] = b"li\0" ; pub const SCNu8 : & [u8 ; 4] = b"hhu\0" ; pub const SCNu16 : & [u8 ; 3] = b"hu\0" ; pub const SCNu32 : & [u8 ; 2] = b"u\0" ; pub const SCNu64 : & [u8 ; 3] = b"lu\0" ; pub const SCNuLEAST8 : & [u8 ; 4] = b"hhu\0" ; pub const SCNuLEAST16 : & [u8 ; 3] = b"hu\0" ; pub const SCNuLEAST32 : & [u8 ; 2] = b"u\0" ; pub const SCNuLEAST64 : & [u8 ; 3] = b"lu\0" ; pub const SCNuFAST8 : & [u8 ; 4] = b"hhu\0" ; pub const SCNuFAST16 : & [u8 ; 3] = b"lu\0" ; pub const SCNuFAST32 : & [u8 ; 3] = b"lu\0" ; pub const SCNuFAST64 : & [u8 ; 3] = b"lu\0" ; pub const SCNo8 : & [u8 ; 4] = b"hho\0" ; pub const SCNo16 : & [u8 ; 3] = b"ho\0" ; pub const SCNo32 : & [u8 ; 2] = b"o\0" ; pub const SCNo64 : & [u8 ; 3] = b"lo\0" ; pub const SCNoLEAST8 : & [u8 ; 4] = b"hho\0" ; pub const SCNoLEAST16 : & [u8 ; 3] = b"ho\0" ; pub const SCNoLEAST32 : & [u8 ; 2] = b"o\0" ; pub const SCNoLEAST64 : & [u8 ; 3] = b"lo\0" ; pub const SCNoFAST8 : & [u8 ; 4] = b"hho\0" ; pub const SCNoFAST16 : & [u8 ; 3] = b"lo\0" ; pub const SCNoFAST32 : & [u8 ; 3] = b"lo\0" ; pub const SCNoFAST64 : & [u8 ; 3] = b"lo\0" ; pub const SCNx8 : & [u8 ; 4] = b"hhx\0" ; pub const SCNx16 : & [u8 ; 3] = b"hx\0" ; pub const SCNx32 : & [u8 ; 2] = b"x\0" ; pub const SCNx64 : & [u8 ; 3] = b"lx\0" ; pub const SCNxLEAST8 : & [u8 ; 4] = b"hhx\0" ; pub const SCNxLEAST16 : & [u8 ; 3] = b"hx\0" ; pub const SCNxLEAST32 : & [u8 ; 2] = b"x\0" ; pub const SCNxLEAST64 : & [u8 ; 3] = b"lx\0" ; pub const SCNxFAST8 : & [u8 ; 4] = b"hhx\0" ; pub const SCNxFAST16 : & [u8 ; 3] = b"lx\0" ; pub const SCNxFAST32 : & [u8 ; 3] = b"lx\0" ; pub const SCNxFAST64 : & [u8 ; 3] = b"lx\0" ; pub const SCNdMAX : & [u8 ; 3] = b"ld\0" ; pub const SCNiMAX : & [u8 ; 3] = b"li\0" ; pub const SCNoMAX : & [u8 ; 3] = b"lo\0" ; pub const SCNuMAX : & [u8 ; 3] = b"lu\0" ; pub const SCNxMAX : & [u8 ; 3] = b"lx\0" ; pub const SCNdPTR : & [u8 ; 3] = b"ld\0" ; pub const SCNiPTR : & [u8 ; 3] = b"li\0" ; pub const SCNoPTR : & [u8 ; 3] = b"lo\0" ; pub const SCNuPTR : & [u8 ; 3] = b"lu\0" ; pub const SCNxPTR : & [u8 ; 3] = b"lx\0" ; pub const _MATH_H : u32 = 1 ; pub const _BITS_LIBM_SIMD_DECL_STUBS_H : u32 = 1 ; pub const __FP_LOGB0_IS_MIN : u32 = 1 ; pub const __FP_LOGBNAN_IS_MIN : u32 = 1 ; pub const FP_ILOGB0 : i32 = - 2147483648 ; pub const FP_ILOGBNAN : i32 = - 2147483648 ; pub const __MATH_DECLARING_DOUBLE : u32 = 1 ; pub const __MATH_DECLARING_FLOATN : u32 = 0 ; pub const __MATH_DECLARE_LDOUBLE : u32 = 1 ; pub const MATH_ERRNO : u32 = 1 ; pub const MATH_ERREXCEPT : u32 = 2 ; pub const math_errhandling : u32 = 3 ; pub const M_E : f64 = 2.718281828459045 ; pub const M_LOG2E : f64 = 1.4426950408889634 ; pub const M_LOG10E : f64 = 0.4342944819032518 ; pub const M_LN2 : f64 = 0.6931471805599453 ; pub const M_LN10 : f64 = 2.302585092994046 ; pub const M_PI : f64 = 3.141592653589793 ; pub const M_PI_2 : f64 = 1.5707963267948966 ; pub const M_PI_4 : f64 = 0.7853981633974483 ; pub const M_1_PI : f64 = 0.3183098861837907 ; pub const M_2_PI : f64 = 0.6366197723675814 ; pub const M_2_SQRTPI : f64 = 1.1283791670955126 ; pub const M_SQRT2 : f64 = 1.4142135623730951 ; pub const M_SQRT1_2 : f64 = 0.7071067811865476 ; pub const LAYER_INIT_SHA : i32 = - 1 ; pub const _STDIO_H : u32 = 1 ; pub const _____fpos_t_defined : u32 = 1 ; pub const ____mbstate_t_defined : u32 = 1 ; pub const _____fpos64_t_defined : u32 = 1 ; pub const ____FILE_defined : u32 = 1 ; pub const __FILE_defined : u32 = 1 ; pub const __struct_FILE_defined : u32 = 1 ; pub const _IO_EOF_SEEN : u32 = 16 ; pub const _IO_ERR_SEEN : u32 = 32 ; pub const _IO_USER_LOCK : u32 = 32768 ; pub const __cookie_io_functions_t_defined : u32 = 1 ; pub const _IOFBF : u32 = 0 ; pub const _IOLBF : u32 = 1 ; pub const _IONBF : u32 = 2 ; pub const BUFSIZ : u32 = 8192 ; pub const EOF : i32 = - 1 ; pub const SEEK_SET : u32 = 0 ; pub const SEEK_CUR : u32 = 1 ; pub const SEEK_END : u32 = 2 ; pub const P_tmpdir : & [u8 ; 5] = b"/tmp\0" ; pub const L_tmpnam : u32 = 20 ; pub const TMP_MAX : u32 = 238328 ; pub const _BITS_STDIO_LIM_H : u32 = 1 ; pub const FILENAME_MAX : u32 = 4096 ; pub const L_ctermid : u32 = 9 ; pub const FOPEN_MAX : u32 = 16 ; pub type wchar_t = :: std :: os :: raw :: c_int ; pub type __cfloat128 = __BindgenComplex < u128 > ; pub type _Float128 = u128 ; pub type _Float32 = f32 ; pub type _Float64 = f64 ; pub type _Float32x = f64 ; pub type _Float64x = u128 ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct div_t { pub quot : :: std :: os :: raw :: c_int , pub rem : :: std :: os :: raw :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of div_t"] [:: std :: mem :: size_of :: < div_t > () - 8usize] ; ["Alignment of div_t"] [:: std :: mem :: align_of :: < div_t > () - 4usize] ; ["Offset of field: div_t::quot"] [:: std :: mem :: offset_of ! (div_t , quot) - 0usize] ; ["Offset of field: div_t::rem"] [:: std :: mem :: offset_of ! (div_t , rem) - 4usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ldiv_t { pub quot : :: std :: os :: raw :: c_long , pub rem : :: std :: os :: raw :: c_long , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ldiv_t"] [:: std :: mem :: size_of :: < ldiv_t > () - 16usize] ; ["Alignment of ldiv_t"] [:: std :: mem :: align_of :: < ldiv_t > () - 8usize] ; ["Offset of field: ldiv_t::quot"] [:: std :: mem :: offset_of ! (ldiv_t , quot) - 0usize] ; ["Offset of field: ldiv_t::rem"] [:: std :: mem :: offset_of ! (ldiv_t , rem) - 8usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct lldiv_t { pub quot : :: std :: os :: raw :: c_longlong , pub rem : :: std :: os :: raw :: c_longlong , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of lldiv_t"] [:: std :: mem :: size_of :: < lldiv_t > () - 16usize] ; ["Alignment of lldiv_t"] [:: std :: mem :: align_of :: < lldiv_t > () - 8usize] ; ["Offset of field: lldiv_t::quot"] [:: std :: mem :: offset_of ! (lldiv_t , quot) - 0usize] ; ["Offset of field: lldiv_t::rem"] [:: std :: mem :: offset_of ! (lldiv_t , rem) - 8usize] ; } ; unsafe extern "C" { pub fn __ctype_get_mb_cur_max () -> usize ; } unsafe extern "C" { pub fn atof (__nptr : * const :: std :: os :: raw :: c_char) -> f64 ; } unsafe extern "C" { pub fn atoi (__nptr : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn atol (__nptr : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn atoll (__nptr : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn strtod (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char) -> f64 ; } unsafe extern "C" { pub fn strtof (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char) -> f32 ; } unsafe extern "C" { pub fn strtold (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char) -> u128 ; } unsafe extern "C" { pub fn strtol (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn strtoul (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_ulong ; } unsafe extern "C" { pub fn strtoq (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn strtouq (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_ulonglong ; } unsafe extern "C" { pub fn strtoll (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn strtoull (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_ulonglong ; } unsafe extern "C" { pub fn l64a (__n : :: std :: os :: raw :: c_long) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn a64l (__s : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_long ; } pub type __u_char = :: std :: os :: raw :: c_uchar ; pub type __u_short = :: std :: os :: raw :: c_ushort ; pub type __u_int = :: std :: os :: raw :: c_uint ; pub type __u_long = :: std :: os :: raw :: c_ulong ; 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_long ; pub type __uint64_t = :: std :: os :: raw :: c_ulong ; pub type __int_least8_t = __int8_t ; pub type __uint_least8_t = __uint8_t ; pub type __int_least16_t = __int16_t ; pub type __uint_least16_t = __uint16_t ; pub type __int_least32_t = __int32_t ; pub type __uint_least32_t = __uint32_t ; pub type __int_least64_t = __int64_t ; pub type __uint_least64_t = __uint64_t ; pub type __quad_t = :: std :: os :: raw :: c_long ; pub type __u_quad_t = :: std :: os :: raw :: c_ulong ; pub type __intmax_t = :: std :: os :: raw :: c_long ; pub type __uintmax_t = :: std :: os :: raw :: c_ulong ; pub type __dev_t = :: std :: os :: raw :: c_ulong ; pub type __uid_t = :: std :: os :: raw :: c_uint ; pub type __gid_t = :: std :: os :: raw :: c_uint ; pub type __ino_t = :: std :: os :: raw :: c_ulong ; pub type __ino64_t = :: std :: os :: raw :: c_ulong ; pub type __mode_t = :: std :: os :: raw :: c_uint ; pub type __nlink_t = :: std :: os :: raw :: c_ulong ; pub type __off_t = :: std :: os :: raw :: c_long ; pub type __off64_t = :: std :: os :: raw :: c_long ; pub type __pid_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [:: std :: os :: raw :: c_int ; 2usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __fsid_t"] [:: std :: mem :: size_of :: < __fsid_t > () - 8usize] ; ["Alignment of __fsid_t"] [:: std :: mem :: align_of :: < __fsid_t > () - 4usize] ; ["Offset of field: __fsid_t::__val"] [:: std :: mem :: offset_of ! (__fsid_t , __val) - 0usize] ; } ; pub type __clock_t = :: std :: os :: raw :: c_long ; pub type __rlim_t = :: std :: os :: raw :: c_ulong ; pub type __rlim64_t = :: std :: os :: raw :: c_ulong ; pub type __id_t = :: std :: os :: raw :: c_uint ; pub type __time_t = :: std :: os :: raw :: c_long ; pub type __useconds_t = :: std :: os :: raw :: c_uint ; pub type __suseconds_t = :: std :: os :: raw :: c_long ; pub type __suseconds64_t = :: std :: os :: raw :: c_long ; pub type __daddr_t = :: std :: os :: raw :: c_int ; pub type __key_t = :: std :: os :: raw :: c_int ; pub type __clockid_t = :: std :: os :: raw :: c_int ; pub type __timer_t = * mut :: std :: os :: raw :: c_void ; pub type __blksize_t = :: std :: os :: raw :: c_long ; pub type __blkcnt_t = :: std :: os :: raw :: c_long ; pub type __blkcnt64_t = :: std :: os :: raw :: c_long ; pub type __fsblkcnt_t = :: std :: os :: raw :: c_ulong ; pub type __fsblkcnt64_t = :: std :: os :: raw :: c_ulong ; pub type __fsfilcnt_t = :: std :: os :: raw :: c_ulong ; pub type __fsfilcnt64_t = :: std :: os :: raw :: c_ulong ; pub type __fsword_t = :: std :: os :: raw :: c_long ; pub type __ssize_t = :: std :: os :: raw :: c_long ; pub type __syscall_slong_t = :: std :: os :: raw :: c_long ; pub type __syscall_ulong_t = :: std :: os :: raw :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut :: std :: os :: raw :: c_char ; pub type __intptr_t = :: std :: os :: raw :: c_long ; pub type __socklen_t = :: std :: os :: raw :: c_uint ; pub type __sig_atomic_t = :: std :: os :: raw :: c_int ; pub type u_char = __u_char ; pub type u_short = __u_short ; pub type u_int = __u_int ; pub type u_long = __u_long ; pub type quad_t = __quad_t ; pub type u_quad_t = __u_quad_t ; pub type fsid_t = __fsid_t ; pub type loff_t = __loff_t ; pub type ino_t = __ino_t ; pub type dev_t = __dev_t ; pub type gid_t = __gid_t ; pub type mode_t = __mode_t ; pub type nlink_t = __nlink_t ; pub type uid_t = __uid_t ; pub type off_t = __off_t ; pub type pid_t = __pid_t ; pub type id_t = __id_t ; pub type daddr_t = __daddr_t ; pub type caddr_t = __caddr_t ; pub type key_t = __key_t ; pub type clock_t = __clock_t ; pub type clockid_t = __clockid_t ; pub type time_t = __time_t ; pub type timer_t = __timer_t ; pub type ulong = :: std :: os :: raw :: c_ulong ; pub type ushort = :: std :: os :: raw :: c_ushort ; pub type uint = :: std :: os :: raw :: c_uint ; pub type u_int8_t = __uint8_t ; pub type u_int16_t = __uint16_t ; pub type u_int32_t = __uint32_t ; pub type u_int64_t = __uint64_t ; pub type register_t = :: std :: os :: raw :: c_long ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __sigset_t { pub __val : [:: std :: os :: raw :: c_ulong ; 16usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __sigset_t"] [:: std :: mem :: size_of :: < __sigset_t > () - 128usize] ; ["Alignment of __sigset_t"] [:: std :: mem :: align_of :: < __sigset_t > () - 8usize] ; ["Offset of field: __sigset_t::__val"] [:: std :: mem :: offset_of ! (__sigset_t , __val) - 0usize] ; } ; pub type sigset_t = __sigset_t ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct timeval { pub tv_sec : __time_t , pub tv_usec : __suseconds_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of timeval"] [:: std :: mem :: size_of :: < timeval > () - 16usize] ; ["Alignment of timeval"] [:: std :: mem :: align_of :: < timeval > () - 8usize] ; ["Offset of field: timeval::tv_sec"] [:: std :: mem :: offset_of ! (timeval , tv_sec) - 0usize] ; ["Offset of field: timeval::tv_usec"] [:: std :: mem :: offset_of ! (timeval , tv_usec) - 8usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct timespec { pub tv_sec : __time_t , pub tv_nsec : __syscall_slong_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of timespec"] [:: std :: mem :: size_of :: < timespec > () - 16usize] ; ["Alignment of timespec"] [:: std :: mem :: align_of :: < timespec > () - 8usize] ; ["Offset of field: timespec::tv_sec"] [:: std :: mem :: offset_of ! (timespec , tv_sec) - 0usize] ; ["Offset of field: timespec::tv_nsec"] [:: std :: mem :: offset_of ! (timespec , tv_nsec) - 8usize] ; } ; pub type suseconds_t = __suseconds_t ; pub type __fd_mask = :: std :: os :: raw :: c_long ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct fd_set { pub __fds_bits : [__fd_mask ; 16usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of fd_set"] [:: std :: mem :: size_of :: < fd_set > () - 128usize] ; ["Alignment of fd_set"] [:: std :: mem :: align_of :: < fd_set > () - 8usize] ; ["Offset of field: fd_set::__fds_bits"] [:: std :: mem :: offset_of ! (fd_set , __fds_bits) - 0usize] ; } ; pub type fd_mask = __fd_mask ; unsafe extern "C" { pub fn select (__nfds : :: std :: os :: raw :: c_int , __readfds : * mut fd_set , __writefds : * mut fd_set , __exceptfds : * mut fd_set , __timeout : * mut timeval) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn pselect (__nfds : :: std :: os :: raw :: c_int , __readfds : * mut fd_set , __writefds : * mut fd_set , __exceptfds : * mut fd_set , __timeout : * const timespec , __sigmask : * const __sigset_t) -> :: std :: os :: raw :: c_int ; } pub type blksize_t = __blksize_t ; pub type blkcnt_t = __blkcnt_t ; pub type fsblkcnt_t = __fsblkcnt_t ; pub type fsfilcnt_t = __fsfilcnt_t ; # [repr (C)] # [derive (Copy , Clone)] pub union __atomic_wide_counter { pub __value64 : :: std :: os :: raw :: c_ulonglong , pub __value32 : __atomic_wide_counter__bindgen_ty_1 , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __atomic_wide_counter__bindgen_ty_1 { pub __low : :: std :: os :: raw :: c_uint , pub __high : :: std :: os :: raw :: c_uint , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __atomic_wide_counter__bindgen_ty_1"] [:: std :: mem :: size_of :: < __atomic_wide_counter__bindgen_ty_1 > () - 8usize] ; ["Alignment of __atomic_wide_counter__bindgen_ty_1"] [:: std :: mem :: align_of :: < __atomic_wide_counter__bindgen_ty_1 > () - 4usize] ; ["Offset of field: __atomic_wide_counter__bindgen_ty_1::__low"] [:: std :: mem :: offset_of ! (__atomic_wide_counter__bindgen_ty_1 , __low) - 0usize] ; ["Offset of field: __atomic_wide_counter__bindgen_ty_1::__high"] [:: std :: mem :: offset_of ! (__atomic_wide_counter__bindgen_ty_1 , __high) - 4usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __atomic_wide_counter"] [:: std :: mem :: size_of :: < __atomic_wide_counter > () - 8usize] ; ["Alignment of __atomic_wide_counter"] [:: std :: mem :: align_of :: < __atomic_wide_counter > () - 8usize] ; ["Offset of field: __atomic_wide_counter::__value64"] [:: std :: mem :: offset_of ! (__atomic_wide_counter , __value64) - 0usize] ; ["Offset of field: __atomic_wide_counter::__value32"] [:: std :: mem :: offset_of ! (__atomic_wide_counter , __value32) - 0usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_internal_list { pub __prev : * mut __pthread_internal_list , pub __next : * mut __pthread_internal_list , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __pthread_internal_list"] [:: std :: mem :: size_of :: < __pthread_internal_list > () - 16usize] ; ["Alignment of __pthread_internal_list"] [:: std :: mem :: align_of :: < __pthread_internal_list > () - 8usize] ; ["Offset of field: __pthread_internal_list::__prev"] [:: std :: mem :: offset_of ! (__pthread_internal_list , __prev) - 0usize] ; ["Offset of field: __pthread_internal_list::__next"] [:: std :: mem :: offset_of ! (__pthread_internal_list , __next) - 8usize] ; } ; pub type __pthread_list_t = __pthread_internal_list ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_internal_slist { pub __next : * mut __pthread_internal_slist , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __pthread_internal_slist"] [:: std :: mem :: size_of :: < __pthread_internal_slist > () - 8usize] ; ["Alignment of __pthread_internal_slist"] [:: std :: mem :: align_of :: < __pthread_internal_slist > () - 8usize] ; ["Offset of field: __pthread_internal_slist::__next"] [:: std :: mem :: offset_of ! (__pthread_internal_slist , __next) - 0usize] ; } ; pub type __pthread_slist_t = __pthread_internal_slist ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_mutex_s { pub __lock : :: std :: os :: raw :: c_int , pub __count : :: std :: os :: raw :: c_uint , pub __owner : :: std :: os :: raw :: c_int , pub __nusers : :: std :: os :: raw :: c_uint , pub __kind : :: std :: os :: raw :: c_int , pub __spins : :: std :: os :: raw :: c_short , pub __unused : :: std :: os :: raw :: c_short , pub __list : __pthread_list_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __pthread_mutex_s"] [:: std :: mem :: size_of :: < __pthread_mutex_s > () - 40usize] ; ["Alignment of __pthread_mutex_s"] [:: std :: mem :: align_of :: < __pthread_mutex_s > () - 8usize] ; ["Offset of field: __pthread_mutex_s::__lock"] [:: std :: mem :: offset_of ! (__pthread_mutex_s , __lock) - 0usize] ; ["Offset of field: __pthread_mutex_s::__count"] [:: std :: mem :: offset_of ! (__pthread_mutex_s , __count) - 4usize] ; ["Offset of field: __pthread_mutex_s::__owner"] [:: std :: mem :: offset_of ! (__pthread_mutex_s , __owner) - 8usize] ; ["Offset of field: __pthread_mutex_s::__nusers"] [:: std :: mem :: offset_of ! (__pthread_mutex_s , __nusers) - 12usize] ; ["Offset of field: __pthread_mutex_s::__kind"] [:: std :: mem :: offset_of ! (__pthread_mutex_s , __kind) - 16usize] ; ["Offset of field: __pthread_mutex_s::__spins"] [:: std :: mem :: offset_of ! (__pthread_mutex_s , __spins) - 20usize] ; ["Offset of field: __pthread_mutex_s::__unused"] [:: std :: mem :: offset_of ! (__pthread_mutex_s , __unused) - 22usize] ; ["Offset of field: __pthread_mutex_s::__list"] [:: std :: mem :: offset_of ! (__pthread_mutex_s , __list) - 24usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_rwlock_arch_t { pub __readers : :: std :: os :: raw :: c_uint , pub __writers : :: std :: os :: raw :: c_uint , pub __wrphase_futex : :: std :: os :: raw :: c_uint , pub __writers_futex : :: std :: os :: raw :: c_uint , pub __pad3 : :: std :: os :: raw :: c_uint , pub __pad4 : :: std :: os :: raw :: c_uint , pub __cur_writer : :: std :: os :: raw :: c_int , pub __shared : :: std :: os :: raw :: c_int , pub __pad1 : :: std :: os :: raw :: c_ulong , pub __pad2 : :: std :: os :: raw :: c_ulong , pub __flags : :: std :: os :: raw :: c_uint , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __pthread_rwlock_arch_t"] [:: std :: mem :: size_of :: < __pthread_rwlock_arch_t > () - 56usize] ; ["Alignment of __pthread_rwlock_arch_t"] [:: std :: mem :: align_of :: < __pthread_rwlock_arch_t > () - 8usize] ; ["Offset of field: __pthread_rwlock_arch_t::__readers"] [:: std :: mem :: offset_of ! (__pthread_rwlock_arch_t , __readers) - 0usize] ; ["Offset of field: __pthread_rwlock_arch_t::__writers"] [:: std :: mem :: offset_of ! (__pthread_rwlock_arch_t , __writers) - 4usize] ; ["Offset of field: __pthread_rwlock_arch_t::__wrphase_futex"] [:: std :: mem :: offset_of ! (__pthread_rwlock_arch_t , __wrphase_futex) - 8usize] ; ["Offset of field: __pthread_rwlock_arch_t::__writers_futex"] [:: std :: mem :: offset_of ! (__pthread_rwlock_arch_t , __writers_futex) - 12usize] ; ["Offset of field: __pthread_rwlock_arch_t::__pad3"] [:: std :: mem :: offset_of ! (__pthread_rwlock_arch_t , __pad3) - 16usize] ; ["Offset of field: __pthread_rwlock_arch_t::__pad4"] [:: std :: mem :: offset_of ! (__pthread_rwlock_arch_t , __pad4) - 20usize] ; ["Offset of field: __pthread_rwlock_arch_t::__cur_writer"] [:: std :: mem :: offset_of ! (__pthread_rwlock_arch_t , __cur_writer) - 24usize] ; ["Offset of field: __pthread_rwlock_arch_t::__shared"] [:: std :: mem :: offset_of ! (__pthread_rwlock_arch_t , __shared) - 28usize] ; ["Offset of field: __pthread_rwlock_arch_t::__pad1"] [:: std :: mem :: offset_of ! (__pthread_rwlock_arch_t , __pad1) - 32usize] ; ["Offset of field: __pthread_rwlock_arch_t::__pad2"] [:: std :: mem :: offset_of ! (__pthread_rwlock_arch_t , __pad2) - 40usize] ; ["Offset of field: __pthread_rwlock_arch_t::__flags"] [:: std :: mem :: offset_of ! (__pthread_rwlock_arch_t , __flags) - 48usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub struct __pthread_cond_s { pub __wseq : __atomic_wide_counter , pub __g1_start : __atomic_wide_counter , pub __g_size : [:: std :: os :: raw :: c_uint ; 2usize] , pub __g1_orig_size : :: std :: os :: raw :: c_uint , pub __wrefs : :: std :: os :: raw :: c_uint , pub __g_signals : [:: std :: os :: raw :: c_uint ; 2usize] , pub __unused_initialized_1 : :: std :: os :: raw :: c_uint , pub __unused_initialized_2 : :: std :: os :: raw :: c_uint , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __pthread_cond_s"] [:: std :: mem :: size_of :: < __pthread_cond_s > () - 48usize] ; ["Alignment of __pthread_cond_s"] [:: std :: mem :: align_of :: < __pthread_cond_s > () - 8usize] ; ["Offset of field: __pthread_cond_s::__wseq"] [:: std :: mem :: offset_of ! (__pthread_cond_s , __wseq) - 0usize] ; ["Offset of field: __pthread_cond_s::__g1_start"] [:: std :: mem :: offset_of ! (__pthread_cond_s , __g1_start) - 8usize] ; ["Offset of field: __pthread_cond_s::__g_size"] [:: std :: mem :: offset_of ! (__pthread_cond_s , __g_size) - 16usize] ; ["Offset of field: __pthread_cond_s::__g1_orig_size"] [:: std :: mem :: offset_of ! (__pthread_cond_s , __g1_orig_size) - 24usize] ; ["Offset of field: __pthread_cond_s::__wrefs"] [:: std :: mem :: offset_of ! (__pthread_cond_s , __wrefs) - 28usize] ; ["Offset of field: __pthread_cond_s::__g_signals"] [:: std :: mem :: offset_of ! (__pthread_cond_s , __g_signals) - 32usize] ; ["Offset of field: __pthread_cond_s::__unused_initialized_1"] [:: std :: mem :: offset_of ! (__pthread_cond_s , __unused_initialized_1) - 40usize] ; ["Offset of field: __pthread_cond_s::__unused_initialized_2"] [:: std :: mem :: offset_of ! (__pthread_cond_s , __unused_initialized_2) - 44usize] ; } ; pub type __tss_t = :: std :: os :: raw :: c_uint ; pub type __thrd_t = :: std :: os :: raw :: c_ulong ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __once_flag { pub __data : :: std :: os :: raw :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __once_flag"] [:: std :: mem :: size_of :: < __once_flag > () - 4usize] ; ["Alignment of __once_flag"] [:: std :: mem :: align_of :: < __once_flag > () - 4usize] ; ["Offset of field: __once_flag::__data"] [:: std :: mem :: offset_of ! (__once_flag , __data) - 0usize] ; } ; pub type pthread_t = :: std :: os :: raw :: c_ulong ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_mutexattr_t { pub __size : [:: std :: os :: raw :: c_char ; 4usize] , pub __align : :: std :: os :: raw :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_mutexattr_t"] [:: std :: mem :: size_of :: < pthread_mutexattr_t > () - 4usize] ; ["Alignment of pthread_mutexattr_t"] [:: std :: mem :: align_of :: < pthread_mutexattr_t > () - 4usize] ; ["Offset of field: pthread_mutexattr_t::__size"] [:: std :: mem :: offset_of ! (pthread_mutexattr_t , __size) - 0usize] ; ["Offset of field: pthread_mutexattr_t::__align"] [:: std :: mem :: offset_of ! (pthread_mutexattr_t , __align) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_condattr_t { pub __size : [:: std :: os :: raw :: c_char ; 4usize] , pub __align : :: std :: os :: raw :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_condattr_t"] [:: std :: mem :: size_of :: < pthread_condattr_t > () - 4usize] ; ["Alignment of pthread_condattr_t"] [:: std :: mem :: align_of :: < pthread_condattr_t > () - 4usize] ; ["Offset of field: pthread_condattr_t::__size"] [:: std :: mem :: offset_of ! (pthread_condattr_t , __size) - 0usize] ; ["Offset of field: pthread_condattr_t::__align"] [:: std :: mem :: offset_of ! (pthread_condattr_t , __align) - 0usize] ; } ; pub type pthread_key_t = :: std :: os :: raw :: c_uint ; pub type pthread_once_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_attr_t { pub __size : [:: std :: os :: raw :: c_char ; 56usize] , pub __align : :: std :: os :: raw :: c_long , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_attr_t"] [:: std :: mem :: size_of :: < pthread_attr_t > () - 56usize] ; ["Alignment of pthread_attr_t"] [:: std :: mem :: align_of :: < pthread_attr_t > () - 8usize] ; ["Offset of field: pthread_attr_t::__size"] [:: std :: mem :: offset_of ! (pthread_attr_t , __size) - 0usize] ; ["Offset of field: pthread_attr_t::__align"] [:: std :: mem :: offset_of ! (pthread_attr_t , __align) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_mutex_t { pub __data : __pthread_mutex_s , pub __size : [:: std :: os :: raw :: c_char ; 40usize] , pub __align : :: std :: os :: raw :: c_long , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_mutex_t"] [:: std :: mem :: size_of :: < pthread_mutex_t > () - 40usize] ; ["Alignment of pthread_mutex_t"] [:: std :: mem :: align_of :: < pthread_mutex_t > () - 8usize] ; ["Offset of field: pthread_mutex_t::__data"] [:: std :: mem :: offset_of ! (pthread_mutex_t , __data) - 0usize] ; ["Offset of field: pthread_mutex_t::__size"] [:: std :: mem :: offset_of ! (pthread_mutex_t , __size) - 0usize] ; ["Offset of field: pthread_mutex_t::__align"] [:: std :: mem :: offset_of ! (pthread_mutex_t , __align) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_cond_t { pub __data : __pthread_cond_s , pub __size : [:: std :: os :: raw :: c_char ; 48usize] , pub __align : :: std :: os :: raw :: c_longlong , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_cond_t"] [:: std :: mem :: size_of :: < pthread_cond_t > () - 48usize] ; ["Alignment of pthread_cond_t"] [:: std :: mem :: align_of :: < pthread_cond_t > () - 8usize] ; ["Offset of field: pthread_cond_t::__data"] [:: std :: mem :: offset_of ! (pthread_cond_t , __data) - 0usize] ; ["Offset of field: pthread_cond_t::__size"] [:: std :: mem :: offset_of ! (pthread_cond_t , __size) - 0usize] ; ["Offset of field: pthread_cond_t::__align"] [:: std :: mem :: offset_of ! (pthread_cond_t , __align) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_rwlock_t { pub __data : __pthread_rwlock_arch_t , pub __size : [:: std :: os :: raw :: c_char ; 56usize] , pub __align : :: std :: os :: raw :: c_long , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_rwlock_t"] [:: std :: mem :: size_of :: < pthread_rwlock_t > () - 56usize] ; ["Alignment of pthread_rwlock_t"] [:: std :: mem :: align_of :: < pthread_rwlock_t > () - 8usize] ; ["Offset of field: pthread_rwlock_t::__data"] [:: std :: mem :: offset_of ! (pthread_rwlock_t , __data) - 0usize] ; ["Offset of field: pthread_rwlock_t::__size"] [:: std :: mem :: offset_of ! (pthread_rwlock_t , __size) - 0usize] ; ["Offset of field: pthread_rwlock_t::__align"] [:: std :: mem :: offset_of ! (pthread_rwlock_t , __align) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_rwlockattr_t { pub __size : [:: std :: os :: raw :: c_char ; 8usize] , pub __align : :: std :: os :: raw :: c_long , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_rwlockattr_t"] [:: std :: mem :: size_of :: < pthread_rwlockattr_t > () - 8usize] ; ["Alignment of pthread_rwlockattr_t"] [:: std :: mem :: align_of :: < pthread_rwlockattr_t > () - 8usize] ; ["Offset of field: pthread_rwlockattr_t::__size"] [:: std :: mem :: offset_of ! (pthread_rwlockattr_t , __size) - 0usize] ; ["Offset of field: pthread_rwlockattr_t::__align"] [:: std :: mem :: offset_of ! (pthread_rwlockattr_t , __align) - 0usize] ; } ; pub type pthread_spinlock_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_barrier_t { pub __size : [:: std :: os :: raw :: c_char ; 32usize] , pub __align : :: std :: os :: raw :: c_long , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_barrier_t"] [:: std :: mem :: size_of :: < pthread_barrier_t > () - 32usize] ; ["Alignment of pthread_barrier_t"] [:: std :: mem :: align_of :: < pthread_barrier_t > () - 8usize] ; ["Offset of field: pthread_barrier_t::__size"] [:: std :: mem :: offset_of ! (pthread_barrier_t , __size) - 0usize] ; ["Offset of field: pthread_barrier_t::__align"] [:: std :: mem :: offset_of ! (pthread_barrier_t , __align) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_barrierattr_t { pub __size : [:: std :: os :: raw :: c_char ; 4usize] , pub __align : :: std :: os :: raw :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_barrierattr_t"] [:: std :: mem :: size_of :: < pthread_barrierattr_t > () - 4usize] ; ["Alignment of pthread_barrierattr_t"] [:: std :: mem :: align_of :: < pthread_barrierattr_t > () - 4usize] ; ["Offset of field: pthread_barrierattr_t::__size"] [:: std :: mem :: offset_of ! (pthread_barrierattr_t , __size) - 0usize] ; ["Offset of field: pthread_barrierattr_t::__align"] [:: std :: mem :: offset_of ! (pthread_barrierattr_t , __align) - 0usize] ; } ; unsafe extern "C" { pub fn random () -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn srandom (__seed : :: std :: os :: raw :: c_uint) ; } unsafe extern "C" { pub fn initstate (__seed : :: std :: os :: raw :: c_uint , __statebuf : * mut :: std :: os :: raw :: c_char , __statelen : usize) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn setstate (__statebuf : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct random_data { pub fptr : * mut i32 , pub rptr : * mut i32 , pub state : * mut i32 , pub rand_type : :: std :: os :: raw :: c_int , pub rand_deg : :: std :: os :: raw :: c_int , pub rand_sep : :: std :: os :: raw :: c_int , pub end_ptr : * mut i32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of random_data"] [:: std :: mem :: size_of :: < random_data > () - 48usize] ; ["Alignment of random_data"] [:: std :: mem :: align_of :: < random_data > () - 8usize] ; ["Offset of field: random_data::fptr"] [:: std :: mem :: offset_of ! (random_data , fptr) - 0usize] ; ["Offset of field: random_data::rptr"] [:: std :: mem :: offset_of ! (random_data , rptr) - 8usize] ; ["Offset of field: random_data::state"] [:: std :: mem :: offset_of ! (random_data , state) - 16usize] ; ["Offset of field: random_data::rand_type"] [:: std :: mem :: offset_of ! (random_data , rand_type) - 24usize] ; ["Offset of field: random_data::rand_deg"] [:: std :: mem :: offset_of ! (random_data , rand_deg) - 28usize] ; ["Offset of field: random_data::rand_sep"] [:: std :: mem :: offset_of ! (random_data , rand_sep) - 32usize] ; ["Offset of field: random_data::end_ptr"] [:: std :: mem :: offset_of ! (random_data , end_ptr) - 40usize] ; } ; unsafe extern "C" { pub fn random_r (__buf : * mut random_data , __result : * mut i32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn srandom_r (__seed : :: std :: os :: raw :: c_uint , __buf : * mut random_data) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn initstate_r (__seed : :: std :: os :: raw :: c_uint , __statebuf : * mut :: std :: os :: raw :: c_char , __statelen : usize , __buf : * mut random_data) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn setstate_r (__statebuf : * mut :: std :: os :: raw :: c_char , __buf : * mut random_data) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn rand () -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn srand (__seed : :: std :: os :: raw :: c_uint) ; } unsafe extern "C" { pub fn rand_r (__seed : * mut :: std :: os :: raw :: c_uint) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn drand48 () -> f64 ; } unsafe extern "C" { pub fn erand48 (__xsubi : * mut :: std :: os :: raw :: c_ushort) -> f64 ; } unsafe extern "C" { pub fn lrand48 () -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn nrand48 (__xsubi : * mut :: std :: os :: raw :: c_ushort) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn mrand48 () -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn jrand48 (__xsubi : * mut :: std :: os :: raw :: c_ushort) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn srand48 (__seedval : :: std :: os :: raw :: c_long) ; } unsafe extern "C" { pub fn seed48 (__seed16v : * mut :: std :: os :: raw :: c_ushort) -> * mut :: std :: os :: raw :: c_ushort ; } unsafe extern "C" { pub fn lcong48 (__param : * mut :: std :: os :: raw :: c_ushort) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct drand48_data { pub __x : [:: std :: os :: raw :: c_ushort ; 3usize] , pub __old_x : [:: std :: os :: raw :: c_ushort ; 3usize] , pub __c : :: std :: os :: raw :: c_ushort , pub __init : :: std :: os :: raw :: c_ushort , pub __a : :: std :: os :: raw :: c_ulonglong , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of drand48_data"] [:: std :: mem :: size_of :: < drand48_data > () - 24usize] ; ["Alignment of drand48_data"] [:: std :: mem :: align_of :: < drand48_data > () - 8usize] ; ["Offset of field: drand48_data::__x"] [:: std :: mem :: offset_of ! (drand48_data , __x) - 0usize] ; ["Offset of field: drand48_data::__old_x"] [:: std :: mem :: offset_of ! (drand48_data , __old_x) - 6usize] ; ["Offset of field: drand48_data::__c"] [:: std :: mem :: offset_of ! (drand48_data , __c) - 12usize] ; ["Offset of field: drand48_data::__init"] [:: std :: mem :: offset_of ! (drand48_data , __init) - 14usize] ; ["Offset of field: drand48_data::__a"] [:: std :: mem :: offset_of ! (drand48_data , __a) - 16usize] ; } ; unsafe extern "C" { pub fn drand48_r (__buffer : * mut drand48_data , __result : * mut f64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn erand48_r (__xsubi : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data , __result : * mut f64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn lrand48_r (__buffer : * mut drand48_data , __result : * mut :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn nrand48_r (__xsubi : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data , __result : * mut :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mrand48_r (__buffer : * mut drand48_data , __result : * mut :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn jrand48_r (__xsubi : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data , __result : * mut :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn srand48_r (__seedval : :: std :: os :: raw :: c_long , __buffer : * mut drand48_data) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn seed48_r (__seed16v : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn lcong48_r (__param : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn arc4random () -> __uint32_t ; } unsafe extern "C" { pub fn arc4random_buf (__buf : * mut :: std :: os :: raw :: c_void , __size : usize) ; } unsafe extern "C" { pub fn arc4random_uniform (__upper_bound : __uint32_t) -> __uint32_t ; } unsafe extern "C" { pub fn malloc (__size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } unsafe extern "C" { pub fn calloc (__nmemb : :: std :: os :: raw :: c_ulong , __size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } unsafe extern "C" { pub fn realloc (__ptr : * mut :: std :: os :: raw :: c_void , __size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } unsafe extern "C" { pub fn free (__ptr : * mut :: std :: os :: raw :: c_void) ; } unsafe extern "C" { pub fn reallocarray (__ptr : * mut :: std :: os :: raw :: c_void , __nmemb : usize , __size : usize) -> * mut :: std :: os :: raw :: c_void ; } unsafe extern "C" { pub fn alloca (__size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } unsafe extern "C" { pub fn valloc (__size : usize) -> * mut :: std :: os :: raw :: c_void ; } unsafe extern "C" { pub fn posix_memalign (__memptr : * mut * mut :: std :: os :: raw :: c_void , __alignment : usize , __size : usize) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn aligned_alloc (__alignment : :: std :: os :: raw :: c_ulong , __size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } unsafe extern "C" { pub fn abort () -> ! ; } unsafe extern "C" { pub fn atexit (__func : :: std :: option :: Option < unsafe extern "C" fn () >) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn at_quick_exit (__func : :: std :: option :: Option < unsafe extern "C" fn () >) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn on_exit (__func : :: std :: option :: Option < unsafe extern "C" fn (__status : :: std :: os :: raw :: c_int , __arg : * mut :: std :: os :: raw :: c_void) > , __arg : * mut :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn exit (__status : :: std :: os :: raw :: c_int) -> ! ; } unsafe extern "C" { pub fn quick_exit (__status : :: std :: os :: raw :: c_int) -> ! ; } unsafe extern "C" { pub fn _Exit (__status : :: std :: os :: raw :: c_int) -> ! ; } unsafe extern "C" { pub fn getenv (__name : * const :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn putenv (__string : * mut :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn setenv (__name : * const :: std :: os :: raw :: c_char , __value : * const :: std :: os :: raw :: c_char , __replace : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn unsetenv (__name : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn clearenv () -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mktemp (__template : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn mkstemp (__template : * mut :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mkstemps (__template : * mut :: std :: os :: raw :: c_char , __suffixlen : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mkdtemp (__template : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn system (__command : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn realpath (__name : * const :: std :: os :: raw :: c_char , __resolved : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } pub type __compar_fn_t = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * const :: std :: os :: raw :: c_void , arg2 : * const :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int > ; unsafe extern "C" { pub fn bsearch (__key : * const :: std :: os :: raw :: c_void , __base : * const :: std :: os :: raw :: c_void , __nmemb : usize , __size : usize , __compar : __compar_fn_t) -> * mut :: std :: os :: raw :: c_void ; } unsafe extern "C" { pub fn qsort (__base : * mut :: std :: os :: raw :: c_void , __nmemb : usize , __size : usize , __compar : __compar_fn_t) ; } unsafe extern "C" { pub fn abs (__x : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn labs (__x : :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn llabs (__x : :: std :: os :: raw :: c_longlong) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn div (__numer : :: std :: os :: raw :: c_int , __denom : :: std :: os :: raw :: c_int) -> div_t ; } unsafe extern "C" { pub fn ldiv (__numer : :: std :: os :: raw :: c_long , __denom : :: std :: os :: raw :: c_long) -> ldiv_t ; } unsafe extern "C" { pub fn lldiv (__numer : :: std :: os :: raw :: c_longlong , __denom : :: std :: os :: raw :: c_longlong) -> lldiv_t ; } unsafe extern "C" { pub fn ecvt (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn fcvt (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn gcvt (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn qecvt (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn qfcvt (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn qgcvt (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn ecvt_r (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char , __len : usize) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn fcvt_r (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char , __len : usize) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn qecvt_r (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char , __len : usize) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn qfcvt_r (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char , __len : usize) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mblen (__s : * const :: std :: os :: raw :: c_char , __n : usize) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mbtowc (__pwc : * mut wchar_t , __s : * const :: std :: os :: raw :: c_char , __n : usize) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn wctomb (__s : * mut :: std :: os :: raw :: c_char , __wchar : wchar_t) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mbstowcs (__pwcs : * mut wchar_t , __s : * const :: std :: os :: raw :: c_char , __n : usize) -> usize ; } unsafe extern "C" { pub fn wcstombs (__s : * mut :: std :: os :: raw :: c_char , __pwcs : * const wchar_t , __n : usize) -> usize ; } unsafe extern "C" { pub fn rpmatch (__response : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getsubopt (__optionp : * mut * mut :: std :: os :: raw :: c_char , __tokens : * const * mut :: std :: os :: raw :: c_char , __valuep : * mut * mut :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getloadavg (__loadavg : * mut f64 , __nelem : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } # [repr (C)] # [repr (align (16))] # [derive (Debug , Copy , Clone)] pub struct max_align_t { pub __clang_max_align_nonce1 : :: std :: os :: raw :: c_longlong , pub __bindgen_padding_0 : u64 , pub __clang_max_align_nonce2 : u128 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of max_align_t"] [:: std :: mem :: size_of :: < max_align_t > () - 32usize] ; ["Alignment of max_align_t"] [:: std :: mem :: align_of :: < max_align_t > () - 16usize] ; ["Offset of field: max_align_t::__clang_max_align_nonce1"] [:: std :: mem :: offset_of ! (max_align_t , __clang_max_align_nonce1) - 0usize] ; ["Offset of field: max_align_t::__clang_max_align_nonce2"] [:: std :: mem :: offset_of ! (max_align_t , __clang_max_align_nonce2) - 16usize] ; } ; pub type int_least8_t = __int_least8_t ; pub type int_least16_t = __int_least16_t ; pub type int_least32_t = __int_least32_t ; pub type int_least64_t = __int_least64_t ; pub type uint_least8_t = __uint_least8_t ; pub type uint_least16_t = __uint_least16_t ; pub type uint_least32_t = __uint_least32_t ; pub type uint_least64_t = __uint_least64_t ; pub type int_fast8_t = :: std :: os :: raw :: c_schar ; pub type int_fast16_t = :: std :: os :: raw :: c_long ; pub type int_fast32_t = :: std :: os :: raw :: c_long ; pub type int_fast64_t = :: std :: os :: raw :: c_long ; pub type uint_fast8_t = :: std :: os :: raw :: c_uchar ; pub type uint_fast16_t = :: std :: os :: raw :: c_ulong ; pub type uint_fast32_t = :: std :: os :: raw :: c_ulong ; pub type uint_fast64_t = :: std :: os :: raw :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub type __gwchar_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct imaxdiv_t { pub quot : :: std :: os :: raw :: c_long , pub rem : :: std :: os :: raw :: c_long , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of imaxdiv_t"] [:: std :: mem :: size_of :: < imaxdiv_t > () - 16usize] ; ["Alignment of imaxdiv_t"] [:: std :: mem :: align_of :: < imaxdiv_t > () - 8usize] ; ["Offset of field: imaxdiv_t::quot"] [:: std :: mem :: offset_of ! (imaxdiv_t , quot) - 0usize] ; ["Offset of field: imaxdiv_t::rem"] [:: std :: mem :: offset_of ! (imaxdiv_t , rem) - 8usize] ; } ; unsafe extern "C" { pub fn imaxabs (__n : intmax_t) -> intmax_t ; } unsafe extern "C" { pub fn imaxdiv (__numer : intmax_t , __denom : intmax_t) -> imaxdiv_t ; } unsafe extern "C" { pub fn strtoimax (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> intmax_t ; } unsafe extern "C" { pub fn strtoumax (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> uintmax_t ; } unsafe extern "C" { pub fn wcstoimax (__nptr : * const __gwchar_t , __endptr : * mut * mut __gwchar_t , __base : :: std :: os :: raw :: c_int) -> intmax_t ; } unsafe extern "C" { pub fn wcstoumax (__nptr : * const __gwchar_t , __endptr : * mut * mut __gwchar_t , __base : :: std :: os :: raw :: c_int) -> uintmax_t ; } # [doc = "=============================================================================\n                      Compiler and Platform Features\n============================================================================="] pub type i8_ = i8 ; pub type u8_ = u8 ; pub type i16_ = i16 ; pub type u16_ = u16 ; pub type i32_ = i32 ; pub type u32_ = u32 ; pub type i64_ = i64 ; pub type u64_ = u64 ; pub type f32_ = f32 ; pub type f64_ = f64 ; # [doc = "=============================================================================\n                               Xoroshiro 128\n============================================================================="] # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Xoroshiro { pub lo : u64 , pub hi : u64 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Xoroshiro"] [:: std :: mem :: size_of :: < Xoroshiro > () - 16usize] ; ["Alignment of Xoroshiro"] [:: std :: mem :: align_of :: < Xoroshiro > () - 8usize] ; ["Offset of field: Xoroshiro::lo"] [:: std :: mem :: offset_of ! (Xoroshiro , lo) - 0usize] ; ["Offset of field: Xoroshiro::hi"] [:: std :: mem :: offset_of ! (Xoroshiro , hi) - 8usize] ; } ; pub type float_t = f32 ; pub type double_t = f64 ; unsafe extern "C" { pub fn __fpclassify (__value : f64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __signbit (__value : f64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __isinf (__value : f64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __finite (__value : f64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __isnan (__value : f64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __iseqsig (__x : f64 , __y : f64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __issignaling (__value : f64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn acos (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __acos (__x : f64) -> f64 ; } unsafe extern "C" { pub fn asin (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __asin (__x : f64) -> f64 ; } unsafe extern "C" { pub fn atan (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __atan (__x : f64) -> f64 ; } unsafe extern "C" { pub fn atan2 (__y : f64 , __x : f64) -> f64 ; } unsafe extern "C" { pub fn __atan2 (__y : f64 , __x : f64) -> f64 ; } unsafe extern "C" { pub fn cos (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __cos (__x : f64) -> f64 ; } unsafe extern "C" { pub fn sin (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __sin (__x : f64) -> f64 ; } unsafe extern "C" { pub fn tan (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __tan (__x : f64) -> f64 ; } unsafe extern "C" { pub fn cosh (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __cosh (__x : f64) -> f64 ; } unsafe extern "C" { pub fn sinh (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __sinh (__x : f64) -> f64 ; } unsafe extern "C" { pub fn tanh (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __tanh (__x : f64) -> f64 ; } unsafe extern "C" { pub fn acosh (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __acosh (__x : f64) -> f64 ; } unsafe extern "C" { pub fn asinh (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __asinh (__x : f64) -> f64 ; } unsafe extern "C" { pub fn atanh (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __atanh (__x : f64) -> f64 ; } unsafe extern "C" { pub fn exp (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __exp (__x : f64) -> f64 ; } unsafe extern "C" { pub fn frexp (__x : f64 , __exponent : * mut :: std :: os :: raw :: c_int) -> f64 ; } unsafe extern "C" { pub fn __frexp (__x : f64 , __exponent : * mut :: std :: os :: raw :: c_int) -> f64 ; } unsafe extern "C" { pub fn ldexp (__x : f64 , __exponent : :: std :: os :: raw :: c_int) -> f64 ; } unsafe extern "C" { pub fn __ldexp (__x : f64 , __exponent : :: std :: os :: raw :: c_int) -> f64 ; } unsafe extern "C" { pub fn log (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __log (__x : f64) -> f64 ; } unsafe extern "C" { pub fn log10 (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __log10 (__x : f64) -> f64 ; } unsafe extern "C" { pub fn modf (__x : f64 , __iptr : * mut f64) -> f64 ; } unsafe extern "C" { pub fn __modf (__x : f64 , __iptr : * mut f64) -> f64 ; } unsafe extern "C" { pub fn expm1 (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __expm1 (__x : f64) -> f64 ; } unsafe extern "C" { pub fn log1p (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __log1p (__x : f64) -> f64 ; } unsafe extern "C" { pub fn logb (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __logb (__x : f64) -> f64 ; } unsafe extern "C" { pub fn exp2 (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __exp2 (__x : f64) -> f64 ; } unsafe extern "C" { pub fn log2 (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __log2 (__x : f64) -> f64 ; } unsafe extern "C" { pub fn pow (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn __pow (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn sqrt (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __sqrt (__x : f64) -> f64 ; } unsafe extern "C" { pub fn hypot (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn __hypot (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn cbrt (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __cbrt (__x : f64) -> f64 ; } unsafe extern "C" { pub fn ceil (__x : f64) -> f64 ; } unsafe extern "C" { pub fn fabs (__x : f64) -> f64 ; } unsafe extern "C" { pub fn floor (__x : f64) -> f64 ; } unsafe extern "C" { pub fn fmod (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn __fmod (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn isinf (__value : f64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn finite (__value : f64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn drem (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn __drem (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn significand (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __significand (__x : f64) -> f64 ; } unsafe extern "C" { pub fn copysign (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn nan (__tagb : * const :: std :: os :: raw :: c_char) -> f64 ; } unsafe extern "C" { pub fn __nan (__tagb : * const :: std :: os :: raw :: c_char) -> f64 ; } unsafe extern "C" { pub fn isnan (__value : f64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn j0 (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn __j0 (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn j1 (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn __j1 (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn jn (arg1 : :: std :: os :: raw :: c_int , arg2 : f64) -> f64 ; } unsafe extern "C" { pub fn __jn (arg1 : :: std :: os :: raw :: c_int , arg2 : f64) -> f64 ; } unsafe extern "C" { pub fn y0 (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn __y0 (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn y1 (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn __y1 (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn yn (arg1 : :: std :: os :: raw :: c_int , arg2 : f64) -> f64 ; } unsafe extern "C" { pub fn __yn (arg1 : :: std :: os :: raw :: c_int , arg2 : f64) -> f64 ; } unsafe extern "C" { pub fn erf (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn __erf (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn erfc (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn __erfc (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn lgamma (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn __lgamma (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn tgamma (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn __tgamma (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn gamma (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn __gamma (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn lgamma_r (arg1 : f64 , __signgamp : * mut :: std :: os :: raw :: c_int) -> f64 ; } unsafe extern "C" { pub fn __lgamma_r (arg1 : f64 , __signgamp : * mut :: std :: os :: raw :: c_int) -> f64 ; } unsafe extern "C" { pub fn rint (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __rint (__x : f64) -> f64 ; } unsafe extern "C" { pub fn nextafter (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn __nextafter (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn nexttoward (__x : f64 , __y : u128) -> f64 ; } unsafe extern "C" { pub fn __nexttoward (__x : f64 , __y : u128) -> f64 ; } unsafe extern "C" { pub fn remainder (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn __remainder (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn scalbn (__x : f64 , __n : :: std :: os :: raw :: c_int) -> f64 ; } unsafe extern "C" { pub fn __scalbn (__x : f64 , __n : :: std :: os :: raw :: c_int) -> f64 ; } unsafe extern "C" { pub fn ilogb (__x : f64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __ilogb (__x : f64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn scalbln (__x : f64 , __n : :: std :: os :: raw :: c_long) -> f64 ; } unsafe extern "C" { pub fn __scalbln (__x : f64 , __n : :: std :: os :: raw :: c_long) -> f64 ; } unsafe extern "C" { pub fn nearbyint (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __nearbyint (__x : f64) -> f64 ; } unsafe extern "C" { pub fn round (__x : f64) -> f64 ; } unsafe extern "C" { pub fn trunc (__x : f64) -> f64 ; } unsafe extern "C" { pub fn remquo (__x : f64 , __y : f64 , __quo : * mut :: std :: os :: raw :: c_int) -> f64 ; } unsafe extern "C" { pub fn __remquo (__x : f64 , __y : f64 , __quo : * mut :: std :: os :: raw :: c_int) -> f64 ; } unsafe extern "C" { pub fn lrint (__x : f64) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn __lrint (__x : f64) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn llrint (__x : f64) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn __llrint (__x : f64) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn lround (__x : f64) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn __lround (__x : f64) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn llround (__x : f64) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn __llround (__x : f64) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn fdim (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn __fdim (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn fmax (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn fmin (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn fma (__x : f64 , __y : f64 , __z : f64) -> f64 ; } unsafe extern "C" { pub fn __fma (__x : f64 , __y : f64 , __z : f64) -> f64 ; } unsafe extern "C" { pub fn scalb (__x : f64 , __n : f64) -> f64 ; } unsafe extern "C" { pub fn __scalb (__x : f64 , __n : f64) -> f64 ; } unsafe extern "C" { pub fn __fpclassifyf (__value : f32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __signbitf (__value : f32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __isinff (__value : f32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __finitef (__value : f32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __isnanf (__value : f32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __iseqsigf (__x : f32 , __y : f32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __issignalingf (__value : f32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn acosf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __acosf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn asinf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __asinf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn atanf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __atanf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn atan2f (__y : f32 , __x : f32) -> f32 ; } unsafe extern "C" { pub fn __atan2f (__y : f32 , __x : f32) -> f32 ; } unsafe extern "C" { pub fn cosf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __cosf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn sinf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __sinf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn tanf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __tanf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn coshf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __coshf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn sinhf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __sinhf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn tanhf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __tanhf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn acoshf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __acoshf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn asinhf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __asinhf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn atanhf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __atanhf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn expf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __expf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn frexpf (__x : f32 , __exponent : * mut :: std :: os :: raw :: c_int) -> f32 ; } unsafe extern "C" { pub fn __frexpf (__x : f32 , __exponent : * mut :: std :: os :: raw :: c_int) -> f32 ; } unsafe extern "C" { pub fn ldexpf (__x : f32 , __exponent : :: std :: os :: raw :: c_int) -> f32 ; } unsafe extern "C" { pub fn __ldexpf (__x : f32 , __exponent : :: std :: os :: raw :: c_int) -> f32 ; } unsafe extern "C" { pub fn logf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __logf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn log10f (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __log10f (__x : f32) -> f32 ; } unsafe extern "C" { pub fn modff (__x : f32 , __iptr : * mut f32) -> f32 ; } unsafe extern "C" { pub fn __modff (__x : f32 , __iptr : * mut f32) -> f32 ; } unsafe extern "C" { pub fn expm1f (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __expm1f (__x : f32) -> f32 ; } unsafe extern "C" { pub fn log1pf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __log1pf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn logbf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __logbf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn exp2f (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __exp2f (__x : f32) -> f32 ; } unsafe extern "C" { pub fn log2f (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __log2f (__x : f32) -> f32 ; } unsafe extern "C" { pub fn powf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn __powf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn sqrtf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __sqrtf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn hypotf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn __hypotf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn cbrtf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __cbrtf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn ceilf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn fabsf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn floorf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn fmodf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn __fmodf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn isinff (__value : f32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn finitef (__value : f32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn dremf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn __dremf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn significandf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __significandf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn copysignf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn nanf (__tagb : * const :: std :: os :: raw :: c_char) -> f32 ; } unsafe extern "C" { pub fn __nanf (__tagb : * const :: std :: os :: raw :: c_char) -> f32 ; } unsafe extern "C" { pub fn isnanf (__value : f32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn j0f (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn __j0f (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn j1f (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn __j1f (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn jnf (arg1 : :: std :: os :: raw :: c_int , arg2 : f32) -> f32 ; } unsafe extern "C" { pub fn __jnf (arg1 : :: std :: os :: raw :: c_int , arg2 : f32) -> f32 ; } unsafe extern "C" { pub fn y0f (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn __y0f (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn y1f (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn __y1f (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn ynf (arg1 : :: std :: os :: raw :: c_int , arg2 : f32) -> f32 ; } unsafe extern "C" { pub fn __ynf (arg1 : :: std :: os :: raw :: c_int , arg2 : f32) -> f32 ; } unsafe extern "C" { pub fn erff (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn __erff (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn erfcf (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn __erfcf (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn lgammaf (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn __lgammaf (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn tgammaf (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn __tgammaf (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn gammaf (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn __gammaf (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn lgammaf_r (arg1 : f32 , __signgamp : * mut :: std :: os :: raw :: c_int) -> f32 ; } unsafe extern "C" { pub fn __lgammaf_r (arg1 : f32 , __signgamp : * mut :: std :: os :: raw :: c_int) -> f32 ; } unsafe extern "C" { pub fn rintf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __rintf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn nextafterf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn __nextafterf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn nexttowardf (__x : f32 , __y : u128) -> f32 ; } unsafe extern "C" { pub fn __nexttowardf (__x : f32 , __y : u128) -> f32 ; } unsafe extern "C" { pub fn remainderf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn __remainderf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn scalbnf (__x : f32 , __n : :: std :: os :: raw :: c_int) -> f32 ; } unsafe extern "C" { pub fn __scalbnf (__x : f32 , __n : :: std :: os :: raw :: c_int) -> f32 ; } unsafe extern "C" { pub fn ilogbf (__x : f32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __ilogbf (__x : f32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn scalblnf (__x : f32 , __n : :: std :: os :: raw :: c_long) -> f32 ; } unsafe extern "C" { pub fn __scalblnf (__x : f32 , __n : :: std :: os :: raw :: c_long) -> f32 ; } unsafe extern "C" { pub fn nearbyintf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __nearbyintf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn roundf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn truncf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn remquof (__x : f32 , __y : f32 , __quo : * mut :: std :: os :: raw :: c_int) -> f32 ; } unsafe extern "C" { pub fn __remquof (__x : f32 , __y : f32 , __quo : * mut :: std :: os :: raw :: c_int) -> f32 ; } unsafe extern "C" { pub fn lrintf (__x : f32) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn __lrintf (__x : f32) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn llrintf (__x : f32) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn __llrintf (__x : f32) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn lroundf (__x : f32) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn __lroundf (__x : f32) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn llroundf (__x : f32) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn __llroundf (__x : f32) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn fdimf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn __fdimf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn fmaxf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn fminf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn fmaf (__x : f32 , __y : f32 , __z : f32) -> f32 ; } unsafe extern "C" { pub fn __fmaf (__x : f32 , __y : f32 , __z : f32) -> f32 ; } unsafe extern "C" { pub fn scalbf (__x : f32 , __n : f32) -> f32 ; } unsafe extern "C" { pub fn __scalbf (__x : f32 , __n : f32) -> f32 ; } unsafe extern "C" { pub fn __fpclassifyl (__value : u128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __signbitl (__value : u128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __isinfl (__value : u128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __finitel (__value : u128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __isnanl (__value : u128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __iseqsigl (__x : u128 , __y : u128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __issignalingl (__value : u128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn acosl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __acosl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn asinl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __asinl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn atanl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __atanl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn atan2l (__y : u128 , __x : u128) -> u128 ; } unsafe extern "C" { pub fn __atan2l (__y : u128 , __x : u128) -> u128 ; } unsafe extern "C" { pub fn cosl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __cosl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn sinl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __sinl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn tanl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __tanl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn coshl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __coshl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn sinhl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __sinhl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn tanhl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __tanhl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn acoshl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __acoshl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn asinhl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __asinhl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn atanhl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __atanhl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn expl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __expl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn frexpl (__x : u128 , __exponent : * mut :: std :: os :: raw :: c_int) -> u128 ; } unsafe extern "C" { pub fn __frexpl (__x : u128 , __exponent : * mut :: std :: os :: raw :: c_int) -> u128 ; } unsafe extern "C" { pub fn ldexpl (__x : u128 , __exponent : :: std :: os :: raw :: c_int) -> u128 ; } unsafe extern "C" { pub fn __ldexpl (__x : u128 , __exponent : :: std :: os :: raw :: c_int) -> u128 ; } unsafe extern "C" { pub fn logl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __logl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn log10l (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __log10l (__x : u128) -> u128 ; } unsafe extern "C" { pub fn modfl (__x : u128 , __iptr : * mut u128) -> u128 ; } unsafe extern "C" { pub fn __modfl (__x : u128 , __iptr : * mut u128) -> u128 ; } unsafe extern "C" { pub fn expm1l (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __expm1l (__x : u128) -> u128 ; } unsafe extern "C" { pub fn log1pl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __log1pl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn logbl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __logbl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn exp2l (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __exp2l (__x : u128) -> u128 ; } unsafe extern "C" { pub fn log2l (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __log2l (__x : u128) -> u128 ; } unsafe extern "C" { pub fn powl (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn __powl (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn sqrtl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __sqrtl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn hypotl (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn __hypotl (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn cbrtl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __cbrtl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn ceill (__x : u128) -> u128 ; } unsafe extern "C" { pub fn fabsl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn floorl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn fmodl (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn __fmodl (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn isinfl (__value : u128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn finitel (__value : u128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn dreml (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn __dreml (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn significandl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __significandl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn copysignl (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn nanl (__tagb : * const :: std :: os :: raw :: c_char) -> u128 ; } unsafe extern "C" { pub fn __nanl (__tagb : * const :: std :: os :: raw :: c_char) -> u128 ; } unsafe extern "C" { pub fn isnanl (__value : u128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn j0l (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn __j0l (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn j1l (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn __j1l (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn jnl (arg1 : :: std :: os :: raw :: c_int , arg2 : u128) -> u128 ; } unsafe extern "C" { pub fn __jnl (arg1 : :: std :: os :: raw :: c_int , arg2 : u128) -> u128 ; } unsafe extern "C" { pub fn y0l (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn __y0l (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn y1l (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn __y1l (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn ynl (arg1 : :: std :: os :: raw :: c_int , arg2 : u128) -> u128 ; } unsafe extern "C" { pub fn __ynl (arg1 : :: std :: os :: raw :: c_int , arg2 : u128) -> u128 ; } unsafe extern "C" { pub fn erfl (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn __erfl (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn erfcl (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn __erfcl (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn lgammal (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn __lgammal (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn tgammal (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn __tgammal (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn gammal (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn __gammal (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn lgammal_r (arg1 : u128 , __signgamp : * mut :: std :: os :: raw :: c_int) -> u128 ; } unsafe extern "C" { pub fn __lgammal_r (arg1 : u128 , __signgamp : * mut :: std :: os :: raw :: c_int) -> u128 ; } unsafe extern "C" { pub fn rintl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __rintl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn nextafterl (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn __nextafterl (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn nexttowardl (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn __nexttowardl (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn remainderl (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn __remainderl (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn scalbnl (__x : u128 , __n : :: std :: os :: raw :: c_int) -> u128 ; } unsafe extern "C" { pub fn __scalbnl (__x : u128 , __n : :: std :: os :: raw :: c_int) -> u128 ; } unsafe extern "C" { pub fn ilogbl (__x : u128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __ilogbl (__x : u128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn scalblnl (__x : u128 , __n : :: std :: os :: raw :: c_long) -> u128 ; } unsafe extern "C" { pub fn __scalblnl (__x : u128 , __n : :: std :: os :: raw :: c_long) -> u128 ; } unsafe extern "C" { pub fn nearbyintl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __nearbyintl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn roundl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn truncl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn remquol (__x : u128 , __y : u128 , __quo : * mut :: std :: os :: raw :: c_int) -> u128 ; } unsafe extern "C" { pub fn __remquol (__x : u128 , __y : u128 , __quo : * mut :: std :: os :: raw :: c_int) -> u128 ; } unsafe extern "C" { pub fn lrintl (__x : u128) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn __lrintl (__x : u128) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn llrintl (__x : u128) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn __llrintl (__x : u128) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn lroundl (__x : u128) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn __lroundl (__x : u128) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn llroundl (__x : u128) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn __llroundl (__x : u128) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn fdiml (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn __fdiml (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn fmaxl (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn fminl (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn fmal (__x : u128 , __y : u128 , __z : u128) -> u128 ; } unsafe extern "C" { pub fn __fmal (__x : u128 , __y : u128 , __z : u128) -> u128 ; } unsafe extern "C" { pub fn scalbl (__x : u128 , __n : u128) -> u128 ; } unsafe extern "C" { pub fn __scalbl (__x : u128 , __n : u128) -> u128 ; } unsafe extern "C" { pub fn __fpclassifyf128 (__value : _Float128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __signbitf128 (__value : _Float128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __isinff128 (__value : _Float128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __finitef128 (__value : _Float128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __isnanf128 (__value : _Float128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __iseqsigf128 (__x : _Float128 , __y : _Float128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __issignalingf128 (__value : _Float128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub static mut signgam : :: std :: os :: raw :: c_int ; } pub const FP_NAN : _bindgen_ty_1 = _bindgen_ty_1 (0) ; pub const FP_INFINITE : _bindgen_ty_1 = _bindgen_ty_1 (1) ; pub const FP_ZERO : _bindgen_ty_1 = _bindgen_ty_1 (2) ; pub const FP_SUBNORMAL : _bindgen_ty_1 = _bindgen_ty_1 (3) ; pub const FP_NORMAL : _bindgen_ty_1 = _bindgen_ty_1 (4) ; # [repr (transparent)] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct _bindgen_ty_1 (pub :: std :: os :: raw :: c_uint) ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct PerlinNoise { pub d : [u8 ; 257usize] , pub h2 : u8 , pub a : f64 , pub b : f64 , pub c : f64 , pub amplitude : f64 , pub lacunarity : f64 , pub d2 : f64 , pub t2 : f64 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of PerlinNoise"] [:: std :: mem :: size_of :: < PerlinNoise > () - 320usize] ; ["Alignment of PerlinNoise"] [:: std :: mem :: align_of :: < PerlinNoise > () - 8usize] ; ["Offset of field: PerlinNoise::d"] [:: std :: mem :: offset_of ! (PerlinNoise , d) - 0usize] ; ["Offset of field: PerlinNoise::h2"] [:: std :: mem :: offset_of ! (PerlinNoise , h2) - 257usize] ; ["Offset of field: PerlinNoise::a"] [:: std :: mem :: offset_of ! (PerlinNoise , a) - 264usize] ; ["Offset of field: PerlinNoise::b"] [:: std :: mem :: offset_of ! (PerlinNoise , b) - 272usize] ; ["Offset of field: PerlinNoise::c"] [:: std :: mem :: offset_of ! (PerlinNoise , c) - 280usize] ; ["Offset of field: PerlinNoise::amplitude"] [:: std :: mem :: offset_of ! (PerlinNoise , amplitude) - 288usize] ; ["Offset of field: PerlinNoise::lacunarity"] [:: std :: mem :: offset_of ! (PerlinNoise , lacunarity) - 296usize] ; ["Offset of field: PerlinNoise::d2"] [:: std :: mem :: offset_of ! (PerlinNoise , d2) - 304usize] ; ["Offset of field: PerlinNoise::t2"] [:: std :: mem :: offset_of ! (PerlinNoise , t2) - 312usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct OctaveNoise { pub octcnt : :: std :: os :: raw :: c_int , pub octaves : * mut PerlinNoise , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of OctaveNoise"] [:: std :: mem :: size_of :: < OctaveNoise > () - 16usize] ; ["Alignment of OctaveNoise"] [:: std :: mem :: align_of :: < OctaveNoise > () - 8usize] ; ["Offset of field: OctaveNoise::octcnt"] [:: std :: mem :: offset_of ! (OctaveNoise , octcnt) - 0usize] ; ["Offset of field: OctaveNoise::octaves"] [:: std :: mem :: offset_of ! (OctaveNoise , octaves) - 8usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct DoublePerlinNoise { pub amplitude : f64 , pub octA : OctaveNoise , pub octB : OctaveNoise , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of DoublePerlinNoise"] [:: std :: mem :: size_of :: < DoublePerlinNoise > () - 40usize] ; ["Alignment of DoublePerlinNoise"] [:: std :: mem :: align_of :: < DoublePerlinNoise > () - 8usize] ; ["Offset of field: DoublePerlinNoise::amplitude"] [:: std :: mem :: offset_of ! (DoublePerlinNoise , amplitude) - 0usize] ; ["Offset of field: DoublePerlinNoise::octA"] [:: std :: mem :: offset_of ! (DoublePerlinNoise , octA) - 8usize] ; ["Offset of field: DoublePerlinNoise::octB"] [:: std :: mem :: offset_of ! (DoublePerlinNoise , octB) - 24usize] ; } ; unsafe extern "C" { # [doc = " Perlin noise"] pub fn perlinInit (noise : * mut PerlinNoise , seed : * mut u64) ; } unsafe extern "C" { pub fn xPerlinInit (noise : * mut PerlinNoise , xr : * mut Xoroshiro) ; } unsafe extern "C" { pub fn samplePerlin (noise : * const PerlinNoise , x : f64 , y : f64 , z : f64 , yamp : f64 , ymin : f64) -> f64 ; } unsafe extern "C" { pub fn sampleSimplex2D (noise : * const PerlinNoise , x : f64 , y : f64) -> f64 ; } unsafe extern "C" { # [doc = " Perlin Octaves"] pub fn octaveInit (noise : * mut OctaveNoise , seed : * mut u64 , octaves : * mut PerlinNoise , omin : :: std :: os :: raw :: c_int , len : :: std :: os :: raw :: c_int) ; } unsafe extern "C" { pub fn octaveInitBeta (noise : * mut OctaveNoise , seed : * mut u64 , octaves : * mut PerlinNoise , octcnt : :: std :: os :: raw :: c_int , lac : f64 , lacMul : f64 , persist : f64 , persistMul : f64) ; } unsafe extern "C" { pub fn xOctaveInit (noise : * mut OctaveNoise , xr : * mut Xoroshiro , octaves : * mut PerlinNoise , amplitudes : * const f64 , omin : :: std :: os :: raw :: c_int , len : :: std :: os :: raw :: c_int , nmax : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn sampleOctave (noise : * const OctaveNoise , x : f64 , y : f64 , z : f64) -> f64 ; } unsafe extern "C" { pub fn sampleOctaveAmp (noise : * const OctaveNoise , x : f64 , y : f64 , z : f64 , yamp : f64 , ymin : f64 , ydefault : :: std :: os :: raw :: c_int) -> f64 ; } unsafe extern "C" { pub fn sampleOctave2D (noise : * const OctaveNoise , x : f64 , z : f64) -> f64 ; } unsafe extern "C" { pub fn sampleOctaveBeta17Biome (noise : * const OctaveNoise , x : f64 , z : f64) -> f64 ; } unsafe extern "C" { pub fn sampleOctaveBeta17Terrain (noise : * const OctaveNoise , v : * mut f64 , x : f64 , z : f64 , yLacFlag : :: std :: os :: raw :: c_int , lacmin : f64) ; } unsafe extern "C" { # [doc = " Double Perlin"] pub fn doublePerlinInit (noise : * mut DoublePerlinNoise , seed : * mut u64 , octavesA : * mut PerlinNoise , octavesB : * mut PerlinNoise , omin : :: std :: os :: raw :: c_int , len : :: std :: os :: raw :: c_int) ; } unsafe extern "C" { pub fn xDoublePerlinInit (noise : * mut DoublePerlinNoise , xr : * mut Xoroshiro , octaves : * mut PerlinNoise , amplitudes : * const f64 , omin : :: std :: os :: raw :: c_int , len : :: std :: os :: raw :: c_int , nmax : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn sampleDoublePerlin (noise : * const DoublePerlinNoise , x : f64 , y : f64 , z : f64) -> f64 ; } impl MCVersion { pub const MC_UNDEF : MCVersion = MCVersion (0) ; } impl MCVersion { pub const MC_B1_7 : MCVersion = MCVersion (1) ; } impl MCVersion { pub const MC_B1_8 : MCVersion = MCVersion (2) ; } impl MCVersion { pub const MC_1_0_0 : MCVersion = MCVersion (3) ; } impl MCVersion { pub const MC_1_0 : MCVersion = MCVersion (3) ; } impl MCVersion { pub const MC_1_1_0 : MCVersion = MCVersion (4) ; } impl MCVersion { pub const MC_1_1 : MCVersion = MCVersion (4) ; } impl MCVersion { pub const MC_1_2_5 : MCVersion = MCVersion (5) ; } impl MCVersion { pub const MC_1_2 : MCVersion = MCVersion (5) ; } impl MCVersion { pub const MC_1_3_2 : MCVersion = MCVersion (6) ; } impl MCVersion { pub const MC_1_3 : MCVersion = MCVersion (6) ; } impl MCVersion { pub const MC_1_4_7 : MCVersion = MCVersion (7) ; } impl MCVersion { pub const MC_1_4 : MCVersion = MCVersion (7) ; } impl MCVersion { pub const MC_1_5_2 : MCVersion = MCVersion (8) ; } impl MCVersion { pub const MC_1_5 : MCVersion = MCVersion (8) ; } impl MCVersion { pub const MC_1_6_4 : MCVersion = MCVersion (9) ; } impl MCVersion { pub const MC_1_6 : MCVersion = MCVersion (9) ; } impl MCVersion { pub const MC_1_7_10 : MCVersion = MCVersion (10) ; } impl MCVersion { pub const MC_1_7 : MCVersion = MCVersion (10) ; } impl MCVersion { pub const MC_1_8_9 : MCVersion = MCVersion (11) ; } impl MCVersion { pub const MC_1_8 : MCVersion = MCVersion (11) ; } impl MCVersion { pub const MC_1_9_4 : MCVersion = MCVersion (12) ; } impl MCVersion { pub const MC_1_9 : MCVersion = MCVersion (12) ; } impl MCVersion { pub const MC_1_10_2 : MCVersion = MCVersion (13) ; } impl MCVersion { pub const MC_1_10 : MCVersion = MCVersion (13) ; } impl MCVersion { pub const MC_1_11_2 : MCVersion = MCVersion (14) ; } impl MCVersion { pub const MC_1_11 : MCVersion = MCVersion (14) ; } impl MCVersion { pub const MC_1_12_2 : MCVersion = MCVersion (15) ; } impl MCVersion { pub const MC_1_12 : MCVersion = MCVersion (15) ; } impl MCVersion { pub const MC_1_13_2 : MCVersion = MCVersion (16) ; } impl MCVersion { pub const MC_1_13 : MCVersion = MCVersion (16) ; } impl MCVersion { pub const MC_1_14_4 : MCVersion = MCVersion (17) ; } impl MCVersion { pub const MC_1_14 : MCVersion = MCVersion (17) ; } impl MCVersion { pub const MC_1_15_2 : MCVersion = MCVersion (18) ; } impl MCVersion { pub const MC_1_15 : MCVersion = MCVersion (18) ; } impl MCVersion { pub const MC_1_16_1 : MCVersion = MCVersion (19) ; } impl MCVersion { pub const MC_1_16_5 : MCVersion = MCVersion (20) ; } impl MCVersion { pub const MC_1_16 : MCVersion = MCVersion (20) ; } impl MCVersion { pub const MC_1_17_1 : MCVersion = MCVersion (21) ; } impl MCVersion { pub const MC_1_17 : MCVersion = MCVersion (21) ; } impl MCVersion { pub const MC_1_18_2 : MCVersion = MCVersion (22) ; } impl MCVersion { pub const MC_1_18 : MCVersion = MCVersion (22) ; } impl MCVersion { pub const MC_1_19_2 : MCVersion = MCVersion (23) ; } impl MCVersion { pub const MC_1_19_4 : MCVersion = MCVersion (24) ; } impl MCVersion { pub const MC_1_19 : MCVersion = MCVersion (24) ; } impl MCVersion { pub const MC_1_20_6 : MCVersion = MCVersion (25) ; } impl MCVersion { pub const MC_1_20 : MCVersion = MCVersion (25) ; } impl MCVersion { pub const MC_1_21_1 : MCVersion = MCVersion (26) ; } impl MCVersion { pub const MC_1_21_3 : MCVersion = MCVersion (27) ; } impl MCVersion { pub const MC_1_21_WD : MCVersion = MCVersion (28) ; } impl MCVersion { pub const MC_1_21 : MCVersion = MCVersion (28) ; } impl MCVersion { pub const MC_NEWEST : MCVersion = MCVersion (28) ; } # [repr (transparent)] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct MCVersion (pub :: std :: os :: raw :: c_uint) ; impl Dimension { pub const DIM_NETHER : Dimension = Dimension (- 1) ; } impl Dimension { pub const DIM_OVERWORLD : Dimension = Dimension (0) ; } impl Dimension { pub const DIM_END : Dimension = Dimension (1) ; } impl Dimension { pub const DIM_UNDEF : Dimension = Dimension (1000) ; } # [repr (transparent)] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct Dimension (pub :: std :: os :: raw :: c_int) ; impl BiomeID { pub const none : BiomeID = BiomeID (- 1) ; } impl BiomeID { pub const ocean : BiomeID = BiomeID (0) ; } impl BiomeID { pub const plains : BiomeID = BiomeID (1) ; } impl BiomeID { pub const desert : BiomeID = BiomeID (2) ; } impl BiomeID { pub const mountains : BiomeID = BiomeID (3) ; } impl BiomeID { pub const extremeHills : BiomeID = BiomeID (3) ; } impl BiomeID { pub const forest : BiomeID = BiomeID (4) ; } impl BiomeID { pub const taiga : BiomeID = BiomeID (5) ; } impl BiomeID { pub const swamp : BiomeID = BiomeID (6) ; } impl BiomeID { pub const swampland : BiomeID = BiomeID (6) ; } impl BiomeID { pub const river : BiomeID = BiomeID (7) ; } impl BiomeID { pub const nether_wastes : BiomeID = BiomeID (8) ; } impl BiomeID { pub const hell : BiomeID = BiomeID (8) ; } impl BiomeID { pub const the_end : BiomeID = BiomeID (9) ; } impl BiomeID { pub const sky : BiomeID = BiomeID (9) ; } impl BiomeID { pub const frozen_ocean : BiomeID = BiomeID (10) ; } impl BiomeID { pub const frozenOcean : BiomeID = BiomeID (10) ; } impl BiomeID { pub const frozen_river : BiomeID = BiomeID (11) ; } impl BiomeID { pub const frozenRiver : BiomeID = BiomeID (11) ; } impl BiomeID { pub const snowy_tundra : BiomeID = BiomeID (12) ; } impl BiomeID { pub const icePlains : BiomeID = BiomeID (12) ; } impl BiomeID { pub const snowy_mountains : BiomeID = BiomeID (13) ; } impl BiomeID { pub const iceMountains : BiomeID = BiomeID (13) ; } impl BiomeID { pub const mushroom_fields : BiomeID = BiomeID (14) ; } impl BiomeID { pub const mushroomIsland : BiomeID = BiomeID (14) ; } impl BiomeID { pub const mushroom_field_shore : BiomeID = BiomeID (15) ; } impl BiomeID { pub const mushroomIslandShore : BiomeID = BiomeID (15) ; } impl BiomeID { pub const beach : BiomeID = BiomeID (16) ; } impl BiomeID { pub const desert_hills : BiomeID = BiomeID (17) ; } impl BiomeID { pub const desertHills : BiomeID = BiomeID (17) ; } impl BiomeID { pub const wooded_hills : BiomeID = BiomeID (18) ; } impl BiomeID { pub const forestHills : BiomeID = BiomeID (18) ; } impl BiomeID { pub const taiga_hills : BiomeID = BiomeID (19) ; } impl BiomeID { pub const taigaHills : BiomeID = BiomeID (19) ; } impl BiomeID { pub const mountain_edge : BiomeID = BiomeID (20) ; } impl BiomeID { pub const extremeHillsEdge : BiomeID = BiomeID (20) ; } impl BiomeID { pub const jungle : BiomeID = BiomeID (21) ; } impl BiomeID { pub const jungle_hills : BiomeID = BiomeID (22) ; } impl BiomeID { pub const jungleHills : BiomeID = BiomeID (22) ; } impl BiomeID { pub const jungle_edge : BiomeID = BiomeID (23) ; } impl BiomeID { pub const jungleEdge : BiomeID = BiomeID (23) ; } impl BiomeID { pub const deep_ocean : BiomeID = BiomeID (24) ; } impl BiomeID { pub const deepOcean : BiomeID = BiomeID (24) ; } impl BiomeID { pub const stone_shore : BiomeID = BiomeID (25) ; } impl BiomeID { pub const stoneBeach : BiomeID = BiomeID (25) ; } impl BiomeID { pub const snowy_beach : BiomeID = BiomeID (26) ; } impl BiomeID { pub const coldBeach : BiomeID = BiomeID (26) ; } impl BiomeID { pub const birch_forest : BiomeID = BiomeID (27) ; } impl BiomeID { pub const birchForest : BiomeID = BiomeID (27) ; } impl BiomeID { pub const birch_forest_hills : BiomeID = BiomeID (28) ; } impl BiomeID { pub const birchForestHills : BiomeID = BiomeID (28) ; } impl BiomeID { pub const dark_forest : BiomeID = BiomeID (29) ; } impl BiomeID { pub const roofedForest : BiomeID = BiomeID (29) ; } impl BiomeID { pub const snowy_taiga : BiomeID = BiomeID (30) ; } impl BiomeID { pub const coldTaiga : BiomeID = BiomeID (30) ; } impl BiomeID { pub const snowy_taiga_hills : BiomeID = BiomeID (31) ; } impl BiomeID { pub const coldTaigaHills : BiomeID = BiomeID (31) ; } impl BiomeID { pub const giant_tree_taiga : BiomeID = BiomeID (32) ; } impl BiomeID { pub const megaTaiga : BiomeID = BiomeID (32) ; } impl BiomeID { pub const giant_tree_taiga_hills : BiomeID = BiomeID (33) ; } impl BiomeID { pub const megaTaigaHills : BiomeID = BiomeID (33) ; } impl BiomeID { pub const wooded_mountains : BiomeID = BiomeID (34) ; } impl BiomeID { pub const extremeHillsPlus : BiomeID = BiomeID (34) ; } impl BiomeID { pub const savanna : BiomeID = BiomeID (35) ; } impl BiomeID { pub const savanna_plateau : BiomeID = BiomeID (36) ; } impl BiomeID { pub const savannaPlateau : BiomeID = BiomeID (36) ; } impl BiomeID { pub const badlands : BiomeID = BiomeID (37) ; } impl BiomeID { pub const mesa : BiomeID = BiomeID (37) ; } impl BiomeID { pub const wooded_badlands_plateau : BiomeID = BiomeID (38) ; } impl BiomeID { pub const mesaPlateau_F : BiomeID = BiomeID (38) ; } impl BiomeID { pub const badlands_plateau : BiomeID = BiomeID (39) ; } impl BiomeID { pub const mesaPlateau : BiomeID = BiomeID (39) ; } impl BiomeID { pub const small_end_islands : BiomeID = BiomeID (40) ; } impl BiomeID { pub const end_midlands : BiomeID = BiomeID (41) ; } impl BiomeID { pub const end_highlands : BiomeID = BiomeID (42) ; } impl BiomeID { pub const end_barrens : BiomeID = BiomeID (43) ; } impl BiomeID { pub const warm_ocean : BiomeID = BiomeID (44) ; } impl BiomeID { pub const warmOcean : BiomeID = BiomeID (44) ; } impl BiomeID { pub const lukewarm_ocean : BiomeID = BiomeID (45) ; } impl BiomeID { pub const lukewarmOcean : BiomeID = BiomeID (45) ; } impl BiomeID { pub const cold_ocean : BiomeID = BiomeID (46) ; } impl BiomeID { pub const coldOcean : BiomeID = BiomeID (46) ; } impl BiomeID { pub const deep_warm_ocean : BiomeID = BiomeID (47) ; } impl BiomeID { pub const warmDeepOcean : BiomeID = BiomeID (47) ; } impl BiomeID { pub const deep_lukewarm_ocean : BiomeID = BiomeID (48) ; } impl BiomeID { pub const lukewarmDeepOcean : BiomeID = BiomeID (48) ; } impl BiomeID { pub const deep_cold_ocean : BiomeID = BiomeID (49) ; } impl BiomeID { pub const coldDeepOcean : BiomeID = BiomeID (49) ; } impl BiomeID { pub const deep_frozen_ocean : BiomeID = BiomeID (50) ; } impl BiomeID { pub const frozenDeepOcean : BiomeID = BiomeID (50) ; } impl BiomeID { pub const seasonal_forest : BiomeID = BiomeID (51) ; } impl BiomeID { pub const rainforest : BiomeID = BiomeID (52) ; } impl BiomeID { pub const shrubland : BiomeID = BiomeID (53) ; } impl BiomeID { pub const the_void : BiomeID = BiomeID (127) ; } impl BiomeID { pub const sunflower_plains : BiomeID = BiomeID (129) ; } impl BiomeID { pub const desert_lakes : BiomeID = BiomeID (130) ; } impl BiomeID { pub const gravelly_mountains : BiomeID = BiomeID (131) ; } impl BiomeID { pub const flower_forest : BiomeID = BiomeID (132) ; } impl BiomeID { pub const taiga_mountains : BiomeID = BiomeID (133) ; } impl BiomeID { pub const swamp_hills : BiomeID = BiomeID (134) ; } impl BiomeID { pub const ice_spikes : BiomeID = BiomeID (140) ; } impl BiomeID { pub const modified_jungle : BiomeID = BiomeID (149) ; } impl BiomeID { pub const modified_jungle_edge : BiomeID = BiomeID (151) ; } impl BiomeID { pub const tall_birch_forest : BiomeID = BiomeID (155) ; } impl BiomeID { pub const tall_birch_hills : BiomeID = BiomeID (156) ; } impl BiomeID { pub const dark_forest_hills : BiomeID = BiomeID (157) ; } impl BiomeID { pub const snowy_taiga_mountains : BiomeID = BiomeID (158) ; } impl BiomeID { pub const giant_spruce_taiga : BiomeID = BiomeID (160) ; } impl BiomeID { pub const giant_spruce_taiga_hills : BiomeID = BiomeID (161) ; } impl BiomeID { pub const modified_gravelly_mountains : BiomeID = BiomeID (162) ; } impl BiomeID { pub const shattered_savanna : BiomeID = BiomeID (163) ; } impl BiomeID { pub const shattered_savanna_plateau : BiomeID = BiomeID (164) ; } impl BiomeID { pub const eroded_badlands : BiomeID = BiomeID (165) ; } impl BiomeID { pub const modified_wooded_badlands_plateau : BiomeID = BiomeID (166) ; } impl BiomeID { pub const modified_badlands_plateau : BiomeID = BiomeID (167) ; } impl BiomeID { pub const bamboo_jungle : BiomeID = BiomeID (168) ; } impl BiomeID { pub const bamboo_jungle_hills : BiomeID = BiomeID (169) ; } impl BiomeID { pub const soul_sand_valley : BiomeID = BiomeID (170) ; } impl BiomeID { pub const crimson_forest : BiomeID = BiomeID (171) ; } impl BiomeID { pub const warped_forest : BiomeID = BiomeID (172) ; } impl BiomeID { pub const basalt_deltas : BiomeID = BiomeID (173) ; } impl BiomeID { pub const dripstone_caves : BiomeID = BiomeID (174) ; } impl BiomeID { pub const lush_caves : BiomeID = BiomeID (175) ; } impl BiomeID { pub const meadow : BiomeID = BiomeID (177) ; } impl BiomeID { pub const grove : BiomeID = BiomeID (178) ; } impl BiomeID { pub const snowy_slopes : BiomeID = BiomeID (179) ; } impl BiomeID { pub const jagged_peaks : BiomeID = BiomeID (180) ; } impl BiomeID { pub const frozen_peaks : BiomeID = BiomeID (181) ; } impl BiomeID { pub const stony_peaks : BiomeID = BiomeID (182) ; } impl BiomeID { pub const old_growth_birch_forest : BiomeID = BiomeID (155) ; } impl BiomeID { pub const old_growth_pine_taiga : BiomeID = BiomeID (32) ; } impl BiomeID { pub const old_growth_spruce_taiga : BiomeID = BiomeID (160) ; } impl BiomeID { pub const snowy_plains : BiomeID = BiomeID (12) ; } impl BiomeID { pub const sparse_jungle : BiomeID = BiomeID (23) ; } impl BiomeID { pub const stony_shore : BiomeID = BiomeID (25) ; } impl BiomeID { pub const windswept_hills : BiomeID = BiomeID (3) ; } impl BiomeID { pub const windswept_forest : BiomeID = BiomeID (34) ; } impl BiomeID { pub const windswept_gravelly_hills : BiomeID = BiomeID (131) ; } impl BiomeID { pub const windswept_savanna : BiomeID = BiomeID (163) ; } impl BiomeID { pub const wooded_badlands : BiomeID = BiomeID (38) ; } impl BiomeID { pub const deep_dark : BiomeID = BiomeID (183) ; } impl BiomeID { pub const mangrove_swamp : BiomeID = BiomeID (184) ; } impl BiomeID { pub const cherry_grove : BiomeID = BiomeID (185) ; } impl BiomeID { pub const pale_garden : BiomeID = BiomeID (186) ; } # [repr (transparent)] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct BiomeID (pub :: std :: os :: raw :: c_int) ; unsafe extern "C" { pub fn biomeExists (mc : :: std :: os :: raw :: c_int , id : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn isOverworld (mc : :: std :: os :: raw :: c_int , id : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getDimension (id : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getMutated (mc : :: std :: os :: raw :: c_int , id : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getCategory (mc : :: std :: os :: raw :: c_int , id : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn areSimilar (mc : :: std :: os :: raw :: c_int , id1 : :: std :: os :: raw :: c_int , id2 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn isMesa (id : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn isShallowOcean (id : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn isDeepOcean (id : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn isOceanic (id : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn isSnowy (id : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } impl BiomeTempCategory { pub const Oceanic : BiomeTempCategory = BiomeTempCategory (0) ; } impl BiomeTempCategory { pub const Warm : BiomeTempCategory = BiomeTempCategory (1) ; } impl BiomeTempCategory { pub const Lush : BiomeTempCategory = BiomeTempCategory (2) ; } impl BiomeTempCategory { pub const Cold : BiomeTempCategory = BiomeTempCategory (3) ; } impl BiomeTempCategory { pub const Freezing : BiomeTempCategory = BiomeTempCategory (4) ; } impl BiomeTempCategory { pub const Special : BiomeTempCategory = BiomeTempCategory (5) ; } # [repr (transparent)] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct BiomeTempCategory (pub :: std :: os :: raw :: c_uint) ; impl LayerId { pub const L_CONTINENT_4096 : LayerId = LayerId (0) ; } impl LayerId { pub const L_ISLAND_4096 : LayerId = LayerId (0) ; } impl LayerId { pub const L_ZOOM_4096 : LayerId = LayerId (1) ; } impl LayerId { pub const L_LAND_4096 : LayerId = LayerId (2) ; } impl LayerId { pub const L_ZOOM_2048 : LayerId = LayerId (3) ; } impl LayerId { pub const L_LAND_2048 : LayerId = LayerId (4) ; } impl LayerId { pub const L_ADD_ISLAND_2048 : LayerId = LayerId (4) ; } impl LayerId { pub const L_ZOOM_1024 : LayerId = LayerId (5) ; } impl LayerId { pub const L_LAND_1024_A : LayerId = LayerId (6) ; } impl LayerId { pub const L_ADD_ISLAND_1024A : LayerId = LayerId (6) ; } impl LayerId { pub const L_LAND_1024_B : LayerId = LayerId (7) ; } impl LayerId { pub const L_ADD_ISLAND_1024B : LayerId = LayerId (7) ; } impl LayerId { pub const L_LAND_1024_C : LayerId = LayerId (8) ; } impl LayerId { pub const L_ADD_ISLAND_1024C : LayerId = LayerId (8) ; } impl LayerId { pub const L_ISLAND_1024 : LayerId = LayerId (9) ; } impl LayerId { pub const L_REMOVE_OCEAN_1024 : LayerId = LayerId (9) ; } impl LayerId { pub const L_SNOW_1024 : LayerId = LayerId (10) ; } impl LayerId { pub const L_ADD_SNOW_1024 : LayerId = LayerId (10) ; } impl LayerId { pub const L_LAND_1024_D : LayerId = LayerId (11) ; } impl LayerId { pub const L_ADD_ISLAND_1024D : LayerId = LayerId (11) ; } impl LayerId { pub const L_COOL_1024 : LayerId = LayerId (12) ; } impl LayerId { pub const L_COOL_WARM_1024 : LayerId = LayerId (12) ; } impl LayerId { pub const L_HEAT_1024 : LayerId = LayerId (13) ; } impl LayerId { pub const L_HEAT_ICE_1024 : LayerId = LayerId (13) ; } impl LayerId { pub const L_SPECIAL_1024 : LayerId = LayerId (14) ; } impl LayerId { pub const L_ZOOM_512 : LayerId = LayerId (15) ; } impl LayerId { pub const L_LAND_512 : LayerId = LayerId (16) ; } impl LayerId { pub const L_ZOOM_256 : LayerId = LayerId (17) ; } impl LayerId { pub const L_LAND_256 : LayerId = LayerId (18) ; } impl LayerId { pub const L_ADD_ISLAND_256 : LayerId = LayerId (18) ; } impl LayerId { pub const L_MUSHROOM_256 : LayerId = LayerId (19) ; } impl LayerId { pub const L_ADD_MUSHROOM_256 : LayerId = LayerId (19) ; } impl LayerId { pub const L_DEEP_OCEAN_256 : LayerId = LayerId (20) ; } impl LayerId { pub const L_BIOME_256 : LayerId = LayerId (21) ; } impl LayerId { pub const L_BAMBOO_256 : LayerId = LayerId (22) ; } impl LayerId { pub const L14_BAMBOO_256 : LayerId = LayerId (22) ; } impl LayerId { pub const L_ZOOM_128 : LayerId = LayerId (23) ; } impl LayerId { pub const L_ZOOM_64 : LayerId = LayerId (24) ; } impl LayerId { pub const L_BIOME_EDGE_64 : LayerId = LayerId (25) ; } impl LayerId { pub const L_NOISE_256 : LayerId = LayerId (26) ; } impl LayerId { pub const L_RIVER_INIT_256 : LayerId = LayerId (26) ; } impl LayerId { pub const L_ZOOM_128_HILLS : LayerId = LayerId (27) ; } impl LayerId { pub const L_ZOOM_64_HILLS : LayerId = LayerId (28) ; } impl LayerId { pub const L_HILLS_64 : LayerId = LayerId (29) ; } impl LayerId { pub const L_SUNFLOWER_64 : LayerId = LayerId (30) ; } impl LayerId { pub const L_RARE_BIOME_64 : LayerId = LayerId (30) ; } impl LayerId { pub const L_ZOOM_32 : LayerId = LayerId (31) ; } impl LayerId { pub const L_LAND_32 : LayerId = LayerId (32) ; } impl LayerId { pub const L_ADD_ISLAND_32 : LayerId = LayerId (32) ; } impl LayerId { pub const L_ZOOM_16 : LayerId = LayerId (33) ; } impl LayerId { pub const L_SHORE_16 : LayerId = LayerId (34) ; } impl LayerId { pub const L_SWAMP_RIVER_16 : LayerId = LayerId (35) ; } impl LayerId { pub const L_ZOOM_8 : LayerId = LayerId (36) ; } impl LayerId { pub const L_ZOOM_4 : LayerId = LayerId (37) ; } impl LayerId { pub const L_SMOOTH_4 : LayerId = LayerId (38) ; } impl LayerId { pub const L_ZOOM_128_RIVER : LayerId = LayerId (39) ; } impl LayerId { pub const L_ZOOM_64_RIVER : LayerId = LayerId (40) ; } impl LayerId { pub const L_ZOOM_32_RIVER : LayerId = LayerId (41) ; } impl LayerId { pub const L_ZOOM_16_RIVER : LayerId = LayerId (42) ; } impl LayerId { pub const L_ZOOM_8_RIVER : LayerId = LayerId (43) ; } impl LayerId { pub const L_ZOOM_4_RIVER : LayerId = LayerId (44) ; } impl LayerId { pub const L_RIVER_4 : LayerId = LayerId (45) ; } impl LayerId { pub const L_SMOOTH_4_RIVER : LayerId = LayerId (46) ; } impl LayerId { pub const L_RIVER_MIX_4 : LayerId = LayerId (47) ; } impl LayerId { pub const L_OCEAN_TEMP_256 : LayerId = LayerId (48) ; } impl LayerId { pub const L13_OCEAN_TEMP_256 : LayerId = LayerId (48) ; } impl LayerId { pub const L_ZOOM_128_OCEAN : LayerId = LayerId (49) ; } impl LayerId { pub const L13_ZOOM_128 : LayerId = LayerId (49) ; } impl LayerId { pub const L_ZOOM_64_OCEAN : LayerId = LayerId (50) ; } impl LayerId { pub const L13_ZOOM_64 : LayerId = LayerId (50) ; } impl LayerId { pub const L_ZOOM_32_OCEAN : LayerId = LayerId (51) ; } impl LayerId { pub const L13_ZOOM_32 : LayerId = LayerId (51) ; } impl LayerId { pub const L_ZOOM_16_OCEAN : LayerId = LayerId (52) ; } impl LayerId { pub const L13_ZOOM_16 : LayerId = LayerId (52) ; } impl LayerId { pub const L_ZOOM_8_OCEAN : LayerId = LayerId (53) ; } impl LayerId { pub const L13_ZOOM_8 : LayerId = LayerId (53) ; } impl LayerId { pub const L_ZOOM_4_OCEAN : LayerId = LayerId (54) ; } impl LayerId { pub const L13_ZOOM_4 : LayerId = LayerId (54) ; } impl LayerId { pub const L_OCEAN_MIX_4 : LayerId = LayerId (55) ; } impl LayerId { pub const L13_OCEAN_MIX_4 : LayerId = LayerId (55) ; } impl LayerId { pub const L_VORONOI_1 : LayerId = LayerId (56) ; } impl LayerId { pub const L_VORONOI_ZOOM_1 : LayerId = LayerId (56) ; } impl LayerId { pub const L_ZOOM_LARGE_A : LayerId = LayerId (57) ; } impl LayerId { pub const L_ZOOM_LARGE_B : LayerId = LayerId (58) ; } impl LayerId { pub const L_ZOOM_L_RIVER_A : LayerId = LayerId (59) ; } impl LayerId { pub const L_ZOOM_L_RIVER_B : LayerId = LayerId (60) ; } impl LayerId { pub const L_NUM : LayerId = LayerId (61) ; } # [repr (transparent)] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct LayerId (pub :: std :: os :: raw :: c_uint) ; pub type mapfunc_t = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Layer { pub getMap : mapfunc_t , pub mc : i8 , pub zoom : i8 , pub edge : i8 , pub scale : :: std :: os :: raw :: c_int , pub layerSalt : u64 , pub startSalt : u64 , pub startSeed : u64 , pub noise : * mut :: std :: os :: raw :: c_void , pub data : * mut :: std :: os :: raw :: c_void , pub p : * mut Layer , pub p2 : * mut Layer , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Layer"] [:: std :: mem :: size_of :: < Layer > () - 72usize] ; ["Alignment of Layer"] [:: std :: mem :: align_of :: < Layer > () - 8usize] ; ["Offset of field: Layer::getMap"] [:: std :: mem :: offset_of ! (Layer , getMap) - 0usize] ; ["Offset of field: Layer::mc"] [:: std :: mem :: offset_of ! (Layer , mc) - 8usize] ; ["Offset of field: Layer::zoom"] [:: std :: mem :: offset_of ! (Layer , zoom) - 9usize] ; ["Offset of field: Layer::edge"] [:: std :: mem :: offset_of ! (Layer , edge) - 10usize] ; ["Offset of field: Layer::scale"] [:: std :: mem :: offset_of ! (Layer , scale) - 12usize] ; ["Offset of field: Layer::layerSalt"] [:: std :: mem :: offset_of ! (Layer , layerSalt) - 16usize] ; ["Offset of field: Layer::startSalt"] [:: std :: mem :: offset_of ! (Layer , startSalt) - 24usize] ; ["Offset of field: Layer::startSeed"] [:: std :: mem :: offset_of ! (Layer , startSeed) - 32usize] ; ["Offset of field: Layer::noise"] [:: std :: mem :: offset_of ! (Layer , noise) - 40usize] ; ["Offset of field: Layer::data"] [:: std :: mem :: offset_of ! (Layer , data) - 48usize] ; ["Offset of field: Layer::p"] [:: std :: mem :: offset_of ! (Layer , p) - 56usize] ; ["Offset of field: Layer::p2"] [:: std :: mem :: offset_of ! (Layer , p2) - 64usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct LayerStack { pub layers : [Layer ; 61usize] , pub entry_1 : * mut Layer , pub entry_4 : * mut Layer , pub entry_16 : * mut Layer , pub entry_64 : * mut Layer , pub entry_256 : * mut Layer , pub oceanRnd : PerlinNoise , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of LayerStack"] [:: std :: mem :: size_of :: < LayerStack > () - 4752usize] ; ["Alignment of LayerStack"] [:: std :: mem :: align_of :: < LayerStack > () - 8usize] ; ["Offset of field: LayerStack::layers"] [:: std :: mem :: offset_of ! (LayerStack , layers) - 0usize] ; ["Offset of field: LayerStack::entry_1"] [:: std :: mem :: offset_of ! (LayerStack , entry_1) - 4392usize] ; ["Offset of field: LayerStack::entry_4"] [:: std :: mem :: offset_of ! (LayerStack , entry_4) - 4400usize] ; ["Offset of field: LayerStack::entry_16"] [:: std :: mem :: offset_of ! (LayerStack , entry_16) - 4408usize] ; ["Offset of field: LayerStack::entry_64"] [:: std :: mem :: offset_of ! (LayerStack , entry_64) - 4416usize] ; ["Offset of field: LayerStack::entry_256"] [:: std :: mem :: offset_of ! (LayerStack , entry_256) - 4424usize] ; ["Offset of field: LayerStack::oceanRnd"] [:: std :: mem :: offset_of ! (LayerStack , oceanRnd) - 4432usize] ; } ; unsafe extern "C" { pub fn setLayerSeed (layer : * mut Layer , worldSeed : u64) ; } unsafe extern "C" { pub fn mapContinent (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapZoomFuzzy (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapZoom (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapLand (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapLand16 (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapLandB18 (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapIsland (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapSnow (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapSnow16 (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapCool (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapHeat (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapSpecial (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapMushroom (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapDeepOcean (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapBiome (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapBamboo (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapNoise (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapBiomeEdge (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapHills (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapRiver (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapSmooth (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapSunflower (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapShore (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapSwampRiver (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapRiverMix (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapOceanTemp (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapOceanMix (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapVoronoi (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapVoronoi114 (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getVoronoiSHA (worldSeed : u64) -> u64 ; } unsafe extern "C" { pub fn voronoiAccess3D (sha : u64 , x : :: std :: os :: raw :: c_int , y : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , x4 : * mut :: std :: os :: raw :: c_int , y4 : * mut :: std :: os :: raw :: c_int , z4 : * mut :: std :: os :: raw :: c_int) ; } unsafe extern "C" { pub fn mapVoronoiPlane (sha : u64 , out : * mut :: std :: os :: raw :: c_int , src : * mut :: std :: os :: raw :: c_int , x : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , w : :: std :: os :: raw :: c_int , h : :: std :: os :: raw :: c_int , y : :: std :: os :: raw :: c_int , px : :: std :: os :: raw :: c_int , pz : :: std :: os :: raw :: c_int , pw : :: std :: os :: raw :: c_int , ph : :: std :: os :: raw :: c_int) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Range { pub scale : :: std :: os :: raw :: c_int , pub x : :: std :: os :: raw :: c_int , pub z : :: std :: os :: raw :: c_int , pub sx : :: std :: os :: raw :: c_int , pub sz : :: std :: os :: raw :: c_int , pub y : :: std :: os :: raw :: c_int , pub sy : :: std :: os :: raw :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Range"] [:: std :: mem :: size_of :: < Range > () - 28usize] ; ["Alignment of Range"] [:: std :: mem :: align_of :: < Range > () - 4usize] ; ["Offset of field: Range::scale"] [:: std :: mem :: offset_of ! (Range , scale) - 0usize] ; ["Offset of field: Range::x"] [:: std :: mem :: offset_of ! (Range , x) - 4usize] ; ["Offset of field: Range::z"] [:: std :: mem :: offset_of ! (Range , z) - 8usize] ; ["Offset of field: Range::sx"] [:: std :: mem :: offset_of ! (Range , sx) - 12usize] ; ["Offset of field: Range::sz"] [:: std :: mem :: offset_of ! (Range , sz) - 16usize] ; ["Offset of field: Range::y"] [:: std :: mem :: offset_of ! (Range , y) - 20usize] ; ["Offset of field: Range::sy"] [:: std :: mem :: offset_of ! (Range , sy) - 24usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct NetherNoise { pub temperature : DoublePerlinNoise , pub humidity : DoublePerlinNoise , pub oct : [PerlinNoise ; 8usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of NetherNoise"] [:: std :: mem :: size_of :: < NetherNoise > () - 2640usize] ; ["Alignment of NetherNoise"] [:: std :: mem :: align_of :: < NetherNoise > () - 8usize] ; ["Offset of field: NetherNoise::temperature"] [:: std :: mem :: offset_of ! (NetherNoise , temperature) - 0usize] ; ["Offset of field: NetherNoise::humidity"] [:: std :: mem :: offset_of ! (NetherNoise , humidity) - 40usize] ; ["Offset of field: NetherNoise::oct"] [:: std :: mem :: offset_of ! (NetherNoise , oct) - 80usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct EndNoise { pub perlin : PerlinNoise , pub mc : :: std :: os :: raw :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of EndNoise"] [:: std :: mem :: size_of :: < EndNoise > () - 328usize] ; ["Alignment of EndNoise"] [:: std :: mem :: align_of :: < EndNoise > () - 8usize] ; ["Offset of field: EndNoise::perlin"] [:: std :: mem :: offset_of ! (EndNoise , perlin) - 0usize] ; ["Offset of field: EndNoise::mc"] [:: std :: mem :: offset_of ! (EndNoise , mc) - 320usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct SurfaceNoise { pub xzScale : f64 , pub yScale : f64 , pub xzFactor : f64 , pub yFactor : f64 , pub octmin : OctaveNoise , pub octmax : OctaveNoise , pub octmain : OctaveNoise , pub octsurf : OctaveNoise , pub octdepth : OctaveNoise , pub oct : [PerlinNoise ; 60usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of SurfaceNoise"] [:: std :: mem :: size_of :: < SurfaceNoise > () - 19312usize] ; ["Alignment of SurfaceNoise"] [:: std :: mem :: align_of :: < SurfaceNoise > () - 8usize] ; ["Offset of field: SurfaceNoise::xzScale"] [:: std :: mem :: offset_of ! (SurfaceNoise , xzScale) - 0usize] ; ["Offset of field: SurfaceNoise::yScale"] [:: std :: mem :: offset_of ! (SurfaceNoise , yScale) - 8usize] ; ["Offset of field: SurfaceNoise::xzFactor"] [:: std :: mem :: offset_of ! (SurfaceNoise , xzFactor) - 16usize] ; ["Offset of field: SurfaceNoise::yFactor"] [:: std :: mem :: offset_of ! (SurfaceNoise , yFactor) - 24usize] ; ["Offset of field: SurfaceNoise::octmin"] [:: std :: mem :: offset_of ! (SurfaceNoise , octmin) - 32usize] ; ["Offset of field: SurfaceNoise::octmax"] [:: std :: mem :: offset_of ! (SurfaceNoise , octmax) - 48usize] ; ["Offset of field: SurfaceNoise::octmain"] [:: std :: mem :: offset_of ! (SurfaceNoise , octmain) - 64usize] ; ["Offset of field: SurfaceNoise::octsurf"] [:: std :: mem :: offset_of ! (SurfaceNoise , octsurf) - 80usize] ; ["Offset of field: SurfaceNoise::octdepth"] [:: std :: mem :: offset_of ! (SurfaceNoise , octdepth) - 96usize] ; ["Offset of field: SurfaceNoise::oct"] [:: std :: mem :: offset_of ! (SurfaceNoise , oct) - 112usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct SurfaceNoiseBeta { pub octmin : OctaveNoise , pub octmax : OctaveNoise , pub octmain : OctaveNoise , pub octcontA : OctaveNoise , pub octcontB : OctaveNoise , pub oct : [PerlinNoise ; 66usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of SurfaceNoiseBeta"] [:: std :: mem :: size_of :: < SurfaceNoiseBeta > () - 21200usize] ; ["Alignment of SurfaceNoiseBeta"] [:: std :: mem :: align_of :: < SurfaceNoiseBeta > () - 8usize] ; ["Offset of field: SurfaceNoiseBeta::octmin"] [:: std :: mem :: offset_of ! (SurfaceNoiseBeta , octmin) - 0usize] ; ["Offset of field: SurfaceNoiseBeta::octmax"] [:: std :: mem :: offset_of ! (SurfaceNoiseBeta , octmax) - 16usize] ; ["Offset of field: SurfaceNoiseBeta::octmain"] [:: std :: mem :: offset_of ! (SurfaceNoiseBeta , octmain) - 32usize] ; ["Offset of field: SurfaceNoiseBeta::octcontA"] [:: std :: mem :: offset_of ! (SurfaceNoiseBeta , octcontA) - 48usize] ; ["Offset of field: SurfaceNoiseBeta::octcontB"] [:: std :: mem :: offset_of ! (SurfaceNoiseBeta , octcontB) - 64usize] ; ["Offset of field: SurfaceNoiseBeta::oct"] [:: std :: mem :: offset_of ! (SurfaceNoiseBeta , oct) - 80usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct SeaLevelColumnNoiseBeta { pub contASample : f64 , pub contBSample : f64 , pub minSample : [f64 ; 2usize] , pub maxSample : [f64 ; 2usize] , pub mainSample : [f64 ; 2usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of SeaLevelColumnNoiseBeta"] [:: std :: mem :: size_of :: < SeaLevelColumnNoiseBeta > () - 64usize] ; ["Alignment of SeaLevelColumnNoiseBeta"] [:: std :: mem :: align_of :: < SeaLevelColumnNoiseBeta > () - 8usize] ; ["Offset of field: SeaLevelColumnNoiseBeta::contASample"] [:: std :: mem :: offset_of ! (SeaLevelColumnNoiseBeta , contASample) - 0usize] ; ["Offset of field: SeaLevelColumnNoiseBeta::contBSample"] [:: std :: mem :: offset_of ! (SeaLevelColumnNoiseBeta , contBSample) - 8usize] ; ["Offset of field: SeaLevelColumnNoiseBeta::minSample"] [:: std :: mem :: offset_of ! (SeaLevelColumnNoiseBeta , minSample) - 16usize] ; ["Offset of field: SeaLevelColumnNoiseBeta::maxSample"] [:: std :: mem :: offset_of ! (SeaLevelColumnNoiseBeta , maxSample) - 32usize] ; ["Offset of field: SeaLevelColumnNoiseBeta::mainSample"] [:: std :: mem :: offset_of ! (SeaLevelColumnNoiseBeta , mainSample) - 48usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Spline { pub len : :: std :: os :: raw :: c_int , pub typ : :: std :: os :: raw :: c_int , pub loc : [f32 ; 12usize] , pub der : [f32 ; 12usize] , pub val : [* mut Spline ; 12usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Spline"] [:: std :: mem :: size_of :: < Spline > () - 200usize] ; ["Alignment of Spline"] [:: std :: mem :: align_of :: < Spline > () - 8usize] ; ["Offset of field: Spline::len"] [:: std :: mem :: offset_of ! (Spline , len) - 0usize] ; ["Offset of field: Spline::typ"] [:: std :: mem :: offset_of ! (Spline , typ) - 4usize] ; ["Offset of field: Spline::loc"] [:: std :: mem :: offset_of ! (Spline , loc) - 8usize] ; ["Offset of field: Spline::der"] [:: std :: mem :: offset_of ! (Spline , der) - 56usize] ; ["Offset of field: Spline::val"] [:: std :: mem :: offset_of ! (Spline , val) - 104usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FixSpline { pub len : :: std :: os :: raw :: c_int , pub val : f32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of FixSpline"] [:: std :: mem :: size_of :: < FixSpline > () - 8usize] ; ["Alignment of FixSpline"] [:: std :: mem :: align_of :: < FixSpline > () - 4usize] ; ["Offset of field: FixSpline::len"] [:: std :: mem :: offset_of ! (FixSpline , len) - 0usize] ; ["Offset of field: FixSpline::val"] [:: std :: mem :: offset_of ! (FixSpline , val) - 4usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct SplineStack { pub stack : [Spline ; 42usize] , pub fstack : [FixSpline ; 151usize] , pub len : :: std :: os :: raw :: c_int , pub flen : :: std :: os :: raw :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of SplineStack"] [:: std :: mem :: size_of :: < SplineStack > () - 9616usize] ; ["Alignment of SplineStack"] [:: std :: mem :: align_of :: < SplineStack > () - 8usize] ; ["Offset of field: SplineStack::stack"] [:: std :: mem :: offset_of ! (SplineStack , stack) - 0usize] ; ["Offset of field: SplineStack::fstack"] [:: std :: mem :: offset_of ! (SplineStack , fstack) - 8400usize] ; ["Offset of field: SplineStack::len"] [:: std :: mem :: offset_of ! (SplineStack , len) - 9608usize] ; ["Offset of field: SplineStack::flen"] [:: std :: mem :: offset_of ! (SplineStack , flen) - 9612usize] ; } ; pub const NP_TEMPERATURE : _bindgen_ty_2 = _bindgen_ty_2 (0) ; pub const NP_HUMIDITY : _bindgen_ty_2 = _bindgen_ty_2 (1) ; pub const NP_CONTINENTALNESS : _bindgen_ty_2 = _bindgen_ty_2 (2) ; pub const NP_EROSION : _bindgen_ty_2 = _bindgen_ty_2 (3) ; pub const NP_SHIFT : _bindgen_ty_2 = _bindgen_ty_2 (4) ; pub const NP_DEPTH : _bindgen_ty_2 = _bindgen_ty_2 (4) ; pub const NP_WEIRDNESS : _bindgen_ty_2 = _bindgen_ty_2 (5) ; pub const NP_MAX : _bindgen_ty_2 = _bindgen_ty_2 (6) ; # [repr (transparent)] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct _bindgen_ty_2 (pub :: std :: os :: raw :: c_uint) ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct BiomeNoise { pub climate : [DoublePerlinNoise ; 6usize] , pub oct : [PerlinNoise ; 46usize] , pub sp : * mut Spline , pub ss : SplineStack , pub nptype : :: std :: os :: raw :: c_int , pub mc : :: std :: os :: raw :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of BiomeNoise"] [:: std :: mem :: size_of :: < BiomeNoise > () - 24592usize] ; ["Alignment of BiomeNoise"] [:: std :: mem :: align_of :: < BiomeNoise > () - 8usize] ; ["Offset of field: BiomeNoise::climate"] [:: std :: mem :: offset_of ! (BiomeNoise , climate) - 0usize] ; ["Offset of field: BiomeNoise::oct"] [:: std :: mem :: offset_of ! (BiomeNoise , oct) - 240usize] ; ["Offset of field: BiomeNoise::sp"] [:: std :: mem :: offset_of ! (BiomeNoise , sp) - 14960usize] ; ["Offset of field: BiomeNoise::ss"] [:: std :: mem :: offset_of ! (BiomeNoise , ss) - 14968usize] ; ["Offset of field: BiomeNoise::nptype"] [:: std :: mem :: offset_of ! (BiomeNoise , nptype) - 24584usize] ; ["Offset of field: BiomeNoise::mc"] [:: std :: mem :: offset_of ! (BiomeNoise , mc) - 24588usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct BiomeNoiseBeta { pub climate : [OctaveNoise ; 3usize] , pub oct : [PerlinNoise ; 10usize] , pub nptype : :: std :: os :: raw :: c_int , pub mc : :: std :: os :: raw :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of BiomeNoiseBeta"] [:: std :: mem :: size_of :: < BiomeNoiseBeta > () - 3256usize] ; ["Alignment of BiomeNoiseBeta"] [:: std :: mem :: align_of :: < BiomeNoiseBeta > () - 8usize] ; ["Offset of field: BiomeNoiseBeta::climate"] [:: std :: mem :: offset_of ! (BiomeNoiseBeta , climate) - 0usize] ; ["Offset of field: BiomeNoiseBeta::oct"] [:: std :: mem :: offset_of ! (BiomeNoiseBeta , oct) - 48usize] ; ["Offset of field: BiomeNoiseBeta::nptype"] [:: std :: mem :: offset_of ! (BiomeNoiseBeta , nptype) - 3248usize] ; ["Offset of field: BiomeNoiseBeta::mc"] [:: std :: mem :: offset_of ! (BiomeNoiseBeta , mc) - 3252usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct BiomeTree { pub steps : * const u32 , pub param : * const i32 , pub nodes : * const u64 , pub order : u32 , pub len : u32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of BiomeTree"] [:: std :: mem :: size_of :: < BiomeTree > () - 32usize] ; ["Alignment of BiomeTree"] [:: std :: mem :: align_of :: < BiomeTree > () - 8usize] ; ["Offset of field: BiomeTree::steps"] [:: std :: mem :: offset_of ! (BiomeTree , steps) - 0usize] ; ["Offset of field: BiomeTree::param"] [:: std :: mem :: offset_of ! (BiomeTree , param) - 8usize] ; ["Offset of field: BiomeTree::nodes"] [:: std :: mem :: offset_of ! (BiomeTree , nodes) - 16usize] ; ["Offset of field: BiomeTree::order"] [:: std :: mem :: offset_of ! (BiomeTree , order) - 24usize] ; ["Offset of field: BiomeTree::len"] [:: std :: mem :: offset_of ! (BiomeTree , len) - 28usize] ; } ; unsafe extern "C" { pub fn initSurfaceNoise (sn : * mut SurfaceNoise , dim : :: std :: os :: raw :: c_int , seed : u64) ; } unsafe extern "C" { pub fn initSurfaceNoiseBeta (snb : * mut SurfaceNoiseBeta , seed : u64) ; } unsafe extern "C" { pub fn sampleSurfaceNoise (sn : * const SurfaceNoise , x : :: std :: os :: raw :: c_int , y : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int) -> f64 ; } unsafe extern "C" { pub fn sampleSurfaceNoiseBetween (sn : * const SurfaceNoise , x : :: std :: os :: raw :: c_int , y : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , noiseMin : f64 , noiseMax : f64) -> f64 ; } unsafe extern "C" { # [doc = " Nether biomes are 3D, and generated at scale 1:4. Use voronoiAccess3D() to\n convert coordinates at 1:1 scale to their 1:4 access. Biome checks for\n structures are generally done at y=0.\n\n The function getNetherBiome() determines the nether biome at a given\n coordinate at scale 1:4. The parameter 'ndel' is an output noise delta for\n optimization purposes and can be ignored (nullable).\n\n Use mapNether2D() to get a 2D area of nether biomes at y=0, scale 1:4.\n\n The mapNether3D() function attempts to optimize the generation of a volume\n at scale 1:4. The output is indexed as:\n out[i_y*(r.sx*r.sz) + i_z*r.sx + i_x].\n If the optimization parameter 'confidence' has a value less than 1.0, the\n generation will generally be faster, but can yield incorrect results in some\n circumstances.\n\n The output buffer for the map-functions need only be of sufficient size to\n hold the generated area (i.e. w*h or r.sx*r.sy*r.sz)."] pub fn setNetherSeed (nn : * mut NetherNoise , seed : u64) ; } unsafe extern "C" { pub fn getNetherBiome (nn : * const NetherNoise , x : :: std :: os :: raw :: c_int , y : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , ndel : * mut f32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapNether2D (nn : * const NetherNoise , out : * mut :: std :: os :: raw :: c_int , x : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , w : :: std :: os :: raw :: c_int , h : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapNether3D (nn : * const NetherNoise , out : * mut :: std :: os :: raw :: c_int , r : Range , confidence : f32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " The scaled Nether generation supports scales 1, 4, 16, 64, and 256.\n It is similar to mapNether3D(), but applies voronoi zoom if necessary, and\n fills the output buffer with nether_wastes for versions older than 1.16."] pub fn genNetherScaled (nn : * const NetherNoise , out : * mut :: std :: os :: raw :: c_int , r : Range , mc : :: std :: os :: raw :: c_int , sha : u64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " End biome generation is based on simplex noise and varies only at a 1:16\n chunk scale which can be generated with mapEndBiome(). The function mapEnd()\n is a variation which also scales this up on a regular grid to 1:4. The final\n access at a 1:1 scale uses voronoi."] pub fn setEndSeed (en : * mut EndNoise , mc : :: std :: os :: raw :: c_int , seed : u64) ; } unsafe extern "C" { pub fn mapEndBiome (en : * const EndNoise , out : * mut :: std :: os :: raw :: c_int , x : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , w : :: std :: os :: raw :: c_int , h : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapEnd (en : * const EndNoise , out : * mut :: std :: os :: raw :: c_int , x : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , w : :: std :: os :: raw :: c_int , h : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getEndSurfaceHeight (mc : :: std :: os :: raw :: c_int , seed : u64 , x : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapEndSurfaceHeight (y : * mut f32 , en : * const EndNoise , sn : * const SurfaceNoise , x : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , w : :: std :: os :: raw :: c_int , h : :: std :: os :: raw :: c_int , scale : :: std :: os :: raw :: c_int , ymin : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " The scaled End generation supports scales 1, 4, 16, and 64.\n The End biomes are usually 2D, but in 1.15+ there is 3D voronoi noise, which\n is controlled by the 'sha' hash of the seed. For scales higher than 1:1, and\n versions up to 1.14, 'sha' is ignored."] pub fn genEndScaled (en : * const EndNoise , out : * mut :: std :: os :: raw :: c_int , r : Range , mc : :: std :: os :: raw :: c_int , sha : u64) -> :: std :: os :: raw :: c_int ; } pub const SAMPLE_NO_SHIFT : _bindgen_ty_3 = _bindgen_ty_3 (1) ; pub const SAMPLE_NO_DEPTH : _bindgen_ty_3 = _bindgen_ty_3 (2) ; pub const SAMPLE_NO_BIOME : _bindgen_ty_3 = _bindgen_ty_3 (4) ; # [repr (transparent)] # [doc = " In 1.18 the Overworld uses a new noise map system for the biome generation.\n The random number generation also has updated to a Xiroshiro128 algorithm.\n The scale is 1:4, and is sampled at each point individually as there is\n currently not much benefit from generating a volume as a whole.\n\n The 1.18 End generation remains similar to 1.17 and does NOT use the\n biome noise."] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct _bindgen_ty_3 (pub :: std :: os :: raw :: c_uint) ; unsafe extern "C" { pub fn initBiomeNoise (bn : * mut BiomeNoise , mc : :: std :: os :: raw :: c_int) ; } unsafe extern "C" { pub fn setBiomeSeed (bn : * mut BiomeNoise , seed : u64 , large : :: std :: os :: raw :: c_int) ; } unsafe extern "C" { pub fn setBetaBiomeSeed (bnb : * mut BiomeNoiseBeta , seed : u64) ; } unsafe extern "C" { pub fn sampleBiomeNoise (bn : * const BiomeNoise , np : * mut i64 , x : :: std :: os :: raw :: c_int , y : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , dat : * mut u64 , sample_flags : u32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn sampleBiomeNoiseBeta (bnb : * const BiomeNoiseBeta , np : * mut i64 , nv : * mut f64 , x : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn approxSurfaceBeta (bnb : * const BiomeNoiseBeta , snb : * const SurfaceNoiseBeta , x : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int) -> f64 ; } unsafe extern "C" { # [doc = " (Alpha 1.2 - Beta 1.7)\n Temperature and humidity values to biome."] pub fn getOldBetaBiome (t : f32 , h : f32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " Uses the global biome tree definitions (see tables/btreeXX.h)\n to map a noise point (i.e. climate) to the corresponding overworld biome."] pub fn climateToBiome (mc : :: std :: os :: raw :: c_int , np : * const u64 , dat : * mut u64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " Initialize BiomeNoise for only a single climate parameter.\n If nptype == NP_DEPTH, the value is sampled at y=0. Note that this value\n changes linearly with the height (i.e. -= y/128).\n A maximum of nmax octaves is set, initializing only the most contributing\n octaves up to that point. Use -1 for a full initialization."] pub fn setClimateParaSeed (bn : * mut BiomeNoise , seed : u64 , large : :: std :: os :: raw :: c_int , nptype : :: std :: os :: raw :: c_int , nmax : :: std :: os :: raw :: c_int) ; } unsafe extern "C" { pub fn sampleClimatePara (bn : * const BiomeNoise , np : * mut i64 , x : f64 , z : f64) -> f64 ; } unsafe extern "C" { # [doc = " Currently, in 1.18, we have to generate biomes one chunk at a time to get an\n accurate mapping of the biomes in the level storage, as there is no longer a\n unique mapping from noise points to biomes (MC-241546). Note that the results\n from this are not suitable for chunk population/structure generation.\n The output is in the form out[x][y][z] for the 64 biome points in the chunk\n section. The coordinates {cx,cy,cz} are all at scale 1:16 and the 'dat'\n argument should be the previous noise sampling and can be left NULL."] pub fn genBiomeNoiseChunkSection (bn : * const BiomeNoise , out : * mut [[:: std :: os :: raw :: c_int ; 4usize] ; 4usize] , cx : :: std :: os :: raw :: c_int , cy : :: std :: os :: raw :: c_int , cz : :: std :: os :: raw :: c_int , dat : * mut u64) ; } unsafe extern "C" { # [doc = " The scaled biome noise generation applies for the Overworld version 1.18+.\n The 'sha' hash of the seed is only required for voronoi at scale 1:1.\n A scale of zero is interpreted as the default 1:4 scale."] pub fn genBiomeNoiseScaled (bn : * const BiomeNoise , out : * mut :: std :: os :: raw :: c_int , r : Range , sha : u64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " Generates the biomes for Beta 1.7, the surface noise is optional and enables\n ocean mapping in areas that fall below the sea level."] pub fn genBiomeNoiseBetaScaled (bnb : * const BiomeNoiseBeta , snb : * const SurfaceNoiseBeta , out : * mut :: std :: os :: raw :: c_int , r : Range) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getBiomeDepthAndScale (id : :: std :: os :: raw :: c_int , depth : * mut f64 , scale : * mut f64 , grass : * mut :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getVoronoiSrcRange (r : Range) -> Range ; } pub const LARGE_BIOMES : _bindgen_ty_4 = _bindgen_ty_4 (1) ; pub const NO_BETA_OCEAN : _bindgen_ty_4 = _bindgen_ty_4 (2) ; pub const FORCE_OCEAN_VARIANTS : _bindgen_ty_4 = _bindgen_ty_4 (4) ; # [repr (transparent)] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct _bindgen_ty_4 (pub :: std :: os :: raw :: c_uint) ; # [repr (C)] # [derive (Copy , Clone)] pub struct Generator { pub mc : :: std :: os :: raw :: c_int , pub dim : :: std :: os :: raw :: c_int , pub flags : u32 , pub seed : u64 , pub sha : u64 , pub __bindgen_anon_1 : Generator__bindgen_ty_1 , pub nn : NetherNoise , pub en : EndNoise , } # [repr (C)] # [derive (Copy , Clone)] pub union Generator__bindgen_ty_1 { pub __bindgen_anon_1 : Generator__bindgen_ty_1__bindgen_ty_1 , pub __bindgen_anon_2 : Generator__bindgen_ty_1__bindgen_ty_2 , pub __bindgen_anon_3 : Generator__bindgen_ty_1__bindgen_ty_3 , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Generator__bindgen_ty_1__bindgen_ty_1 { pub ls : LayerStack , pub xlayer : [Layer ; 5usize] , pub entry : * mut Layer , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Generator__bindgen_ty_1__bindgen_ty_1"] [:: std :: mem :: size_of :: < Generator__bindgen_ty_1__bindgen_ty_1 > () - 5120usize] ; ["Alignment of Generator__bindgen_ty_1__bindgen_ty_1"] [:: std :: mem :: align_of :: < Generator__bindgen_ty_1__bindgen_ty_1 > () - 8usize] ; ["Offset of field: Generator__bindgen_ty_1__bindgen_ty_1::ls"] [:: std :: mem :: offset_of ! (Generator__bindgen_ty_1__bindgen_ty_1 , ls) - 0usize] ; ["Offset of field: Generator__bindgen_ty_1__bindgen_ty_1::xlayer"] [:: std :: mem :: offset_of ! (Generator__bindgen_ty_1__bindgen_ty_1 , xlayer) - 4752usize] ; ["Offset of field: Generator__bindgen_ty_1__bindgen_ty_1::entry"] [:: std :: mem :: offset_of ! (Generator__bindgen_ty_1__bindgen_ty_1 , entry) - 5112usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Generator__bindgen_ty_1__bindgen_ty_2 { pub bn : BiomeNoise , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Generator__bindgen_ty_1__bindgen_ty_2"] [:: std :: mem :: size_of :: < Generator__bindgen_ty_1__bindgen_ty_2 > () - 24592usize] ; ["Alignment of Generator__bindgen_ty_1__bindgen_ty_2"] [:: std :: mem :: align_of :: < Generator__bindgen_ty_1__bindgen_ty_2 > () - 8usize] ; ["Offset of field: Generator__bindgen_ty_1__bindgen_ty_2::bn"] [:: std :: mem :: offset_of ! (Generator__bindgen_ty_1__bindgen_ty_2 , bn) - 0usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Generator__bindgen_ty_1__bindgen_ty_3 { pub bnb : BiomeNoiseBeta , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Generator__bindgen_ty_1__bindgen_ty_3"] [:: std :: mem :: size_of :: < Generator__bindgen_ty_1__bindgen_ty_3 > () - 3256usize] ; ["Alignment of Generator__bindgen_ty_1__bindgen_ty_3"] [:: std :: mem :: align_of :: < Generator__bindgen_ty_1__bindgen_ty_3 > () - 8usize] ; ["Offset of field: Generator__bindgen_ty_1__bindgen_ty_3::bnb"] [:: std :: mem :: offset_of ! (Generator__bindgen_ty_1__bindgen_ty_3 , bnb) - 0usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Generator__bindgen_ty_1"] [:: std :: mem :: size_of :: < Generator__bindgen_ty_1 > () - 24592usize] ; ["Alignment of Generator__bindgen_ty_1"] [:: std :: mem :: align_of :: < Generator__bindgen_ty_1 > () - 8usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Generator"] [:: std :: mem :: size_of :: < Generator > () - 27592usize] ; ["Alignment of Generator"] [:: std :: mem :: align_of :: < Generator > () - 8usize] ; ["Offset of field: Generator::mc"] [:: std :: mem :: offset_of ! (Generator , mc) - 0usize] ; ["Offset of field: Generator::dim"] [:: std :: mem :: offset_of ! (Generator , dim) - 4usize] ; ["Offset of field: Generator::flags"] [:: std :: mem :: offset_of ! (Generator , flags) - 8usize] ; ["Offset of field: Generator::seed"] [:: std :: mem :: offset_of ! (Generator , seed) - 16usize] ; ["Offset of field: Generator::sha"] [:: std :: mem :: offset_of ! (Generator , sha) - 24usize] ; ["Offset of field: Generator::nn"] [:: std :: mem :: offset_of ! (Generator , nn) - 24624usize] ; ["Offset of field: Generator::en"] [:: std :: mem :: offset_of ! (Generator , en) - 27264usize] ; } ; unsafe extern "C" { # [doc = " Sets up a biome generator for a given MC version. The 'flags' can be used to\n control LARGE_BIOMES or to FORCE_OCEAN_VARIANTS to enable ocean variants at\n scales higher than normal."] pub fn setupGenerator (g : * mut Generator , mc : :: std :: os :: raw :: c_int , flags : u32) ; } unsafe extern "C" { # [doc = " Initializes the generator for a given dimension and seed.\n dim=0:   Overworld\n dim=-1:  Nether\n dim=+1:  End"] pub fn applySeed (g : * mut Generator , dim : :: std :: os :: raw :: c_int , seed : u64) ; } unsafe extern "C" { # [doc = " Calculates the buffer size (number of ints) required to generate a cuboidal\n volume of size (sx, sy, sz). If 'sy' is zero the buffer is calculated for a\n 2D plane (which is equivalent to sy=1 here).\n The function allocCache() can be used to allocate the corresponding int\n buffer using malloc()."] pub fn getMinCacheSize (g : * const Generator , scale : :: std :: os :: raw :: c_int , sx : :: std :: os :: raw :: c_int , sy : :: std :: os :: raw :: c_int , sz : :: std :: os :: raw :: c_int) -> usize ; } unsafe extern "C" { pub fn allocCache (g : * const Generator , r : Range) -> * mut :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " Generates the biomes for a cuboidal scaled range given by 'r'.\n (See description of Range for more detail.)\n\n The output is generated inside the cache. Upon success the biome ids can be\n accessed by indexing as:\n  cache[ y*r.sx*r.sz + z*r.sx + x ]\n where (x,y,z) is an relative position inside the range cuboid.\n\n The required length of the cache can be determined with getMinCacheSize().\n\n The return value is zero upon success."] pub fn genBiomes (g : * const Generator , cache : * mut :: std :: os :: raw :: c_int , r : Range) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " Gets the biome for a specified scaled position. Note that the scale should\n be either 1 or 4, for block or biome coordinates respectively.\n Returns none (-1) upon failure."] pub fn getBiomeAt (g : * const Generator , scale : :: std :: os :: raw :: c_int , x : :: std :: os :: raw :: c_int , y : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " Returns the default layer that corresponds to the given scale.\n Supported scales are {0, 1, 4, 16, 64, 256}. A scale of zero indicates the\n custom entry layer 'g->entry'.\n (Overworld, MC <= 1.17)"] pub fn getLayerForScale (g : * const Generator , scale : :: std :: os :: raw :: c_int) -> * const Layer ; } unsafe extern "C" { # [doc = "=============================================================================\n Layered Biome Generation (old interface up to 1.17)\n============================================================================="] pub fn setupLayerStack (g : * mut LayerStack , mc : :: std :: os :: raw :: c_int , largeBiomes : :: std :: os :: raw :: c_int) ; } unsafe extern "C" { pub fn getMinLayerCacheSize (layer : * const Layer , sizeX : :: std :: os :: raw :: c_int , sizeZ : :: std :: os :: raw :: c_int) -> usize ; } unsafe extern "C" { pub fn setupLayer (l : * mut Layer , map : mapfunc_t , mc : :: std :: os :: raw :: c_int , zoom : i8 , edge : i8 , saltbase : u64 , p : * mut Layer , p2 : * mut Layer) -> * mut Layer ; } unsafe extern "C" { pub fn genArea (layer : * const Layer , out : * mut :: std :: os :: raw :: c_int , areaX : :: std :: os :: raw :: c_int , areaZ : :: std :: os :: raw :: c_int , areaWidth : :: std :: os :: raw :: c_int , areaHeight : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " Map an approximation of the Overworld surface height.\n The horizontal scaling is 1:4. If non-null, the ids are filled with the\n biomes of the area. The height (written to y) is in blocks."] pub fn mapApproxHeight (y : * mut f32 , ids : * mut :: std :: os :: raw :: c_int , g : * const Generator , sn : * const SurfaceNoise , x : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , w : :: std :: os :: raw :: c_int , h : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } impl StructureType { pub const Feature : StructureType = StructureType (0) ; } impl StructureType { pub const Desert_Pyramid : StructureType = StructureType (1) ; } impl StructureType { pub const Jungle_Temple : StructureType = StructureType (2) ; } impl StructureType { pub const Jungle_Pyramid : StructureType = StructureType (2) ; } impl StructureType { pub const Swamp_Hut : StructureType = StructureType (3) ; } impl StructureType { pub const Igloo : StructureType = StructureType (4) ; } impl StructureType { pub const Village : StructureType = StructureType (5) ; } impl StructureType { pub const Ocean_Ruin : StructureType = StructureType (6) ; } impl StructureType { pub const Shipwreck : StructureType = StructureType (7) ; } impl StructureType { pub const Monument : StructureType = StructureType (8) ; } impl StructureType { pub const Mansion : StructureType = StructureType (9) ; } impl StructureType { pub const Outpost : StructureType = StructureType (10) ; } impl StructureType { pub const Ruined_Portal : StructureType = StructureType (11) ; } impl StructureType { pub const Ruined_Portal_N : StructureType = StructureType (12) ; } impl StructureType { pub const Ancient_City : StructureType = StructureType (13) ; } impl StructureType { pub const Treasure : StructureType = StructureType (14) ; } impl StructureType { pub const Mineshaft : StructureType = StructureType (15) ; } impl StructureType { pub const Desert_Well : StructureType = StructureType (16) ; } impl StructureType { pub const Geode : StructureType = StructureType (17) ; } impl StructureType { pub const Fortress : StructureType = StructureType (18) ; } impl StructureType { pub const Bastion : StructureType = StructureType (19) ; } impl StructureType { pub const End_City : StructureType = StructureType (20) ; } impl StructureType { pub const End_Gateway : StructureType = StructureType (21) ; } impl StructureType { pub const End_Island : StructureType = StructureType (22) ; } impl StructureType { pub const Trail_Ruins : StructureType = StructureType (23) ; } impl StructureType { pub const Trial_Chambers : StructureType = StructureType (24) ; } impl StructureType { pub const FEATURE_NUM : StructureType = StructureType (25) ; } # [repr (transparent)] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct StructureType (pub :: std :: os :: raw :: c_uint) ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct StructureConfig { pub salt : i32 , pub regionSize : i8 , pub chunkRange : i8 , pub structType : u8 , pub dim : i8 , pub rarity : f32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of StructureConfig"] [:: std :: mem :: size_of :: < StructureConfig > () - 12usize] ; ["Alignment of StructureConfig"] [:: std :: mem :: align_of :: < StructureConfig > () - 4usize] ; ["Offset of field: StructureConfig::salt"] [:: std :: mem :: offset_of ! (StructureConfig , salt) - 0usize] ; ["Offset of field: StructureConfig::regionSize"] [:: std :: mem :: offset_of ! (StructureConfig , regionSize) - 4usize] ; ["Offset of field: StructureConfig::chunkRange"] [:: std :: mem :: offset_of ! (StructureConfig , chunkRange) - 5usize] ; ["Offset of field: StructureConfig::structType"] [:: std :: mem :: offset_of ! (StructureConfig , structType) - 6usize] ; ["Offset of field: StructureConfig::dim"] [:: std :: mem :: offset_of ! (StructureConfig , dim) - 7usize] ; ["Offset of field: StructureConfig::rarity"] [:: std :: mem :: offset_of ! (StructureConfig , rarity) - 8usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Pos { pub x : :: std :: os :: raw :: c_int , pub z : :: std :: os :: raw :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Pos"] [:: std :: mem :: size_of :: < Pos > () - 8usize] ; ["Alignment of Pos"] [:: std :: mem :: align_of :: < Pos > () - 4usize] ; ["Offset of field: Pos::x"] [:: std :: mem :: offset_of ! (Pos , x) - 0usize] ; ["Offset of field: Pos::z"] [:: std :: mem :: offset_of ! (Pos , z) - 4usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Pos3 { pub x : :: std :: os :: raw :: c_int , pub y : :: std :: os :: raw :: c_int , pub z : :: std :: os :: raw :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Pos3"] [:: std :: mem :: size_of :: < Pos3 > () - 12usize] ; ["Alignment of Pos3"] [:: std :: mem :: align_of :: < Pos3 > () - 4usize] ; ["Offset of field: Pos3::x"] [:: std :: mem :: offset_of ! (Pos3 , x) - 0usize] ; ["Offset of field: Pos3::y"] [:: std :: mem :: offset_of ! (Pos3 , y) - 4usize] ; ["Offset of field: Pos3::z"] [:: std :: mem :: offset_of ! (Pos3 , z) - 8usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct StrongholdIter { pub pos : Pos , pub nextapprox : Pos , pub index : :: std :: os :: raw :: c_int , pub ringnum : :: std :: os :: raw :: c_int , pub ringmax : :: std :: os :: raw :: c_int , pub ringidx : :: std :: os :: raw :: c_int , pub angle : f64 , pub dist : f64 , pub rnds : u64 , pub mc : :: std :: os :: raw :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of StrongholdIter"] [:: std :: mem :: size_of :: < StrongholdIter > () - 64usize] ; ["Alignment of StrongholdIter"] [:: std :: mem :: align_of :: < StrongholdIter > () - 8usize] ; ["Offset of field: StrongholdIter::pos"] [:: std :: mem :: offset_of ! (StrongholdIter , pos) - 0usize] ; ["Offset of field: StrongholdIter::nextapprox"] [:: std :: mem :: offset_of ! (StrongholdIter , nextapprox) - 8usize] ; ["Offset of field: StrongholdIter::index"] [:: std :: mem :: offset_of ! (StrongholdIter , index) - 16usize] ; ["Offset of field: StrongholdIter::ringnum"] [:: std :: mem :: offset_of ! (StrongholdIter , ringnum) - 20usize] ; ["Offset of field: StrongholdIter::ringmax"] [:: std :: mem :: offset_of ! (StrongholdIter , ringmax) - 24usize] ; ["Offset of field: StrongholdIter::ringidx"] [:: std :: mem :: offset_of ! (StrongholdIter , ringidx) - 28usize] ; ["Offset of field: StrongholdIter::angle"] [:: std :: mem :: offset_of ! (StrongholdIter , angle) - 32usize] ; ["Offset of field: StrongholdIter::dist"] [:: std :: mem :: offset_of ! (StrongholdIter , dist) - 40usize] ; ["Offset of field: StrongholdIter::rnds"] [:: std :: mem :: offset_of ! (StrongholdIter , rnds) - 48usize] ; ["Offset of field: StrongholdIter::mc"] [:: std :: mem :: offset_of ! (StrongholdIter , mc) - 56usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct StructureVariant { pub _bitfield_align_1 : [u8 ; 0] , pub _bitfield_1 : __BindgenBitfieldUnit < [u8 ; 1usize] > , pub size : u8 , pub start : u8 , pub biome : :: std :: os :: raw :: c_short , pub rotation : u8 , pub mirror : u8 , pub x : i16 , pub y : i16 , pub z : i16 , pub sx : i16 , pub sy : i16 , pub sz : i16 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of StructureVariant"] [:: std :: mem :: size_of :: < StructureVariant > () - 20usize] ; ["Alignment of StructureVariant"] [:: std :: mem :: align_of :: < StructureVariant > () - 2usize] ; ["Offset of field: StructureVariant::size"] [:: std :: mem :: offset_of ! (StructureVariant , size) - 1usize] ; ["Offset of field: StructureVariant::start"] [:: std :: mem :: offset_of ! (StructureVariant , start) - 2usize] ; ["Offset of field: StructureVariant::biome"] [:: std :: mem :: offset_of ! (StructureVariant , biome) - 4usize] ; ["Offset of field: StructureVariant::rotation"] [:: std :: mem :: offset_of ! (StructureVariant , rotation) - 6usize] ; ["Offset of field: StructureVariant::mirror"] [:: std :: mem :: offset_of ! (StructureVariant , mirror) - 7usize] ; ["Offset of field: StructureVariant::x"] [:: std :: mem :: offset_of ! (StructureVariant , x) - 8usize] ; ["Offset of field: StructureVariant::y"] [:: std :: mem :: offset_of ! (StructureVariant , y) - 10usize] ; ["Offset of field: StructureVariant::z"] [:: std :: mem :: offset_of ! (StructureVariant , z) - 12usize] ; ["Offset of field: StructureVariant::sx"] [:: std :: mem :: offset_of ! (StructureVariant , sx) - 14usize] ; ["Offset of field: StructureVariant::sy"] [:: std :: mem :: offset_of ! (StructureVariant , sy) - 16usize] ; ["Offset of field: StructureVariant::sz"] [:: std :: mem :: offset_of ! (StructureVariant , sz) - 18usize] ; } ; impl StructureVariant { # [inline] pub fn abandoned (& self) -> u8 { unsafe { :: std :: mem :: transmute (self . _bitfield_1 . get (0usize , 1u8) as u8) } } # [inline] pub fn set_abandoned (& mut self , val : u8) { unsafe { let val : u8 = :: std :: mem :: transmute (val) ; self . _bitfield_1 . set (0usize , 1u8 , val as u64) } } # [inline] pub unsafe fn abandoned_raw (this : * const Self) -> u8 { unsafe { :: std :: mem :: transmute (< __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_get (:: std :: ptr :: addr_of ! ((* this) . _bitfield_1) , 0usize , 1u8 ,) as u8) } } # [inline] pub unsafe fn set_abandoned_raw (this : * mut Self , val : u8) { unsafe { let val : u8 = :: std :: mem :: transmute (val) ; < __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_set (:: std :: ptr :: addr_of_mut ! ((* this) . _bitfield_1) , 0usize , 1u8 , val as u64 ,) } } # [inline] pub fn giant (& self) -> u8 { unsafe { :: std :: mem :: transmute (self . _bitfield_1 . get (1usize , 1u8) as u8) } } # [inline] pub fn set_giant (& mut self , val : u8) { unsafe { let val : u8 = :: std :: mem :: transmute (val) ; self . _bitfield_1 . set (1usize , 1u8 , val as u64) } } # [inline] pub unsafe fn giant_raw (this : * const Self) -> u8 { unsafe { :: std :: mem :: transmute (< __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_get (:: std :: ptr :: addr_of ! ((* this) . _bitfield_1) , 1usize , 1u8 ,) as u8) } } # [inline] pub unsafe fn set_giant_raw (this : * mut Self , val : u8) { unsafe { let val : u8 = :: std :: mem :: transmute (val) ; < __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_set (:: std :: ptr :: addr_of_mut ! ((* this) . _bitfield_1) , 1usize , 1u8 , val as u64 ,) } } # [inline] pub fn underground (& self) -> u8 { unsafe { :: std :: mem :: transmute (self . _bitfield_1 . get (2usize , 1u8) as u8) } } # [inline] pub fn set_underground (& mut self , val : u8) { unsafe { let val : u8 = :: std :: mem :: transmute (val) ; self . _bitfield_1 . set (2usize , 1u8 , val as u64) } } # [inline] pub unsafe fn underground_raw (this : * const Self) -> u8 { unsafe { :: std :: mem :: transmute (< __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_get (:: std :: ptr :: addr_of ! ((* this) . _bitfield_1) , 2usize , 1u8 ,) as u8) } } # [inline] pub unsafe fn set_underground_raw (this : * mut Self , val : u8) { unsafe { let val : u8 = :: std :: mem :: transmute (val) ; < __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_set (:: std :: ptr :: addr_of_mut ! ((* this) . _bitfield_1) , 2usize , 1u8 , val as u64 ,) } } # [inline] pub fn airpocket (& self) -> u8 { unsafe { :: std :: mem :: transmute (self . _bitfield_1 . get (3usize , 1u8) as u8) } } # [inline] pub fn set_airpocket (& mut self , val : u8) { unsafe { let val : u8 = :: std :: mem :: transmute (val) ; self . _bitfield_1 . set (3usize , 1u8 , val as u64) } } # [inline] pub unsafe fn airpocket_raw (this : * const Self) -> u8 { unsafe { :: std :: mem :: transmute (< __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_get (:: std :: ptr :: addr_of ! ((* this) . _bitfield_1) , 3usize , 1u8 ,) as u8) } } # [inline] pub unsafe fn set_airpocket_raw (this : * mut Self , val : u8) { unsafe { let val : u8 = :: std :: mem :: transmute (val) ; < __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_set (:: std :: ptr :: addr_of_mut ! ((* this) . _bitfield_1) , 3usize , 1u8 , val as u64 ,) } } # [inline] pub fn basement (& self) -> u8 { unsafe { :: std :: mem :: transmute (self . _bitfield_1 . get (4usize , 1u8) as u8) } } # [inline] pub fn set_basement (& mut self , val : u8) { unsafe { let val : u8 = :: std :: mem :: transmute (val) ; self . _bitfield_1 . set (4usize , 1u8 , val as u64) } } # [inline] pub unsafe fn basement_raw (this : * const Self) -> u8 { unsafe { :: std :: mem :: transmute (< __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_get (:: std :: ptr :: addr_of ! ((* this) . _bitfield_1) , 4usize , 1u8 ,) as u8) } } # [inline] pub unsafe fn set_basement_raw (this : * mut Self , val : u8) { unsafe { let val : u8 = :: std :: mem :: transmute (val) ; < __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_set (:: std :: ptr :: addr_of_mut ! ((* this) . _bitfield_1) , 4usize , 1u8 , val as u64 ,) } } # [inline] pub fn cracked (& self) -> u8 { unsafe { :: std :: mem :: transmute (self . _bitfield_1 . get (5usize , 1u8) as u8) } } # [inline] pub fn set_cracked (& mut self , val : u8) { unsafe { let val : u8 = :: std :: mem :: transmute (val) ; self . _bitfield_1 . set (5usize , 1u8 , val as u64) } } # [inline] pub unsafe fn cracked_raw (this : * const Self) -> u8 { unsafe { :: std :: mem :: transmute (< __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_get (:: std :: ptr :: addr_of ! ((* this) . _bitfield_1) , 5usize , 1u8 ,) as u8) } } # [inline] pub unsafe fn set_cracked_raw (this : * mut Self , val : u8) { unsafe { let val : u8 = :: std :: mem :: transmute (val) ; < __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_set (:: std :: ptr :: addr_of_mut ! ((* this) . _bitfield_1) , 5usize , 1u8 , val as u64 ,) } } # [inline] pub fn new_bitfield_1 (abandoned : u8 , giant : u8 , underground : u8 , airpocket : u8 , basement : u8 , cracked : u8) -> __BindgenBitfieldUnit < [u8 ; 1usize] > { let mut __bindgen_bitfield_unit : __BindgenBitfieldUnit < [u8 ; 1usize] > = Default :: default () ; __bindgen_bitfield_unit . set (0usize , 1u8 , { let abandoned : u8 = unsafe { :: std :: mem :: transmute (abandoned) } ; abandoned as u64 }) ; __bindgen_bitfield_unit . set (1usize , 1u8 , { let giant : u8 = unsafe { :: std :: mem :: transmute (giant) } ; giant as u64 }) ; __bindgen_bitfield_unit . set (2usize , 1u8 , { let underground : u8 = unsafe { :: std :: mem :: transmute (underground) } ; underground as u64 }) ; __bindgen_bitfield_unit . set (3usize , 1u8 , { let airpocket : u8 = unsafe { :: std :: mem :: transmute (airpocket) } ; airpocket as u64 }) ; __bindgen_bitfield_unit . set (4usize , 1u8 , { let basement : u8 = unsafe { :: std :: mem :: transmute (basement) } ; basement as u64 }) ; __bindgen_bitfield_unit . set (5usize , 1u8 , { let cracked : u8 = unsafe { :: std :: mem :: transmute (cracked) } ; cracked as u64 }) ; __bindgen_bitfield_unit } } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Piece { pub name : * const :: std :: os :: raw :: c_char , pub pos : Pos3 , pub bb0 : Pos3 , pub bb1 : Pos3 , pub rot : u8 , pub depth : i8 , pub type_ : i8 , pub next : * mut Piece , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Piece"] [:: std :: mem :: size_of :: < Piece > () - 56usize] ; ["Alignment of Piece"] [:: std :: mem :: align_of :: < Piece > () - 8usize] ; ["Offset of field: Piece::name"] [:: std :: mem :: offset_of ! (Piece , name) - 0usize] ; ["Offset of field: Piece::pos"] [:: std :: mem :: offset_of ! (Piece , pos) - 8usize] ; ["Offset of field: Piece::bb0"] [:: std :: mem :: offset_of ! (Piece , bb0) - 20usize] ; ["Offset of field: Piece::bb1"] [:: std :: mem :: offset_of ! (Piece , bb1) - 32usize] ; ["Offset of field: Piece::rot"] [:: std :: mem :: offset_of ! (Piece , rot) - 44usize] ; ["Offset of field: Piece::depth"] [:: std :: mem :: offset_of ! (Piece , depth) - 45usize] ; ["Offset of field: Piece::type_"] [:: std :: mem :: offset_of ! (Piece , type_) - 46usize] ; ["Offset of field: Piece::next"] [:: std :: mem :: offset_of ! (Piece , next) - 48usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct EndIsland { pub x : :: std :: os :: raw :: c_int , pub y : :: std :: os :: raw :: c_int , pub z : :: std :: os :: raw :: c_int , pub r : :: std :: os :: raw :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of EndIsland"] [:: std :: mem :: size_of :: < EndIsland > () - 16usize] ; ["Alignment of EndIsland"] [:: std :: mem :: align_of :: < EndIsland > () - 4usize] ; ["Offset of field: EndIsland::x"] [:: std :: mem :: offset_of ! (EndIsland , x) - 0usize] ; ["Offset of field: EndIsland::y"] [:: std :: mem :: offset_of ! (EndIsland , y) - 4usize] ; ["Offset of field: EndIsland::z"] [:: std :: mem :: offset_of ! (EndIsland , z) - 8usize] ; ["Offset of field: EndIsland::r"] [:: std :: mem :: offset_of ! (EndIsland , r) - 12usize] ; } ; pub const BF_APPROX : _bindgen_ty_5 = _bindgen_ty_5 (1) ; pub const BF_FORCED_OCEAN : _bindgen_ty_5 = _bindgen_ty_5 (4) ; # [repr (transparent)] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct _bindgen_ty_5 (pub :: std :: os :: raw :: c_uint) ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct BiomeFilter { pub tempsToFind : u64 , pub otempToFind : u64 , pub majorToFind : u64 , pub edgesToFind : u64 , pub raresToFind : u64 , pub raresToFindM : u64 , pub shoreToFind : u64 , pub shoreToFindM : u64 , pub riverToFind : u64 , pub riverToFindM : u64 , pub oceanToFind : u64 , pub specialCnt : :: std :: os :: raw :: c_int , pub flags : u32 , pub tempsToExcl : u64 , pub majorToExcl : u64 , pub edgesToExcl : u64 , pub raresToExcl : u64 , pub raresToExclM : u64 , pub shoreToExcl : u64 , pub shoreToExclM : u64 , pub riverToExcl : u64 , pub riverToExclM : u64 , pub biomeToExcl : u64 , pub biomeToExclM : u64 , pub biomeToFind : u64 , pub biomeToFindM : u64 , pub biomeToPick : u64 , pub biomeToPickM : u64 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of BiomeFilter"] [:: std :: mem :: size_of :: < BiomeFilter > () - 216usize] ; ["Alignment of BiomeFilter"] [:: std :: mem :: align_of :: < BiomeFilter > () - 8usize] ; ["Offset of field: BiomeFilter::tempsToFind"] [:: std :: mem :: offset_of ! (BiomeFilter , tempsToFind) - 0usize] ; ["Offset of field: BiomeFilter::otempToFind"] [:: std :: mem :: offset_of ! (BiomeFilter , otempToFind) - 8usize] ; ["Offset of field: BiomeFilter::majorToFind"] [:: std :: mem :: offset_of ! (BiomeFilter , majorToFind) - 16usize] ; ["Offset of field: BiomeFilter::edgesToFind"] [:: std :: mem :: offset_of ! (BiomeFilter , edgesToFind) - 24usize] ; ["Offset of field: BiomeFilter::raresToFind"] [:: std :: mem :: offset_of ! (BiomeFilter , raresToFind) - 32usize] ; ["Offset of field: BiomeFilter::raresToFindM"] [:: std :: mem :: offset_of ! (BiomeFilter , raresToFindM) - 40usize] ; ["Offset of field: BiomeFilter::shoreToFind"] [:: std :: mem :: offset_of ! (BiomeFilter , shoreToFind) - 48usize] ; ["Offset of field: BiomeFilter::shoreToFindM"] [:: std :: mem :: offset_of ! (BiomeFilter , shoreToFindM) - 56usize] ; ["Offset of field: BiomeFilter::riverToFind"] [:: std :: mem :: offset_of ! (BiomeFilter , riverToFind) - 64usize] ; ["Offset of field: BiomeFilter::riverToFindM"] [:: std :: mem :: offset_of ! (BiomeFilter , riverToFindM) - 72usize] ; ["Offset of field: BiomeFilter::oceanToFind"] [:: std :: mem :: offset_of ! (BiomeFilter , oceanToFind) - 80usize] ; ["Offset of field: BiomeFilter::specialCnt"] [:: std :: mem :: offset_of ! (BiomeFilter , specialCnt) - 88usize] ; ["Offset of field: BiomeFilter::flags"] [:: std :: mem :: offset_of ! (BiomeFilter , flags) - 92usize] ; ["Offset of field: BiomeFilter::tempsToExcl"] [:: std :: mem :: offset_of ! (BiomeFilter , tempsToExcl) - 96usize] ; ["Offset of field: BiomeFilter::majorToExcl"] [:: std :: mem :: offset_of ! (BiomeFilter , majorToExcl) - 104usize] ; ["Offset of field: BiomeFilter::edgesToExcl"] [:: std :: mem :: offset_of ! (BiomeFilter , edgesToExcl) - 112usize] ; ["Offset of field: BiomeFilter::raresToExcl"] [:: std :: mem :: offset_of ! (BiomeFilter , raresToExcl) - 120usize] ; ["Offset of field: BiomeFilter::raresToExclM"] [:: std :: mem :: offset_of ! (BiomeFilter , raresToExclM) - 128usize] ; ["Offset of field: BiomeFilter::shoreToExcl"] [:: std :: mem :: offset_of ! (BiomeFilter , shoreToExcl) - 136usize] ; ["Offset of field: BiomeFilter::shoreToExclM"] [:: std :: mem :: offset_of ! (BiomeFilter , shoreToExclM) - 144usize] ; ["Offset of field: BiomeFilter::riverToExcl"] [:: std :: mem :: offset_of ! (BiomeFilter , riverToExcl) - 152usize] ; ["Offset of field: BiomeFilter::riverToExclM"] [:: std :: mem :: offset_of ! (BiomeFilter , riverToExclM) - 160usize] ; ["Offset of field: BiomeFilter::biomeToExcl"] [:: std :: mem :: offset_of ! (BiomeFilter , biomeToExcl) - 168usize] ; ["Offset of field: BiomeFilter::biomeToExclM"] [:: std :: mem :: offset_of ! (BiomeFilter , biomeToExclM) - 176usize] ; ["Offset of field: BiomeFilter::biomeToFind"] [:: std :: mem :: offset_of ! (BiomeFilter , biomeToFind) - 184usize] ; ["Offset of field: BiomeFilter::biomeToFindM"] [:: std :: mem :: offset_of ! (BiomeFilter , biomeToFindM) - 192usize] ; ["Offset of field: BiomeFilter::biomeToPick"] [:: std :: mem :: offset_of ! (BiomeFilter , biomeToPick) - 200usize] ; ["Offset of field: BiomeFilter::biomeToPickM"] [:: std :: mem :: offset_of ! (BiomeFilter , biomeToPickM) - 208usize] ; } ; unsafe extern "C" { pub fn getStructureConfig (structureType : :: std :: os :: raw :: c_int , mc : :: std :: os :: raw :: c_int , sconf : * mut StructureConfig) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getStructurePos (structureType : :: std :: os :: raw :: c_int , mc : :: std :: os :: raw :: c_int , seed : u64 , regX : :: std :: os :: raw :: c_int , regZ : :: std :: os :: raw :: c_int , pos : * mut Pos) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getMineshafts (mc : :: std :: os :: raw :: c_int , seed : u64 , chunkX : :: std :: os :: raw :: c_int , chunkZ : :: std :: os :: raw :: c_int , chunkW : :: std :: os :: raw :: c_int , chunkH : :: std :: os :: raw :: c_int , out : * mut Pos , nout : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getEndIslands (islands : * mut EndIsland , mc : :: std :: os :: raw :: c_int , seed : u64 , chunkX : :: std :: os :: raw :: c_int , chunkZ : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapEndIslandHeight (y : * mut f32 , en : * const EndNoise , seed : u64 , x : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , w : :: std :: os :: raw :: c_int , h : :: std :: os :: raw :: c_int , scale : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn isEndChunkEmpty (en : * const EndNoise , sn : * const SurfaceNoise , seed : u64 , chunkX : :: std :: os :: raw :: c_int , chunkZ : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn initFirstStronghold (sh : * mut StrongholdIter , mc : :: std :: os :: raw :: c_int , s48 : u64) -> Pos ; } unsafe extern "C" { pub fn nextStronghold (sh : * mut StrongholdIter , g : * const Generator) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn estimateSpawn (g : * const Generator , rng : * mut u64) -> Pos ; } unsafe extern "C" { pub fn getSpawn (g : * const Generator) -> Pos ; } unsafe extern "C" { pub fn locateBiome (g : * const Generator , x : :: std :: os :: raw :: c_int , y : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , radius : :: std :: os :: raw :: c_int , validB : u64 , validM : u64 , rng : * mut u64 , passes : * mut :: std :: os :: raw :: c_int) -> Pos ; } unsafe extern "C" { pub fn isViableStructurePos (structType : :: std :: os :: raw :: c_int , g : * mut Generator , blockX : :: std :: os :: raw :: c_int , blockZ : :: std :: os :: raw :: c_int , flags : u32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn isViableFeatureBiome (mc : :: std :: os :: raw :: c_int , structureType : :: std :: os :: raw :: c_int , biomeID : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn isViableStructureTerrain (structType : :: std :: os :: raw :: c_int , g : * mut Generator , blockX : :: std :: os :: raw :: c_int , blockZ : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn isViableEndCityTerrain (g : * const Generator , sn : * const SurfaceNoise , blockX : :: std :: os :: raw :: c_int , blockZ : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getVariant (sv : * mut StructureVariant , structType : :: std :: os :: raw :: c_int , mc : :: std :: os :: raw :: c_int , seed : u64 , blockX : :: std :: os :: raw :: c_int , blockZ : :: std :: os :: raw :: c_int , biomeID : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getEndCityPieces (pieces : * mut Piece , seed : u64 , chunkX : :: std :: os :: raw :: c_int , chunkZ : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } pub const BASE_FLOOR : _bindgen_ty_6 = _bindgen_ty_6 (0) ; pub const BASE_ROOF : _bindgen_ty_6 = _bindgen_ty_6 (1) ; pub const BRIDGE_END : _bindgen_ty_6 = _bindgen_ty_6 (2) ; pub const BRIDGE_GENTLE_STAIRS : _bindgen_ty_6 = _bindgen_ty_6 (3) ; pub const BRIDGE_PIECE : _bindgen_ty_6 = _bindgen_ty_6 (4) ; pub const BRIDGE_STEEP_STAIRS : _bindgen_ty_6 = _bindgen_ty_6 (5) ; pub const FAT_TOWER_BASE : _bindgen_ty_6 = _bindgen_ty_6 (6) ; pub const FAT_TOWER_MIDDLE : _bindgen_ty_6 = _bindgen_ty_6 (7) ; pub const FAT_TOWER_TOP : _bindgen_ty_6 = _bindgen_ty_6 (8) ; pub const SECOND_FLOOR_1 : _bindgen_ty_6 = _bindgen_ty_6 (9) ; pub const SECOND_FLOOR_2 : _bindgen_ty_6 = _bindgen_ty_6 (10) ; pub const SECOND_ROOF : _bindgen_ty_6 = _bindgen_ty_6 (11) ; pub const END_SHIP : _bindgen_ty_6 = _bindgen_ty_6 (12) ; pub const THIRD_FLOOR_1 : _bindgen_ty_6 = _bindgen_ty_6 (13) ; pub const THIRD_FLOOR_2 : _bindgen_ty_6 = _bindgen_ty_6 (14) ; pub const THIRD_ROOF : _bindgen_ty_6 = _bindgen_ty_6 (15) ; pub const TOWER_BASE : _bindgen_ty_6 = _bindgen_ty_6 (16) ; pub const TOWER_FLOOR : _bindgen_ty_6 = _bindgen_ty_6 (17) ; pub const TOWER_PIECE : _bindgen_ty_6 = _bindgen_ty_6 (18) ; pub const TOWER_TOP : _bindgen_ty_6 = _bindgen_ty_6 (19) ; pub const END_CITY_PIECES_MAX : _bindgen_ty_6 = _bindgen_ty_6 (421) ; # [repr (transparent)] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct _bindgen_ty_6 (pub :: std :: os :: raw :: c_uint) ; unsafe extern "C" { pub fn getFortressPieces (list : * mut Piece , n : :: std :: os :: raw :: c_int , mc : :: std :: os :: raw :: c_int , seed : u64 , chunkX : :: std :: os :: raw :: c_int , chunkZ : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } pub const FORTRESS_START : _bindgen_ty_7 = _bindgen_ty_7 (0) ; pub const BRIDGE_STRAIGHT : _bindgen_ty_7 = _bindgen_ty_7 (1) ; pub const BRIDGE_CROSSING : _bindgen_ty_7 = _bindgen_ty_7 (2) ; pub const BRIDGE_FORTIFIED_CROSSING : _bindgen_ty_7 = _bindgen_ty_7 (3) ; pub const BRIDGE_STAIRS : _bindgen_ty_7 = _bindgen_ty_7 (4) ; pub const BRIDGE_SPAWNER : _bindgen_ty_7 = _bindgen_ty_7 (5) ; pub const BRIDGE_CORRIDOR_ENTRANCE : _bindgen_ty_7 = _bindgen_ty_7 (6) ; pub const CORRIDOR_STRAIGHT : _bindgen_ty_7 = _bindgen_ty_7 (7) ; pub const CORRIDOR_CROSSING : _bindgen_ty_7 = _bindgen_ty_7 (8) ; pub const CORRIDOR_TURN_RIGHT : _bindgen_ty_7 = _bindgen_ty_7 (9) ; pub const CORRIDOR_TURN_LEFT : _bindgen_ty_7 = _bindgen_ty_7 (10) ; pub const CORRIDOR_STAIRS : _bindgen_ty_7 = _bindgen_ty_7 (11) ; pub const CORRIDOR_T_CROSSING : _bindgen_ty_7 = _bindgen_ty_7 (12) ; pub const CORRIDOR_NETHER_WART : _bindgen_ty_7 = _bindgen_ty_7 (13) ; pub const FORTRESS_END : _bindgen_ty_7 = _bindgen_ty_7 (14) ; pub const PIECE_COUNT : _bindgen_ty_7 = _bindgen_ty_7 (15) ; # [repr (transparent)] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct _bindgen_ty_7 (pub :: std :: os :: raw :: c_uint) ; unsafe extern "C" { pub fn getFixedEndGateways (mc : :: std :: os :: raw :: c_int , seed : u64 , src : * mut Pos) ; } unsafe extern "C" { pub fn getLinkedGatewayChunk (en : * const EndNoise , sn : * const SurfaceNoise , seed : u64 , src : Pos , dst : * mut Pos) -> Pos ; } unsafe extern "C" { pub fn getLinkedGatewayPos (en : * const EndNoise , sn : * const SurfaceNoise , seed : u64 , src : Pos) -> Pos ; } pub const HouseSmall : _bindgen_ty_8 = _bindgen_ty_8 (0) ; pub const Church : _bindgen_ty_8 = _bindgen_ty_8 (1) ; pub const Library : _bindgen_ty_8 = _bindgen_ty_8 (2) ; pub const WoodHut : _bindgen_ty_8 = _bindgen_ty_8 (3) ; pub const Butcher : _bindgen_ty_8 = _bindgen_ty_8 (4) ; pub const FarmLarge : _bindgen_ty_8 = _bindgen_ty_8 (5) ; pub const FarmSmall : _bindgen_ty_8 = _bindgen_ty_8 (6) ; pub const Blacksmith : _bindgen_ty_8 = _bindgen_ty_8 (7) ; pub const HouseLarge : _bindgen_ty_8 = _bindgen_ty_8 (8) ; pub const HOUSE_NUM : _bindgen_ty_8 = _bindgen_ty_8 (9) ; # [repr (transparent)] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct _bindgen_ty_8 (pub :: std :: os :: raw :: c_uint) ; unsafe extern "C" { pub fn getHouseList (houses : * mut :: std :: os :: raw :: c_int , seed : u64 , chunkX : :: std :: os :: raw :: c_int , chunkZ : :: std :: os :: raw :: c_int) -> u64 ; } unsafe extern "C" { pub fn monteCarloBiomes (g : * mut Generator , r : Range , rng : * mut u64 , coverage : f64 , confidence : f64 , eval : :: std :: option :: Option < unsafe extern "C" fn (g : * mut Generator , scale : :: std :: os :: raw :: c_int , x : :: std :: os :: raw :: c_int , y : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , data : * mut :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int > , data : * mut :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn setupBiomeFilter (bf : * mut BiomeFilter , mc : :: std :: os :: raw :: c_int , flags : u32 , required : * const :: std :: os :: raw :: c_int , requiredLen : :: std :: os :: raw :: c_int , excluded : * const :: std :: os :: raw :: c_int , excludedLen : :: std :: os :: raw :: c_int , matchany : * const :: std :: os :: raw :: c_int , matchanyLen : :: std :: os :: raw :: c_int) ; } unsafe extern "C" { pub fn checkForBiomes (g : * mut Generator , cache : * mut :: std :: os :: raw :: c_int , r : Range , dim : :: std :: os :: raw :: c_int , seed : u64 , filter : * const BiomeFilter , stop : * mut :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn checkForBiomesAtLayer (ls : * mut LayerStack , entry : * mut Layer , cache : * mut :: std :: os :: raw :: c_int , seed : u64 , x : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , w : :: std :: os :: raw :: c_uint , h : :: std :: os :: raw :: c_uint , filter : * const BiomeFilter) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn checkForTemps (g : * mut LayerStack , seed : u64 , x : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , w : :: std :: os :: raw :: c_int , h : :: std :: os :: raw :: c_int , tc : * const :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getBiomeCenters (pos : * mut Pos , siz : * mut :: std :: os :: raw :: c_int , nmax : :: std :: os :: raw :: c_int , g : * mut Generator , r : Range , match_ : :: std :: os :: raw :: c_int , minsiz : :: std :: os :: raw :: c_int , tol : :: std :: os :: raw :: c_int , stop : * mut :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn canBiomeGenerate (layerId : :: std :: os :: raw :: c_int , mc : :: std :: os :: raw :: c_int , flags : u32 , biomeID : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn genPotential (mL : * mut u64 , mM : * mut u64 , layerId : :: std :: os :: raw :: c_int , mc : :: std :: os :: raw :: c_int , flags : u32 , biomeID : :: std :: os :: raw :: c_int) ; } unsafe extern "C" { pub fn getAvailableBiomes (mL : * mut u64 , mM : * mut u64 , layerId : :: std :: os :: raw :: c_int , mc : :: std :: os :: raw :: c_int , flags : u32) ; } unsafe extern "C" { # [doc = " Runs a gradient descent towards the minimum of the noise parameter times a\n given factor. The algorithm is restricted to the area (x,z,w,h) and starts\n at (i0,j0) relative to (x,z). The iteration is terminated when either\n 1) a fix point has been reached,\n 2) maxiter iterations have been completed,\n 3) or the sampling position has moved more than maxrad away from (i0,j0).\n\n Alpha is an optimization argument that is used to determine the length of\n large steps based on the current gradient.\n\n Optionally, the iteration can also call the custom function:\n  func(data, x, z, factor*para_noise(x,z));\n\n The return value is the minimum value reached."] pub fn getParaDescent (para : * const DoublePerlinNoise , factor : f64 , x : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , w : :: std :: os :: raw :: c_int , h : :: std :: os :: raw :: c_int , i0 : :: std :: os :: raw :: c_int , j0 : :: std :: os :: raw :: c_int , maxrad : :: std :: os :: raw :: c_int , maxiter : :: std :: os :: raw :: c_int , alpha : f64 , data : * mut :: std :: os :: raw :: c_void , func : :: std :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: std :: os :: raw :: c_void , arg2 : :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : f64) -> :: std :: os :: raw :: c_int >) -> f64 ; } unsafe extern "C" { # [doc = " Determines the value range of a climate noise parameter over the given area.\n The sampling has scale 1:4 and sampling shift is not considered, so biomes\n could potentially *leak* in at the boarders.\n An optional function:\n  func(data, x, z, climate_noise(x,z))\n is called in each gradient descent iteration. If this function returns\n non-zero the search is aborted, the results are undefined and a non-zero\n error is returned.\n\n The results are written to pmin and pmax (which would be cast to an integer\n during boime mapping). Nullable, to look for minima and maxima separately."] pub fn getParaRange (para : * const DoublePerlinNoise , pmin : * mut f64 , pmax : * mut f64 , x : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , w : :: std :: os :: raw :: c_int , h : :: std :: os :: raw :: c_int , data : * mut :: std :: os :: raw :: c_void , func : :: std :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: std :: os :: raw :: c_void , arg2 : :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : f64) -> :: std :: os :: raw :: c_int >) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " Gets the min/max parameter values within which a biome change can occur."] pub fn getBiomeParaExtremes (mc : :: std :: os :: raw :: c_int) -> * const :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " Gets the min/max possible noise parameter values at which the given biome\n can generate. The values are in min/max pairs in order of:\n temperature, humidity, continentalness, erosion, depth, weirdness."] pub fn getBiomeParaLimits (mc : :: std :: os :: raw :: c_int , id : :: std :: os :: raw :: c_int) -> * const :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " Determines which biomes are able to generate given a set of climate\n parameter limits. Possible biomes are marked non-zero in the 'ids'."] pub fn getPossibleBiomesForLimits (ids : * mut :: std :: os :: raw :: c_char , mc : :: std :: os :: raw :: c_int , limits : * mut [:: std :: os :: raw :: c_int ; 2usize]) ; } unsafe extern "C" { # [doc = " Find the largest rectangle in ids[sx][sz] which consists only of 'match'.\n The limit corners are written to p0 and p1. Returned is the rectangle's area."] pub fn getLargestRec (match_ : :: std :: os :: raw :: c_int , ids : * const :: std :: os :: raw :: c_int , sx : :: std :: os :: raw :: c_int , sz : :: std :: os :: raw :: c_int , p0 : * mut Pos , p1 : * mut Pos) -> :: std :: os :: raw :: c_int ; } pub type __gnuc_va_list = __builtin_va_list ; # [repr (C)] # [derive (Copy , Clone)] pub struct __mbstate_t { pub __count : :: std :: os :: raw :: c_int , pub __value : __mbstate_t__bindgen_ty_1 , } # [repr (C)] # [derive (Copy , Clone)] pub union __mbstate_t__bindgen_ty_1 { pub __wch : :: std :: os :: raw :: c_uint , pub __wchb : [:: std :: os :: raw :: c_char ; 4usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __mbstate_t__bindgen_ty_1"] [:: std :: mem :: size_of :: < __mbstate_t__bindgen_ty_1 > () - 4usize] ; ["Alignment of __mbstate_t__bindgen_ty_1"] [:: std :: mem :: align_of :: < __mbstate_t__bindgen_ty_1 > () - 4usize] ; ["Offset of field: __mbstate_t__bindgen_ty_1::__wch"] [:: std :: mem :: offset_of ! (__mbstate_t__bindgen_ty_1 , __wch) - 0usize] ; ["Offset of field: __mbstate_t__bindgen_ty_1::__wchb"] [:: std :: mem :: offset_of ! (__mbstate_t__bindgen_ty_1 , __wchb) - 0usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __mbstate_t"] [:: std :: mem :: size_of :: < __mbstate_t > () - 8usize] ; ["Alignment of __mbstate_t"] [:: std :: mem :: align_of :: < __mbstate_t > () - 4usize] ; ["Offset of field: __mbstate_t::__count"] [:: std :: mem :: offset_of ! (__mbstate_t , __count) - 0usize] ; ["Offset of field: __mbstate_t::__value"] [:: std :: mem :: offset_of ! (__mbstate_t , __value) - 4usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub struct _G_fpos_t { pub __pos : __off_t , pub __state : __mbstate_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of _G_fpos_t"] [:: std :: mem :: size_of :: < _G_fpos_t > () - 16usize] ; ["Alignment of _G_fpos_t"] [:: std :: mem :: align_of :: < _G_fpos_t > () - 8usize] ; ["Offset of field: _G_fpos_t::__pos"] [:: std :: mem :: offset_of ! (_G_fpos_t , __pos) - 0usize] ; ["Offset of field: _G_fpos_t::__state"] [:: std :: mem :: offset_of ! (_G_fpos_t , __state) - 8usize] ; } ; pub type __fpos_t = _G_fpos_t ; # [repr (C)] # [derive (Copy , Clone)] pub struct _G_fpos64_t { pub __pos : __off64_t , pub __state : __mbstate_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of _G_fpos64_t"] [:: std :: mem :: size_of :: < _G_fpos64_t > () - 16usize] ; ["Alignment of _G_fpos64_t"] [:: std :: mem :: align_of :: < _G_fpos64_t > () - 8usize] ; ["Offset of field: _G_fpos64_t::__pos"] [:: std :: mem :: offset_of ! (_G_fpos64_t , __pos) - 0usize] ; ["Offset of field: _G_fpos64_t::__state"] [:: std :: mem :: offset_of ! (_G_fpos64_t , __state) - 8usize] ; } ; pub type __fpos64_t = _G_fpos64_t ; pub type __FILE = _IO_FILE ; pub type FILE = _IO_FILE ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_marker { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_codecvt { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_wide_data { _unused : [u8 ; 0] , } pub type _IO_lock_t = :: std :: os :: raw :: c_void ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_FILE { pub _flags : :: std :: os :: raw :: c_int , pub _IO_read_ptr : * mut :: std :: os :: raw :: c_char , pub _IO_read_end : * mut :: std :: os :: raw :: c_char , pub _IO_read_base : * mut :: std :: os :: raw :: c_char , pub _IO_write_base : * mut :: std :: os :: raw :: c_char , pub _IO_write_ptr : * mut :: std :: os :: raw :: c_char , pub _IO_write_end : * mut :: std :: os :: raw :: c_char , pub _IO_buf_base : * mut :: std :: os :: raw :: c_char , pub _IO_buf_end : * mut :: std :: os :: raw :: c_char , pub _IO_save_base : * mut :: std :: os :: raw :: c_char , pub _IO_backup_base : * mut :: std :: os :: raw :: c_char , pub _IO_save_end : * mut :: std :: os :: raw :: c_char , pub _markers : * mut _IO_marker , pub _chain : * mut _IO_FILE , pub _fileno : :: std :: os :: raw :: c_int , pub _bitfield_align_1 : [u32 ; 0] , pub _bitfield_1 : __BindgenBitfieldUnit < [u8 ; 3usize] > , pub _short_backupbuf : [:: std :: os :: raw :: c_char ; 1usize] , pub _old_offset : __off_t , pub _cur_column : :: std :: os :: raw :: c_ushort , pub _vtable_offset : :: std :: os :: raw :: c_schar , pub _shortbuf : [:: std :: os :: raw :: c_char ; 1usize] , pub _lock : * mut _IO_lock_t , pub _offset : __off64_t , pub _codecvt : * mut _IO_codecvt , pub _wide_data : * mut _IO_wide_data , pub _freeres_list : * mut _IO_FILE , pub _freeres_buf : * mut :: std :: os :: raw :: c_void , pub _prevchain : * mut * mut _IO_FILE , pub _mode : :: std :: os :: raw :: c_int , pub _unused3 : :: std :: os :: raw :: c_int , pub _total_written : __uint64_t , pub _unused2 : [:: std :: os :: raw :: c_char ; 8usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of _IO_FILE"] [:: std :: mem :: size_of :: < _IO_FILE > () - 216usize] ; ["Alignment of _IO_FILE"] [:: std :: mem :: align_of :: < _IO_FILE > () - 8usize] ; ["Offset of field: _IO_FILE::_flags"] [:: std :: mem :: offset_of ! (_IO_FILE , _flags) - 0usize] ; ["Offset of field: _IO_FILE::_IO_read_ptr"] [:: std :: mem :: offset_of ! (_IO_FILE , _IO_read_ptr) - 8usize] ; ["Offset of field: _IO_FILE::_IO_read_end"] [:: std :: mem :: offset_of ! (_IO_FILE , _IO_read_end) - 16usize] ; ["Offset of field: _IO_FILE::_IO_read_base"] [:: std :: mem :: offset_of ! (_IO_FILE , _IO_read_base) - 24usize] ; ["Offset of field: _IO_FILE::_IO_write_base"] [:: std :: mem :: offset_of ! (_IO_FILE , _IO_write_base) - 32usize] ; ["Offset of field: _IO_FILE::_IO_write_ptr"] [:: std :: mem :: offset_of ! (_IO_FILE , _IO_write_ptr) - 40usize] ; ["Offset of field: _IO_FILE::_IO_write_end"] [:: std :: mem :: offset_of ! (_IO_FILE , _IO_write_end) - 48usize] ; ["Offset of field: _IO_FILE::_IO_buf_base"] [:: std :: mem :: offset_of ! (_IO_FILE , _IO_buf_base) - 56usize] ; ["Offset of field: _IO_FILE::_IO_buf_end"] [:: std :: mem :: offset_of ! (_IO_FILE , _IO_buf_end) - 64usize] ; ["Offset of field: _IO_FILE::_IO_save_base"] [:: std :: mem :: offset_of ! (_IO_FILE , _IO_save_base) - 72usize] ; ["Offset of field: _IO_FILE::_IO_backup_base"] [:: std :: mem :: offset_of ! (_IO_FILE , _IO_backup_base) - 80usize] ; ["Offset of field: _IO_FILE::_IO_save_end"] [:: std :: mem :: offset_of ! (_IO_FILE , _IO_save_end) - 88usize] ; ["Offset of field: _IO_FILE::_markers"] [:: std :: mem :: offset_of ! (_IO_FILE , _markers) - 96usize] ; ["Offset of field: _IO_FILE::_chain"] [:: std :: mem :: offset_of ! (_IO_FILE , _chain) - 104usize] ; ["Offset of field: _IO_FILE::_fileno"] [:: std :: mem :: offset_of ! (_IO_FILE , _fileno) - 112usize] ; ["Offset of field: _IO_FILE::_short_backupbuf"] [:: std :: mem :: offset_of ! (_IO_FILE , _short_backupbuf) - 119usize] ; ["Offset of field: _IO_FILE::_old_offset"] [:: std :: mem :: offset_of ! (_IO_FILE , _old_offset) - 120usize] ; ["Offset of field: _IO_FILE::_cur_column"] [:: std :: mem :: offset_of ! (_IO_FILE , _cur_column) - 128usize] ; ["Offset of field: _IO_FILE::_vtable_offset"] [:: std :: mem :: offset_of ! (_IO_FILE , _vtable_offset) - 130usize] ; ["Offset of field: _IO_FILE::_shortbuf"] [:: std :: mem :: offset_of ! (_IO_FILE , _shortbuf) - 131usize] ; ["Offset of field: _IO_FILE::_lock"] [:: std :: mem :: offset_of ! (_IO_FILE , _lock) - 136usize] ; ["Offset of field: _IO_FILE::_offset"] [:: std :: mem :: offset_of ! (_IO_FILE , _offset) - 144usize] ; ["Offset of field: _IO_FILE::_codecvt"] [:: std :: mem :: offset_of ! (_IO_FILE , _codecvt) - 152usize] ; ["Offset of field: _IO_FILE::_wide_data"] [:: std :: mem :: offset_of ! (_IO_FILE , _wide_data) - 160usize] ; ["Offset of field: _IO_FILE::_freeres_list"] [:: std :: mem :: offset_of ! (_IO_FILE , _freeres_list) - 168usize] ; ["Offset of field: _IO_FILE::_freeres_buf"] [:: std :: mem :: offset_of ! (_IO_FILE , _freeres_buf) - 176usize] ; ["Offset of field: _IO_FILE::_prevchain"] [:: std :: mem :: offset_of ! (_IO_FILE , _prevchain) - 184usize] ; ["Offset of field: _IO_FILE::_mode"] [:: std :: mem :: offset_of ! (_IO_FILE , _mode) - 192usize] ; ["Offset of field: _IO_FILE::_unused3"] [:: std :: mem :: offset_of ! (_IO_FILE , _unused3) - 196usize] ; ["Offset of field: _IO_FILE::_total_written"] [:: std :: mem :: offset_of ! (_IO_FILE , _total_written) - 200usize] ; ["Offset of field: _IO_FILE::_unused2"] [:: std :: mem :: offset_of ! (_IO_FILE , _unused2) - 208usize] ; } ; impl _IO_FILE { # [inline] pub fn _flags2 (& self) -> :: std :: os :: raw :: c_int { unsafe { :: std :: mem :: transmute (self . _bitfield_1 . get (0usize , 24u8) as u32) } } # [inline] pub fn set__flags2 (& mut self , val : :: std :: os :: raw :: c_int) { unsafe { let val : u32 = :: std :: mem :: transmute (val) ; self . _bitfield_1 . set (0usize , 24u8 , val as u64) } } # [inline] pub unsafe fn _flags2_raw (this : * const Self) -> :: std :: os :: raw :: c_int { unsafe { :: std :: mem :: transmute (< __BindgenBitfieldUnit < [u8 ; 3usize] > > :: raw_get (:: std :: ptr :: addr_of ! ((* this) . _bitfield_1) , 0usize , 24u8 ,) as u32) } } # [inline] pub unsafe fn set__flags2_raw (this : * mut Self , val : :: std :: os :: raw :: c_int) { unsafe { let val : u32 = :: std :: mem :: transmute (val) ; < __BindgenBitfieldUnit < [u8 ; 3usize] > > :: raw_set (:: std :: ptr :: addr_of_mut ! ((* this) . _bitfield_1) , 0usize , 24u8 , val as u64 ,) } } # [inline] pub fn new_bitfield_1 (_flags2 : :: std :: os :: raw :: c_int) -> __BindgenBitfieldUnit < [u8 ; 3usize] > { let mut __bindgen_bitfield_unit : __BindgenBitfieldUnit < [u8 ; 3usize] > = Default :: default () ; __bindgen_bitfield_unit . set (0usize , 24u8 , { let _flags2 : u32 = unsafe { :: std :: mem :: transmute (_flags2) } ; _flags2 as u64 }) ; __bindgen_bitfield_unit } } pub type cookie_read_function_t = :: std :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: std :: os :: raw :: c_void , __buf : * mut :: std :: os :: raw :: c_char , __nbytes : usize) -> __ssize_t > ; pub type cookie_write_function_t = :: std :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: std :: os :: raw :: c_void , __buf : * const :: std :: os :: raw :: c_char , __nbytes : usize) -> __ssize_t > ; pub type cookie_seek_function_t = :: std :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: std :: os :: raw :: c_void , __pos : * mut __off64_t , __w : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int > ; pub type cookie_close_function_t = :: std :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_cookie_io_functions_t { pub read : cookie_read_function_t , pub write : cookie_write_function_t , pub seek : cookie_seek_function_t , pub close : cookie_close_function_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of _IO_cookie_io_functions_t"] [:: std :: mem :: size_of :: < _IO_cookie_io_functions_t > () - 32usize] ; ["Alignment of _IO_cookie_io_functions_t"] [:: std :: mem :: align_of :: < _IO_cookie_io_functions_t > () - 8usize] ; ["Offset of field: _IO_cookie_io_functions_t::read"] [:: std :: mem :: offset_of ! (_IO_cookie_io_functions_t , read) - 0usize] ; ["Offset of field: _IO_cookie_io_functions_t::write"] [:: std :: mem :: offset_of ! (_IO_cookie_io_functions_t , write) - 8usize] ; ["Offset of field: _IO_cookie_io_functions_t::seek"] [:: std :: mem :: offset_of ! (_IO_cookie_io_functions_t , seek) - 16usize] ; ["Offset of field: _IO_cookie_io_functions_t::close"] [:: std :: mem :: offset_of ! (_IO_cookie_io_functions_t , close) - 24usize] ; } ; pub type cookie_io_functions_t = _IO_cookie_io_functions_t ; pub type va_list = __gnuc_va_list ; pub type fpos_t = __fpos_t ; unsafe extern "C" { pub static mut stdin : * mut FILE ; } unsafe extern "C" { pub static mut stdout : * mut FILE ; } unsafe extern "C" { pub static mut stderr : * mut FILE ; } unsafe extern "C" { pub fn remove (__filename : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn rename (__old : * const :: std :: os :: raw :: c_char , __new : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn renameat (__oldfd : :: std :: os :: raw :: c_int , __old : * const :: std :: os :: raw :: c_char , __newfd : :: std :: os :: raw :: c_int , __new : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn fclose (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn tmpfile () -> * mut FILE ; } unsafe extern "C" { pub fn tmpnam (arg1 : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn tmpnam_r (__s : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn tempnam (__dir : * const :: std :: os :: raw :: c_char , __pfx : * const :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn fflush (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn fflush_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn fopen (__filename : * const :: std :: os :: raw :: c_char , __modes : * const :: std :: os :: raw :: c_char) -> * mut FILE ; } unsafe extern "C" { pub fn freopen (__filename : * const :: std :: os :: raw :: c_char , __modes : * const :: std :: os :: raw :: c_char , __stream : * mut FILE) -> * mut FILE ; } unsafe extern "C" { pub fn fdopen (__fd : :: std :: os :: raw :: c_int , __modes : * const :: std :: os :: raw :: c_char) -> * mut FILE ; } unsafe extern "C" { pub fn fopencookie (__magic_cookie : * mut :: std :: os :: raw :: c_void , __modes : * const :: std :: os :: raw :: c_char , __io_funcs : cookie_io_functions_t) -> * mut FILE ; } unsafe extern "C" { pub fn fmemopen (__s : * mut :: std :: os :: raw :: c_void , __len : usize , __modes : * const :: std :: os :: raw :: c_char) -> * mut FILE ; } unsafe extern "C" { pub fn open_memstream (__bufloc : * mut * mut :: std :: os :: raw :: c_char , __sizeloc : * mut usize) -> * mut FILE ; } unsafe extern "C" { pub fn setbuf (__stream : * mut FILE , __buf : * mut :: std :: os :: raw :: c_char) ; } unsafe extern "C" { pub fn setvbuf (__stream : * mut FILE , __buf : * mut :: std :: os :: raw :: c_char , __modes : :: std :: os :: raw :: c_int , __n : usize) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn setbuffer (__stream : * mut FILE , __buf : * mut :: std :: os :: raw :: c_char , __size : usize) ; } unsafe extern "C" { pub fn setlinebuf (__stream : * mut FILE) ; } unsafe extern "C" { pub fn fprintf (__stream : * mut FILE , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn printf (__format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn sprintf (__s : * mut :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn vfprintf (__s : * mut FILE , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn vprintf (__format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn vsprintf (__s : * mut :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn snprintf (__s : * mut :: std :: os :: raw :: c_char , __maxlen : :: std :: os :: raw :: c_ulong , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn vsnprintf (__s : * mut :: std :: os :: raw :: c_char , __maxlen : :: std :: os :: raw :: c_ulong , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn vasprintf (__ptr : * mut * mut :: std :: os :: raw :: c_char , __f : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __asprintf (__ptr : * mut * mut :: std :: os :: raw :: c_char , __fmt : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn asprintf (__ptr : * mut * mut :: std :: os :: raw :: c_char , __fmt : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn vdprintf (__fd : :: std :: os :: raw :: c_int , __fmt : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn dprintf (__fd : :: std :: os :: raw :: c_int , __fmt : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn fscanf (__stream : * mut FILE , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn scanf (__format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn sscanf (__s : * const :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [link_name = "\u{1}__isoc99_fscanf"] pub fn fscanf1 (__stream : * mut FILE , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [link_name = "\u{1}__isoc99_scanf"] pub fn scanf1 (__format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [link_name = "\u{1}__isoc99_sscanf"] pub fn sscanf1 (__s : * const :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn vfscanf (__s : * mut FILE , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn vscanf (__format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn vsscanf (__s : * const :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [link_name = "\u{1}__isoc99_vfscanf"] pub fn vfscanf1 (__s : * mut FILE , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [link_name = "\u{1}__isoc99_vscanf"] pub fn vscanf1 (__format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [link_name = "\u{1}__isoc99_vsscanf"] pub fn vsscanf1 (__s : * const :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn fgetc (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getc (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getchar () -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getc_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getchar_unlocked () -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn fgetc_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn fputc (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn putc (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn putchar (__c : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn fputc_unlocked (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn putc_unlocked (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn putchar_unlocked (__c : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getw (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn putw (__w : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn fgets (__s : * mut :: std :: os :: raw :: c_char , __n : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn __getdelim (__lineptr : * mut * mut :: std :: os :: raw :: c_char , __n : * mut usize , __delimiter : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> __ssize_t ; } unsafe extern "C" { pub fn getdelim (__lineptr : * mut * mut :: std :: os :: raw :: c_char , __n : * mut usize , __delimiter : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> __ssize_t ; } unsafe extern "C" { pub fn getline (__lineptr : * mut * mut :: std :: os :: raw :: c_char , __n : * mut usize , __stream : * mut FILE) -> __ssize_t ; } unsafe extern "C" { pub fn fputs (__s : * const :: std :: os :: raw :: c_char , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn puts (__s : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn ungetc (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn fread (__ptr : * mut :: std :: os :: raw :: c_void , __size : :: std :: os :: raw :: c_ulong , __n : :: std :: os :: raw :: c_ulong , __stream : * mut FILE) -> :: std :: os :: raw :: c_ulong ; } unsafe extern "C" { pub fn fwrite (__ptr : * const :: std :: os :: raw :: c_void , __size : :: std :: os :: raw :: c_ulong , __n : :: std :: os :: raw :: c_ulong , __s : * mut FILE) -> :: std :: os :: raw :: c_ulong ; } unsafe extern "C" { pub fn fread_unlocked (__ptr : * mut :: std :: os :: raw :: c_void , __size : usize , __n : usize , __stream : * mut FILE) -> usize ; } unsafe extern "C" { pub fn fwrite_unlocked (__ptr : * const :: std :: os :: raw :: c_void , __size : usize , __n : usize , __stream : * mut FILE) -> usize ; } unsafe extern "C" { pub fn fseek (__stream : * mut FILE , __off : :: std :: os :: raw :: c_long , __whence : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn ftell (__stream : * mut FILE) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn rewind (__stream : * mut FILE) ; } unsafe extern "C" { pub fn fseeko (__stream : * mut FILE , __off : __off_t , __whence : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn ftello (__stream : * mut FILE) -> __off_t ; } unsafe extern "C" { pub fn fgetpos (__stream : * mut FILE , __pos : * mut fpos_t) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn fsetpos (__stream : * mut FILE , __pos : * const fpos_t) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn clearerr (__stream : * mut FILE) ; } unsafe extern "C" { pub fn feof (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn ferror (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn clearerr_unlocked (__stream : * mut FILE) ; } unsafe extern "C" { pub fn feof_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn ferror_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn perror (__s : * const :: std :: os :: raw :: c_char) ; } unsafe extern "C" { pub fn fileno (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn fileno_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn pclose (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn popen (__command : * const :: std :: os :: raw :: c_char , __modes : * const :: std :: os :: raw :: c_char) -> * mut FILE ; } unsafe extern "C" { pub fn ctermid (__s : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn flockfile (__stream : * mut FILE) ; } unsafe extern "C" { pub fn ftrylockfile (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn funlockfile (__stream : * mut FILE) ; } unsafe extern "C" { pub fn __uflow (arg1 : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __overflow (arg1 : * mut FILE , arg2 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " Quad-Witch-Huts\n\n  For a quad-structure, we mainly care about relative positioning, so we can\n  get away with just checking the regions near the origin: (0,0),(0,1),(1,0)\n  and (1,1) and then move the structures to the desired position.\n\n  Futhermore, the PRNG that determines the chunk positions inside each region,\n  performs some modular arithmatic on the 48-bit numbers which causes some\n  restrictions on the lower bits when looking for near perfect structure\n  positions. This is difficult to prove, but can be used to reduce the number\n  of free bits to 28 which can be comfortably brute-forced to get the entire\n  set of quad-structure candidates. Each of the seeds found this way\n  describes entire set of possible quad-witch-huts (with degrees of freedom\n  for region-transposition, as well as the top 16-bit bits)."] pub static low20QuadIdeal : [u64 ; 4usize] ; } unsafe extern "C" { pub static low20QuadClassic : [u64 ; 5usize] ; } unsafe extern "C" { pub static low20QuadHutNormal : [u64 ; 11usize] ; } unsafe extern "C" { pub static low20QuadHutBarely : [u64 ; 29usize] ; } pub const CST_NONE : _bindgen_ty_9 = _bindgen_ty_9 (0) ; pub const CST_IDEAL : _bindgen_ty_9 = _bindgen_ty_9 (1) ; pub const CST_CLASSIC : _bindgen_ty_9 = _bindgen_ty_9 (2) ; pub const CST_NORMAL : _bindgen_ty_9 = _bindgen_ty_9 (3) ; pub const CST_BARELY : _bindgen_ty_9 = _bindgen_ty_9 (4) ; # [repr (transparent)] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct _bindgen_ty_9 (pub :: std :: os :: raw :: c_uint) ; unsafe extern "C" { pub fn getQuadHutCst (low20 : u64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn searchAll48 (seedbuf : * mut * mut u64 , buflen : * mut u64 , path : * const :: std :: os :: raw :: c_char , threads : :: std :: os :: raw :: c_int , lowBits : * const u64 , lowBitN : :: std :: os :: raw :: c_int , check : :: std :: option :: Option < unsafe extern "C" fn (s48 : u64 , data : * mut :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int > , data : * mut :: std :: os :: raw :: c_void , stop : * mut :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getOptimalAfk (p : * mut Pos , ax : :: std :: os :: raw :: c_int , ay : :: std :: os :: raw :: c_int , az : :: std :: os :: raw :: c_int , spcnt : * mut :: std :: os :: raw :: c_int) -> Pos ; } unsafe extern "C" { pub fn scanForQuads (sconf : StructureConfig , radius : :: std :: os :: raw :: c_int , s48 : u64 , lowBits : * const u64 , lowBitN : :: std :: os :: raw :: c_int , salt : u64 , x : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , w : :: std :: os :: raw :: c_int , h : :: std :: os :: raw :: c_int , qplist : * mut Pos , n : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn loadSavedSeeds (fnam : * const :: std :: os :: raw :: c_char , scnt : * mut u64) -> * mut u64 ; } unsafe extern "C" { # [doc = " convert between version enum and text"] pub fn mc2str (mc : :: std :: os :: raw :: c_int) -> * const :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn str2mc (s : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " get the resource id name for a biome (for versions 1.13+)"] pub fn biome2str (mc : :: std :: os :: raw :: c_int , id : :: std :: os :: raw :: c_int) -> * const :: std :: os :: raw :: c_char ; } unsafe extern "C" { # [doc = " get the resource id name for a structure"] pub fn struct2str (stype : :: std :: os :: raw :: c_int) -> * const :: std :: os :: raw :: c_char ; } unsafe extern "C" { # [doc = " initialize a biome colormap with some defaults"] pub fn initBiomeColors (biomeColors : * mut [:: std :: os :: raw :: c_uchar ; 3usize]) ; } unsafe extern "C" { pub fn initBiomeTypeColors (biomeColors : * mut [:: std :: os :: raw :: c_uchar ; 3usize]) ; } unsafe extern "C" { pub fn parseBiomeColors (biomeColors : * mut [:: std :: os :: raw :: c_uchar ; 3usize] , buf : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn biomesToImage (pixels : * mut :: std :: os :: raw :: c_uchar , biomeColors : * mut [:: std :: os :: raw :: c_uchar ; 3usize] , biomes : * const :: std :: os :: raw :: c_int , sx : :: std :: os :: raw :: c_uint , sy : :: std :: os :: raw :: c_uint , pixscale : :: std :: os :: raw :: c_uint , flip : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn savePPM (path : * const :: std :: os :: raw :: c_char , pixels : * const :: std :: os :: raw :: c_uchar , sx : :: std :: os :: raw :: c_uint , sy : :: std :: os :: raw :: c_uint) -> :: std :: os :: raw :: c_int ; } pub type __builtin_va_list = [__va_list_tag ; 1usize] ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __va_list_tag { pub gp_offset : :: std :: os :: raw :: c_uint , pub fp_offset : :: std :: os :: raw :: c_uint , pub overflow_arg_area : * mut :: std :: os :: raw :: c_void , pub reg_save_area : * mut :: std :: os :: raw :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __va_list_tag"] [:: std :: mem :: size_of :: < __va_list_tag > () - 24usize] ; ["Alignment of __va_list_tag"] [:: std :: mem :: align_of :: < __va_list_tag > () - 8usize] ; ["Offset of field: __va_list_tag::gp_offset"] [:: std :: mem :: offset_of ! (__va_list_tag , gp_offset) - 0usize] ; ["Offset of field: __va_list_tag::fp_offset"] [:: std :: mem :: offset_of ! (__va_list_tag , fp_offset) - 4usize] ; ["Offset of field: __va_list_tag::overflow_arg_area"] [:: std :: mem :: offset_of ! (__va_list_tag , overflow_arg_area) - 8usize] ; ["Offset of field: __va_list_tag::reg_save_area"] [:: std :: mem :: offset_of ! (__va_list_tag , reg_save_area) - 16usize] ; } ;
[INFO] [stdout] 3 + # [repr (C)] # [derive (Copy , Clone , Debug , Default , Eq , Hash , Ord , PartialEq , PartialOrd)] pub struct __BindgenBitfieldUnit < Storage > { storage : Storage , } impl < Storage > __BindgenBitfieldUnit < Storage > { # [inline] pub const fn new (storage : Storage) -> Self { Self { storage } } } impl < Storage > __BindgenBitfieldUnit < Storage > where Storage : AsRef < [u8] > + AsMut < [u8] >, { # [inline] fn extract_bit (byte : u8 , index : usize) -> bool { let bit_index = if cfg ! (target_endian = "big") { 7 - (index % 8) } else { index % 8 } ; let mask = 1 << bit_index ; byte & mask == mask } # [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] ; Self :: extract_bit (byte , index) } # [inline] pub unsafe fn raw_get_bit (this : * const Self , index : usize) -> bool { debug_assert ! (index / 8 < core :: mem :: size_of ::< Storage > ()) ; let byte_index = index / 8 ; let byte = * (core :: ptr :: addr_of ! ((* this) . storage) as * const u8) . offset (byte_index as isize) ; Self :: extract_bit (byte , index) } # [inline] fn change_bit (byte : u8 , index : usize , val : bool) -> u8 { let bit_index = if cfg ! (target_endian = "big") { 7 - (index % 8) } else { index % 8 } ; let mask = 1 << bit_index ; if val { byte | mask } else { byte & ! 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] ; * byte = Self :: change_bit (* byte , index , val) ; } # [inline] pub unsafe fn raw_set_bit (this : * mut Self , index : usize , val : bool) { debug_assert ! (index / 8 < core :: mem :: size_of ::< Storage > ()) ; let byte_index = index / 8 ; let byte = (core :: ptr :: addr_of_mut ! ((* this) . storage) as * mut u8) . offset (byte_index as isize) ; * byte = Self :: change_bit (* byte , index , val) ; } # [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) { let index = if cfg ! (target_endian = "big") { bit_width as usize - 1 - i } else { i } ; val |= 1 << index ; } } val } # [inline] pub unsafe fn raw_get (this : * const Self , bit_offset : usize , bit_width : u8 ,) -> u64 { debug_assert ! (bit_width <= 64) ; debug_assert ! (bit_offset / 8 < core :: mem :: size_of ::< Storage > ()) ; debug_assert ! ((bit_offset + (bit_width as usize)) / 8 <= core :: mem :: size_of ::< Storage > ()) ; let mut val = 0 ; for i in 0 .. (bit_width as usize) { if Self :: raw_get_bit (this , i + bit_offset) { let index = if cfg ! (target_endian = "big") { bit_width as usize - 1 - i } else { i } ; val |= 1 << index ; } } 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 ; let index = if cfg ! (target_endian = "big") { bit_width as usize - 1 - i } else { i } ; self . set_bit (index + bit_offset , val_bit_is_set) ; } } # [inline] pub unsafe fn raw_set (this : * mut Self , bit_offset : usize , bit_width : u8 , val : u64 ,) { debug_assert ! (bit_width <= 64) ; debug_assert ! (bit_offset / 8 < core :: mem :: size_of ::< Storage > ()) ; debug_assert ! ((bit_offset + (bit_width as usize)) / 8 <= core :: mem :: size_of ::< Storage > ()) ; for i in 0 .. (bit_width as usize) { let mask = 1 << i ; let val_bit_is_set = val & mask == mask ; let index = if cfg ! (target_endian = "big") { bit_width as usize - 1 - i } else { i } ; Self :: raw_set_bit (this , index + bit_offset , val_bit_is_set) ; } } } # [derive (PartialEq , Copy , Clone , Hash , Debug , Default)] # [repr (C)] pub struct __BindgenComplex < T > { pub re : T , pub im : T } pub const __STDC_FORMAT_MACROS : u32 = 1 ; pub const _FEATURES_H : u32 = 1 ; pub const _DEFAULT_SOURCE : u32 = 1 ; pub const __GLIBC_USE_ISOC2Y : u32 = 0 ; pub const __GLIBC_USE_ISOC23 : u32 = 0 ; pub const __USE_ISOC11 : u32 = 1 ; pub const __USE_ISOC99 : u32 = 1 ; pub const __USE_ISOC95 : u32 = 1 ; pub const __USE_POSIX_IMPLICITLY : u32 = 1 ; pub const _POSIX_SOURCE : u32 = 1 ; pub const _POSIX_C_SOURCE : u32 = 202405 ; pub const __USE_POSIX : u32 = 1 ; pub const __USE_POSIX2 : u32 = 1 ; pub const __USE_POSIX199309 : u32 = 1 ; pub const __USE_POSIX199506 : u32 = 1 ; pub const __USE_XOPEN2K : u32 = 1 ; pub const __USE_XOPEN2K8 : u32 = 1 ; pub const _ATFILE_SOURCE : u32 = 1 ; pub const __USE_XOPEN2K24 : u32 = 1 ; pub const __WORDSIZE : u32 = 64 ; pub const __WORDSIZE_TIME64_COMPAT32 : u32 = 1 ; pub const __SYSCALL_WORDSIZE : u32 = 64 ; pub const __TIMESIZE : u32 = 64 ; pub const __USE_TIME_BITS64 : u32 = 1 ; pub const __USE_MISC : u32 = 1 ; pub const __USE_ATFILE : u32 = 1 ; pub const __USE_FORTIFY_LEVEL : u32 = 0 ; pub const __GLIBC_USE_DEPRECATED_GETS : u32 = 0 ; pub const __GLIBC_USE_DEPRECATED_SCANF : u32 = 0 ; pub const __GLIBC_USE_C23_STRTOL : u32 = 0 ; pub const _STDC_PREDEF_H : u32 = 1 ; pub const __STDC_IEC_559__ : u32 = 1 ; pub const __STDC_IEC_60559_BFP__ : u32 = 201404 ; pub const __STDC_IEC_559_COMPLEX__ : u32 = 1 ; pub const __STDC_IEC_60559_COMPLEX__ : u32 = 201404 ; pub const __STDC_ISO_10646__ : u32 = 201706 ; pub const __GNU_LIBRARY__ : u32 = 6 ; pub const __GLIBC__ : u32 = 2 ; pub const __GLIBC_MINOR__ : u32 = 43 ; pub const _SYS_CDEFS_H : u32 = 1 ; pub const __glibc_c99_flexarr_available : u32 = 1 ; pub const __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI : u32 = 0 ; pub const __HAVE_GENERIC_SELECTION : u32 = 1 ; pub const __GLIBC_USE_LIB_EXT2 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_BFP_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_BFP_EXT_C23 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_FUNCS_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_FUNCS_EXT_C23 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_TYPES_EXT : u32 = 0 ; pub const _STDLIB_H : u32 = 1 ; pub const WNOHANG : u32 = 1 ; pub const WUNTRACED : u32 = 2 ; pub const WSTOPPED : u32 = 2 ; pub const WEXITED : u32 = 4 ; pub const WCONTINUED : u32 = 8 ; pub const WNOWAIT : u32 = 16777216 ; pub const __WNOTHREAD : u32 = 536870912 ; pub const __WALL : u32 = 1073741824 ; pub const __WCLONE : u32 = 2147483648 ; pub const __W_CONTINUED : u32 = 65535 ; pub const __WCOREFLAG : u32 = 128 ; pub const __HAVE_FLOAT128 : u32 = 1 ; pub const __HAVE_DISTINCT_FLOAT128 : u32 = 1 ; pub const __HAVE_FLOAT64X : u32 = 1 ; pub const __HAVE_FLOAT64X_LONG_DOUBLE : u32 = 1 ; pub const __HAVE_FLOAT16 : u32 = 0 ; pub const __HAVE_FLOAT32 : u32 = 1 ; pub const __HAVE_FLOAT64 : u32 = 1 ; pub const __HAVE_FLOAT32X : u32 = 1 ; pub const __HAVE_FLOAT128X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT16 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT32 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT64 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT32X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT64X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT128X : u32 = 0 ; pub const __HAVE_FLOATN_NOT_TYPEDEF : u32 = 0 ; pub const __ldiv_t_defined : u32 = 1 ; pub const __lldiv_t_defined : u32 = 1 ; pub const RAND_MAX : u32 = 2147483647 ; pub const EXIT_FAILURE : u32 = 1 ; pub const EXIT_SUCCESS : u32 = 0 ; pub const _SYS_TYPES_H : u32 = 1 ; pub const _BITS_TYPES_H : u32 = 1 ; pub const _BITS_TYPESIZES_H : u32 = 1 ; pub const __OFF_T_MATCHES_OFF64_T : u32 = 1 ; pub const __INO_T_MATCHES_INO64_T : u32 = 1 ; pub const __RLIM_T_MATCHES_RLIM64_T : u32 = 1 ; pub const __STATFS_MATCHES_STATFS64 : u32 = 1 ; pub const __KERNEL_OLD_TIMEVAL_MATCHES_TIMEVAL64 : u32 = 1 ; pub const __FD_SETSIZE : u32 = 1024 ; pub const _BITS_TIME64_H : u32 = 1 ; pub const __clock_t_defined : u32 = 1 ; pub const __clockid_t_defined : u32 = 1 ; pub const __time_t_defined : u32 = 1 ; pub const __timer_t_defined : u32 = 1 ; pub const _BITS_STDINT_INTN_H : u32 = 1 ; pub const __BIT_TYPES_DEFINED__ : u32 = 1 ; pub const _ENDIAN_H : u32 = 1 ; pub const _BITS_ENDIAN_H : u32 = 1 ; pub const __LITTLE_ENDIAN : u32 = 1234 ; pub const __BIG_ENDIAN : u32 = 4321 ; pub const __PDP_ENDIAN : u32 = 3412 ; pub const _BITS_ENDIANNESS_H : u32 = 1 ; pub const __BYTE_ORDER : u32 = 1234 ; pub const __FLOAT_WORD_ORDER : u32 = 1234 ; pub const LITTLE_ENDIAN : u32 = 1234 ; pub const BIG_ENDIAN : u32 = 4321 ; pub const PDP_ENDIAN : u32 = 3412 ; pub const BYTE_ORDER : u32 = 1234 ; pub const _BITS_BYTESWAP_H : u32 = 1 ; pub const _BITS_UINTN_IDENTITY_H : u32 = 1 ; pub const _SYS_SELECT_H : u32 = 1 ; pub const __sigset_t_defined : u32 = 1 ; pub const __timeval_defined : u32 = 1 ; pub const _STRUCT_TIMESPEC : u32 = 1 ; pub const FD_SETSIZE : u32 = 1024 ; pub const _BITS_PTHREADTYPES_COMMON_H : u32 = 1 ; pub const _THREAD_SHARED_TYPES_H : u32 = 1 ; pub const _BITS_PTHREADTYPES_ARCH_H : u32 = 1 ; pub const __SIZEOF_PTHREAD_MUTEX_T : u32 = 40 ; pub const __SIZEOF_PTHREAD_ATTR_T : u32 = 56 ; pub const __SIZEOF_PTHREAD_RWLOCK_T : u32 = 56 ; pub const __SIZEOF_PTHREAD_BARRIER_T : u32 = 32 ; pub const __SIZEOF_PTHREAD_MUTEXATTR_T : u32 = 4 ; pub const __SIZEOF_PTHREAD_COND_T : u32 = 48 ; pub const __SIZEOF_PTHREAD_CONDATTR_T : u32 = 4 ; pub const __SIZEOF_PTHREAD_RWLOCKATTR_T : u32 = 8 ; pub const __SIZEOF_PTHREAD_BARRIERATTR_T : u32 = 4 ; pub const _THREAD_MUTEX_INTERNAL_H : u32 = 1 ; pub const __PTHREAD_MUTEX_HAVE_PREV : u32 = 1 ; pub const __have_pthread_attr_t : u32 = 1 ; pub const _ALLOCA_H : u32 = 1 ; pub const _INTTYPES_H : u32 = 1 ; pub const _STDINT_H : u32 = 1 ; pub const _BITS_WCHAR_H : u32 = 1 ; pub const _BITS_STDINT_UINTN_H : u32 = 1 ; pub const _BITS_STDINT_LEAST_H : u32 = 1 ; pub const INT8_MIN : i32 = - 128 ; pub const INT16_MIN : i32 = - 32768 ; pub const INT32_MIN : i32 = - 2147483648 ; pub const INT8_MAX : u32 = 127 ; pub const INT16_MAX : u32 = 32767 ; pub const INT32_MAX : u32 = 2147483647 ; pub const UINT8_MAX : u32 = 255 ; pub const UINT16_MAX : u32 = 65535 ; pub const UINT32_MAX : u32 = 4294967295 ; pub const INT_LEAST8_MIN : i32 = - 128 ; pub const INT_LEAST16_MIN : i32 = - 32768 ; pub const INT_LEAST32_MIN : i32 = - 2147483648 ; pub const INT_LEAST8_MAX : u32 = 127 ; pub const INT_LEAST16_MAX : u32 = 32767 ; pub const INT_LEAST32_MAX : u32 = 2147483647 ; pub const UINT_LEAST8_MAX : u32 = 255 ; pub const UINT_LEAST16_MAX : u32 = 65535 ; pub const UINT_LEAST32_MAX : u32 = 4294967295 ; pub const INT_FAST8_MIN : i32 = - 128 ; pub const INT_FAST16_MIN : i64 = - 9223372036854775808 ; pub const INT_FAST32_MIN : i64 = - 9223372036854775808 ; pub const INT_FAST8_MAX : u32 = 127 ; pub const INT_FAST16_MAX : u64 = 9223372036854775807 ; pub const INT_FAST32_MAX : u64 = 9223372036854775807 ; pub const UINT_FAST8_MAX : u32 = 255 ; pub const UINT_FAST16_MAX : i32 = - 1 ; pub const UINT_FAST32_MAX : i32 = - 1 ; pub const INTPTR_MIN : i64 = - 9223372036854775808 ; pub const INTPTR_MAX : u64 = 9223372036854775807 ; pub const UINTPTR_MAX : i32 = - 1 ; pub const PTRDIFF_MIN : i64 = - 9223372036854775808 ; pub const PTRDIFF_MAX : u64 = 9223372036854775807 ; pub const SIG_ATOMIC_MIN : i32 = - 2147483648 ; pub const SIG_ATOMIC_MAX : u32 = 2147483647 ; pub const SIZE_MAX : i32 = - 1 ; pub const WINT_MIN : u32 = 0 ; pub const WINT_MAX : u32 = 4294967295 ; pub const ____gwchar_t_defined : u32 = 1 ; pub const __PRI64_PREFIX : & [u8 ; 2] = b"l\0" ; pub const __PRIPTR_PREFIX : & [u8 ; 2] = b"l\0" ; pub const PRId8 : & [u8 ; 4] = b"hhd\0" ; pub const PRId16 : & [u8 ; 3] = b"hd\0" ; pub const PRId32 : & [u8 ; 2] = b"d\0" ; pub const PRId64 : & [u8 ; 3] = b"ld\0" ; pub const PRIdLEAST8 : & [u8 ; 4] = b"hhd\0" ; pub const PRIdLEAST16 : & [u8 ; 3] = b"hd\0" ; pub const PRIdLEAST32 : & [u8 ; 2] = b"d\0" ; pub const PRIdLEAST64 : & [u8 ; 3] = b"ld\0" ; pub const PRIdFAST8 : & [u8 ; 4] = b"hhd\0" ; pub const PRIdFAST16 : & [u8 ; 3] = b"ld\0" ; pub const PRIdFAST32 : & [u8 ; 3] = b"ld\0" ; pub const PRIdFAST64 : & [u8 ; 3] = b"ld\0" ; pub const PRIi8 : & [u8 ; 4] = b"hhi\0" ; pub const PRIi16 : & [u8 ; 3] = b"hi\0" ; pub const PRIi32 : & [u8 ; 2] = b"i\0" ; pub const PRIi64 : & [u8 ; 3] = b"li\0" ; pub const PRIiLEAST8 : & [u8 ; 4] = b"hhi\0" ; pub const PRIiLEAST16 : & [u8 ; 3] = b"hi\0" ; pub const PRIiLEAST32 : & [u8 ; 2] = b"i\0" ; pub const PRIiLEAST64 : & [u8 ; 3] = b"li\0" ; pub const PRIiFAST8 : & [u8 ; 4] = b"hhi\0" ; pub const PRIiFAST16 : & [u8 ; 3] = b"li\0" ; pub const PRIiFAST32 : & [u8 ; 3] = b"li\0" ; pub const PRIiFAST64 : & [u8 ; 3] = b"li\0" ; pub const PRIo8 : & [u8 ; 4] = b"hho\0" ; pub const PRIo16 : & [u8 ; 3] = b"ho\0" ; pub const PRIo32 : & [u8 ; 2] = b"o\0" ; pub const PRIo64 : & [u8 ; 3] = b"lo\0" ; pub const PRIoLEAST8 : & [u8 ; 4] = b"hho\0" ; pub const PRIoLEAST16 : & [u8 ; 3] = b"ho\0" ; pub const PRIoLEAST32 : & [u8 ; 2] = b"o\0" ; pub const PRIoLEAST64 : & [u8 ; 3] = b"lo\0" ; pub const PRIoFAST8 : & [u8 ; 4] = b"hho\0" ; pub const PRIoFAST16 : & [u8 ; 3] = b"lo\0" ; pub const PRIoFAST32 : & [u8 ; 3] = b"lo\0" ; pub const PRIoFAST64 : & [u8 ; 3] = b"lo\0" ; pub const PRIu8 : & [u8 ; 4] = b"hhu\0" ; pub const PRIu16 : & [u8 ; 3] = b"hu\0" ; pub const PRIu32 : & [u8 ; 2] = b"u\0" ; pub const PRIu64 : & [u8 ; 3] = b"lu\0" ; pub const PRIuLEAST8 : & [u8 ; 4] = b"hhu\0" ; pub const PRIuLEAST16 : & [u8 ; 3] = b"hu\0" ; pub const PRIuLEAST32 : & [u8 ; 2] = b"u\0" ; pub const PRIuLEAST64 : & [u8 ; 3] = b"lu\0" ; pub const PRIuFAST8 : & [u8 ; 4] = b"hhu\0" ; pub const PRIuFAST16 : & [u8 ; 3] = b"lu\0" ; pub const PRIuFAST32 : & [u8 ; 3] = b"lu\0" ; pub const PRIuFAST64 : & [u8 ; 3] = b"lu\0" ; pub const PRIx8 : & [u8 ; 4] = b"hhx\0" ; pub const PRIx16 : & [u8 ; 3] = b"hx\0" ; pub const PRIx32 : & [u8 ; 2] = b"x\0" ; pub const PRIx64 : & [u8 ; 3] = b"lx\0" ; pub const PRIxLEAST8 : & [u8 ; 4] = b"hhx\0" ; pub const PRIxLEAST16 : & [u8 ; 3] = b"hx\0" ; pub const PRIxLEAST32 : & [u8 ; 2] = b"x\0" ; pub const PRIxLEAST64 : & [u8 ; 3] = b"lx\0" ; pub const PRIxFAST8 : & [u8 ; 4] = b"hhx\0" ; pub const PRIxFAST16 : & [u8 ; 3] = b"lx\0" ; pub const PRIxFAST32 : & [u8 ; 3] = b"lx\0" ; pub const PRIxFAST64 : & [u8 ; 3] = b"lx\0" ; pub const PRIX8 : & [u8 ; 4] = b"hhX\0" ; pub const PRIX16 : & [u8 ; 3] = b"hX\0" ; pub const PRIX32 : & [u8 ; 2] = b"X\0" ; pub const PRIX64 : & [u8 ; 3] = b"lX\0" ; pub const PRIXLEAST8 : & [u8 ; 4] = b"hhX\0" ; pub const PRIXLEAST16 : & [u8 ; 3] = b"hX\0" ; pub const PRIXLEAST32 : & [u8 ; 2] = b"X\0" ; pub const PRIXLEAST64 : & [u8 ; 3] = b"lX\0" ; pub const PRIXFAST8 : & [u8 ; 4] = b"hhX\0" ; pub const PRIXFAST16 : & [u8 ; 3] = b"lX\0" ; pub const PRIXFAST32 : & [u8 ; 3] = b"lX\0" ; pub const PRIXFAST64 : & [u8 ; 3] = b"lX\0" ; pub const PRIdMAX : & [u8 ; 3] = b"ld\0" ; pub const PRIiMAX : & [u8 ; 3] = b"li\0" ; pub const PRIoMAX : & [u8 ; 3] = b"lo\0" ; pub const PRIuMAX : & [u8 ; 3] = b"lu\0" ; pub const PRIxMAX : & [u8 ; 3] = b"lx\0" ; pub const PRIXMAX : & [u8 ; 3] = b"lX\0" ; pub const PRIdPTR : & [u8 ; 3] = b"ld\0" ; pub const PRIiPTR : & [u8 ; 3] = b"li\0" ; pub const PRIoPTR : & [u8 ; 3] = b"lo\0" ; pub const PRIuPTR : & [u8 ; 3] = b"lu\0" ; pub const PRIxPTR : & [u8 ; 3] = b"lx\0" ; pub const PRIXPTR : & [u8 ; 3] = b"lX\0" ; pub const SCNd8 : & [u8 ; 4] = b"hhd\0" ; pub const SCNd16 : & [u8 ; 3] = b"hd\0" ; pub const SCNd32 : & [u8 ; 2] = b"d\0" ; pub const SCNd64 : & [u8 ; 3] = b"ld\0" ; pub const SCNdLEAST8 : & [u8 ; 4] = b"hhd\0" ; pub const SCNdLEAST16 : & [u8 ; 3] = b"hd\0" ; pub const SCNdLEAST32 : & [u8 ; 2] = b"d\0" ; pub const SCNdLEAST64 : & [u8 ; 3] = b"ld\0" ; pub const SCNdFAST8 : & [u8 ; 4] = b"hhd\0" ; pub const SCNdFAST16 : & [u8 ; 3] = b"ld\0" ; pub const SCNdFAST32 : & [u8 ; 3] = b"ld\0" ; pub const SCNdFAST64 : & [u8 ; 3] = b"ld\0" ; pub const SCNi8 : & [u8 ; 4] = b"hhi\0" ; pub const SCNi16 : & [u8 ; 3] = b"hi\0" ; pub const SCNi32 : & [u8 ; 2] = b"i\0" ; pub const SCNi64 : & [u8 ; 3] = b"li\0" ; pub const SCNiLEAST8 : & [u8 ; 4] = b"hhi\0" ; pub const SCNiLEAST16 : & [u8 ; 3] = b"hi\0" ; pub const SCNiLEAST32 : & [u8 ; 2] = b"i\0" ; pub const SCNiLEAST64 : & [u8 ; 3] = b"li\0" ; pub const SCNiFAST8 : & [u8 ; 4] = b"hhi\0" ; pub const SCNiFAST16 : & [u8 ; 3] = b"li\0" ; pub const SCNiFAST32 : & [u8 ; 3] = b"li\0" ; pub const SCNiFAST64 : & [u8 ; 3] = b"li\0" ; pub const SCNu8 : & [u8 ; 4] = b"hhu\0" ; pub const SCNu16 : & [u8 ; 3] = b"hu\0" ; pub const SCNu32 : & [u8 ; 2] = b"u\0" ; pub const SCNu64 : & [u8 ; 3] = b"lu\0" ; pub const SCNuLEAST8 : & [u8 ; 4] = b"hhu\0" ; pub const SCNuLEAST16 : & [u8 ; 3] = b"hu\0" ; pub const SCNuLEAST32 : & [u8 ; 2] = b"u\0" ; pub const SCNuLEAST64 : & [u8 ; 3] = b"lu\0" ; pub const SCNuFAST8 : & [u8 ; 4] = b"hhu\0" ; pub const SCNuFAST16 : & [u8 ; 3] = b"lu\0" ; pub const SCNuFAST32 : & [u8 ; 3] = b"lu\0" ; pub const SCNuFAST64 : & [u8 ; 3] = b"lu\0" ; pub const SCNo8 : & [u8 ; 4] = b"hho\0" ; pub const SCNo16 : & [u8 ; 3] = b"ho\0" ; pub const SCNo32 : & [u8 ; 2] = b"o\0" ; pub const SCNo64 : & [u8 ; 3] = b"lo\0" ; pub const SCNoLEAST8 : & [u8 ; 4] = b"hho\0" ; pub const SCNoLEAST16 : & [u8 ; 3] = b"ho\0" ; pub const SCNoLEAST32 : & [u8 ; 2] = b"o\0" ; pub const SCNoLEAST64 : & [u8 ; 3] = b"lo\0" ; pub const SCNoFAST8 : & [u8 ; 4] = b"hho\0" ; pub const SCNoFAST16 : & [u8 ; 3] = b"lo\0" ; pub const SCNoFAST32 : & [u8 ; 3] = b"lo\0" ; pub const SCNoFAST64 : & [u8 ; 3] = b"lo\0" ; pub const SCNx8 : & [u8 ; 4] = b"hhx\0" ; pub const SCNx16 : & [u8 ; 3] = b"hx\0" ; pub const SCNx32 : & [u8 ; 2] = b"x\0" ; pub const SCNx64 : & [u8 ; 3] = b"lx\0" ; pub const SCNxLEAST8 : & [u8 ; 4] = b"hhx\0" ; pub const SCNxLEAST16 : & [u8 ; 3] = b"hx\0" ; pub const SCNxLEAST32 : & [u8 ; 2] = b"x\0" ; pub const SCNxLEAST64 : & [u8 ; 3] = b"lx\0" ; pub const SCNxFAST8 : & [u8 ; 4] = b"hhx\0" ; pub const SCNxFAST16 : & [u8 ; 3] = b"lx\0" ; pub const SCNxFAST32 : & [u8 ; 3] = b"lx\0" ; pub const SCNxFAST64 : & [u8 ; 3] = b"lx\0" ; pub const SCNdMAX : & [u8 ; 3] = b"ld\0" ; pub const SCNiMAX : & [u8 ; 3] = b"li\0" ; pub const SCNoMAX : & [u8 ; 3] = b"lo\0" ; pub const SCNuMAX : & [u8 ; 3] = b"lu\0" ; pub const SCNxMAX : & [u8 ; 3] = b"lx\0" ; pub const SCNdPTR : & [u8 ; 3] = b"ld\0" ; pub const SCNiPTR : & [u8 ; 3] = b"li\0" ; pub const SCNoPTR : & [u8 ; 3] = b"lo\0" ; pub const SCNuPTR : & [u8 ; 3] = b"lu\0" ; pub const SCNxPTR : & [u8 ; 3] = b"lx\0" ; pub const _MATH_H : u32 = 1 ; pub const _BITS_LIBM_SIMD_DECL_STUBS_H : u32 = 1 ; pub const __FP_LOGB0_IS_MIN : u32 = 1 ; pub const __FP_LOGBNAN_IS_MIN : u32 = 1 ; pub const FP_ILOGB0 : i32 = - 2147483648 ; pub const FP_ILOGBNAN : i32 = - 2147483648 ; pub const __MATH_DECLARING_DOUBLE : u32 = 1 ; pub const __MATH_DECLARING_FLOATN : u32 = 0 ; pub const __MATH_DECLARE_LDOUBLE : u32 = 1 ; pub const MATH_ERRNO : u32 = 1 ; pub const MATH_ERREXCEPT : u32 = 2 ; pub const math_errhandling : u32 = 3 ; pub const M_E : f64 = 2.718281828459045 ; pub const M_LOG2E : f64 = 1.4426950408889634 ; pub const M_LOG10E : f64 = 0.4342944819032518 ; pub const M_LN2 : f64 = 0.6931471805599453 ; pub const M_LN10 : f64 = 2.302585092994046 ; pub const M_PI : f64 = 3.141592653589793 ; pub const M_PI_2 : f64 = 1.5707963267948966 ; pub const M_PI_4 : f64 = 0.7853981633974483 ; pub const M_1_PI : f64 = 0.3183098861837907 ; pub const M_2_PI : f64 = 0.6366197723675814 ; pub const M_2_SQRTPI : f64 = 1.1283791670955126 ; pub const M_SQRT2 : f64 = 1.4142135623730951 ; pub const M_SQRT1_2 : f64 = 0.7071067811865476 ; pub const LAYER_INIT_SHA : i32 = - 1 ; pub const _STDIO_H : u32 = 1 ; pub const _____fpos_t_defined : u32 = 1 ; pub const ____mbstate_t_defined : u32 = 1 ; pub const _____fpos64_t_defined : u32 = 1 ; pub const ____FILE_defined : u32 = 1 ; pub const __FILE_defined : u32 = 1 ; pub const __struct_FILE_defined : u32 = 1 ; pub const _IO_EOF_SEEN : u32 = 16 ; pub const _IO_ERR_SEEN : u32 = 32 ; pub const _IO_USER_LOCK : u32 = 32768 ; pub const __cookie_io_functions_t_defined : u32 = 1 ; pub const _IOFBF : u32 = 0 ; pub const _IOLBF : u32 = 1 ; pub const _IONBF : u32 = 2 ; pub const BUFSIZ : u32 = 8192 ; pub const EOF : i32 = - 1 ; pub const SEEK_SET : u32 = 0 ; pub const SEEK_CUR : u32 = 1 ; pub const SEEK_END : u32 = 2 ; pub const P_tmpdir : & [u8 ; 5] = b"/tmp\0" ; pub const L_tmpnam : u32 = 20 ; pub const TMP_MAX : u32 = 238328 ; pub const _BITS_STDIO_LIM_H : u32 = 1 ; pub const FILENAME_MAX : u32 = 4096 ; pub const L_ctermid : u32 = 9 ; pub const FOPEN_MAX : u32 = 16 ; pub type wchar_t = :: std :: os :: raw :: c_int ; pub type __cfloat128 = __BindgenComplex < u128 > ; pub type _Float128 = u128 ; pub type _Float32 = f32 ; pub type _Float64 = f64 ; pub type _Float32x = f64 ; pub type _Float64x = u128 ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct div_t { pub quot : :: std :: os :: raw :: c_int , pub rem : :: std :: os :: raw :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of div_t"] [:: std :: mem :: size_of :: < div_t > () - 8usize] ; ["Alignment of div_t"] [:: std :: mem :: align_of :: < div_t > () - 4usize] ; ["Offset of field: div_t::quot"] [:: std :: mem :: offset_of ! (div_t , quot) - 0usize] ; ["Offset of field: div_t::rem"] [:: std :: mem :: offset_of ! (div_t , rem) - 4usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ldiv_t { pub quot : :: std :: os :: raw :: c_long , pub rem : :: std :: os :: raw :: c_long , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ldiv_t"] [:: std :: mem :: size_of :: < ldiv_t > () - 16usize] ; ["Alignment of ldiv_t"] [:: std :: mem :: align_of :: < ldiv_t > () - 8usize] ; ["Offset of field: ldiv_t::quot"] [:: std :: mem :: offset_of ! (ldiv_t , quot) - 0usize] ; ["Offset of field: ldiv_t::rem"] [:: std :: mem :: offset_of ! (ldiv_t , rem) - 8usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct lldiv_t { pub quot : :: std :: os :: raw :: c_longlong , pub rem : :: std :: os :: raw :: c_longlong , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of lldiv_t"] [:: std :: mem :: size_of :: < lldiv_t > () - 16usize] ; ["Alignment of lldiv_t"] [:: std :: mem :: align_of :: < lldiv_t > () - 8usize] ; ["Offset of field: lldiv_t::quot"] [:: std :: mem :: offset_of ! (lldiv_t , quot) - 0usize] ; ["Offset of field: lldiv_t::rem"] [:: std :: mem :: offset_of ! (lldiv_t , rem) - 8usize] ; } ; unsafe extern "C" { pub fn __ctype_get_mb_cur_max () -> usize ; } unsafe extern "C" { pub fn atof (__nptr : * const :: std :: os :: raw :: c_char) -> f64 ; } unsafe extern "C" { pub fn atoi (__nptr : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn atol (__nptr : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn atoll (__nptr : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn strtod (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char) -> f64 ; } unsafe extern "C" { pub fn strtof (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char) -> f32 ; } unsafe extern "C" { pub fn strtold (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char) -> u128 ; } unsafe extern "C" { pub fn strtol (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn strtoul (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_ulong ; } unsafe extern "C" { pub fn strtoq (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn strtouq (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_ulonglong ; } unsafe extern "C" { pub fn strtoll (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn strtoull (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_ulonglong ; } unsafe extern "C" { pub fn l64a (__n : :: std :: os :: raw :: c_long) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn a64l (__s : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_long ; } pub type __u_char = :: std :: os :: raw :: c_uchar ; pub type __u_short = :: std :: os :: raw :: c_ushort ; pub type __u_int = :: std :: os :: raw :: c_uint ; pub type __u_long = :: std :: os :: raw :: c_ulong ; 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_long ; pub type __uint64_t = :: std :: os :: raw :: c_ulong ; pub type __int_least8_t = __int8_t ; pub type __uint_least8_t = __uint8_t ; pub type __int_least16_t = __int16_t ; pub type __uint_least16_t = __uint16_t ; pub type __int_least32_t = __int32_t ; pub type __uint_least32_t = __uint32_t ; pub type __int_least64_t = __int64_t ; pub type __uint_least64_t = __uint64_t ; pub type __quad_t = :: std :: os :: raw :: c_long ; pub type __u_quad_t = :: std :: os :: raw :: c_ulong ; pub type __intmax_t = :: std :: os :: raw :: c_long ; pub type __uintmax_t = :: std :: os :: raw :: c_ulong ; pub type __dev_t = :: std :: os :: raw :: c_ulong ; pub type __uid_t = :: std :: os :: raw :: c_uint ; pub type __gid_t = :: std :: os :: raw :: c_uint ; pub type __ino_t = :: std :: os :: raw :: c_ulong ; pub type __ino64_t = :: std :: os :: raw :: c_ulong ; pub type __mode_t = :: std :: os :: raw :: c_uint ; pub type __nlink_t = :: std :: os :: raw :: c_ulong ; pub type __off_t = :: std :: os :: raw :: c_long ; pub type __off64_t = :: std :: os :: raw :: c_long ; pub type __pid_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [:: std :: os :: raw :: c_int ; 2usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __fsid_t"] [:: std :: mem :: size_of :: < __fsid_t > () - 8usize] ; ["Alignment of __fsid_t"] [:: std :: mem :: align_of :: < __fsid_t > () - 4usize] ; ["Offset of field: __fsid_t::__val"] [:: std :: mem :: offset_of ! (__fsid_t , __val) - 0usize] ; } ; pub type __clock_t = :: std :: os :: raw :: c_long ; pub type __rlim_t = :: std :: os :: raw :: c_ulong ; pub type __rlim64_t = :: std :: os :: raw :: c_ulong ; pub type __id_t = :: std :: os :: raw :: c_uint ; pub type __time_t = :: std :: os :: raw :: c_long ; pub type __useconds_t = :: std :: os :: raw :: c_uint ; pub type __suseconds_t = :: std :: os :: raw :: c_long ; pub type __suseconds64_t = :: std :: os :: raw :: c_long ; pub type __daddr_t = :: std :: os :: raw :: c_int ; pub type __key_t = :: std :: os :: raw :: c_int ; pub type __clockid_t = :: std :: os :: raw :: c_int ; pub type __timer_t = * mut :: std :: os :: raw :: c_void ; pub type __blksize_t = :: std :: os :: raw :: c_long ; pub type __blkcnt_t = :: std :: os :: raw :: c_long ; pub type __blkcnt64_t = :: std :: os :: raw :: c_long ; pub type __fsblkcnt_t = :: std :: os :: raw :: c_ulong ; pub type __fsblkcnt64_t = :: std :: os :: raw :: c_ulong ; pub type __fsfilcnt_t = :: std :: os :: raw :: c_ulong ; pub type __fsfilcnt64_t = :: std :: os :: raw :: c_ulong ; pub type __fsword_t = :: std :: os :: raw :: c_long ; pub type __ssize_t = :: std :: os :: raw :: c_long ; pub type __syscall_slong_t = :: std :: os :: raw :: c_long ; pub type __syscall_ulong_t = :: std :: os :: raw :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut :: std :: os :: raw :: c_char ; pub type __intptr_t = :: std :: os :: raw :: c_long ; pub type __socklen_t = :: std :: os :: raw :: c_uint ; pub type __sig_atomic_t = :: std :: os :: raw :: c_int ; pub type u_char = __u_char ; pub type u_short = __u_short ; pub type u_int = __u_int ; pub type u_long = __u_long ; pub type quad_t = __quad_t ; pub type u_quad_t = __u_quad_t ; pub type fsid_t = __fsid_t ; pub type loff_t = __loff_t ; pub type ino_t = __ino_t ; pub type dev_t = __dev_t ; pub type gid_t = __gid_t ; pub type mode_t = __mode_t ; pub type nlink_t = __nlink_t ; pub type uid_t = __uid_t ; pub type off_t = __off_t ; pub type pid_t = __pid_t ; pub type id_t = __id_t ; pub type daddr_t = __daddr_t ; pub type caddr_t = __caddr_t ; pub type key_t = __key_t ; pub type clock_t = __clock_t ; pub type clockid_t = __clockid_t ; pub type time_t = __time_t ; pub type timer_t = __timer_t ; pub type ulong = :: std :: os :: raw :: c_ulong ; pub type ushort = :: std :: os :: raw :: c_ushort ; pub type uint = :: std :: os :: raw :: c_uint ; pub type u_int8_t = __uint8_t ; pub type u_int16_t = __uint16_t ; pub type u_int32_t = __uint32_t ; pub type u_int64_t = __uint64_t ; pub type register_t = :: std :: os :: raw :: c_long ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __sigset_t { pub __val : [:: std :: os :: raw :: c_ulong ; 16usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __sigset_t"] [:: std :: mem :: size_of :: < __sigset_t > () - 128usize] ; ["Alignment of __sigset_t"] [:: std :: mem :: align_of :: < __sigset_t > () - 8usize] ; ["Offset of field: __sigset_t::__val"] [:: std :: mem :: offset_of ! (__sigset_t , __val) - 0usize] ; } ; pub type sigset_t = __sigset_t ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct timeval { pub tv_sec : __time_t , pub tv_usec : __suseconds_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of timeval"] [:: std :: mem :: size_of :: < timeval > () - 16usize] ; ["Alignment of timeval"] [:: std :: mem :: align_of :: < timeval > () - 8usize] ; ["Offset of field: timeval::tv_sec"] [:: std :: mem :: offset_of ! (timeval , tv_sec) - 0usize] ; ["Offset of field: timeval::tv_usec"] [:: std :: mem :: offset_of ! (timeval , tv_usec) - 8usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct timespec { pub tv_sec : __time_t , pub tv_nsec : __syscall_slong_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of timespec"] [:: std :: mem :: size_of :: < timespec > () - 16usize] ; ["Alignment of timespec"] [:: std :: mem :: align_of :: < timespec > () - 8usize] ; ["Offset of field: timespec::tv_sec"] [:: std :: mem :: offset_of ! (timespec , tv_sec) - 0usize] ; ["Offset of field: timespec::tv_nsec"] [:: std :: mem :: offset_of ! (timespec , tv_nsec) - 8usize] ; } ; pub type suseconds_t = __suseconds_t ; pub type __fd_mask = :: std :: os :: raw :: c_long ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct fd_set { pub __fds_bits : [__fd_mask ; 16usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of fd_set"] [:: std :: mem :: size_of :: < fd_set > () - 128usize] ; ["Alignment of fd_set"] [:: std :: mem :: align_of :: < fd_set > () - 8usize] ; ["Offset of field: fd_set::__fds_bits"] [:: std :: mem :: offset_of ! (fd_set , __fds_bits) - 0usize] ; } ; pub type fd_mask = __fd_mask ; unsafe extern "C" { pub fn select (__nfds : :: std :: os :: raw :: c_int , __readfds : * mut fd_set , __writefds : * mut fd_set , __exceptfds : * mut fd_set , __timeout : * mut timeval) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn pselect (__nfds : :: std :: os :: raw :: c_int , __readfds : * mut fd_set , __writefds : * mut fd_set , __exceptfds : * mut fd_set , __timeout : * const timespec , __sigmask : * const __sigset_t) -> :: std :: os :: raw :: c_int ; } pub type blksize_t = __blksize_t ; pub type blkcnt_t = __blkcnt_t ; pub type fsblkcnt_t = __fsblkcnt_t ; pub type fsfilcnt_t = __fsfilcnt_t ; # [repr (C)] # [derive (Copy , Clone)] pub union __atomic_wide_counter { pub __value64 : :: std :: os :: raw :: c_ulonglong , pub __value32 : __atomic_wide_counter__bindgen_ty_1 , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __atomic_wide_counter__bindgen_ty_1 { pub __low : :: std :: os :: raw :: c_uint , pub __high : :: std :: os :: raw :: c_uint , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __atomic_wide_counter__bindgen_ty_1"] [:: std :: mem :: size_of :: < __atomic_wide_counter__bindgen_ty_1 > () - 8usize] ; ["Alignment of __atomic_wide_counter__bindgen_ty_1"] [:: std :: mem :: align_of :: < __atomic_wide_counter__bindgen_ty_1 > () - 4usize] ; ["Offset of field: __atomic_wide_counter__bindgen_ty_1::__low"] [:: std :: mem :: offset_of ! (__atomic_wide_counter__bindgen_ty_1 , __low) - 0usize] ; ["Offset of field: __atomic_wide_counter__bindgen_ty_1::__high"] [:: std :: mem :: offset_of ! (__atomic_wide_counter__bindgen_ty_1 , __high) - 4usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __atomic_wide_counter"] [:: std :: mem :: size_of :: < __atomic_wide_counter > () - 8usize] ; ["Alignment of __atomic_wide_counter"] [:: std :: mem :: align_of :: < __atomic_wide_counter > () - 8usize] ; ["Offset of field: __atomic_wide_counter::__value64"] [:: std :: mem :: offset_of ! (__atomic_wide_counter , __value64) - 0usize] ; ["Offset of field: __atomic_wide_counter::__value32"] [:: std :: mem :: offset_of ! (__atomic_wide_counter , __value32) - 0usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_internal_list { pub __prev : * mut __pthread_internal_list , pub __next : * mut __pthread_internal_list , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __pthread_internal_list"] [:: std :: mem :: size_of :: < __pthread_internal_list > () - 16usize] ; ["Alignment of __pthread_internal_list"] [:: std :: mem :: align_of :: < __pthread_internal_list > () - 8usize] ; ["Offset of field: __pthread_internal_list::__prev"] [:: std :: mem :: offset_of ! (__pthread_internal_list , __prev) - 0usize] ; ["Offset of field: __pthread_internal_list::__next"] [:: std :: mem :: offset_of ! (__pthread_internal_list , __next) - 8usize] ; } ; pub type __pthread_list_t = __pthread_internal_list ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_internal_slist { pub __next : * mut __pthread_internal_slist , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __pthread_internal_slist"] [:: std :: mem :: size_of :: < __pthread_internal_slist > () - 8usize] ; ["Alignment of __pthread_internal_slist"] [:: std :: mem :: align_of :: < __pthread_internal_slist > () - 8usize] ; ["Offset of field: __pthread_internal_slist::__next"] [:: std :: mem :: offset_of ! (__pthread_internal_slist , __next) - 0usize] ; } ; pub type __pthread_slist_t = __pthread_internal_slist ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_mutex_s { pub __lock : :: std :: os :: raw :: c_int , pub __count : :: std :: os :: raw :: c_uint , pub __owner : :: std :: os :: raw :: c_int , pub __nusers : :: std :: os :: raw :: c_uint , pub __kind : :: std :: os :: raw :: c_int , pub __spins : :: std :: os :: raw :: c_short , pub __unused : :: std :: os :: raw :: c_short , pub __list : __pthread_list_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __pthread_mutex_s"] [:: std :: mem :: size_of :: < __pthread_mutex_s > () - 40usize] ; ["Alignment of __pthread_mutex_s"] [:: std :: mem :: align_of :: < __pthread_mutex_s > () - 8usize] ; ["Offset of field: __pthread_mutex_s::__lock"] [:: std :: mem :: offset_of ! (__pthread_mutex_s , __lock) - 0usize] ; ["Offset of field: __pthread_mutex_s::__count"] [:: std :: mem :: offset_of ! (__pthread_mutex_s , __count) - 4usize] ; ["Offset of field: __pthread_mutex_s::__owner"] [:: std :: mem :: offset_of ! (__pthread_mutex_s , __owner) - 8usize] ; ["Offset of field: __pthread_mutex_s::__nusers"] [:: std :: mem :: offset_of ! (__pthread_mutex_s , __nusers) - 12usize] ; ["Offset of field: __pthread_mutex_s::__kind"] [:: std :: mem :: offset_of ! (__pthread_mutex_s , __kind) - 16usize] ; ["Offset of field: __pthread_mutex_s::__spins"] [:: std :: mem :: offset_of ! (__pthread_mutex_s , __spins) - 20usize] ; ["Offset of field: __pthread_mutex_s::__unused"] [:: std :: mem :: offset_of ! (__pthread_mutex_s , __unused) - 22usize] ; ["Offset of field: __pthread_mutex_s::__list"] [:: std :: mem :: offset_of ! (__pthread_mutex_s , __list) - 24usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_rwlock_arch_t { pub __readers : :: std :: os :: raw :: c_uint , pub __writers : :: std :: os :: raw :: c_uint , pub __wrphase_futex : :: std :: os :: raw :: c_uint , pub __writers_futex : :: std :: os :: raw :: c_uint , pub __pad3 : :: std :: os :: raw :: c_uint , pub __pad4 : :: std :: os :: raw :: c_uint , pub __cur_writer : :: std :: os :: raw :: c_int , pub __shared : :: std :: os :: raw :: c_int , pub __pad1 : :: std :: os :: raw :: c_ulong , pub __pad2 : :: std :: os :: raw :: c_ulong , pub __flags : :: std :: os :: raw :: c_uint , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __pthread_rwlock_arch_t"] [:: std :: mem :: size_of :: < __pthread_rwlock_arch_t > () - 56usize] ; ["Alignment of __pthread_rwlock_arch_t"] [:: std :: mem :: align_of :: < __pthread_rwlock_arch_t > () - 8usize] ; ["Offset of field: __pthread_rwlock_arch_t::__readers"] [:: std :: mem :: offset_of ! (__pthread_rwlock_arch_t , __readers) - 0usize] ; ["Offset of field: __pthread_rwlock_arch_t::__writers"] [:: std :: mem :: offset_of ! (__pthread_rwlock_arch_t , __writers) - 4usize] ; ["Offset of field: __pthread_rwlock_arch_t::__wrphase_futex"] [:: std :: mem :: offset_of ! (__pthread_rwlock_arch_t , __wrphase_futex) - 8usize] ; ["Offset of field: __pthread_rwlock_arch_t::__writers_futex"] [:: std :: mem :: offset_of ! (__pthread_rwlock_arch_t , __writers_futex) - 12usize] ; ["Offset of field: __pthread_rwlock_arch_t::__pad3"] [:: std :: mem :: offset_of ! (__pthread_rwlock_arch_t , __pad3) - 16usize] ; ["Offset of field: __pthread_rwlock_arch_t::__pad4"] [:: std :: mem :: offset_of ! (__pthread_rwlock_arch_t , __pad4) - 20usize] ; ["Offset of field: __pthread_rwlock_arch_t::__cur_writer"] [:: std :: mem :: offset_of ! (__pthread_rwlock_arch_t , __cur_writer) - 24usize] ; ["Offset of field: __pthread_rwlock_arch_t::__shared"] [:: std :: mem :: offset_of ! (__pthread_rwlock_arch_t , __shared) - 28usize] ; ["Offset of field: __pthread_rwlock_arch_t::__pad1"] [:: std :: mem :: offset_of ! (__pthread_rwlock_arch_t , __pad1) - 32usize] ; ["Offset of field: __pthread_rwlock_arch_t::__pad2"] [:: std :: mem :: offset_of ! (__pthread_rwlock_arch_t , __pad2) - 40usize] ; ["Offset of field: __pthread_rwlock_arch_t::__flags"] [:: std :: mem :: offset_of ! (__pthread_rwlock_arch_t , __flags) - 48usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub struct __pthread_cond_s { pub __wseq : __atomic_wide_counter , pub __g1_start : __atomic_wide_counter , pub __g_size : [:: std :: os :: raw :: c_uint ; 2usize] , pub __g1_orig_size : :: std :: os :: raw :: c_uint , pub __wrefs : :: std :: os :: raw :: c_uint , pub __g_signals : [:: std :: os :: raw :: c_uint ; 2usize] , pub __unused_initialized_1 : :: std :: os :: raw :: c_uint , pub __unused_initialized_2 : :: std :: os :: raw :: c_uint , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __pthread_cond_s"] [:: std :: mem :: size_of :: < __pthread_cond_s > () - 48usize] ; ["Alignment of __pthread_cond_s"] [:: std :: mem :: align_of :: < __pthread_cond_s > () - 8usize] ; ["Offset of field: __pthread_cond_s::__wseq"] [:: std :: mem :: offset_of ! (__pthread_cond_s , __wseq) - 0usize] ; ["Offset of field: __pthread_cond_s::__g1_start"] [:: std :: mem :: offset_of ! (__pthread_cond_s , __g1_start) - 8usize] ; ["Offset of field: __pthread_cond_s::__g_size"] [:: std :: mem :: offset_of ! (__pthread_cond_s , __g_size) - 16usize] ; ["Offset of field: __pthread_cond_s::__g1_orig_size"] [:: std :: mem :: offset_of ! (__pthread_cond_s , __g1_orig_size) - 24usize] ; ["Offset of field: __pthread_cond_s::__wrefs"] [:: std :: mem :: offset_of ! (__pthread_cond_s , __wrefs) - 28usize] ; ["Offset of field: __pthread_cond_s::__g_signals"] [:: std :: mem :: offset_of ! (__pthread_cond_s , __g_signals) - 32usize] ; ["Offset of field: __pthread_cond_s::__unused_initialized_1"] [:: std :: mem :: offset_of ! (__pthread_cond_s , __unused_initialized_1) - 40usize] ; ["Offset of field: __pthread_cond_s::__unused_initialized_2"] [:: std :: mem :: offset_of ! (__pthread_cond_s , __unused_initialized_2) - 44usize] ; } ; pub type __tss_t = :: std :: os :: raw :: c_uint ; pub type __thrd_t = :: std :: os :: raw :: c_ulong ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __once_flag { pub __data : :: std :: os :: raw :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __once_flag"] [:: std :: mem :: size_of :: < __once_flag > () - 4usize] ; ["Alignment of __once_flag"] [:: std :: mem :: align_of :: < __once_flag > () - 4usize] ; ["Offset of field: __once_flag::__data"] [:: std :: mem :: offset_of ! (__once_flag , __data) - 0usize] ; } ; pub type pthread_t = :: std :: os :: raw :: c_ulong ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_mutexattr_t { pub __size : [:: std :: os :: raw :: c_char ; 4usize] , pub __align : :: std :: os :: raw :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_mutexattr_t"] [:: std :: mem :: size_of :: < pthread_mutexattr_t > () - 4usize] ; ["Alignment of pthread_mutexattr_t"] [:: std :: mem :: align_of :: < pthread_mutexattr_t > () - 4usize] ; ["Offset of field: pthread_mutexattr_t::__size"] [:: std :: mem :: offset_of ! (pthread_mutexattr_t , __size) - 0usize] ; ["Offset of field: pthread_mutexattr_t::__align"] [:: std :: mem :: offset_of ! (pthread_mutexattr_t , __align) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_condattr_t { pub __size : [:: std :: os :: raw :: c_char ; 4usize] , pub __align : :: std :: os :: raw :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_condattr_t"] [:: std :: mem :: size_of :: < pthread_condattr_t > () - 4usize] ; ["Alignment of pthread_condattr_t"] [:: std :: mem :: align_of :: < pthread_condattr_t > () - 4usize] ; ["Offset of field: pthread_condattr_t::__size"] [:: std :: mem :: offset_of ! (pthread_condattr_t , __size) - 0usize] ; ["Offset of field: pthread_condattr_t::__align"] [:: std :: mem :: offset_of ! (pthread_condattr_t , __align) - 0usize] ; } ; pub type pthread_key_t = :: std :: os :: raw :: c_uint ; pub type pthread_once_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_attr_t { pub __size : [:: std :: os :: raw :: c_char ; 56usize] , pub __align : :: std :: os :: raw :: c_long , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_attr_t"] [:: std :: mem :: size_of :: < pthread_attr_t > () - 56usize] ; ["Alignment of pthread_attr_t"] [:: std :: mem :: align_of :: < pthread_attr_t > () - 8usize] ; ["Offset of field: pthread_attr_t::__size"] [:: std :: mem :: offset_of ! (pthread_attr_t , __size) - 0usize] ; ["Offset of field: pthread_attr_t::__align"] [:: std :: mem :: offset_of ! (pthread_attr_t , __align) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_mutex_t { pub __data : __pthread_mutex_s , pub __size : [:: std :: os :: raw :: c_char ; 40usize] , pub __align : :: std :: os :: raw :: c_long , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_mutex_t"] [:: std :: mem :: size_of :: < pthread_mutex_t > () - 40usize] ; ["Alignment of pthread_mutex_t"] [:: std :: mem :: align_of :: < pthread_mutex_t > () - 8usize] ; ["Offset of field: pthread_mutex_t::__data"] [:: std :: mem :: offset_of ! (pthread_mutex_t , __data) - 0usize] ; ["Offset of field: pthread_mutex_t::__size"] [:: std :: mem :: offset_of ! (pthread_mutex_t , __size) - 0usize] ; ["Offset of field: pthread_mutex_t::__align"] [:: std :: mem :: offset_of ! (pthread_mutex_t , __align) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_cond_t { pub __data : __pthread_cond_s , pub __size : [:: std :: os :: raw :: c_char ; 48usize] , pub __align : :: std :: os :: raw :: c_longlong , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_cond_t"] [:: std :: mem :: size_of :: < pthread_cond_t > () - 48usize] ; ["Alignment of pthread_cond_t"] [:: std :: mem :: align_of :: < pthread_cond_t > () - 8usize] ; ["Offset of field: pthread_cond_t::__data"] [:: std :: mem :: offset_of ! (pthread_cond_t , __data) - 0usize] ; ["Offset of field: pthread_cond_t::__size"] [:: std :: mem :: offset_of ! (pthread_cond_t , __size) - 0usize] ; ["Offset of field: pthread_cond_t::__align"] [:: std :: mem :: offset_of ! (pthread_cond_t , __align) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_rwlock_t { pub __data : __pthread_rwlock_arch_t , pub __size : [:: std :: os :: raw :: c_char ; 56usize] , pub __align : :: std :: os :: raw :: c_long , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_rwlock_t"] [:: std :: mem :: size_of :: < pthread_rwlock_t > () - 56usize] ; ["Alignment of pthread_rwlock_t"] [:: std :: mem :: align_of :: < pthread_rwlock_t > () - 8usize] ; ["Offset of field: pthread_rwlock_t::__data"] [:: std :: mem :: offset_of ! (pthread_rwlock_t , __data) - 0usize] ; ["Offset of field: pthread_rwlock_t::__size"] [:: std :: mem :: offset_of ! (pthread_rwlock_t , __size) - 0usize] ; ["Offset of field: pthread_rwlock_t::__align"] [:: std :: mem :: offset_of ! (pthread_rwlock_t , __align) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_rwlockattr_t { pub __size : [:: std :: os :: raw :: c_char ; 8usize] , pub __align : :: std :: os :: raw :: c_long , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_rwlockattr_t"] [:: std :: mem :: size_of :: < pthread_rwlockattr_t > () - 8usize] ; ["Alignment of pthread_rwlockattr_t"] [:: std :: mem :: align_of :: < pthread_rwlockattr_t > () - 8usize] ; ["Offset of field: pthread_rwlockattr_t::__size"] [:: std :: mem :: offset_of ! (pthread_rwlockattr_t , __size) - 0usize] ; ["Offset of field: pthread_rwlockattr_t::__align"] [:: std :: mem :: offset_of ! (pthread_rwlockattr_t , __align) - 0usize] ; } ; pub type pthread_spinlock_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_barrier_t { pub __size : [:: std :: os :: raw :: c_char ; 32usize] , pub __align : :: std :: os :: raw :: c_long , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_barrier_t"] [:: std :: mem :: size_of :: < pthread_barrier_t > () - 32usize] ; ["Alignment of pthread_barrier_t"] [:: std :: mem :: align_of :: < pthread_barrier_t > () - 8usize] ; ["Offset of field: pthread_barrier_t::__size"] [:: std :: mem :: offset_of ! (pthread_barrier_t , __size) - 0usize] ; ["Offset of field: pthread_barrier_t::__align"] [:: std :: mem :: offset_of ! (pthread_barrier_t , __align) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_barrierattr_t { pub __size : [:: std :: os :: raw :: c_char ; 4usize] , pub __align : :: std :: os :: raw :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_barrierattr_t"] [:: std :: mem :: size_of :: < pthread_barrierattr_t > () - 4usize] ; ["Alignment of pthread_barrierattr_t"] [:: std :: mem :: align_of :: < pthread_barrierattr_t > () - 4usize] ; ["Offset of field: pthread_barrierattr_t::__size"] [:: std :: mem :: offset_of ! (pthread_barrierattr_t , __size) - 0usize] ; ["Offset of field: pthread_barrierattr_t::__align"] [:: std :: mem :: offset_of ! (pthread_barrierattr_t , __align) - 0usize] ; } ; unsafe extern "C" { pub fn random () -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn srandom (__seed : :: std :: os :: raw :: c_uint) ; } unsafe extern "C" { pub fn initstate (__seed : :: std :: os :: raw :: c_uint , __statebuf : * mut :: std :: os :: raw :: c_char , __statelen : usize) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn setstate (__statebuf : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct random_data { pub fptr : * mut i32 , pub rptr : * mut i32 , pub state : * mut i32 , pub rand_type : :: std :: os :: raw :: c_int , pub rand_deg : :: std :: os :: raw :: c_int , pub rand_sep : :: std :: os :: raw :: c_int , pub end_ptr : * mut i32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of random_data"] [:: std :: mem :: size_of :: < random_data > () - 48usize] ; ["Alignment of random_data"] [:: std :: mem :: align_of :: < random_data > () - 8usize] ; ["Offset of field: random_data::fptr"] [:: std :: mem :: offset_of ! (random_data , fptr) - 0usize] ; ["Offset of field: random_data::rptr"] [:: std :: mem :: offset_of ! (random_data , rptr) - 8usize] ; ["Offset of field: random_data::state"] [:: std :: mem :: offset_of ! (random_data , state) - 16usize] ; ["Offset of field: random_data::rand_type"] [:: std :: mem :: offset_of ! (random_data , rand_type) - 24usize] ; ["Offset of field: random_data::rand_deg"] [:: std :: mem :: offset_of ! (random_data , rand_deg) - 28usize] ; ["Offset of field: random_data::rand_sep"] [:: std :: mem :: offset_of ! (random_data , rand_sep) - 32usize] ; ["Offset of field: random_data::end_ptr"] [:: std :: mem :: offset_of ! (random_data , end_ptr) - 40usize] ; } ; unsafe extern "C" { pub fn random_r (__buf : * mut random_data , __result : * mut i32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn srandom_r (__seed : :: std :: os :: raw :: c_uint , __buf : * mut random_data) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn initstate_r (__seed : :: std :: os :: raw :: c_uint , __statebuf : * mut :: std :: os :: raw :: c_char , __statelen : usize , __buf : * mut random_data) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn setstate_r (__statebuf : * mut :: std :: os :: raw :: c_char , __buf : * mut random_data) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn rand () -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn srand (__seed : :: std :: os :: raw :: c_uint) ; } unsafe extern "C" { pub fn rand_r (__seed : * mut :: std :: os :: raw :: c_uint) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn drand48 () -> f64 ; } unsafe extern "C" { pub fn erand48 (__xsubi : * mut :: std :: os :: raw :: c_ushort) -> f64 ; } unsafe extern "C" { pub fn lrand48 () -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn nrand48 (__xsubi : * mut :: std :: os :: raw :: c_ushort) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn mrand48 () -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn jrand48 (__xsubi : * mut :: std :: os :: raw :: c_ushort) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn srand48 (__seedval : :: std :: os :: raw :: c_long) ; } unsafe extern "C" { pub fn seed48 (__seed16v : * mut :: std :: os :: raw :: c_ushort) -> * mut :: std :: os :: raw :: c_ushort ; } unsafe extern "C" { pub fn lcong48 (__param : * mut :: std :: os :: raw :: c_ushort) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct drand48_data { pub __x : [:: std :: os :: raw :: c_ushort ; 3usize] , pub __old_x : [:: std :: os :: raw :: c_ushort ; 3usize] , pub __c : :: std :: os :: raw :: c_ushort , pub __init : :: std :: os :: raw :: c_ushort , pub __a : :: std :: os :: raw :: c_ulonglong , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of drand48_data"] [:: std :: mem :: size_of :: < drand48_data > () - 24usize] ; ["Alignment of drand48_data"] [:: std :: mem :: align_of :: < drand48_data > () - 8usize] ; ["Offset of field: drand48_data::__x"] [:: std :: mem :: offset_of ! (drand48_data , __x) - 0usize] ; ["Offset of field: drand48_data::__old_x"] [:: std :: mem :: offset_of ! (drand48_data , __old_x) - 6usize] ; ["Offset of field: drand48_data::__c"] [:: std :: mem :: offset_of ! (drand48_data , __c) - 12usize] ; ["Offset of field: drand48_data::__init"] [:: std :: mem :: offset_of ! (drand48_data , __init) - 14usize] ; ["Offset of field: drand48_data::__a"] [:: std :: mem :: offset_of ! (drand48_data , __a) - 16usize] ; } ; unsafe extern "C" { pub fn drand48_r (__buffer : * mut drand48_data , __result : * mut f64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn erand48_r (__xsubi : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data , __result : * mut f64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn lrand48_r (__buffer : * mut drand48_data , __result : * mut :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn nrand48_r (__xsubi : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data , __result : * mut :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mrand48_r (__buffer : * mut drand48_data , __result : * mut :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn jrand48_r (__xsubi : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data , __result : * mut :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn srand48_r (__seedval : :: std :: os :: raw :: c_long , __buffer : * mut drand48_data) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn seed48_r (__seed16v : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn lcong48_r (__param : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn arc4random () -> __uint32_t ; } unsafe extern "C" { pub fn arc4random_buf (__buf : * mut :: std :: os :: raw :: c_void , __size : usize) ; } unsafe extern "C" { pub fn arc4random_uniform (__upper_bound : __uint32_t) -> __uint32_t ; } unsafe extern "C" { pub fn malloc (__size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } unsafe extern "C" { pub fn calloc (__nmemb : :: std :: os :: raw :: c_ulong , __size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } unsafe extern "C" { pub fn realloc (__ptr : * mut :: std :: os :: raw :: c_void , __size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } unsafe extern "C" { pub fn free (__ptr : * mut :: std :: os :: raw :: c_void) ; } unsafe extern "C" { pub fn reallocarray (__ptr : * mut :: std :: os :: raw :: c_void , __nmemb : usize , __size : usize) -> * mut :: std :: os :: raw :: c_void ; } unsafe extern "C" { pub fn alloca (__size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } unsafe extern "C" { pub fn valloc (__size : usize) -> * mut :: std :: os :: raw :: c_void ; } unsafe extern "C" { pub fn posix_memalign (__memptr : * mut * mut :: std :: os :: raw :: c_void , __alignment : usize , __size : usize) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn aligned_alloc (__alignment : :: std :: os :: raw :: c_ulong , __size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } unsafe extern "C" { pub fn abort () -> ! ; } unsafe extern "C" { pub fn atexit (__func : :: std :: option :: Option < unsafe extern "C" fn () >) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn at_quick_exit (__func : :: std :: option :: Option < unsafe extern "C" fn () >) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn on_exit (__func : :: std :: option :: Option < unsafe extern "C" fn (__status : :: std :: os :: raw :: c_int , __arg : * mut :: std :: os :: raw :: c_void) > , __arg : * mut :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn exit (__status : :: std :: os :: raw :: c_int) -> ! ; } unsafe extern "C" { pub fn quick_exit (__status : :: std :: os :: raw :: c_int) -> ! ; } unsafe extern "C" { pub fn _Exit (__status : :: std :: os :: raw :: c_int) -> ! ; } unsafe extern "C" { pub fn getenv (__name : * const :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn putenv (__string : * mut :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn setenv (__name : * const :: std :: os :: raw :: c_char , __value : * const :: std :: os :: raw :: c_char , __replace : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn unsetenv (__name : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn clearenv () -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mktemp (__template : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn mkstemp (__template : * mut :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mkstemps (__template : * mut :: std :: os :: raw :: c_char , __suffixlen : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mkdtemp (__template : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn system (__command : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn realpath (__name : * const :: std :: os :: raw :: c_char , __resolved : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } pub type __compar_fn_t = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * const :: std :: os :: raw :: c_void , arg2 : * const :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int > ; unsafe extern "C" { pub fn bsearch (__key : * const :: std :: os :: raw :: c_void , __base : * const :: std :: os :: raw :: c_void , __nmemb : usize , __size : usize , __compar : __compar_fn_t) -> * mut :: std :: os :: raw :: c_void ; } unsafe extern "C" { pub fn qsort (__base : * mut :: std :: os :: raw :: c_void , __nmemb : usize , __size : usize , __compar : __compar_fn_t) ; } unsafe extern "C" { pub fn abs (__x : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn labs (__x : :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn llabs (__x : :: std :: os :: raw :: c_longlong) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn div (__numer : :: std :: os :: raw :: c_int , __denom : :: std :: os :: raw :: c_int) -> div_t ; } unsafe extern "C" { pub fn ldiv (__numer : :: std :: os :: raw :: c_long , __denom : :: std :: os :: raw :: c_long) -> ldiv_t ; } unsafe extern "C" { pub fn lldiv (__numer : :: std :: os :: raw :: c_longlong , __denom : :: std :: os :: raw :: c_longlong) -> lldiv_t ; } unsafe extern "C" { pub fn ecvt (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn fcvt (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn gcvt (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn qecvt (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn qfcvt (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn qgcvt (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn ecvt_r (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char , __len : usize) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn fcvt_r (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char , __len : usize) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn qecvt_r (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char , __len : usize) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn qfcvt_r (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char , __len : usize) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mblen (__s : * const :: std :: os :: raw :: c_char , __n : usize) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mbtowc (__pwc : * mut wchar_t , __s : * const :: std :: os :: raw :: c_char , __n : usize) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn wctomb (__s : * mut :: std :: os :: raw :: c_char , __wchar : wchar_t) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mbstowcs (__pwcs : * mut wchar_t , __s : * const :: std :: os :: raw :: c_char , __n : usize) -> usize ; } unsafe extern "C" { pub fn wcstombs (__s : * mut :: std :: os :: raw :: c_char , __pwcs : * const wchar_t , __n : usize) -> usize ; } unsafe extern "C" { pub fn rpmatch (__response : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getsubopt (__optionp : * mut * mut :: std :: os :: raw :: c_char , __tokens : * const * mut :: std :: os :: raw :: c_char , __valuep : * mut * mut :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getloadavg (__loadavg : * mut f64 , __nelem : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } # [repr (C)] # [repr (align (16))] # [derive (Debug , Copy , Clone)] pub struct max_align_t { pub __clang_max_align_nonce1 : :: std :: os :: raw :: c_longlong , pub __bindgen_padding_0 : u64 , pub __clang_max_align_nonce2 : u128 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of max_align_t"] [:: std :: mem :: size_of :: < max_align_t > () - 32usize] ; ["Alignment of max_align_t"] [:: std :: mem :: align_of :: < max_align_t > () - 16usize] ; ["Offset of field: max_align_t::__clang_max_align_nonce1"] [:: std :: mem :: offset_of ! (max_align_t , __clang_max_align_nonce1) - 0usize] ; ["Offset of field: max_align_t::__clang_max_align_nonce2"] [:: std :: mem :: offset_of ! (max_align_t , __clang_max_align_nonce2) - 16usize] ; } ; pub type int_least8_t = __int_least8_t ; pub type int_least16_t = __int_least16_t ; pub type int_least32_t = __int_least32_t ; pub type int_least64_t = __int_least64_t ; pub type uint_least8_t = __uint_least8_t ; pub type uint_least16_t = __uint_least16_t ; pub type uint_least32_t = __uint_least32_t ; pub type uint_least64_t = __uint_least64_t ; pub type int_fast8_t = :: std :: os :: raw :: c_schar ; pub type int_fast16_t = :: std :: os :: raw :: c_long ; pub type int_fast32_t = :: std :: os :: raw :: c_long ; pub type int_fast64_t = :: std :: os :: raw :: c_long ; pub type uint_fast8_t = :: std :: os :: raw :: c_uchar ; pub type uint_fast16_t = :: std :: os :: raw :: c_ulong ; pub type uint_fast32_t = :: std :: os :: raw :: c_ulong ; pub type uint_fast64_t = :: std :: os :: raw :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub type __gwchar_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct imaxdiv_t { pub quot : :: std :: os :: raw :: c_long , pub rem : :: std :: os :: raw :: c_long , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of imaxdiv_t"] [:: std :: mem :: size_of :: < imaxdiv_t > () - 16usize] ; ["Alignment of imaxdiv_t"] [:: std :: mem :: align_of :: < imaxdiv_t > () - 8usize] ; ["Offset of field: imaxdiv_t::quot"] [:: std :: mem :: offset_of ! (imaxdiv_t , quot) - 0usize] ; ["Offset of field: imaxdiv_t::rem"] [:: std :: mem :: offset_of ! (imaxdiv_t , rem) - 8usize] ; } ; unsafe extern "C" { pub fn imaxabs (__n : intmax_t) -> intmax_t ; } unsafe extern "C" { pub fn imaxdiv (__numer : intmax_t , __denom : intmax_t) -> imaxdiv_t ; } unsafe extern "C" { pub fn strtoimax (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> intmax_t ; } unsafe extern "C" { pub fn strtoumax (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> uintmax_t ; } unsafe extern "C" { pub fn wcstoimax (__nptr : * const __gwchar_t , __endptr : * mut * mut __gwchar_t , __base : :: std :: os :: raw :: c_int) -> intmax_t ; } unsafe extern "C" { pub fn wcstoumax (__nptr : * const __gwchar_t , __endptr : * mut * mut __gwchar_t , __base : :: std :: os :: raw :: c_int) -> uintmax_t ; } # [doc = "=============================================================================\n                      Compiler and Platform Features\n============================================================================="] pub type i8_ = i8 ; pub type u8_ = u8 ; pub type i16_ = i16 ; pub type u16_ = u16 ; pub type i32_ = i32 ; pub type u32_ = u32 ; pub type i64_ = i64 ; pub type u64_ = u64 ; pub type f32_ = f32 ; pub type f64_ = f64 ; # [doc = "=============================================================================\n                               Xoroshiro 128\n============================================================================="] # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Xoroshiro { pub lo : u64 , pub hi : u64 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Xoroshiro"] [:: std :: mem :: size_of :: < Xoroshiro > () - 16usize] ; ["Alignment of Xoroshiro"] [:: std :: mem :: align_of :: < Xoroshiro > () - 8usize] ; ["Offset of field: Xoroshiro::lo"] [:: std :: mem :: offset_of ! (Xoroshiro , lo) - 0usize] ; ["Offset of field: Xoroshiro::hi"] [:: std :: mem :: offset_of ! (Xoroshiro , hi) - 8usize] ; } ; pub type float_t = f32 ; pub type double_t = f64 ; unsafe extern "C" { pub fn __fpclassify (__value : f64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __signbit (__value : f64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __isinf (__value : f64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __finite (__value : f64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __isnan (__value : f64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __iseqsig (__x : f64 , __y : f64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __issignaling (__value : f64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn acos (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __acos (__x : f64) -> f64 ; } unsafe extern "C" { pub fn asin (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __asin (__x : f64) -> f64 ; } unsafe extern "C" { pub fn atan (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __atan (__x : f64) -> f64 ; } unsafe extern "C" { pub fn atan2 (__y : f64 , __x : f64) -> f64 ; } unsafe extern "C" { pub fn __atan2 (__y : f64 , __x : f64) -> f64 ; } unsafe extern "C" { pub fn cos (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __cos (__x : f64) -> f64 ; } unsafe extern "C" { pub fn sin (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __sin (__x : f64) -> f64 ; } unsafe extern "C" { pub fn tan (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __tan (__x : f64) -> f64 ; } unsafe extern "C" { pub fn cosh (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __cosh (__x : f64) -> f64 ; } unsafe extern "C" { pub fn sinh (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __sinh (__x : f64) -> f64 ; } unsafe extern "C" { pub fn tanh (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __tanh (__x : f64) -> f64 ; } unsafe extern "C" { pub fn acosh (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __acosh (__x : f64) -> f64 ; } unsafe extern "C" { pub fn asinh (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __asinh (__x : f64) -> f64 ; } unsafe extern "C" { pub fn atanh (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __atanh (__x : f64) -> f64 ; } unsafe extern "C" { pub fn exp (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __exp (__x : f64) -> f64 ; } unsafe extern "C" { pub fn frexp (__x : f64 , __exponent : * mut :: std :: os :: raw :: c_int) -> f64 ; } unsafe extern "C" { pub fn __frexp (__x : f64 , __exponent : * mut :: std :: os :: raw :: c_int) -> f64 ; } unsafe extern "C" { pub fn ldexp (__x : f64 , __exponent : :: std :: os :: raw :: c_int) -> f64 ; } unsafe extern "C" { pub fn __ldexp (__x : f64 , __exponent : :: std :: os :: raw :: c_int) -> f64 ; } unsafe extern "C" { pub fn log (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __log (__x : f64) -> f64 ; } unsafe extern "C" { pub fn log10 (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __log10 (__x : f64) -> f64 ; } unsafe extern "C" { pub fn modf (__x : f64 , __iptr : * mut f64) -> f64 ; } unsafe extern "C" { pub fn __modf (__x : f64 , __iptr : * mut f64) -> f64 ; } unsafe extern "C" { pub fn expm1 (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __expm1 (__x : f64) -> f64 ; } unsafe extern "C" { pub fn log1p (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __log1p (__x : f64) -> f64 ; } unsafe extern "C" { pub fn logb (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __logb (__x : f64) -> f64 ; } unsafe extern "C" { pub fn exp2 (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __exp2 (__x : f64) -> f64 ; } unsafe extern "C" { pub fn log2 (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __log2 (__x : f64) -> f64 ; } unsafe extern "C" { pub fn pow (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn __pow (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn sqrt (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __sqrt (__x : f64) -> f64 ; } unsafe extern "C" { pub fn hypot (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn __hypot (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn cbrt (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __cbrt (__x : f64) -> f64 ; } unsafe extern "C" { pub fn ceil (__x : f64) -> f64 ; } unsafe extern "C" { pub fn fabs (__x : f64) -> f64 ; } unsafe extern "C" { pub fn floor (__x : f64) -> f64 ; } unsafe extern "C" { pub fn fmod (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn __fmod (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn isinf (__value : f64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn finite (__value : f64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn drem (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn __drem (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn significand (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __significand (__x : f64) -> f64 ; } unsafe extern "C" { pub fn copysign (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn nan (__tagb : * const :: std :: os :: raw :: c_char) -> f64 ; } unsafe extern "C" { pub fn __nan (__tagb : * const :: std :: os :: raw :: c_char) -> f64 ; } unsafe extern "C" { pub fn isnan (__value : f64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn j0 (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn __j0 (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn j1 (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn __j1 (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn jn (arg1 : :: std :: os :: raw :: c_int , arg2 : f64) -> f64 ; } unsafe extern "C" { pub fn __jn (arg1 : :: std :: os :: raw :: c_int , arg2 : f64) -> f64 ; } unsafe extern "C" { pub fn y0 (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn __y0 (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn y1 (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn __y1 (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn yn (arg1 : :: std :: os :: raw :: c_int , arg2 : f64) -> f64 ; } unsafe extern "C" { pub fn __yn (arg1 : :: std :: os :: raw :: c_int , arg2 : f64) -> f64 ; } unsafe extern "C" { pub fn erf (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn __erf (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn erfc (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn __erfc (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn lgamma (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn __lgamma (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn tgamma (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn __tgamma (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn gamma (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn __gamma (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn lgamma_r (arg1 : f64 , __signgamp : * mut :: std :: os :: raw :: c_int) -> f64 ; } unsafe extern "C" { pub fn __lgamma_r (arg1 : f64 , __signgamp : * mut :: std :: os :: raw :: c_int) -> f64 ; } unsafe extern "C" { pub fn rint (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __rint (__x : f64) -> f64 ; } unsafe extern "C" { pub fn nextafter (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn __nextafter (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn nexttoward (__x : f64 , __y : u128) -> f64 ; } unsafe extern "C" { pub fn __nexttoward (__x : f64 , __y : u128) -> f64 ; } unsafe extern "C" { pub fn remainder (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn __remainder (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn scalbn (__x : f64 , __n : :: std :: os :: raw :: c_int) -> f64 ; } unsafe extern "C" { pub fn __scalbn (__x : f64 , __n : :: std :: os :: raw :: c_int) -> f64 ; } unsafe extern "C" { pub fn ilogb (__x : f64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __ilogb (__x : f64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn scalbln (__x : f64 , __n : :: std :: os :: raw :: c_long) -> f64 ; } unsafe extern "C" { pub fn __scalbln (__x : f64 , __n : :: std :: os :: raw :: c_long) -> f64 ; } unsafe extern "C" { pub fn nearbyint (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __nearbyint (__x : f64) -> f64 ; } unsafe extern "C" { pub fn round (__x : f64) -> f64 ; } unsafe extern "C" { pub fn trunc (__x : f64) -> f64 ; } unsafe extern "C" { pub fn remquo (__x : f64 , __y : f64 , __quo : * mut :: std :: os :: raw :: c_int) -> f64 ; } unsafe extern "C" { pub fn __remquo (__x : f64 , __y : f64 , __quo : * mut :: std :: os :: raw :: c_int) -> f64 ; } unsafe extern "C" { pub fn lrint (__x : f64) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn __lrint (__x : f64) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn llrint (__x : f64) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn __llrint (__x : f64) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn lround (__x : f64) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn __lround (__x : f64) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn llround (__x : f64) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn __llround (__x : f64) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn fdim (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn __fdim (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn fmax (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn fmin (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn fma (__x : f64 , __y : f64 , __z : f64) -> f64 ; } unsafe extern "C" { pub fn __fma (__x : f64 , __y : f64 , __z : f64) -> f64 ; } unsafe extern "C" { pub fn scalb (__x : f64 , __n : f64) -> f64 ; } unsafe extern "C" { pub fn __scalb (__x : f64 , __n : f64) -> f64 ; } unsafe extern "C" { pub fn __fpclassifyf (__value : f32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __signbitf (__value : f32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __isinff (__value : f32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __finitef (__value : f32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __isnanf (__value : f32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __iseqsigf (__x : f32 , __y : f32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __issignalingf (__value : f32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn acosf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __acosf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn asinf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __asinf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn atanf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __atanf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn atan2f (__y : f32 , __x : f32) -> f32 ; } unsafe extern "C" { pub fn __atan2f (__y : f32 , __x : f32) -> f32 ; } unsafe extern "C" { pub fn cosf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __cosf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn sinf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __sinf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn tanf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __tanf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn coshf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __coshf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn sinhf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __sinhf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn tanhf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __tanhf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn acoshf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __acoshf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn asinhf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __asinhf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn atanhf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __atanhf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn expf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __expf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn frexpf (__x : f32 , __exponent : * mut :: std :: os :: raw :: c_int) -> f32 ; } unsafe extern "C" { pub fn __frexpf (__x : f32 , __exponent : * mut :: std :: os :: raw :: c_int) -> f32 ; } unsafe extern "C" { pub fn ldexpf (__x : f32 , __exponent : :: std :: os :: raw :: c_int) -> f32 ; } unsafe extern "C" { pub fn __ldexpf (__x : f32 , __exponent : :: std :: os :: raw :: c_int) -> f32 ; } unsafe extern "C" { pub fn logf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __logf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn log10f (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __log10f (__x : f32) -> f32 ; } unsafe extern "C" { pub fn modff (__x : f32 , __iptr : * mut f32) -> f32 ; } unsafe extern "C" { pub fn __modff (__x : f32 , __iptr : * mut f32) -> f32 ; } unsafe extern "C" { pub fn expm1f (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __expm1f (__x : f32) -> f32 ; } unsafe extern "C" { pub fn log1pf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __log1pf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn logbf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __logbf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn exp2f (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __exp2f (__x : f32) -> f32 ; } unsafe extern "C" { pub fn log2f (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __log2f (__x : f32) -> f32 ; } unsafe extern "C" { pub fn powf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn __powf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn sqrtf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __sqrtf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn hypotf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn __hypotf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn cbrtf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __cbrtf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn ceilf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn fabsf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn floorf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn fmodf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn __fmodf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn isinff (__value : f32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn finitef (__value : f32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn dremf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn __dremf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn significandf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __significandf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn copysignf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn nanf (__tagb : * const :: std :: os :: raw :: c_char) -> f32 ; } unsafe extern "C" { pub fn __nanf (__tagb : * const :: std :: os :: raw :: c_char) -> f32 ; } unsafe extern "C" { pub fn isnanf (__value : f32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn j0f (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn __j0f (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn j1f (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn __j1f (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn jnf (arg1 : :: std :: os :: raw :: c_int , arg2 : f32) -> f32 ; } unsafe extern "C" { pub fn __jnf (arg1 : :: std :: os :: raw :: c_int , arg2 : f32) -> f32 ; } unsafe extern "C" { pub fn y0f (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn __y0f (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn y1f (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn __y1f (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn ynf (arg1 : :: std :: os :: raw :: c_int , arg2 : f32) -> f32 ; } unsafe extern "C" { pub fn __ynf (arg1 : :: std :: os :: raw :: c_int , arg2 : f32) -> f32 ; } unsafe extern "C" { pub fn erff (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn __erff (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn erfcf (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn __erfcf (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn lgammaf (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn __lgammaf (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn tgammaf (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn __tgammaf (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn gammaf (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn __gammaf (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn lgammaf_r (arg1 : f32 , __signgamp : * mut :: std :: os :: raw :: c_int) -> f32 ; } unsafe extern "C" { pub fn __lgammaf_r (arg1 : f32 , __signgamp : * mut :: std :: os :: raw :: c_int) -> f32 ; } unsafe extern "C" { pub fn rintf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __rintf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn nextafterf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn __nextafterf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn nexttowardf (__x : f32 , __y : u128) -> f32 ; } unsafe extern "C" { pub fn __nexttowardf (__x : f32 , __y : u128) -> f32 ; } unsafe extern "C" { pub fn remainderf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn __remainderf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn scalbnf (__x : f32 , __n : :: std :: os :: raw :: c_int) -> f32 ; } unsafe extern "C" { pub fn __scalbnf (__x : f32 , __n : :: std :: os :: raw :: c_int) -> f32 ; } unsafe extern "C" { pub fn ilogbf (__x : f32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __ilogbf (__x : f32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn scalblnf (__x : f32 , __n : :: std :: os :: raw :: c_long) -> f32 ; } unsafe extern "C" { pub fn __scalblnf (__x : f32 , __n : :: std :: os :: raw :: c_long) -> f32 ; } unsafe extern "C" { pub fn nearbyintf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __nearbyintf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn roundf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn truncf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn remquof (__x : f32 , __y : f32 , __quo : * mut :: std :: os :: raw :: c_int) -> f32 ; } unsafe extern "C" { pub fn __remquof (__x : f32 , __y : f32 , __quo : * mut :: std :: os :: raw :: c_int) -> f32 ; } unsafe extern "C" { pub fn lrintf (__x : f32) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn __lrintf (__x : f32) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn llrintf (__x : f32) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn __llrintf (__x : f32) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn lroundf (__x : f32) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn __lroundf (__x : f32) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn llroundf (__x : f32) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn __llroundf (__x : f32) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn fdimf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn __fdimf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn fmaxf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn fminf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn fmaf (__x : f32 , __y : f32 , __z : f32) -> f32 ; } unsafe extern "C" { pub fn __fmaf (__x : f32 , __y : f32 , __z : f32) -> f32 ; } unsafe extern "C" { pub fn scalbf (__x : f32 , __n : f32) -> f32 ; } unsafe extern "C" { pub fn __scalbf (__x : f32 , __n : f32) -> f32 ; } unsafe extern "C" { pub fn __fpclassifyl (__value : u128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __signbitl (__value : u128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __isinfl (__value : u128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __finitel (__value : u128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __isnanl (__value : u128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __iseqsigl (__x : u128 , __y : u128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __issignalingl (__value : u128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn acosl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __acosl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn asinl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __asinl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn atanl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __atanl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn atan2l (__y : u128 , __x : u128) -> u128 ; } unsafe extern "C" { pub fn __atan2l (__y : u128 , __x : u128) -> u128 ; } unsafe extern "C" { pub fn cosl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __cosl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn sinl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __sinl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn tanl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __tanl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn coshl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __coshl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn sinhl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __sinhl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn tanhl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __tanhl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn acoshl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __acoshl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn asinhl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __asinhl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn atanhl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __atanhl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn expl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __expl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn frexpl (__x : u128 , __exponent : * mut :: std :: os :: raw :: c_int) -> u128 ; } unsafe extern "C" { pub fn __frexpl (__x : u128 , __exponent : * mut :: std :: os :: raw :: c_int) -> u128 ; } unsafe extern "C" { pub fn ldexpl (__x : u128 , __exponent : :: std :: os :: raw :: c_int) -> u128 ; } unsafe extern "C" { pub fn __ldexpl (__x : u128 , __exponent : :: std :: os :: raw :: c_int) -> u128 ; } unsafe extern "C" { pub fn logl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __logl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn log10l (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __log10l (__x : u128) -> u128 ; } unsafe extern "C" { pub fn modfl (__x : u128 , __iptr : * mut u128) -> u128 ; } unsafe extern "C" { pub fn __modfl (__x : u128 , __iptr : * mut u128) -> u128 ; } unsafe extern "C" { pub fn expm1l (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __expm1l (__x : u128) -> u128 ; } unsafe extern "C" { pub fn log1pl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __log1pl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn logbl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __logbl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn exp2l (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __exp2l (__x : u128) -> u128 ; } unsafe extern "C" { pub fn log2l (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __log2l (__x : u128) -> u128 ; } unsafe extern "C" { pub fn powl (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn __powl (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn sqrtl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __sqrtl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn hypotl (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn __hypotl (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn cbrtl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __cbrtl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn ceill (__x : u128) -> u128 ; } unsafe extern "C" { pub fn fabsl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn floorl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn fmodl (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn __fmodl (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn isinfl (__value : u128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn finitel (__value : u128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn dreml (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn __dreml (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn significandl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __significandl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn copysignl (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn nanl (__tagb : * const :: std :: os :: raw :: c_char) -> u128 ; } unsafe extern "C" { pub fn __nanl (__tagb : * const :: std :: os :: raw :: c_char) -> u128 ; } unsafe extern "C" { pub fn isnanl (__value : u128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn j0l (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn __j0l (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn j1l (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn __j1l (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn jnl (arg1 : :: std :: os :: raw :: c_int , arg2 : u128) -> u128 ; } unsafe extern "C" { pub fn __jnl (arg1 : :: std :: os :: raw :: c_int , arg2 : u128) -> u128 ; } unsafe extern "C" { pub fn y0l (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn __y0l (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn y1l (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn __y1l (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn ynl (arg1 : :: std :: os :: raw :: c_int , arg2 : u128) -> u128 ; } unsafe extern "C" { pub fn __ynl (arg1 : :: std :: os :: raw :: c_int , arg2 : u128) -> u128 ; } unsafe extern "C" { pub fn erfl (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn __erfl (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn erfcl (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn __erfcl (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn lgammal (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn __lgammal (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn tgammal (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn __tgammal (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn gammal (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn __gammal (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn lgammal_r (arg1 : u128 , __signgamp : * mut :: std :: os :: raw :: c_int) -> u128 ; } unsafe extern "C" { pub fn __lgammal_r (arg1 : u128 , __signgamp : * mut :: std :: os :: raw :: c_int) -> u128 ; } unsafe extern "C" { pub fn rintl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __rintl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn nextafterl (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn __nextafterl (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn nexttowardl (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn __nexttowardl (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn remainderl (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn __remainderl (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn scalbnl (__x : u128 , __n : :: std :: os :: raw :: c_int) -> u128 ; } unsafe extern "C" { pub fn __scalbnl (__x : u128 , __n : :: std :: os :: raw :: c_int) -> u128 ; } unsafe extern "C" { pub fn ilogbl (__x : u128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __ilogbl (__x : u128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn scalblnl (__x : u128 , __n : :: std :: os :: raw :: c_long) -> u128 ; } unsafe extern "C" { pub fn __scalblnl (__x : u128 , __n : :: std :: os :: raw :: c_long) -> u128 ; } unsafe extern "C" { pub fn nearbyintl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __nearbyintl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn roundl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn truncl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn remquol (__x : u128 , __y : u128 , __quo : * mut :: std :: os :: raw :: c_int) -> u128 ; } unsafe extern "C" { pub fn __remquol (__x : u128 , __y : u128 , __quo : * mut :: std :: os :: raw :: c_int) -> u128 ; } unsafe extern "C" { pub fn lrintl (__x : u128) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn __lrintl (__x : u128) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn llrintl (__x : u128) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn __llrintl (__x : u128) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn lroundl (__x : u128) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn __lroundl (__x : u128) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn llroundl (__x : u128) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn __llroundl (__x : u128) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn fdiml (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn __fdiml (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn fmaxl (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn fminl (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn fmal (__x : u128 , __y : u128 , __z : u128) -> u128 ; } unsafe extern "C" { pub fn __fmal (__x : u128 , __y : u128 , __z : u128) -> u128 ; } unsafe extern "C" { pub fn scalbl (__x : u128 , __n : u128) -> u128 ; } unsafe extern "C" { pub fn __scalbl (__x : u128 , __n : u128) -> u128 ; } unsafe extern "C" { pub fn __fpclassifyf128 (__value : _Float128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __signbitf128 (__value : _Float128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __isinff128 (__value : _Float128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __finitef128 (__value : _Float128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __isnanf128 (__value : _Float128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __iseqsigf128 (__x : _Float128 , __y : _Float128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __issignalingf128 (__value : _Float128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub static mut signgam : :: std :: os :: raw :: c_int ; } pub const FP_NAN : _bindgen_ty_1 = _bindgen_ty_1 (0) ; pub const FP_INFINITE : _bindgen_ty_1 = _bindgen_ty_1 (1) ; pub const FP_ZERO : _bindgen_ty_1 = _bindgen_ty_1 (2) ; pub const FP_SUBNORMAL : _bindgen_ty_1 = _bindgen_ty_1 (3) ; pub const FP_NORMAL : _bindgen_ty_1 = _bindgen_ty_1 (4) ; # [repr (transparent)] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct _bindgen_ty_1 (pub :: std :: os :: raw :: c_uint) ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct PerlinNoise { pub d : [u8 ; 257usize] , pub h2 : u8 , pub a : f64 , pub b : f64 , pub c : f64 , pub amplitude : f64 , pub lacunarity : f64 , pub d2 : f64 , pub t2 : f64 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of PerlinNoise"] [:: std :: mem :: size_of :: < PerlinNoise > () - 320usize] ; ["Alignment of PerlinNoise"] [:: std :: mem :: align_of :: < PerlinNoise > () - 8usize] ; ["Offset of field: PerlinNoise::d"] [:: std :: mem :: offset_of ! (PerlinNoise , d) - 0usize] ; ["Offset of field: PerlinNoise::h2"] [:: std :: mem :: offset_of ! (PerlinNoise , h2) - 257usize] ; ["Offset of field: PerlinNoise::a"] [:: std :: mem :: offset_of ! (PerlinNoise , a) - 264usize] ; ["Offset of field: PerlinNoise::b"] [:: std :: mem :: offset_of ! (PerlinNoise , b) - 272usize] ; ["Offset of field: PerlinNoise::c"] [:: std :: mem :: offset_of ! (PerlinNoise , c) - 280usize] ; ["Offset of field: PerlinNoise::amplitude"] [:: std :: mem :: offset_of ! (PerlinNoise , amplitude) - 288usize] ; ["Offset of field: PerlinNoise::lacunarity"] [:: std :: mem :: offset_of ! (PerlinNoise , lacunarity) - 296usize] ; ["Offset of field: PerlinNoise::d2"] [:: std :: mem :: offset_of ! (PerlinNoise , d2) - 304usize] ; ["Offset of field: PerlinNoise::t2"] [:: std :: mem :: offset_of ! (PerlinNoise , t2) - 312usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct OctaveNoise { pub octcnt : :: std :: os :: raw :: c_int , pub octaves : * mut PerlinNoise , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of OctaveNoise"] [:: std :: mem :: size_of :: < OctaveNoise > () - 16usize] ; ["Alignment of OctaveNoise"] [:: std :: mem :: align_of :: < OctaveNoise > () - 8usize] ; ["Offset of field: OctaveNoise::octcnt"] [:: std :: mem :: offset_of ! (OctaveNoise , octcnt) - 0usize] ; ["Offset of field: OctaveNoise::octaves"] [:: std :: mem :: offset_of ! (OctaveNoise , octaves) - 8usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct DoublePerlinNoise { pub amplitude : f64 , pub octA : OctaveNoise , pub octB : OctaveNoise , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of DoublePerlinNoise"] [:: std :: mem :: size_of :: < DoublePerlinNoise > () - 40usize] ; ["Alignment of DoublePerlinNoise"] [:: std :: mem :: align_of :: < DoublePerlinNoise > () - 8usize] ; ["Offset of field: DoublePerlinNoise::amplitude"] [:: std :: mem :: offset_of ! (DoublePerlinNoise , amplitude) - 0usize] ; ["Offset of field: DoublePerlinNoise::octA"] [:: std :: mem :: offset_of ! (DoublePerlinNoise , octA) - 8usize] ; ["Offset of field: DoublePerlinNoise::octB"] [:: std :: mem :: offset_of ! (DoublePerlinNoise , octB) - 24usize] ; } ; unsafe extern "C" { # [doc = " Perlin noise"] pub fn perlinInit (noise : * mut PerlinNoise , seed : * mut u64) ; } unsafe extern "C" { pub fn xPerlinInit (noise : * mut PerlinNoise , xr : * mut Xoroshiro) ; } unsafe extern "C" { pub fn samplePerlin (noise : * const PerlinNoise , x : f64 , y : f64 , z : f64 , yamp : f64 , ymin : f64) -> f64 ; } unsafe extern "C" { pub fn sampleSimplex2D (noise : * const PerlinNoise , x : f64 , y : f64) -> f64 ; } unsafe extern "C" { # [doc = " Perlin Octaves"] pub fn octaveInit (noise : * mut OctaveNoise , seed : * mut u64 , octaves : * mut PerlinNoise , omin : :: std :: os :: raw :: c_int , len : :: std :: os :: raw :: c_int) ; } unsafe extern "C" { pub fn octaveInitBeta (noise : * mut OctaveNoise , seed : * mut u64 , octaves : * mut PerlinNoise , octcnt : :: std :: os :: raw :: c_int , lac : f64 , lacMul : f64 , persist : f64 , persistMul : f64) ; } unsafe extern "C" { pub fn xOctaveInit (noise : * mut OctaveNoise , xr : * mut Xoroshiro , octaves : * mut PerlinNoise , amplitudes : * const f64 , omin : :: std :: os :: raw :: c_int , len : :: std :: os :: raw :: c_int , nmax : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn sampleOctave (noise : * const OctaveNoise , x : f64 , y : f64 , z : f64) -> f64 ; } unsafe extern "C" { pub fn sampleOctaveAmp (noise : * const OctaveNoise , x : f64 , y : f64 , z : f64 , yamp : f64 , ymin : f64 , ydefault : :: std :: os :: raw :: c_int) -> f64 ; } unsafe extern "C" { pub fn sampleOctave2D (noise : * const OctaveNoise , x : f64 , z : f64) -> f64 ; } unsafe extern "C" { pub fn sampleOctaveBeta17Biome (noise : * const OctaveNoise , x : f64 , z : f64) -> f64 ; } unsafe extern "C" { pub fn sampleOctaveBeta17Terrain (noise : * const OctaveNoise , v : * mut f64 , x : f64 , z : f64 , yLacFlag : :: std :: os :: raw :: c_int , lacmin : f64) ; } unsafe extern "C" { # [doc = " Double Perlin"] pub fn doublePerlinInit (noise : * mut DoublePerlinNoise , seed : * mut u64 , octavesA : * mut PerlinNoise , octavesB : * mut PerlinNoise , omin : :: std :: os :: raw :: c_int , len : :: std :: os :: raw :: c_int) ; } unsafe extern "C" { pub fn xDoublePerlinInit (noise : * mut DoublePerlinNoise , xr : * mut Xoroshiro , octaves : * mut PerlinNoise , amplitudes : * const f64 , omin : :: std :: os :: raw :: c_int , len : :: std :: os :: raw :: c_int , nmax : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn sampleDoublePerlin (noise : * const DoublePerlinNoise , x : f64 , y : f64 , z : f64) -> f64 ; } impl MCVersion { pub const MC_UNDEF : MCVersion = MCVersion (0) ; } impl MCVersion { pub const MC_B1_7 : MCVersion = MCVersion (1) ; } impl MCVersion { pub const MC_B1_8 : MCVersion = MCVersion (2) ; } impl MCVersion { pub const MC_1_0_0 : MCVersion = MCVersion (3) ; } impl MCVersion { pub const MC_1_0 : MCVersion = MCVersion (3) ; } impl MCVersion { pub const MC_1_1_0 : MCVersion = MCVersion (4) ; } impl MCVersion { pub const MC_1_1 : MCVersion = MCVersion (4) ; } impl MCVersion { pub const MC_1_2_5 : MCVersion = MCVersion (5) ; } impl MCVersion { pub const MC_1_2 : MCVersion = MCVersion (5) ; } impl MCVersion { pub const MC_1_3_2 : MCVersion = MCVersion (6) ; } impl MCVersion { pub const MC_1_3 : MCVersion = MCVersion (6) ; } impl MCVersion { pub const MC_1_4_7 : MCVersion = MCVersion (7) ; } impl MCVersion { pub const MC_1_4 : MCVersion = MCVersion (7) ; } impl MCVersion { pub const MC_1_5_2 : MCVersion = MCVersion (8) ; } impl MCVersion { pub const MC_1_5 : MCVersion = MCVersion (8) ; } impl MCVersion { pub const MC_1_6_4 : MCVersion = MCVersion (9) ; } impl MCVersion { pub const MC_1_6 : MCVersion = MCVersion (9) ; } impl MCVersion { pub const MC_1_7_10 : MCVersion = MCVersion (10) ; } impl MCVersion { pub const MC_1_7 : MCVersion = MCVersion (10) ; } impl MCVersion { pub const MC_1_8_9 : MCVersion = MCVersion (11) ; } impl MCVersion { pub const MC_1_8 : MCVersion = MCVersion (11) ; } impl MCVersion { pub const MC_1_9_4 : MCVersion = MCVersion (12) ; } impl MCVersion { pub const MC_1_9 : MCVersion = MCVersion (12) ; } impl MCVersion { pub const MC_1_10_2 : MCVersion = MCVersion (13) ; } impl MCVersion { pub const MC_1_10 : MCVersion = MCVersion (13) ; } impl MCVersion { pub const MC_1_11_2 : MCVersion = MCVersion (14) ; } impl MCVersion { pub const MC_1_11 : MCVersion = MCVersion (14) ; } impl MCVersion { pub const MC_1_12_2 : MCVersion = MCVersion (15) ; } impl MCVersion { pub const MC_1_12 : MCVersion = MCVersion (15) ; } impl MCVersion { pub const MC_1_13_2 : MCVersion = MCVersion (16) ; } impl MCVersion { pub const MC_1_13 : MCVersion = MCVersion (16) ; } impl MCVersion { pub const MC_1_14_4 : MCVersion = MCVersion (17) ; } impl MCVersion { pub const MC_1_14 : MCVersion = MCVersion (17) ; } impl MCVersion { pub const MC_1_15_2 : MCVersion = MCVersion (18) ; } impl MCVersion { pub const MC_1_15 : MCVersion = MCVersion (18) ; } impl MCVersion { pub const MC_1_16_1 : MCVersion = MCVersion (19) ; } impl MCVersion { pub const MC_1_16_5 : MCVersion = MCVersion (20) ; } impl MCVersion { pub const MC_1_16 : MCVersion = MCVersion (20) ; } impl MCVersion { pub const MC_1_17_1 : MCVersion = MCVersion (21) ; } impl MCVersion { pub const MC_1_17 : MCVersion = MCVersion (21) ; } impl MCVersion { pub const MC_1_18_2 : MCVersion = MCVersion (22) ; } impl MCVersion { pub const MC_1_18 : MCVersion = MCVersion (22) ; } impl MCVersion { pub const MC_1_19_2 : MCVersion = MCVersion (23) ; } impl MCVersion { pub const MC_1_19_4 : MCVersion = MCVersion (24) ; } impl MCVersion { pub const MC_1_19 : MCVersion = MCVersion (24) ; } impl MCVersion { pub const MC_1_20_6 : MCVersion = MCVersion (25) ; } impl MCVersion { pub const MC_1_20 : MCVersion = MCVersion (25) ; } impl MCVersion { pub const MC_1_21_1 : MCVersion = MCVersion (26) ; } impl MCVersion { pub const MC_1_21_3 : MCVersion = MCVersion (27) ; } impl MCVersion { pub const MC_1_21_WD : MCVersion = MCVersion (28) ; } impl MCVersion { pub const MC_1_21 : MCVersion = MCVersion (28) ; } impl MCVersion { pub const MC_NEWEST : MCVersion = MCVersion (28) ; } # [repr (transparent)] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct MCVersion (pub :: std :: os :: raw :: c_uint) ; impl Dimension { pub const DIM_NETHER : Dimension = Dimension (- 1) ; } impl Dimension { pub const DIM_OVERWORLD : Dimension = Dimension (0) ; } impl Dimension { pub const DIM_END : Dimension = Dimension (1) ; } impl Dimension { pub const DIM_UNDEF : Dimension = Dimension (1000) ; } # [repr (transparent)] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct Dimension (pub :: std :: os :: raw :: c_int) ; impl BiomeID { pub const none : BiomeID = BiomeID (- 1) ; } impl BiomeID { pub const ocean : BiomeID = BiomeID (0) ; } impl BiomeID { pub const plains : BiomeID = BiomeID (1) ; } impl BiomeID { pub const desert : BiomeID = BiomeID (2) ; } impl BiomeID { pub const mountains : BiomeID = BiomeID (3) ; } impl BiomeID { pub const extremeHills : BiomeID = BiomeID (3) ; } impl BiomeID { pub const forest : BiomeID = BiomeID (4) ; } impl BiomeID { pub const taiga : BiomeID = BiomeID (5) ; } impl BiomeID { pub const swamp : BiomeID = BiomeID (6) ; } impl BiomeID { pub const swampland : BiomeID = BiomeID (6) ; } impl BiomeID { pub const river : BiomeID = BiomeID (7) ; } impl BiomeID { pub const nether_wastes : BiomeID = BiomeID (8) ; } impl BiomeID { pub const hell : BiomeID = BiomeID (8) ; } impl BiomeID { pub const the_end : BiomeID = BiomeID (9) ; } impl BiomeID { pub const sky : BiomeID = BiomeID (9) ; } impl BiomeID { pub const frozen_ocean : BiomeID = BiomeID (10) ; } impl BiomeID { pub const frozenOcean : BiomeID = BiomeID (10) ; } impl BiomeID { pub const frozen_river : BiomeID = BiomeID (11) ; } impl BiomeID { pub const frozenRiver : BiomeID = BiomeID (11) ; } impl BiomeID { pub const snowy_tundra : BiomeID = BiomeID (12) ; } impl BiomeID { pub const icePlains : BiomeID = BiomeID (12) ; } impl BiomeID { pub const snowy_mountains : BiomeID = BiomeID (13) ; } impl BiomeID { pub const iceMountains : BiomeID = BiomeID (13) ; } impl BiomeID { pub const mushroom_fields : BiomeID = BiomeID (14) ; } impl BiomeID { pub const mushroomIsland : BiomeID = BiomeID (14) ; } impl BiomeID { pub const mushroom_field_shore : BiomeID = BiomeID (15) ; } impl BiomeID { pub const mushroomIslandShore : BiomeID = BiomeID (15) ; } impl BiomeID { pub const beach : BiomeID = BiomeID (16) ; } impl BiomeID { pub const desert_hills : BiomeID = BiomeID (17) ; } impl BiomeID { pub const desertHills : BiomeID = BiomeID (17) ; } impl BiomeID { pub const wooded_hills : BiomeID = BiomeID (18) ; } impl BiomeID { pub const forestHills : BiomeID = BiomeID (18) ; } impl BiomeID { pub const taiga_hills : BiomeID = BiomeID (19) ; } impl BiomeID { pub const taigaHills : BiomeID = BiomeID (19) ; } impl BiomeID { pub const mountain_edge : BiomeID = BiomeID (20) ; } impl BiomeID { pub const extremeHillsEdge : BiomeID = BiomeID (20) ; } impl BiomeID { pub const jungle : BiomeID = BiomeID (21) ; } impl BiomeID { pub const jungle_hills : BiomeID = BiomeID (22) ; } impl BiomeID { pub const jungleHills : BiomeID = BiomeID (22) ; } impl BiomeID { pub const jungle_edge : BiomeID = BiomeID (23) ; } impl BiomeID { pub const jungleEdge : BiomeID = BiomeID (23) ; } impl BiomeID { pub const deep_ocean : BiomeID = BiomeID (24) ; } impl BiomeID { pub const deepOcean : BiomeID = BiomeID (24) ; } impl BiomeID { pub const stone_shore : BiomeID = BiomeID (25) ; } impl BiomeID { pub const stoneBeach : BiomeID = BiomeID (25) ; } impl BiomeID { pub const snowy_beach : BiomeID = BiomeID (26) ; } impl BiomeID { pub const coldBeach : BiomeID = BiomeID (26) ; } impl BiomeID { pub const birch_forest : BiomeID = BiomeID (27) ; } impl BiomeID { pub const birchForest : BiomeID = BiomeID (27) ; } impl BiomeID { pub const birch_forest_hills : BiomeID = BiomeID (28) ; } impl BiomeID { pub const birchForestHills : BiomeID = BiomeID (28) ; } impl BiomeID { pub const dark_forest : BiomeID = BiomeID (29) ; } impl BiomeID { pub const roofedForest : BiomeID = BiomeID (29) ; } impl BiomeID { pub const snowy_taiga : BiomeID = BiomeID (30) ; } impl BiomeID { pub const coldTaiga : BiomeID = BiomeID (30) ; } impl BiomeID { pub const snowy_taiga_hills : BiomeID = BiomeID (31) ; } impl BiomeID { pub const coldTaigaHills : BiomeID = BiomeID (31) ; } impl BiomeID { pub const giant_tree_taiga : BiomeID = BiomeID (32) ; } impl BiomeID { pub const megaTaiga : BiomeID = BiomeID (32) ; } impl BiomeID { pub const giant_tree_taiga_hills : BiomeID = BiomeID (33) ; } impl BiomeID { pub const megaTaigaHills : BiomeID = BiomeID (33) ; } impl BiomeID { pub const wooded_mountains : BiomeID = BiomeID (34) ; } impl BiomeID { pub const extremeHillsPlus : BiomeID = BiomeID (34) ; } impl BiomeID { pub const savanna : BiomeID = BiomeID (35) ; } impl BiomeID { pub const savanna_plateau : BiomeID = BiomeID (36) ; } impl BiomeID { pub const savannaPlateau : BiomeID = BiomeID (36) ; } impl BiomeID { pub const badlands : BiomeID = BiomeID (37) ; } impl BiomeID { pub const mesa : BiomeID = BiomeID (37) ; } impl BiomeID { pub const wooded_badlands_plateau : BiomeID = BiomeID (38) ; } impl BiomeID { pub const mesaPlateau_F : BiomeID = BiomeID (38) ; } impl BiomeID { pub const badlands_plateau : BiomeID = BiomeID (39) ; } impl BiomeID { pub const mesaPlateau : BiomeID = BiomeID (39) ; } impl BiomeID { pub const small_end_islands : BiomeID = BiomeID (40) ; } impl BiomeID { pub const end_midlands : BiomeID = BiomeID (41) ; } impl BiomeID { pub const end_highlands : BiomeID = BiomeID (42) ; } impl BiomeID { pub const end_barrens : BiomeID = BiomeID (43) ; } impl BiomeID { pub const warm_ocean : BiomeID = BiomeID (44) ; } impl BiomeID { pub const warmOcean : BiomeID = BiomeID (44) ; } impl BiomeID { pub const lukewarm_ocean : BiomeID = BiomeID (45) ; } impl BiomeID { pub const lukewarmOcean : BiomeID = BiomeID (45) ; } impl BiomeID { pub const cold_ocean : BiomeID = BiomeID (46) ; } impl BiomeID { pub const coldOcean : BiomeID = BiomeID (46) ; } impl BiomeID { pub const deep_warm_ocean : BiomeID = BiomeID (47) ; } impl BiomeID { pub const warmDeepOcean : BiomeID = BiomeID (47) ; } impl BiomeID { pub const deep_lukewarm_ocean : BiomeID = BiomeID (48) ; } impl BiomeID { pub const lukewarmDeepOcean : BiomeID = BiomeID (48) ; } impl BiomeID { pub const deep_cold_ocean : BiomeID = BiomeID (49) ; } impl BiomeID { pub const coldDeepOcean : BiomeID = BiomeID (49) ; } impl BiomeID { pub const deep_frozen_ocean : BiomeID = BiomeID (50) ; } impl BiomeID { pub const frozenDeepOcean : BiomeID = BiomeID (50) ; } impl BiomeID { pub const seasonal_forest : BiomeID = BiomeID (51) ; } impl BiomeID { pub const rainforest : BiomeID = BiomeID (52) ; } impl BiomeID { pub const shrubland : BiomeID = BiomeID (53) ; } impl BiomeID { pub const the_void : BiomeID = BiomeID (127) ; } impl BiomeID { pub const sunflower_plains : BiomeID = BiomeID (129) ; } impl BiomeID { pub const desert_lakes : BiomeID = BiomeID (130) ; } impl BiomeID { pub const gravelly_mountains : BiomeID = BiomeID (131) ; } impl BiomeID { pub const flower_forest : BiomeID = BiomeID (132) ; } impl BiomeID { pub const taiga_mountains : BiomeID = BiomeID (133) ; } impl BiomeID { pub const swamp_hills : BiomeID = BiomeID (134) ; } impl BiomeID { pub const ice_spikes : BiomeID = BiomeID (140) ; } impl BiomeID { pub const modified_jungle : BiomeID = BiomeID (149) ; } impl BiomeID { pub const modified_jungle_edge : BiomeID = BiomeID (151) ; } impl BiomeID { pub const tall_birch_forest : BiomeID = BiomeID (155) ; } impl BiomeID { pub const tall_birch_hills : BiomeID = BiomeID (156) ; } impl BiomeID { pub const dark_forest_hills : BiomeID = BiomeID (157) ; } impl BiomeID { pub const snowy_taiga_mountains : BiomeID = BiomeID (158) ; } impl BiomeID { pub const giant_spruce_taiga : BiomeID = BiomeID (160) ; } impl BiomeID { pub const giant_spruce_taiga_hills : BiomeID = BiomeID (161) ; } impl BiomeID { pub const modified_gravelly_mountains : BiomeID = BiomeID (162) ; } impl BiomeID { pub const shattered_savanna : BiomeID = BiomeID (163) ; } impl BiomeID { pub const shattered_savanna_plateau : BiomeID = BiomeID (164) ; } impl BiomeID { pub const eroded_badlands : BiomeID = BiomeID (165) ; } impl BiomeID { pub const modified_wooded_badlands_plateau : BiomeID = BiomeID (166) ; } impl BiomeID { pub const modified_badlands_plateau : BiomeID = BiomeID (167) ; } impl BiomeID { pub const bamboo_jungle : BiomeID = BiomeID (168) ; } impl BiomeID { pub const bamboo_jungle_hills : BiomeID = BiomeID (169) ; } impl BiomeID { pub const soul_sand_valley : BiomeID = BiomeID (170) ; } impl BiomeID { pub const crimson_forest : BiomeID = BiomeID (171) ; } impl BiomeID { pub const warped_forest : BiomeID = BiomeID (172) ; } impl BiomeID { pub const basalt_deltas : BiomeID = BiomeID (173) ; } impl BiomeID { pub const dripstone_caves : BiomeID = BiomeID (174) ; } impl BiomeID { pub const lush_caves : BiomeID = BiomeID (175) ; } impl BiomeID { pub const meadow : BiomeID = BiomeID (177) ; } impl BiomeID { pub const grove : BiomeID = BiomeID (178) ; } impl BiomeID { pub const snowy_slopes : BiomeID = BiomeID (179) ; } impl BiomeID { pub const jagged_peaks : BiomeID = BiomeID (180) ; } impl BiomeID { pub const frozen_peaks : BiomeID = BiomeID (181) ; } impl BiomeID { pub const stony_peaks : BiomeID = BiomeID (182) ; } impl BiomeID { pub const old_growth_birch_forest : BiomeID = BiomeID (155) ; } impl BiomeID { pub const old_growth_pine_taiga : BiomeID = BiomeID (32) ; } impl BiomeID { pub const old_growth_spruce_taiga : BiomeID = BiomeID (160) ; } impl BiomeID { pub const snowy_plains : BiomeID = BiomeID (12) ; } impl BiomeID { pub const sparse_jungle : BiomeID = BiomeID (23) ; } impl BiomeID { pub const stony_shore : BiomeID = BiomeID (25) ; } impl BiomeID { pub const windswept_hills : BiomeID = BiomeID (3) ; } impl BiomeID { pub const windswept_forest : BiomeID = BiomeID (34) ; } impl BiomeID { pub const windswept_gravelly_hills : BiomeID = BiomeID (131) ; } impl BiomeID { pub const windswept_savanna : BiomeID = BiomeID (163) ; } impl BiomeID { pub const wooded_badlands : BiomeID = BiomeID (38) ; } impl BiomeID { pub const deep_dark : BiomeID = BiomeID (183) ; } impl BiomeID { pub const mangrove_swamp : BiomeID = BiomeID (184) ; } impl BiomeID { pub const cherry_grove : BiomeID = BiomeID (185) ; } impl BiomeID { pub const pale_garden : BiomeID = BiomeID (186) ; } # [repr (transparent)] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct BiomeID (pub :: std :: os :: raw :: c_int) ; unsafe extern "C" { pub fn biomeExists (mc : :: std :: os :: raw :: c_int , id : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn isOverworld (mc : :: std :: os :: raw :: c_int , id : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getDimension (id : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getMutated (mc : :: std :: os :: raw :: c_int , id : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getCategory (mc : :: std :: os :: raw :: c_int , id : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn areSimilar (mc : :: std :: os :: raw :: c_int , id1 : :: std :: os :: raw :: c_int , id2 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn isMesa (id : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn isShallowOcean (id : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn isDeepOcean (id : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn isOceanic (id : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn isSnowy (id : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } impl BiomeTempCategory { pub const Oceanic : BiomeTempCategory = BiomeTempCategory (0) ; } impl BiomeTempCategory { pub const Warm : BiomeTempCategory = BiomeTempCategory (1) ; } impl BiomeTempCategory { pub const Lush : BiomeTempCategory = BiomeTempCategory (2) ; } impl BiomeTempCategory { pub const Cold : BiomeTempCategory = BiomeTempCategory (3) ; } impl BiomeTempCategory { pub const Freezing : BiomeTempCategory = BiomeTempCategory (4) ; } impl BiomeTempCategory { pub const Special : BiomeTempCategory = BiomeTempCategory (5) ; } # [repr (transparent)] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct BiomeTempCategory (pub :: std :: os :: raw :: c_uint) ; impl LayerId { pub const L_CONTINENT_4096 : LayerId = LayerId (0) ; } impl LayerId { pub const L_ISLAND_4096 : LayerId = LayerId (0) ; } impl LayerId { pub const L_ZOOM_4096 : LayerId = LayerId (1) ; } impl LayerId { pub const L_LAND_4096 : LayerId = LayerId (2) ; } impl LayerId { pub const L_ZOOM_2048 : LayerId = LayerId (3) ; } impl LayerId { pub const L_LAND_2048 : LayerId = LayerId (4) ; } impl LayerId { pub const L_ADD_ISLAND_2048 : LayerId = LayerId (4) ; } impl LayerId { pub const L_ZOOM_1024 : LayerId = LayerId (5) ; } impl LayerId { pub const L_LAND_1024_A : LayerId = LayerId (6) ; } impl LayerId { pub const L_ADD_ISLAND_1024A : LayerId = LayerId (6) ; } impl LayerId { pub const L_LAND_1024_B : LayerId = LayerId (7) ; } impl LayerId { pub const L_ADD_ISLAND_1024B : LayerId = LayerId (7) ; } impl LayerId { pub const L_LAND_1024_C : LayerId = LayerId (8) ; } impl LayerId { pub const L_ADD_ISLAND_1024C : LayerId = LayerId (8) ; } impl LayerId { pub const L_ISLAND_1024 : LayerId = LayerId (9) ; } impl LayerId { pub const L_REMOVE_OCEAN_1024 : LayerId = LayerId (9) ; } impl LayerId { pub const L_SNOW_1024 : LayerId = LayerId (10) ; } impl LayerId { pub const L_ADD_SNOW_1024 : LayerId = LayerId (10) ; } impl LayerId { pub const L_LAND_1024_D : LayerId = LayerId (11) ; } impl LayerId { pub const L_ADD_ISLAND_1024D : LayerId = LayerId (11) ; } impl LayerId { pub const L_COOL_1024 : LayerId = LayerId (12) ; } impl LayerId { pub const L_COOL_WARM_1024 : LayerId = LayerId (12) ; } impl LayerId { pub const L_HEAT_1024 : LayerId = LayerId (13) ; } impl LayerId { pub const L_HEAT_ICE_1024 : LayerId = LayerId (13) ; } impl LayerId { pub const L_SPECIAL_1024 : LayerId = LayerId (14) ; } impl LayerId { pub const L_ZOOM_512 : LayerId = LayerId (15) ; } impl LayerId { pub const L_LAND_512 : LayerId = LayerId (16) ; } impl LayerId { pub const L_ZOOM_256 : LayerId = LayerId (17) ; } impl LayerId { pub const L_LAND_256 : LayerId = LayerId (18) ; } impl LayerId { pub const L_ADD_ISLAND_256 : LayerId = LayerId (18) ; } impl LayerId { pub const L_MUSHROOM_256 : LayerId = LayerId (19) ; } impl LayerId { pub const L_ADD_MUSHROOM_256 : LayerId = LayerId (19) ; } impl LayerId { pub const L_DEEP_OCEAN_256 : LayerId = LayerId (20) ; } impl LayerId { pub const L_BIOME_256 : LayerId = LayerId (21) ; } impl LayerId { pub const L_BAMBOO_256 : LayerId = LayerId (22) ; } impl LayerId { pub const L14_BAMBOO_256 : LayerId = LayerId (22) ; } impl LayerId { pub const L_ZOOM_128 : LayerId = LayerId (23) ; } impl LayerId { pub const L_ZOOM_64 : LayerId = LayerId (24) ; } impl LayerId { pub const L_BIOME_EDGE_64 : LayerId = LayerId (25) ; } impl LayerId { pub const L_NOISE_256 : LayerId = LayerId (26) ; } impl LayerId { pub const L_RIVER_INIT_256 : LayerId = LayerId (26) ; } impl LayerId { pub const L_ZOOM_128_HILLS : LayerId = LayerId (27) ; } impl LayerId { pub const L_ZOOM_64_HILLS : LayerId = LayerId (28) ; } impl LayerId { pub const L_HILLS_64 : LayerId = LayerId (29) ; } impl LayerId { pub const L_SUNFLOWER_64 : LayerId = LayerId (30) ; } impl LayerId { pub const L_RARE_BIOME_64 : LayerId = LayerId (30) ; } impl LayerId { pub const L_ZOOM_32 : LayerId = LayerId (31) ; } impl LayerId { pub const L_LAND_32 : LayerId = LayerId (32) ; } impl LayerId { pub const L_ADD_ISLAND_32 : LayerId = LayerId (32) ; } impl LayerId { pub const L_ZOOM_16 : LayerId = LayerId (33) ; } impl LayerId { pub const L_SHORE_16 : LayerId = LayerId (34) ; } impl LayerId { pub const L_SWAMP_RIVER_16 : LayerId = LayerId (35) ; } impl LayerId { pub const L_ZOOM_8 : LayerId = LayerId (36) ; } impl LayerId { pub const L_ZOOM_4 : LayerId = LayerId (37) ; } impl LayerId { pub const L_SMOOTH_4 : LayerId = LayerId (38) ; } impl LayerId { pub const L_ZOOM_128_RIVER : LayerId = LayerId (39) ; } impl LayerId { pub const L_ZOOM_64_RIVER : LayerId = LayerId (40) ; } impl LayerId { pub const L_ZOOM_32_RIVER : LayerId = LayerId (41) ; } impl LayerId { pub const L_ZOOM_16_RIVER : LayerId = LayerId (42) ; } impl LayerId { pub const L_ZOOM_8_RIVER : LayerId = LayerId (43) ; } impl LayerId { pub const L_ZOOM_4_RIVER : LayerId = LayerId (44) ; } impl LayerId { pub const L_RIVER_4 : LayerId = LayerId (45) ; } impl LayerId { pub const L_SMOOTH_4_RIVER : LayerId = LayerId (46) ; } impl LayerId { pub const L_RIVER_MIX_4 : LayerId = LayerId (47) ; } impl LayerId { pub const L_OCEAN_TEMP_256 : LayerId = LayerId (48) ; } impl LayerId { pub const L13_OCEAN_TEMP_256 : LayerId = LayerId (48) ; } impl LayerId { pub const L_ZOOM_128_OCEAN : LayerId = LayerId (49) ; } impl LayerId { pub const L13_ZOOM_128 : LayerId = LayerId (49) ; } impl LayerId { pub const L_ZOOM_64_OCEAN : LayerId = LayerId (50) ; } impl LayerId { pub const L13_ZOOM_64 : LayerId = LayerId (50) ; } impl LayerId { pub const L_ZOOM_32_OCEAN : LayerId = LayerId (51) ; } impl LayerId { pub const L13_ZOOM_32 : LayerId = LayerId (51) ; } impl LayerId { pub const L_ZOOM_16_OCEAN : LayerId = LayerId (52) ; } impl LayerId { pub const L13_ZOOM_16 : LayerId = LayerId (52) ; } impl LayerId { pub const L_ZOOM_8_OCEAN : LayerId = LayerId (53) ; } impl LayerId { pub const L13_ZOOM_8 : LayerId = LayerId (53) ; } impl LayerId { pub const L_ZOOM_4_OCEAN : LayerId = LayerId (54) ; } impl LayerId { pub const L13_ZOOM_4 : LayerId = LayerId (54) ; } impl LayerId { pub const L_OCEAN_MIX_4 : LayerId = LayerId (55) ; } impl LayerId { pub const L13_OCEAN_MIX_4 : LayerId = LayerId (55) ; } impl LayerId { pub const L_VORONOI_1 : LayerId = LayerId (56) ; } impl LayerId { pub const L_VORONOI_ZOOM_1 : LayerId = LayerId (56) ; } impl LayerId { pub const L_ZOOM_LARGE_A : LayerId = LayerId (57) ; } impl LayerId { pub const L_ZOOM_LARGE_B : LayerId = LayerId (58) ; } impl LayerId { pub const L_ZOOM_L_RIVER_A : LayerId = LayerId (59) ; } impl LayerId { pub const L_ZOOM_L_RIVER_B : LayerId = LayerId (60) ; } impl LayerId { pub const L_NUM : LayerId = LayerId (61) ; } # [repr (transparent)] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct LayerId (pub :: std :: os :: raw :: c_uint) ; pub type mapfunc_t = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Layer { pub getMap : mapfunc_t , pub mc : i8 , pub zoom : i8 , pub edge : i8 , pub scale : :: std :: os :: raw :: c_int , pub layerSalt : u64 , pub startSalt : u64 , pub startSeed : u64 , pub noise : * mut :: std :: os :: raw :: c_void , pub data : * mut :: std :: os :: raw :: c_void , pub p : * mut Layer , pub p2 : * mut Layer , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Layer"] [:: std :: mem :: size_of :: < Layer > () - 72usize] ; ["Alignment of Layer"] [:: std :: mem :: align_of :: < Layer > () - 8usize] ; ["Offset of field: Layer::getMap"] [:: std :: mem :: offset_of ! (Layer , getMap) - 0usize] ; ["Offset of field: Layer::mc"] [:: std :: mem :: offset_of ! (Layer , mc) - 8usize] ; ["Offset of field: Layer::zoom"] [:: std :: mem :: offset_of ! (Layer , zoom) - 9usize] ; ["Offset of field: Layer::edge"] [:: std :: mem :: offset_of ! (Layer , edge) - 10usize] ; ["Offset of field: Layer::scale"] [:: std :: mem :: offset_of ! (Layer , scale) - 12usize] ; ["Offset of field: Layer::layerSalt"] [:: std :: mem :: offset_of ! (Layer , layerSalt) - 16usize] ; ["Offset of field: Layer::startSalt"] [:: std :: mem :: offset_of ! (Layer , startSalt) - 24usize] ; ["Offset of field: Layer::startSeed"] [:: std :: mem :: offset_of ! (Layer , startSeed) - 32usize] ; ["Offset of field: Layer::noise"] [:: std :: mem :: offset_of ! (Layer , noise) - 40usize] ; ["Offset of field: Layer::data"] [:: std :: mem :: offset_of ! (Layer , data) - 48usize] ; ["Offset of field: Layer::p"] [:: std :: mem :: offset_of ! (Layer , p) - 56usize] ; ["Offset of field: Layer::p2"] [:: std :: mem :: offset_of ! (Layer , p2) - 64usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct LayerStack { pub layers : [Layer ; 61usize] , pub entry_1 : * mut Layer , pub entry_4 : * mut Layer , pub entry_16 : * mut Layer , pub entry_64 : * mut Layer , pub entry_256 : * mut Layer , pub oceanRnd : PerlinNoise , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of LayerStack"] [:: std :: mem :: size_of :: < LayerStack > () - 4752usize] ; ["Alignment of LayerStack"] [:: std :: mem :: align_of :: < LayerStack > () - 8usize] ; ["Offset of field: LayerStack::layers"] [:: std :: mem :: offset_of ! (LayerStack , layers) - 0usize] ; ["Offset of field: LayerStack::entry_1"] [:: std :: mem :: offset_of ! (LayerStack , entry_1) - 4392usize] ; ["Offset of field: LayerStack::entry_4"] [:: std :: mem :: offset_of ! (LayerStack , entry_4) - 4400usize] ; ["Offset of field: LayerStack::entry_16"] [:: std :: mem :: offset_of ! (LayerStack , entry_16) - 4408usize] ; ["Offset of field: LayerStack::entry_64"] [:: std :: mem :: offset_of ! (LayerStack , entry_64) - 4416usize] ; ["Offset of field: LayerStack::entry_256"] [:: std :: mem :: offset_of ! (LayerStack , entry_256) - 4424usize] ; ["Offset of field: LayerStack::oceanRnd"] [:: std :: mem :: offset_of ! (LayerStack , oceanRnd) - 4432usize] ; } ; unsafe extern "C" { pub fn setLayerSeed (layer : * mut Layer , worldSeed : u64) ; } unsafe extern "C" { pub fn mapContinent (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapZoomFuzzy (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapZoom (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapLand (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapLand16 (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapLandB18 (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapIsland (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapSnow (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapSnow16 (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapCool (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapHeat (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapSpecial (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapMushroom (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapDeepOcean (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapBiome (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapBamboo (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapNoise (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapBiomeEdge (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapHills (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapRiver (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapSmooth (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapSunflower (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapShore (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapSwampRiver (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapRiverMix (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapOceanTemp (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapOceanMix (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapVoronoi (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapVoronoi114 (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getVoronoiSHA (worldSeed : u64) -> u64 ; } unsafe extern "C" { pub fn voronoiAccess3D (sha : u64 , x : :: std :: os :: raw :: c_int , y : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , x4 : * mut :: std :: os :: raw :: c_int , y4 : * mut :: std :: os :: raw :: c_int , z4 : * mut :: std :: os :: raw :: c_int) ; } unsafe extern "C" { pub fn mapVoronoiPlane (sha : u64 , out : * mut :: std :: os :: raw :: c_int , src : * mut :: std :: os :: raw :: c_int , x : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , w : :: std :: os :: raw :: c_int , h : :: std :: os :: raw :: c_int , y : :: std :: os :: raw :: c_int , px : :: std :: os :: raw :: c_int , pz : :: std :: os :: raw :: c_int , pw : :: std :: os :: raw :: c_int , ph : :: std :: os :: raw :: c_int) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Range { pub scale : :: std :: os :: raw :: c_int , pub x : :: std :: os :: raw :: c_int , pub z : :: std :: os :: raw :: c_int , pub sx : :: std :: os :: raw :: c_int , pub sz : :: std :: os :: raw :: c_int , pub y : :: std :: os :: raw :: c_int , pub sy : :: std :: os :: raw :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Range"] [:: std :: mem :: size_of :: < Range > () - 28usize] ; ["Alignment of Range"] [:: std :: mem :: align_of :: < Range > () - 4usize] ; ["Offset of field: Range::scale"] [:: std :: mem :: offset_of ! (Range , scale) - 0usize] ; ["Offset of field: Range::x"] [:: std :: mem :: offset_of ! (Range , x) - 4usize] ; ["Offset of field: Range::z"] [:: std :: mem :: offset_of ! (Range , z) - 8usize] ; ["Offset of field: Range::sx"] [:: std :: mem :: offset_of ! (Range , sx) - 12usize] ; ["Offset of field: Range::sz"] [:: std :: mem :: offset_of ! (Range , sz) - 16usize] ; ["Offset of field: Range::y"] [:: std :: mem :: offset_of ! (Range , y) - 20usize] ; ["Offset of field: Range::sy"] [:: std :: mem :: offset_of ! (Range , sy) - 24usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct NetherNoise { pub temperature : DoublePerlinNoise , pub humidity : DoublePerlinNoise , pub oct : [PerlinNoise ; 8usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of NetherNoise"] [:: std :: mem :: size_of :: < NetherNoise > () - 2640usize] ; ["Alignment of NetherNoise"] [:: std :: mem :: align_of :: < NetherNoise > () - 8usize] ; ["Offset of field: NetherNoise::temperature"] [:: std :: mem :: offset_of ! (NetherNoise , temperature) - 0usize] ; ["Offset of field: NetherNoise::humidity"] [:: std :: mem :: offset_of ! (NetherNoise , humidity) - 40usize] ; ["Offset of field: NetherNoise::oct"] [:: std :: mem :: offset_of ! (NetherNoise , oct) - 80usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct EndNoise { pub perlin : PerlinNoise , pub mc : :: std :: os :: raw :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of EndNoise"] [:: std :: mem :: size_of :: < EndNoise > () - 328usize] ; ["Alignment of EndNoise"] [:: std :: mem :: align_of :: < EndNoise > () - 8usize] ; ["Offset of field: EndNoise::perlin"] [:: std :: mem :: offset_of ! (EndNoise , perlin) - 0usize] ; ["Offset of field: EndNoise::mc"] [:: std :: mem :: offset_of ! (EndNoise , mc) - 320usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct SurfaceNoise { pub xzScale : f64 , pub yScale : f64 , pub xzFactor : f64 , pub yFactor : f64 , pub octmin : OctaveNoise , pub octmax : OctaveNoise , pub octmain : OctaveNoise , pub octsurf : OctaveNoise , pub octdepth : OctaveNoise , pub oct : [PerlinNoise ; 60usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of SurfaceNoise"] [:: std :: mem :: size_of :: < SurfaceNoise > () - 19312usize] ; ["Alignment of SurfaceNoise"] [:: std :: mem :: align_of :: < SurfaceNoise > () - 8usize] ; ["Offset of field: SurfaceNoise::xzScale"] [:: std :: mem :: offset_of ! (SurfaceNoise , xzScale) - 0usize] ; ["Offset of field: SurfaceNoise::yScale"] [:: std :: mem :: offset_of ! (SurfaceNoise , yScale) - 8usize] ; ["Offset of field: SurfaceNoise::xzFactor"] [:: std :: mem :: offset_of ! (SurfaceNoise , xzFactor) - 16usize] ; ["Offset of field: SurfaceNoise::yFactor"] [:: std :: mem :: offset_of ! (SurfaceNoise , yFactor) - 24usize] ; ["Offset of field: SurfaceNoise::octmin"] [:: std :: mem :: offset_of ! (SurfaceNoise , octmin) - 32usize] ; ["Offset of field: SurfaceNoise::octmax"] [:: std :: mem :: offset_of ! (SurfaceNoise , octmax) - 48usize] ; ["Offset of field: SurfaceNoise::octmain"] [:: std :: mem :: offset_of ! (SurfaceNoise , octmain) - 64usize] ; ["Offset of field: SurfaceNoise::octsurf"] [:: std :: mem :: offset_of ! (SurfaceNoise , octsurf) - 80usize] ; ["Offset of field: SurfaceNoise::octdepth"] [:: std :: mem :: offset_of ! (SurfaceNoise , octdepth) - 96usize] ; ["Offset of field: SurfaceNoise::oct"] [:: std :: mem :: offset_of ! (SurfaceNoise , oct) - 112usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct SurfaceNoiseBeta { pub octmin : OctaveNoise , pub octmax : OctaveNoise , pub octmain : OctaveNoise , pub octcontA : OctaveNoise , pub octcontB : OctaveNoise , pub oct : [PerlinNoise ; 66usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of SurfaceNoiseBeta"] [:: std :: mem :: size_of :: < SurfaceNoiseBeta > () - 21200usize] ; ["Alignment of SurfaceNoiseBeta"] [:: std :: mem :: align_of :: < SurfaceNoiseBeta > () - 8usize] ; ["Offset of field: SurfaceNoiseBeta::octmin"] [:: std :: mem :: offset_of ! (SurfaceNoiseBeta , octmin) - 0usize] ; ["Offset of field: SurfaceNoiseBeta::octmax"] [:: std :: mem :: offset_of ! (SurfaceNoiseBeta , octmax) - 16usize] ; ["Offset of field: SurfaceNoiseBeta::octmain"] [:: std :: mem :: offset_of ! (SurfaceNoiseBeta , octmain) - 32usize] ; ["Offset of field: SurfaceNoiseBeta::octcontA"] [:: std :: mem :: offset_of ! (SurfaceNoiseBeta , octcontA) - 48usize] ; ["Offset of field: SurfaceNoiseBeta::octcontB"] [:: std :: mem :: offset_of ! (SurfaceNoiseBeta , octcontB) - 64usize] ; ["Offset of field: SurfaceNoiseBeta::oct"] [:: std :: mem :: offset_of ! (SurfaceNoiseBeta , oct) - 80usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct SeaLevelColumnNoiseBeta { pub contASample : f64 , pub contBSample : f64 , pub minSample : [f64 ; 2usize] , pub maxSample : [f64 ; 2usize] , pub mainSample : [f64 ; 2usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of SeaLevelColumnNoiseBeta"] [:: std :: mem :: size_of :: < SeaLevelColumnNoiseBeta > () - 64usize] ; ["Alignment of SeaLevelColumnNoiseBeta"] [:: std :: mem :: align_of :: < SeaLevelColumnNoiseBeta > () - 8usize] ; ["Offset of field: SeaLevelColumnNoiseBeta::contASample"] [:: std :: mem :: offset_of ! (SeaLevelColumnNoiseBeta , contASample) - 0usize] ; ["Offset of field: SeaLevelColumnNoiseBeta::contBSample"] [:: std :: mem :: offset_of ! (SeaLevelColumnNoiseBeta , contBSample) - 8usize] ; ["Offset of field: SeaLevelColumnNoiseBeta::minSample"] [:: std :: mem :: offset_of ! (SeaLevelColumnNoiseBeta , minSample) - 16usize] ; ["Offset of field: SeaLevelColumnNoiseBeta::maxSample"] [:: std :: mem :: offset_of ! (SeaLevelColumnNoiseBeta , maxSample) - 32usize] ; ["Offset of field: SeaLevelColumnNoiseBeta::mainSample"] [:: std :: mem :: offset_of ! (SeaLevelColumnNoiseBeta , mainSample) - 48usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Spline { pub len : :: std :: os :: raw :: c_int , pub typ : :: std :: os :: raw :: c_int , pub loc : [f32 ; 12usize] , pub der : [f32 ; 12usize] , pub val : [* mut Spline ; 12usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Spline"] [:: std :: mem :: size_of :: < Spline > () - 200usize] ; ["Alignment of Spline"] [:: std :: mem :: align_of :: < Spline > () - 8usize] ; ["Offset of field: Spline::len"] [:: std :: mem :: offset_of ! (Spline , len) - 0usize] ; ["Offset of field: Spline::typ"] [:: std :: mem :: offset_of ! (Spline , typ) - 4usize] ; ["Offset of field: Spline::loc"] [:: std :: mem :: offset_of ! (Spline , loc) - 8usize] ; ["Offset of field: Spline::der"] [:: std :: mem :: offset_of ! (Spline , der) - 56usize] ; ["Offset of field: Spline::val"] [:: std :: mem :: offset_of ! (Spline , val) - 104usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FixSpline { pub len : :: std :: os :: raw :: c_int , pub val : f32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of FixSpline"] [:: std :: mem :: size_of :: < FixSpline > () - 8usize] ; ["Alignment of FixSpline"] [:: std :: mem :: align_of :: < FixSpline > () - 4usize] ; ["Offset of field: FixSpline::len"] [:: std :: mem :: offset_of ! (FixSpline , len) - 0usize] ; ["Offset of field: FixSpline::val"] [:: std :: mem :: offset_of ! (FixSpline , val) - 4usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct SplineStack { pub stack : [Spline ; 42usize] , pub fstack : [FixSpline ; 151usize] , pub len : :: std :: os :: raw :: c_int , pub flen : :: std :: os :: raw :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of SplineStack"] [:: std :: mem :: size_of :: < SplineStack > () - 9616usize] ; ["Alignment of SplineStack"] [:: std :: mem :: align_of :: < SplineStack > () - 8usize] ; ["Offset of field: SplineStack::stack"] [:: std :: mem :: offset_of ! (SplineStack , stack) - 0usize] ; ["Offset of field: SplineStack::fstack"] [:: std :: mem :: offset_of ! (SplineStack , fstack) - 8400usize] ; ["Offset of field: SplineStack::len"] [:: std :: mem :: offset_of ! (SplineStack , len) - 9608usize] ; ["Offset of field: SplineStack::flen"] [:: std :: mem :: offset_of ! (SplineStack , flen) - 9612usize] ; } ; pub const NP_TEMPERATURE : _bindgen_ty_2 = _bindgen_ty_2 (0) ; pub const NP_HUMIDITY : _bindgen_ty_2 = _bindgen_ty_2 (1) ; pub const NP_CONTINENTALNESS : _bindgen_ty_2 = _bindgen_ty_2 (2) ; pub const NP_EROSION : _bindgen_ty_2 = _bindgen_ty_2 (3) ; pub const NP_SHIFT : _bindgen_ty_2 = _bindgen_ty_2 (4) ; pub const NP_DEPTH : _bindgen_ty_2 = _bindgen_ty_2 (4) ; pub const NP_WEIRDNESS : _bindgen_ty_2 = _bindgen_ty_2 (5) ; pub const NP_MAX : _bindgen_ty_2 = _bindgen_ty_2 (6) ; # [repr (transparent)] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct _bindgen_ty_2 (pub :: std :: os :: raw :: c_uint) ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct BiomeNoise { pub climate : [DoublePerlinNoise ; 6usize] , pub oct : [PerlinNoise ; 46usize] , pub sp : * mut Spline , pub ss : SplineStack , pub nptype : :: std :: os :: raw :: c_int , pub mc : :: std :: os :: raw :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of BiomeNoise"] [:: std :: mem :: size_of :: < BiomeNoise > () - 24592usize] ; ["Alignment of BiomeNoise"] [:: std :: mem :: align_of :: < BiomeNoise > () - 8usize] ; ["Offset of field: BiomeNoise::climate"] [:: std :: mem :: offset_of ! (BiomeNoise , climate) - 0usize] ; ["Offset of field: BiomeNoise::oct"] [:: std :: mem :: offset_of ! (BiomeNoise , oct) - 240usize] ; ["Offset of field: BiomeNoise::sp"] [:: std :: mem :: offset_of ! (BiomeNoise , sp) - 14960usize] ; ["Offset of field: BiomeNoise::ss"] [:: std :: mem :: offset_of ! (BiomeNoise , ss) - 14968usize] ; ["Offset of field: BiomeNoise::nptype"] [:: std :: mem :: offset_of ! (BiomeNoise , nptype) - 24584usize] ; ["Offset of field: BiomeNoise::mc"] [:: std :: mem :: offset_of ! (BiomeNoise , mc) - 24588usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct BiomeNoiseBeta { pub climate : [OctaveNoise ; 3usize] , pub oct : [PerlinNoise ; 10usize] , pub nptype : :: std :: os :: raw :: c_int , pub mc : :: std :: os :: raw :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of BiomeNoiseBeta"] [:: std :: mem :: size_of :: < BiomeNoiseBeta > () - 3256usize] ; ["Alignment of BiomeNoiseBeta"] [:: std :: mem :: align_of :: < BiomeNoiseBeta > () - 8usize] ; ["Offset of field: BiomeNoiseBeta::climate"] [:: std :: mem :: offset_of ! (BiomeNoiseBeta , climate) - 0usize] ; ["Offset of field: BiomeNoiseBeta::oct"] [:: std :: mem :: offset_of ! (BiomeNoiseBeta , oct) - 48usize] ; ["Offset of field: BiomeNoiseBeta::nptype"] [:: std :: mem :: offset_of ! (BiomeNoiseBeta , nptype) - 3248usize] ; ["Offset of field: BiomeNoiseBeta::mc"] [:: std :: mem :: offset_of ! (BiomeNoiseBeta , mc) - 3252usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct BiomeTree { pub steps : * const u32 , pub param : * const i32 , pub nodes : * const u64 , pub order : u32 , pub len : u32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of BiomeTree"] [:: std :: mem :: size_of :: < BiomeTree > () - 32usize] ; ["Alignment of BiomeTree"] [:: std :: mem :: align_of :: < BiomeTree > () - 8usize] ; ["Offset of field: BiomeTree::steps"] [:: std :: mem :: offset_of ! (BiomeTree , steps) - 0usize] ; ["Offset of field: BiomeTree::param"] [:: std :: mem :: offset_of ! (BiomeTree , param) - 8usize] ; ["Offset of field: BiomeTree::nodes"] [:: std :: mem :: offset_of ! (BiomeTree , nodes) - 16usize] ; ["Offset of field: BiomeTree::order"] [:: std :: mem :: offset_of ! (BiomeTree , order) - 24usize] ; ["Offset of field: BiomeTree::len"] [:: std :: mem :: offset_of ! (BiomeTree , len) - 28usize] ; } ; unsafe extern "C" { pub fn initSurfaceNoise (sn : * mut SurfaceNoise , dim : :: std :: os :: raw :: c_int , seed : u64) ; } unsafe extern "C" { pub fn initSurfaceNoiseBeta (snb : * mut SurfaceNoiseBeta , seed : u64) ; } unsafe extern "C" { pub fn sampleSurfaceNoise (sn : * const SurfaceNoise , x : :: std :: os :: raw :: c_int , y : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int) -> f64 ; } unsafe extern "C" { pub fn sampleSurfaceNoiseBetween (sn : * const SurfaceNoise , x : :: std :: os :: raw :: c_int , y : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , noiseMin : f64 , noiseMax : f64) -> f64 ; } unsafe extern "C" { # [doc = " Nether biomes are 3D, and generated at scale 1:4. Use voronoiAccess3D() to\n convert coordinates at 1:1 scale to their 1:4 access. Biome checks for\n structures are generally done at y=0.\n\n The function getNetherBiome() determines the nether biome at a given\n coordinate at scale 1:4. The parameter 'ndel' is an output noise delta for\n optimization purposes and can be ignored (nullable).\n\n Use mapNether2D() to get a 2D area of nether biomes at y=0, scale 1:4.\n\n The mapNether3D() function attempts to optimize the generation of a volume\n at scale 1:4. The output is indexed as:\n out[i_y*(r.sx*r.sz) + i_z*r.sx + i_x].\n If the optimization parameter 'confidence' has a value less than 1.0, the\n generation will generally be faster, but can yield incorrect results in some\n circumstances.\n\n The output buffer for the map-functions need only be of sufficient size to\n hold the generated area (i.e. w*h or r.sx*r.sy*r.sz)."] pub fn setNetherSeed (nn : * mut NetherNoise , seed : u64) ; } unsafe extern "C" { pub fn getNetherBiome (nn : * const NetherNoise , x : :: std :: os :: raw :: c_int , y : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , ndel : * mut f32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapNether2D (nn : * const NetherNoise , out : * mut :: std :: os :: raw :: c_int , x : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , w : :: std :: os :: raw :: c_int , h : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapNether3D (nn : * const NetherNoise , out : * mut :: std :: os :: raw :: c_int , r : Range , confidence : f32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " The scaled Nether generation supports scales 1, 4, 16, 64, and 256.\n It is similar to mapNether3D(), but applies voronoi zoom if necessary, and\n fills the output buffer with nether_wastes for versions older than 1.16."] pub fn genNetherScaled (nn : * const NetherNoise , out : * mut :: std :: os :: raw :: c_int , r : Range , mc : :: std :: os :: raw :: c_int , sha : u64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " End biome generation is based on simplex noise and varies only at a 1:16\n chunk scale which can be generated with mapEndBiome(). The function mapEnd()\n is a variation which also scales this up on a regular grid to 1:4. The final\n access at a 1:1 scale uses voronoi."] pub fn setEndSeed (en : * mut EndNoise , mc : :: std :: os :: raw :: c_int , seed : u64) ; } unsafe extern "C" { pub fn mapEndBiome (en : * const EndNoise , out : * mut :: std :: os :: raw :: c_int , x : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , w : :: std :: os :: raw :: c_int , h : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapEnd (en : * const EndNoise , out : * mut :: std :: os :: raw :: c_int , x : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , w : :: std :: os :: raw :: c_int , h : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getEndSurfaceHeight (mc : :: std :: os :: raw :: c_int , seed : u64 , x : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapEndSurfaceHeight (y : * mut f32 , en : * const EndNoise , sn : * const SurfaceNoise , x : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , w : :: std :: os :: raw :: c_int , h : :: std :: os :: raw :: c_int , scale : :: std :: os :: raw :: c_int , ymin : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " The scaled End generation supports scales 1, 4, 16, and 64.\n The End biomes are usually 2D, but in 1.15+ there is 3D voronoi noise, which\n is controlled by the 'sha' hash of the seed. For scales higher than 1:1, and\n versions up to 1.14, 'sha' is ignored."] pub fn genEndScaled (en : * const EndNoise , out : * mut :: std :: os :: raw :: c_int , r : Range , mc : :: std :: os :: raw :: c_int , sha : u64) -> :: std :: os :: raw :: c_int ; } pub const SAMPLE_NO_SHIFT : _bindgen_ty_3 = _bindgen_ty_3 (1) ; pub const SAMPLE_NO_DEPTH : _bindgen_ty_3 = _bindgen_ty_3 (2) ; pub const SAMPLE_NO_BIOME : _bindgen_ty_3 = _bindgen_ty_3 (4) ; # [repr (transparent)] # [doc = " In 1.18 the Overworld uses a new noise map system for the biome generation.\n The random number generation also has updated to a Xiroshiro128 algorithm.\n The scale is 1:4, and is sampled at each point individually as there is\n currently not much benefit from generating a volume as a whole.\n\n The 1.18 End generation remains similar to 1.17 and does NOT use the\n biome noise."] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct _bindgen_ty_3 (pub :: std :: os :: raw :: c_uint) ; unsafe extern "C" { pub fn initBiomeNoise (bn : * mut BiomeNoise , mc : :: std :: os :: raw :: c_int) ; } unsafe extern "C" { pub fn setBiomeSeed (bn : * mut BiomeNoise , seed : u64 , large : :: std :: os :: raw :: c_int) ; } unsafe extern "C" { pub fn setBetaBiomeSeed (bnb : * mut BiomeNoiseBeta , seed : u64) ; } unsafe extern "C" { pub fn sampleBiomeNoise (bn : * const BiomeNoise , np : * mut i64 , x : :: std :: os :: raw :: c_int , y : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , dat : * mut u64 , sample_flags : u32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn sampleBiomeNoiseBeta (bnb : * const BiomeNoiseBeta , np : * mut i64 , nv : * mut f64 , x : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn approxSurfaceBeta (bnb : * const BiomeNoiseBeta , snb : * const SurfaceNoiseBeta , x : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int) -> f64 ; } unsafe extern "C" { # [doc = " (Alpha 1.2 - Beta 1.7)\n Temperature and humidity values to biome."] pub fn getOldBetaBiome (t : f32 , h : f32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " Uses the global biome tree definitions (see tables/btreeXX.h)\n to map a noise point (i.e. climate) to the corresponding overworld biome."] pub fn climateToBiome (mc : :: std :: os :: raw :: c_int , np : * const u64 , dat : * mut u64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " Initialize BiomeNoise for only a single climate parameter.\n If nptype == NP_DEPTH, the value is sampled at y=0. Note that this value\n changes linearly with the height (i.e. -= y/128).\n A maximum of nmax octaves is set, initializing only the most contributing\n octaves up to that point. Use -1 for a full initialization."] pub fn setClimateParaSeed (bn : * mut BiomeNoise , seed : u64 , large : :: std :: os :: raw :: c_int , nptype : :: std :: os :: raw :: c_int , nmax : :: std :: os :: raw :: c_int) ; } unsafe extern "C" { pub fn sampleClimatePara (bn : * const BiomeNoise , np : * mut i64 , x : f64 , z : f64) -> f64 ; } unsafe extern "C" { # [doc = " Currently, in 1.18, we have to generate biomes one chunk at a time to get an\n accurate mapping of the biomes in the level storage, as there is no longer a\n unique mapping from noise points to biomes (MC-241546). Note that the results\n from this are not suitable for chunk population/structure generation.\n The output is in the form out[x][y][z] for the 64 biome points in the chunk\n section. The coordinates {cx,cy,cz} are all at scale 1:16 and the 'dat'\n argument should be the previous noise sampling and can be left NULL."] pub fn genBiomeNoiseChunkSection (bn : * const BiomeNoise , out : * mut [[:: std :: os :: raw :: c_int ; 4usize] ; 4usize] , cx : :: std :: os :: raw :: c_int , cy : :: std :: os :: raw :: c_int , cz : :: std :: os :: raw :: c_int , dat : * mut u64) ; } unsafe extern "C" { # [doc = " The scaled biome noise generation applies for the Overworld version 1.18+.\n The 'sha' hash of the seed is only required for voronoi at scale 1:1.\n A scale of zero is interpreted as the default 1:4 scale."] pub fn genBiomeNoiseScaled (bn : * const BiomeNoise , out : * mut :: std :: os :: raw :: c_int , r : Range , sha : u64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " Generates the biomes for Beta 1.7, the surface noise is optional and enables\n ocean mapping in areas that fall below the sea level."] pub fn genBiomeNoiseBetaScaled (bnb : * const BiomeNoiseBeta , snb : * const SurfaceNoiseBeta , out : * mut :: std :: os :: raw :: c_int , r : Range) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getBiomeDepthAndScale (id : :: std :: os :: raw :: c_int , depth : * mut f64 , scale : * mut f64 , grass : * mut :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getVoronoiSrcRange (r : Range) -> Range ; } pub const LARGE_BIOMES : _bindgen_ty_4 = _bindgen_ty_4 (1) ; pub const NO_BETA_OCEAN : _bindgen_ty_4 = _bindgen_ty_4 (2) ; pub const FORCE_OCEAN_VARIANTS : _bindgen_ty_4 = _bindgen_ty_4 (4) ; # [repr (transparent)] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct _bindgen_ty_4 (pub :: std :: os :: raw :: c_uint) ; # [repr (C)] # [derive (Copy , Clone)] pub struct Generator { pub mc : :: std :: os :: raw :: c_int , pub dim : :: std :: os :: raw :: c_int , pub flags : u32 , pub seed : u64 , pub sha : u64 , pub __bindgen_anon_1 : Generator__bindgen_ty_1 , pub nn : NetherNoise , pub en : EndNoise , } # [repr (C)] # [derive (Copy , Clone)] pub union Generator__bindgen_ty_1 { pub __bindgen_anon_1 : Generator__bindgen_ty_1__bindgen_ty_1 , pub __bindgen_anon_2 : Generator__bindgen_ty_1__bindgen_ty_2 , pub __bindgen_anon_3 : Generator__bindgen_ty_1__bindgen_ty_3 , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Generator__bindgen_ty_1__bindgen_ty_1 { pub ls : LayerStack , pub xlayer : [Layer ; 5usize] , pub entry : * mut Layer , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Generator__bindgen_ty_1__bindgen_ty_1"] [:: std :: mem :: size_of :: < Generator__bindgen_ty_1__bindgen_ty_1 > () - 5120usize] ; ["Alignment of Generator__bindgen_ty_1__bindgen_ty_1"] [:: std :: mem :: align_of :: < Generator__bindgen_ty_1__bindgen_ty_1 > () - 8usize] ; ["Offset of field: Generator__bindgen_ty_1__bindgen_ty_1::ls"] [:: std :: mem :: offset_of ! (Generator__bindgen_ty_1__bindgen_ty_1 , ls) - 0usize] ; ["Offset of field: Generator__bindgen_ty_1__bindgen_ty_1::xlayer"] [:: std :: mem :: offset_of ! (Generator__bindgen_ty_1__bindgen_ty_1 , xlayer) - 4752usize] ; ["Offset of field: Generator__bindgen_ty_1__bindgen_ty_1::entry"] [:: std :: mem :: offset_of ! (Generator__bindgen_ty_1__bindgen_ty_1 , entry) - 5112usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Generator__bindgen_ty_1__bindgen_ty_2 { pub bn : BiomeNoise , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Generator__bindgen_ty_1__bindgen_ty_2"] [:: std :: mem :: size_of :: < Generator__bindgen_ty_1__bindgen_ty_2 > () - 24592usize] ; ["Alignment of Generator__bindgen_ty_1__bindgen_ty_2"] [:: std :: mem :: align_of :: < Generator__bindgen_ty_1__bindgen_ty_2 > () - 8usize] ; ["Offset of field: Generator__bindgen_ty_1__bindgen_ty_2::bn"] [:: std :: mem :: offset_of ! (Generator__bindgen_ty_1__bindgen_ty_2 , bn) - 0usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Generator__bindgen_ty_1__bindgen_ty_3 { pub bnb : BiomeNoiseBeta , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Generator__bindgen_ty_1__bindgen_ty_3"] [:: std :: mem :: size_of :: < Generator__bindgen_ty_1__bindgen_ty_3 > () - 3256usize] ; ["Alignment of Generator__bindgen_ty_1__bindgen_ty_3"] [:: std :: mem :: align_of :: < Generator__bindgen_ty_1__bindgen_ty_3 > () - 8usize] ; ["Offset of field: Generator__bindgen_ty_1__bindgen_ty_3::bnb"] [:: std :: mem :: offset_of ! (Generator__bindgen_ty_1__bindgen_ty_3 , bnb) - 0usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Generator__bindgen_ty_1"] [:: std :: mem :: size_of :: < Generator__bindgen_ty_1 > () - 24592usize] ; ["Alignment of Generator__bindgen_ty_1"] [:: std :: mem :: align_of :: < Generator__bindgen_ty_1 > () - 8usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Generator"] [:: std :: mem :: size_of :: < Generator > () - 27592usize] ; ["Alignment of Generator"] [:: std :: mem :: align_of :: < Generator > () - 8usize] ; ["Offset of field: Generator::mc"] [:: std :: mem :: offset_of ! (Generator , mc) - 0usize] ; ["Offset of field: Generator::dim"] [:: std :: mem :: offset_of ! (Generator , dim) - 4usize] ; ["Offset of field: Generator::flags"] [:: std :: mem :: offset_of ! (Generator , flags) - 8usize] ; ["Offset of field: Generator::seed"] [:: std :: mem :: offset_of ! (Generator , seed) - 16usize] ; ["Offset of field: Generator::sha"] [:: std :: mem :: offset_of ! (Generator , sha) - 24usize] ; ["Offset of field: Generator::nn"] [:: std :: mem :: offset_of ! (Generator , nn) - 24624usize] ; ["Offset of field: Generator::en"] [:: std :: mem :: offset_of ! (Generator , en) - 27264usize] ; } ; unsafe extern "C" { # [doc = " Sets up a biome generator for a given MC version. The 'flags' can be used to\n control LARGE_BIOMES or to FORCE_OCEAN_VARIANTS to enable ocean variants at\n scales higher than normal."] pub fn setupGenerator (g : * mut Generator , mc : :: std :: os :: raw :: c_int , flags : u32) ; } unsafe extern "C" { # [doc = " Initializes the generator for a given dimension and seed.\n dim=0:   Overworld\n dim=-1:  Nether\n dim=+1:  End"] pub fn applySeed (g : * mut Generator , dim : :: std :: os :: raw :: c_int , seed : u64) ; } unsafe extern "C" { # [doc = " Calculates the buffer size (number of ints) required to generate a cuboidal\n volume of size (sx, sy, sz). If 'sy' is zero the buffer is calculated for a\n 2D plane (which is equivalent to sy=1 here).\n The function allocCache() can be used to allocate the corresponding int\n buffer using malloc()."] pub fn getMinCacheSize (g : * const Generator , scale : :: std :: os :: raw :: c_int , sx : :: std :: os :: raw :: c_int , sy : :: std :: os :: raw :: c_int , sz : :: std :: os :: raw :: c_int) -> usize ; } unsafe extern "C" { pub fn allocCache (g : * const Generator , r : Range) -> * mut :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " Generates the biomes for a cuboidal scaled range given by 'r'.\n (See description of Range for more detail.)\n\n The output is generated inside the cache. Upon success the biome ids can be\n accessed by indexing as:\n  cache[ y*r.sx*r.sz + z*r.sx + x ]\n where (x,y,z) is an relative position inside the range cuboid.\n\n The required length of the cache can be determined with getMinCacheSize().\n\n The return value is zero upon success."] pub fn genBiomes (g : * const Generator , cache : * mut :: std :: os :: raw :: c_int , r : Range) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " Gets the biome for a specified scaled position. Note that the scale should\n be either 1 or 4, for block or biome coordinates respectively.\n Returns none (-1) upon failure."] pub fn getBiomeAt (g : * const Generator , scale : :: std :: os :: raw :: c_int , x : :: std :: os :: raw :: c_int , y : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " Returns the default layer that corresponds to the given scale.\n Supported scales are {0, 1, 4, 16, 64, 256}. A scale of zero indicates the\n custom entry layer 'g->entry'.\n (Overworld, MC <= 1.17)"] pub fn getLayerForScale (g : * const Generator , scale : :: std :: os :: raw :: c_int) -> * const Layer ; } unsafe extern "C" { # [doc = "=============================================================================\n Layered Biome Generation (old interface up to 1.17)\n============================================================================="] pub fn setupLayerStack (g : * mut LayerStack , mc : :: std :: os :: raw :: c_int , largeBiomes : :: std :: os :: raw :: c_int) ; } unsafe extern "C" { pub fn getMinLayerCacheSize (layer : * const Layer , sizeX : :: std :: os :: raw :: c_int , sizeZ : :: std :: os :: raw :: c_int) -> usize ; } unsafe extern "C" { pub fn setupLayer (l : * mut Layer , map : mapfunc_t , mc : :: std :: os :: raw :: c_int , zoom : i8 , edge : i8 , saltbase : u64 , p : * mut Layer , p2 : * mut Layer) -> * mut Layer ; } unsafe extern "C" { pub fn genArea (layer : * const Layer , out : * mut :: std :: os :: raw :: c_int , areaX : :: std :: os :: raw :: c_int , areaZ : :: std :: os :: raw :: c_int , areaWidth : :: std :: os :: raw :: c_int , areaHeight : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " Map an approximation of the Overworld surface height.\n The horizontal scaling is 1:4. If non-null, the ids are filled with the\n biomes of the area. The height (written to y) is in blocks."] pub fn mapApproxHeight (y : * mut f32 , ids : * mut :: std :: os :: raw :: c_int , g : * const Generator , sn : * const SurfaceNoise , x : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , w : :: std :: os :: raw :: c_int , h : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } impl StructureType { pub const Feature : StructureType = StructureType (0) ; } impl StructureType { pub const Desert_Pyramid : StructureType = StructureType (1) ; } impl StructureType { pub const Jungle_Temple : StructureType = StructureType (2) ; } impl StructureType { pub const Jungle_Pyramid : StructureType = StructureType (2) ; } impl StructureType { pub const Swamp_Hut : StructureType = StructureType (3) ; } impl StructureType { pub const Igloo : StructureType = StructureType (4) ; } impl StructureType { pub const Village : StructureType = StructureType (5) ; } impl StructureType { pub const Ocean_Ruin : StructureType = StructureType (6) ; } impl StructureType { pub const Shipwreck : StructureType = StructureType (7) ; } impl StructureType { pub const Monument : StructureType = StructureType (8) ; } impl StructureType { pub const Mansion : StructureType = StructureType (9) ; } impl StructureType { pub const Outpost : StructureType = StructureType (10) ; } impl StructureType { pub const Ruined_Portal : StructureType = StructureType (11) ; } impl StructureType { pub const Ruined_Portal_N : StructureType = StructureType (12) ; } impl StructureType { pub const Ancient_City : StructureType = StructureType (13) ; } impl StructureType { pub const Treasure : StructureType = StructureType (14) ; } impl StructureType { pub const Mineshaft : StructureType = StructureType (15) ; } impl StructureType { pub const Desert_Well : StructureType = StructureType (16) ; } impl StructureType { pub const Geode : StructureType = StructureType (17) ; } impl StructureType { pub const Fortress : StructureType = StructureType (18) ; } impl StructureType { pub const Bastion : StructureType = StructureType (19) ; } impl StructureType { pub const End_City : StructureType = StructureType (20) ; } impl StructureType { pub const End_Gateway : StructureType = StructureType (21) ; } impl StructureType { pub const End_Island : StructureType = StructureType (22) ; } impl StructureType { pub const Trail_Ruins : StructureType = StructureType (23) ; } impl StructureType { pub const Trial_Chambers : StructureType = StructureType (24) ; } impl StructureType { pub const FEATURE_NUM : StructureType = StructureType (25) ; } # [repr (transparent)] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct StructureType (pub :: std :: os :: raw :: c_uint) ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct StructureConfig { pub salt : i32 , pub regionSize : i8 , pub chunkRange : i8 , pub structType : u8 , pub dim : i8 , pub rarity : f32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of StructureConfig"] [:: std :: mem :: size_of :: < StructureConfig > () - 12usize] ; ["Alignment of StructureConfig"] [:: std :: mem :: align_of :: < StructureConfig > () - 4usize] ; ["Offset of field: StructureConfig::salt"] [:: std :: mem :: offset_of ! (StructureConfig , salt) - 0usize] ; ["Offset of field: StructureConfig::regionSize"] [:: std :: mem :: offset_of ! (StructureConfig , regionSize) - 4usize] ; ["Offset of field: StructureConfig::chunkRange"] [:: std :: mem :: offset_of ! (StructureConfig , chunkRange) - 5usize] ; ["Offset of field: StructureConfig::structType"] [:: std :: mem :: offset_of ! (StructureConfig , structType) - 6usize] ; ["Offset of field: StructureConfig::dim"] [:: std :: mem :: offset_of ! (StructureConfig , dim) - 7usize] ; ["Offset of field: StructureConfig::rarity"] [:: std :: mem :: offset_of ! (StructureConfig , rarity) - 8usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Pos { pub x : :: std :: os :: raw :: c_int , pub z : :: std :: os :: raw :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Pos"] [:: std :: mem :: size_of :: < Pos > () - 8usize] ; ["Alignment of Pos"] [:: std :: mem :: align_of :: < Pos > () - 4usize] ; ["Offset of field: Pos::x"] [:: std :: mem :: offset_of ! (Pos , x) - 0usize] ; ["Offset of field: Pos::z"] [:: std :: mem :: offset_of ! (Pos , z) - 4usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Pos3 { pub x : :: std :: os :: raw :: c_int , pub y : :: std :: os :: raw :: c_int , pub z : :: std :: os :: raw :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Pos3"] [:: std :: mem :: size_of :: < Pos3 > () - 12usize] ; ["Alignment of Pos3"] [:: std :: mem :: align_of :: < Pos3 > () - 4usize] ; ["Offset of field: Pos3::x"] [:: std :: mem :: offset_of ! (Pos3 , x) - 0usize] ; ["Offset of field: Pos3::y"] [:: std :: mem :: offset_of ! (Pos3 , y) - 4usize] ; ["Offset of field: Pos3::z"] [:: std :: mem :: offset_of ! (Pos3 , z) - 8usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct StrongholdIter { pub pos : Pos , pub nextapprox : Pos , pub index : :: std :: os :: raw :: c_int , pub ringnum : :: std :: os :: raw :: c_int , pub ringmax : :: std :: os :: raw :: c_int , pub ringidx : :: std :: os :: raw :: c_int , pub angle : f64 , pub dist : f64 , pub rnds : u64 , pub mc : :: std :: os :: raw :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of StrongholdIter"] [:: std :: mem :: size_of :: < StrongholdIter > () - 64usize] ; ["Alignment of StrongholdIter"] [:: std :: mem :: align_of :: < StrongholdIter > () - 8usize] ; ["Offset of field: StrongholdIter::pos"] [:: std :: mem :: offset_of ! (StrongholdIter , pos) - 0usize] ; ["Offset of field: StrongholdIter::nextapprox"] [:: std :: mem :: offset_of ! (StrongholdIter , nextapprox) - 8usize] ; ["Offset of field: StrongholdIter::index"] [:: std :: mem :: offset_of ! (StrongholdIter , index) - 16usize] ; ["Offset of field: StrongholdIter::ringnum"] [:: std :: mem :: offset_of ! (StrongholdIter , ringnum) - 20usize] ; ["Offset of field: StrongholdIter::ringmax"] [:: std :: mem :: offset_of ! (StrongholdIter , ringmax) - 24usize] ; ["Offset of field: StrongholdIter::ringidx"] [:: std :: mem :: offset_of ! (StrongholdIter , ringidx) - 28usize] ; ["Offset of field: StrongholdIter::angle"] [:: std :: mem :: offset_of ! (StrongholdIter , angle) - 32usize] ; ["Offset of field: StrongholdIter::dist"] [:: std :: mem :: offset_of ! (StrongholdIter , dist) - 40usize] ; ["Offset of field: StrongholdIter::rnds"] [:: std :: mem :: offset_of ! (StrongholdIter , rnds) - 48usize] ; ["Offset of field: StrongholdIter::mc"] [:: std :: mem :: offset_of ! (StrongholdIter , mc) - 56usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct StructureVariant { pub _bitfield_align_1 : [u8 ; 0] , pub _bitfield_1 : __BindgenBitfieldUnit < [u8 ; 1usize] > , pub size : u8 , pub start : u8 , pub biome : :: std :: os :: raw :: c_short , pub rotation : u8 , pub mirror : u8 , pub x : i16 , pub y : i16 , pub z : i16 , pub sx : i16 , pub sy : i16 , pub sz : i16 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of StructureVariant"] [:: std :: mem :: size_of :: < StructureVariant > () - 20usize] ; ["Alignment of StructureVariant"] [:: std :: mem :: align_of :: < StructureVariant > () - 2usize] ; ["Offset of field: StructureVariant::size"] [:: std :: mem :: offset_of ! (StructureVariant , size) - 1usize] ; ["Offset of field: StructureVariant::start"] [:: std :: mem :: offset_of ! (StructureVariant , start) - 2usize] ; ["Offset of field: StructureVariant::biome"] [:: std :: mem :: offset_of ! (StructureVariant , biome) - 4usize] ; ["Offset of field: StructureVariant::rotation"] [:: std :: mem :: offset_of ! (StructureVariant , rotation) - 6usize] ; ["Offset of field: StructureVariant::mirror"] [:: std :: mem :: offset_of ! (StructureVariant , mirror) - 7usize] ; ["Offset of field: StructureVariant::x"] [:: std :: mem :: offset_of ! (StructureVariant , x) - 8usize] ; ["Offset of field: StructureVariant::y"] [:: std :: mem :: offset_of ! (StructureVariant , y) - 10usize] ; ["Offset of field: StructureVariant::z"] [:: std :: mem :: offset_of ! (StructureVariant , z) - 12usize] ; ["Offset of field: StructureVariant::sx"] [:: std :: mem :: offset_of ! (StructureVariant , sx) - 14usize] ; ["Offset of field: StructureVariant::sy"] [:: std :: mem :: offset_of ! (StructureVariant , sy) - 16usize] ; ["Offset of field: StructureVariant::sz"] [:: std :: mem :: offset_of ! (StructureVariant , sz) - 18usize] ; } ; impl StructureVariant { # [inline] pub fn abandoned (& self) -> u8 { unsafe { :: std :: mem :: transmute (self . _bitfield_1 . get (0usize , 1u8) as u8) } } # [inline] pub fn set_abandoned (& mut self , val : u8) { unsafe { let val : u8 = :: std :: mem :: transmute (val) ; self . _bitfield_1 . set (0usize , 1u8 , val as u64) } } # [inline] pub unsafe fn abandoned_raw (this : * const Self) -> u8 { unsafe { :: std :: mem :: transmute (< __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_get (:: std :: ptr :: addr_of ! ((* this) . _bitfield_1) , 0usize , 1u8 ,) as u8) } } # [inline] pub unsafe fn set_abandoned_raw (this : * mut Self , val : u8) { unsafe { let val : u8 = :: std :: mem :: transmute (val) ; < __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_set (:: std :: ptr :: addr_of_mut ! ((* this) . _bitfield_1) , 0usize , 1u8 , val as u64 ,) } } # [inline] pub fn giant (& self) -> u8 { unsafe { :: std :: mem :: transmute (self . _bitfield_1 . get (1usize , 1u8) as u8) } } # [inline] pub fn set_giant (& mut self , val : u8) { unsafe { let val : u8 = :: std :: mem :: transmute (val) ; self . _bitfield_1 . set (1usize , 1u8 , val as u64) } } # [inline] pub unsafe fn giant_raw (this : * const Self) -> u8 { unsafe { :: std :: mem :: transmute (< __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_get (:: std :: ptr :: addr_of ! ((* this) . _bitfield_1) , 1usize , 1u8 ,) as u8) } } # [inline] pub unsafe fn set_giant_raw (this : * mut Self , val : u8) { unsafe { let val : u8 = :: std :: mem :: transmute (val) ; < __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_set (:: std :: ptr :: addr_of_mut ! ((* this) . _bitfield_1) , 1usize , 1u8 , val as u64 ,) } } # [inline] pub fn underground (& self) -> u8 { unsafe { :: std :: mem :: transmute (self . _bitfield_1 . get (2usize , 1u8) as u8) } } # [inline] pub fn set_underground (& mut self , val : u8) { unsafe { let val : u8 = :: std :: mem :: transmute (val) ; self . _bitfield_1 . set (2usize , 1u8 , val as u64) } } # [inline] pub unsafe fn underground_raw (this : * const Self) -> u8 { unsafe { :: std :: mem :: transmute (< __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_get (:: std :: ptr :: addr_of ! ((* this) . _bitfield_1) , 2usize , 1u8 ,) as u8) } } # [inline] pub unsafe fn set_underground_raw (this : * mut Self , val : u8) { unsafe { let val : u8 = :: std :: mem :: transmute (val) ; < __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_set (:: std :: ptr :: addr_of_mut ! ((* this) . _bitfield_1) , 2usize , 1u8 , val as u64 ,) } } # [inline] pub fn airpocket (& self) -> u8 { unsafe { :: std :: mem :: transmute (self . _bitfield_1 . get (3usize , 1u8) as u8) } } # [inline] pub fn set_airpocket (& mut self , val : u8) { unsafe { let val : u8 = :: std :: mem :: transmute (val) ; self . _bitfield_1 . set (3usize , 1u8 , val as u64) } } # [inline] pub unsafe fn airpocket_raw (this : * const Self) -> u8 { unsafe { :: std :: mem :: transmute (< __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_get (:: std :: ptr :: addr_of ! ((* this) . _bitfield_1) , 3usize , 1u8 ,) as u8) } } # [inline] pub unsafe fn set_airpocket_raw (this : * mut Self , val : u8) { unsafe { let val : u8 = :: std :: mem :: transmute (val) ; < __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_set (:: std :: ptr :: addr_of_mut ! ((* this) . _bitfield_1) , 3usize , 1u8 , val as u64 ,) } } # [inline] pub fn basement (& self) -> u8 { unsafe { :: std :: mem :: transmute (self . _bitfield_1 . get (4usize , 1u8) as u8) } } # [inline] pub fn set_basement (& mut self , val : u8) { unsafe { let val : u8 = :: std :: mem :: transmute (val) ; self . _bitfield_1 . set (4usize , 1u8 , val as u64) } } # [inline] pub unsafe fn basement_raw (this : * const Self) -> u8 { unsafe { :: std :: mem :: transmute (< __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_get (:: std :: ptr :: addr_of ! ((* this) . _bitfield_1) , 4usize , 1u8 ,) as u8) } } # [inline] pub unsafe fn set_basement_raw (this : * mut Self , val : u8) { unsafe { let val : u8 = :: std :: mem :: transmute (val) ; < __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_set (:: std :: ptr :: addr_of_mut ! ((* this) . _bitfield_1) , 4usize , 1u8 , val as u64 ,) } } # [inline] pub fn cracked (& self) -> u8 { unsafe { :: std :: mem :: transmute (self . _bitfield_1 . get (5usize , 1u8) as u8) } } # [inline] pub fn set_cracked (& mut self , val : u8) { unsafe { let val : u8 = :: std :: mem :: transmute (val) ; self . _bitfield_1 . set (5usize , 1u8 , val as u64) } } # [inline] pub unsafe fn cracked_raw (this : * const Self) -> u8 { unsafe { :: std :: mem :: transmute (< __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_get (:: std :: ptr :: addr_of ! ((* this) . _bitfield_1) , 5usize , 1u8 ,) as u8) } } # [inline] pub unsafe fn set_cracked_raw (this : * mut Self , val : u8) { unsafe { let val : u8 = :: std :: mem :: transmute (val) ; < __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_set (:: std :: ptr :: addr_of_mut ! ((* this) . _bitfield_1) , 5usize , 1u8 , val as u64 ,) } } # [inline] pub fn new_bitfield_1 (abandoned : u8 , giant : u8 , underground : u8 , airpocket : u8 , basement : u8 , cracked : u8) -> __BindgenBitfieldUnit < [u8 ; 1usize] > { let mut __bindgen_bitfield_unit : __BindgenBitfieldUnit < [u8 ; 1usize] > = Default :: default () ; __bindgen_bitfield_unit . set (0usize , 1u8 , { let abandoned : u8 = unsafe { :: std :: mem :: transmute (abandoned) } ; abandoned as u64 }) ; __bindgen_bitfield_unit . set (1usize , 1u8 , { let giant : u8 = unsafe { :: std :: mem :: transmute (giant) } ; giant as u64 }) ; __bindgen_bitfield_unit . set (2usize , 1u8 , { let underground : u8 = unsafe { :: std :: mem :: transmute (underground) } ; underground as u64 }) ; __bindgen_bitfield_unit . set (3usize , 1u8 , { let airpocket : u8 = unsafe { :: std :: mem :: transmute (airpocket) } ; airpocket as u64 }) ; __bindgen_bitfield_unit . set (4usize , 1u8 , { let basement : u8 = unsafe { :: std :: mem :: transmute (basement) } ; basement as u64 }) ; __bindgen_bitfield_unit . set (5usize , 1u8 , { let cracked : u8 = unsafe { :: std :: mem :: transmute (cracked) } ; cracked as u64 }) ; __bindgen_bitfield_unit } } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Piece { pub name : * const :: std :: os :: raw :: c_char , pub pos : Pos3 , pub bb0 : Pos3 , pub bb1 : Pos3 , pub rot : u8 , pub depth : i8 , pub type_ : i8 , pub next : * mut Piece , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Piece"] [:: std :: mem :: size_of :: < Piece > () - 56usize] ; ["Alignment of Piece"] [:: std :: mem :: align_of :: < Piece > () - 8usize] ; ["Offset of field: Piece::name"] [:: std :: mem :: offset_of ! (Piece , name) - 0usize] ; ["Offset of field: Piece::pos"] [:: std :: mem :: offset_of ! (Piece , pos) - 8usize] ; ["Offset of field: Piece::bb0"] [:: std :: mem :: offset_of ! (Piece , bb0) - 20usize] ; ["Offset of field: Piece::bb1"] [:: std :: mem :: offset_of ! (Piece , bb1) - 32usize] ; ["Offset of field: Piece::rot"] [:: std :: mem :: offset_of ! (Piece , rot) - 44usize] ; ["Offset of field: Piece::depth"] [:: std :: mem :: offset_of ! (Piece , depth) - 45usize] ; ["Offset of field: Piece::type_"] [:: std :: mem :: offset_of ! (Piece , type_) - 46usize] ; ["Offset of field: Piece::next"] [:: std :: mem :: offset_of ! (Piece , next) - 48usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct EndIsland { pub x : :: std :: os :: raw :: c_int , pub y : :: std :: os :: raw :: c_int , pub z : :: std :: os :: raw :: c_int , pub r : :: std :: os :: raw :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of EndIsland"] [:: std :: mem :: size_of :: < EndIsland > () - 16usize] ; ["Alignment of EndIsland"] [:: std :: mem :: align_of :: < EndIsland > () - 4usize] ; ["Offset of field: EndIsland::x"] [:: std :: mem :: offset_of ! (EndIsland , x) - 0usize] ; ["Offset of field: EndIsland::y"] [:: std :: mem :: offset_of ! (EndIsland , y) - 4usize] ; ["Offset of field: EndIsland::z"] [:: std :: mem :: offset_of ! (EndIsland , z) - 8usize] ; ["Offset of field: EndIsland::r"] [:: std :: mem :: offset_of ! (EndIsland , r) - 12usize] ; } ; pub const BF_APPROX : _bindgen_ty_5 = _bindgen_ty_5 (1) ; pub const BF_FORCED_OCEAN : _bindgen_ty_5 = _bindgen_ty_5 (4) ; # [repr (transparent)] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct _bindgen_ty_5 (pub :: std :: os :: raw :: c_uint) ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct BiomeFilter { pub tempsToFind : u64 , pub otempToFind : u64 , pub majorToFind : u64 , pub edgesToFind : u64 , pub raresToFind : u64 , pub raresToFindM : u64 , pub shoreToFind : u64 , pub shoreToFindM : u64 , pub riverToFind : u64 , pub riverToFindM : u64 , pub oceanToFind : u64 , pub specialCnt : :: std :: os :: raw :: c_int , pub flags : u32 , pub tempsToExcl : u64 , pub majorToExcl : u64 , pub edgesToExcl : u64 , pub raresToExcl : u64 , pub raresToExclM : u64 , pub shoreToExcl : u64 , pub shoreToExclM : u64 , pub riverToExcl : u64 , pub riverToExclM : u64 , pub biomeToExcl : u64 , pub biomeToExclM : u64 , pub biomeToFind : u64 , pub biomeToFindM : u64 , pub biomeToPick : u64 , pub biomeToPickM : u64 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of BiomeFilter"] [:: std :: mem :: size_of :: < BiomeFilter > () - 216usize] ; ["Alignment of BiomeFilter"] [:: std :: mem :: align_of :: < BiomeFilter > () - 8usize] ; ["Offset of field: BiomeFilter::tempsToFind"] [:: std :: mem :: offset_of ! (BiomeFilter , tempsToFind) - 0usize] ; ["Offset of field: BiomeFilter::otempToFind"] [:: std :: mem :: offset_of ! (BiomeFilter , otempToFind) - 8usize] ; ["Offset of field: BiomeFilter::majorToFind"] [:: std :: mem :: offset_of ! (BiomeFilter , majorToFind) - 16usize] ; ["Offset of field: BiomeFilter::edgesToFind"] [:: std :: mem :: offset_of ! (BiomeFilter , edgesToFind) - 24usize] ; ["Offset of field: BiomeFilter::raresToFind"] [:: std :: mem :: offset_of ! (BiomeFilter , raresToFind) - 32usize] ; ["Offset of field: BiomeFilter::raresToFindM"] [:: std :: mem :: offset_of ! (BiomeFilter , raresToFindM) - 40usize] ; ["Offset of field: BiomeFilter::shoreToFind"] [:: std :: mem :: offset_of ! (BiomeFilter , shoreToFind) - 48usize] ; ["Offset of field: BiomeFilter::shoreToFindM"] [:: std :: mem :: offset_of ! (BiomeFilter , shoreToFindM) - 56usize] ; ["Offset of field: BiomeFilter::riverToFind"] [:: std :: mem :: offset_of ! (BiomeFilter , riverToFind) - 64usize] ; ["Offset of field: BiomeFilter::riverToFindM"] [:: std :: mem :: offset_of ! (BiomeFilter , riverToFindM) - 72usize] ; ["Offset of field: BiomeFilter::oceanToFind"] [:: std :: mem :: offset_of ! (BiomeFilter , oceanToFind) - 80usize] ; ["Offset of field: BiomeFilter::specialCnt"] [:: std :: mem :: offset_of ! (BiomeFilter , specialCnt) - 88usize] ; ["Offset of field: BiomeFilter::flags"] [:: std :: mem :: offset_of ! (BiomeFilter , flags) - 92usize] ; ["Offset of field: BiomeFilter::tempsToExcl"] [:: std :: mem :: offset_of ! (BiomeFilter , tempsToExcl) - 96usize] ; ["Offset of field: BiomeFilter::majorToExcl"] [:: std :: mem :: offset_of ! (BiomeFilter , majorToExcl) - 104usize] ; ["Offset of field: BiomeFilter::edgesToExcl"] [:: std :: mem :: offset_of ! (BiomeFilter , edgesToExcl) - 112usize] ; ["Offset of field: BiomeFilter::raresToExcl"] [:: std :: mem :: offset_of ! (BiomeFilter , raresToExcl) - 120usize] ; ["Offset of field: BiomeFilter::raresToExclM"] [:: std :: mem :: offset_of ! (BiomeFilter , raresToExclM) - 128usize] ; ["Offset of field: BiomeFilter::shoreToExcl"] [:: std :: mem :: offset_of ! (BiomeFilter , shoreToExcl) - 136usize] ; ["Offset of field: BiomeFilter::shoreToExclM"] [:: std :: mem :: offset_of ! (BiomeFilter , shoreToExclM) - 144usize] ; ["Offset of field: BiomeFilter::riverToExcl"] [:: std :: mem :: offset_of ! (BiomeFilter , riverToExcl) - 152usize] ; ["Offset of field: BiomeFilter::riverToExclM"] [:: std :: mem :: offset_of ! (BiomeFilter , riverToExclM) - 160usize] ; ["Offset of field: BiomeFilter::biomeToExcl"] [:: std :: mem :: offset_of ! (BiomeFilter , biomeToExcl) - 168usize] ; ["Offset of field: BiomeFilter::biomeToExclM"] [:: std :: mem :: offset_of ! (BiomeFilter , biomeToExclM) - 176usize] ; ["Offset of field: BiomeFilter::biomeToFind"] [:: std :: mem :: offset_of ! (BiomeFilter , biomeToFind) - 184usize] ; ["Offset of field: BiomeFilter::biomeToFindM"] [:: std :: mem :: offset_of ! (BiomeFilter , biomeToFindM) - 192usize] ; ["Offset of field: BiomeFilter::biomeToPick"] [:: std :: mem :: offset_of ! (BiomeFilter , biomeToPick) - 200usize] ; ["Offset of field: BiomeFilter::biomeToPickM"] [:: std :: mem :: offset_of ! (BiomeFilter , biomeToPickM) - 208usize] ; } ; unsafe extern "C" { pub fn getStructureConfig (structureType : :: std :: os :: raw :: c_int , mc : :: std :: os :: raw :: c_int , sconf : * mut StructureConfig) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getStructurePos (structureType : :: std :: os :: raw :: c_int , mc : :: std :: os :: raw :: c_int , seed : u64 , regX : :: std :: os :: raw :: c_int , regZ : :: std :: os :: raw :: c_int , pos : * mut Pos) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getMineshafts (mc : :: std :: os :: raw :: c_int , seed : u64 , chunkX : :: std :: os :: raw :: c_int , chunkZ : :: std :: os :: raw :: c_int , chunkW : :: std :: os :: raw :: c_int , chunkH : :: std :: os :: raw :: c_int , out : * mut Pos , nout : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getEndIslands (islands : * mut EndIsland , mc : :: std :: os :: raw :: c_int , seed : u64 , chunkX : :: std :: os :: raw :: c_int , chunkZ : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapEndIslandHeight (y : * mut f32 , en : * const EndNoise , seed : u64 , x : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , w : :: std :: os :: raw :: c_int , h : :: std :: os :: raw :: c_int , scale : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn isEndChunkEmpty (en : * const EndNoise , sn : * const SurfaceNoise , seed : u64 , chunkX : :: std :: os :: raw :: c_int , chunkZ : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn initFirstStronghold (sh : * mut StrongholdIter , mc : :: std :: os :: raw :: c_int , s48 : u64) -> Pos ; } unsafe extern "C" { pub fn nextStronghold (sh : * mut StrongholdIter , g : * const Generator) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn estimateSpawn (g : * const Generator , rng : * mut u64) -> Pos ; } unsafe extern "C" { pub fn getSpawn (g : * const Generator) -> Pos ; } unsafe extern "C" { pub fn locateBiome (g : * const Generator , x : :: std :: os :: raw :: c_int , y : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , radius : :: std :: os :: raw :: c_int , validB : u64 , validM : u64 , rng : * mut u64 , passes : * mut :: std :: os :: raw :: c_int) -> Pos ; } unsafe extern "C" { pub fn isViableStructurePos (structType : :: std :: os :: raw :: c_int , g : * mut Generator , blockX : :: std :: os :: raw :: c_int , blockZ : :: std :: os :: raw :: c_int , flags : u32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn isViableFeatureBiome (mc : :: std :: os :: raw :: c_int , structureType : :: std :: os :: raw :: c_int , biomeID : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn isViableStructureTerrain (structType : :: std :: os :: raw :: c_int , g : * mut Generator , blockX : :: std :: os :: raw :: c_int , blockZ : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn isViableEndCityTerrain (g : * const Generator , sn : * const SurfaceNoise , blockX : :: std :: os :: raw :: c_int , blockZ : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getVariant (sv : * mut StructureVariant , structType : :: std :: os :: raw :: c_int , mc : :: std :: os :: raw :: c_int , seed : u64 , blockX : :: std :: os :: raw :: c_int , blockZ : :: std :: os :: raw :: c_int , biomeID : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getEndCityPieces (pieces : * mut Piece , seed : u64 , chunkX : :: std :: os :: raw :: c_int , chunkZ : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } pub const BASE_FLOOR : _bindgen_ty_6 = _bindgen_ty_6 (0) ; pub const BASE_ROOF : _bindgen_ty_6 = _bindgen_ty_6 (1) ; pub const BRIDGE_END : _bindgen_ty_6 = _bindgen_ty_6 (2) ; pub const BRIDGE_GENTLE_STAIRS : _bindgen_ty_6 = _bindgen_ty_6 (3) ; pub const BRIDGE_PIECE : _bindgen_ty_6 = _bindgen_ty_6 (4) ; pub const BRIDGE_STEEP_STAIRS : _bindgen_ty_6 = _bindgen_ty_6 (5) ; pub const FAT_TOWER_BASE : _bindgen_ty_6 = _bindgen_ty_6 (6) ; pub const FAT_TOWER_MIDDLE : _bindgen_ty_6 = _bindgen_ty_6 (7) ; pub const FAT_TOWER_TOP : _bindgen_ty_6 = _bindgen_ty_6 (8) ; pub const SECOND_FLOOR_1 : _bindgen_ty_6 = _bindgen_ty_6 (9) ; pub const SECOND_FLOOR_2 : _bindgen_ty_6 = _bindgen_ty_6 (10) ; pub const SECOND_ROOF : _bindgen_ty_6 = _bindgen_ty_6 (11) ; pub const END_SHIP : _bindgen_ty_6 = _bindgen_ty_6 (12) ; pub const THIRD_FLOOR_1 : _bindgen_ty_6 = _bindgen_ty_6 (13) ; pub const THIRD_FLOOR_2 : _bindgen_ty_6 = _bindgen_ty_6 (14) ; pub const THIRD_ROOF : _bindgen_ty_6 = _bindgen_ty_6 (15) ; pub const TOWER_BASE : _bindgen_ty_6 = _bindgen_ty_6 (16) ; pub const TOWER_FLOOR : _bindgen_ty_6 = _bindgen_ty_6 (17) ; pub const TOWER_PIECE : _bindgen_ty_6 = _bindgen_ty_6 (18) ; pub const TOWER_TOP : _bindgen_ty_6 = _bindgen_ty_6 (19) ; pub const END_CITY_PIECES_MAX : _bindgen_ty_6 = _bindgen_ty_6 (421) ; # [repr (transparent)] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct _bindgen_ty_6 (pub :: std :: os :: raw :: c_uint) ; unsafe extern "C" { pub fn getFortressPieces (list : * mut Piece , n : :: std :: os :: raw :: c_int , mc : :: std :: os :: raw :: c_int , seed : u64 , chunkX : :: std :: os :: raw :: c_int , chunkZ : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } pub const FORTRESS_START : _bindgen_ty_7 = _bindgen_ty_7 (0) ; pub const BRIDGE_STRAIGHT : _bindgen_ty_7 = _bindgen_ty_7 (1) ; pub const BRIDGE_CROSSING : _bindgen_ty_7 = _bindgen_ty_7 (2) ; pub const BRIDGE_FORTIFIED_CROSSING : _bindgen_ty_7 = _bindgen_ty_7 (3) ; pub const BRIDGE_STAIRS : _bindgen_ty_7 = _bindgen_ty_7 (4) ; pub const BRIDGE_SPAWNER : _bindgen_ty_7 = _bindgen_ty_7 (5) ; pub const BRIDGE_CORRIDOR_ENTRANCE : _bindgen_ty_7 = _bindgen_ty_7 (6) ; pub const CORRIDOR_STRAIGHT : _bindgen_ty_7 = _bindgen_ty_7 (7) ; pub const CORRIDOR_CROSSING : _bindgen_ty_7 = _bindgen_ty_7 (8) ; pub const CORRIDOR_TURN_RIGHT : _bindgen_ty_7 = _bindgen_ty_7 (9) ; pub const CORRIDOR_TURN_LEFT : _bindgen_ty_7 = _bindgen_ty_7 (10) ; pub const CORRIDOR_STAIRS : _bindgen_ty_7 = _bindgen_ty_7 (11) ; pub const CORRIDOR_T_CROSSING : _bindgen_ty_7 = _bindgen_ty_7 (12) ; pub const CORRIDOR_NETHER_WART : _bindgen_ty_7 = _bindgen_ty_7 (13) ; pub const FORTRESS_END : _bindgen_ty_7 = _bindgen_ty_7 (14) ; pub const PIECE_COUNT : _bindgen_ty_7 = _bindgen_ty_7 (15) ; # [repr (transparent)] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct _bindgen_ty_7 (pub :: std :: os :: raw :: c_uint) ; unsafe extern "C" { pub fn getFixedEndGateways (mc : :: std :: os :: raw :: c_int , seed : u64 , src : * mut Pos) ; } unsafe extern "C" { pub fn getLinkedGatewayChunk (en : * const EndNoise , sn : * const SurfaceNoise , seed : u64 , src : Pos , dst : * mut Pos) -> Pos ; } unsafe extern "C" { pub fn getLinkedGatewayPos (en : * const EndNoise , sn : * const SurfaceNoise , seed : u64 , src : Pos) -> Pos ; } pub const HouseSmall : _bindgen_ty_8 = _bindgen_ty_8 (0) ; pub const Church : _bindgen_ty_8 = _bindgen_ty_8 (1) ; pub const Library : _bindgen_ty_8 = _bindgen_ty_8 (2) ; pub const WoodHut : _bindgen_ty_8 = _bindgen_ty_8 (3) ; pub const Butcher : _bindgen_ty_8 = _bindgen_ty_8 (4) ; pub const FarmLarge : _bindgen_ty_8 = _bindgen_ty_8 (5) ; pub const FarmSmall : _bindgen_ty_8 = _bindgen_ty_8 (6) ; pub const Blacksmith : _bindgen_ty_8 = _bindgen_ty_8 (7) ; pub const HouseLarge : _bindgen_ty_8 = _bindgen_ty_8 (8) ; pub const HOUSE_NUM : _bindgen_ty_8 = _bindgen_ty_8 (9) ; # [repr (transparent)] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct _bindgen_ty_8 (pub :: std :: os :: raw :: c_uint) ; unsafe extern "C" { pub fn getHouseList (houses : * mut :: std :: os :: raw :: c_int , seed : u64 , chunkX : :: std :: os :: raw :: c_int , chunkZ : :: std :: os :: raw :: c_int) -> u64 ; } unsafe extern "C" { pub fn monteCarloBiomes (g : * mut Generator , r : Range , rng : * mut u64 , coverage : f64 , confidence : f64 , eval : :: std :: option :: Option < unsafe extern "C" fn (g : * mut Generator , scale : :: std :: os :: raw :: c_int , x : :: std :: os :: raw :: c_int , y : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , data : * mut :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int > , data : * mut :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn setupBiomeFilter (bf : * mut BiomeFilter , mc : :: std :: os :: raw :: c_int , flags : u32 , required : * const :: std :: os :: raw :: c_int , requiredLen : :: std :: os :: raw :: c_int , excluded : * const :: std :: os :: raw :: c_int , excludedLen : :: std :: os :: raw :: c_int , matchany : * const :: std :: os :: raw :: c_int , matchanyLen : :: std :: os :: raw :: c_int) ; } unsafe extern "C" { pub fn checkForBiomes (g : * mut Generator , cache : * mut :: std :: os :: raw :: c_int , r : Range , dim : :: std :: os :: raw :: c_int , seed : u64 , filter : * const BiomeFilter , stop : * mut :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn checkForBiomesAtLayer (ls : * mut LayerStack , entry : * mut Layer , cache : * mut :: std :: os :: raw :: c_int , seed : u64 , x : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , w : :: std :: os :: raw :: c_uint , h : :: std :: os :: raw :: c_uint , filter : * const BiomeFilter) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn checkForTemps (g : * mut LayerStack , seed : u64 , x : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , w : :: std :: os :: raw :: c_int , h : :: std :: os :: raw :: c_int , tc : * const :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getBiomeCenters (pos : * mut Pos , siz : * mut :: std :: os :: raw :: c_int , nmax : :: std :: os :: raw :: c_int , g : * mut Generator , r : Range , match_ : :: std :: os :: raw :: c_int , minsiz : :: std :: os :: raw :: c_int , tol : :: std :: os :: raw :: c_int , stop : * mut :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn canBiomeGenerate (layerId : :: std :: os :: raw :: c_int , mc : :: std :: os :: raw :: c_int , flags : u32 , biomeID : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn genPotential (mL : * mut u64 , mM : * mut u64 , layerId : :: std :: os :: raw :: c_int , mc : :: std :: os :: raw :: c_int , flags : u32 , biomeID : :: std :: os :: raw :: c_int) ; } unsafe extern "C" { pub fn getAvailableBiomes (mL : * mut u64 , mM : * mut u64 , layerId : :: std :: os :: raw :: c_int , mc : :: std :: os :: raw :: c_int , flags : u32) ; } unsafe extern "C" { # [doc = " Runs a gradient descent towards the minimum of the noise parameter times a\n given factor. The algorithm is restricted to the area (x,z,w,h) and starts\n at (i0,j0) relative to (x,z). The iteration is terminated when either\n 1) a fix point has been reached,\n 2) maxiter iterations have been completed,\n 3) or the sampling position has moved more than maxrad away from (i0,j0).\n\n Alpha is an optimization argument that is used to determine the length of\n large steps based on the current gradient.\n\n Optionally, the iteration can also call the custom function:\n  func(data, x, z, factor*para_noise(x,z));\n\n The return value is the minimum value reached."] pub fn getParaDescent (para : * const DoublePerlinNoise , factor : f64 , x : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , w : :: std :: os :: raw :: c_int , h : :: std :: os :: raw :: c_int , i0 : :: std :: os :: raw :: c_int , j0 : :: std :: os :: raw :: c_int , maxrad : :: std :: os :: raw :: c_int , maxiter : :: std :: os :: raw :: c_int , alpha : f64 , data : * mut :: std :: os :: raw :: c_void , func : :: std :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: std :: os :: raw :: c_void , arg2 : :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : f64) -> :: std :: os :: raw :: c_int >) -> f64 ; } unsafe extern "C" { # [doc = " Determines the value range of a climate noise parameter over the given area.\n The sampling has scale 1:4 and sampling shift is not considered, so biomes\n could potentially *leak* in at the boarders.\n An optional function:\n  func(data, x, z, climate_noise(x,z))\n is called in each gradient descent iteration. If this function returns\n non-zero the search is aborted, the results are undefined and a non-zero\n error is returned.\n\n The results are written to pmin and pmax (which would be cast to an integer\n during boime mapping). Nullable, to look for minima and maxima separately."] pub fn getParaRange (para : * const DoublePerlinNoise , pmin : * mut f64 , pmax : * mut f64 , x : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , w : :: std :: os :: raw :: c_int , h : :: std :: os :: raw :: c_int , data : * mut :: std :: os :: raw :: c_void , func : :: std :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: std :: os :: raw :: c_void , arg2 : :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : f64) -> :: std :: os :: raw :: c_int >) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " Gets the min/max parameter values within which a biome change can occur."] pub fn getBiomeParaExtremes (mc : :: std :: os :: raw :: c_int) -> * const :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " Gets the min/max possible noise parameter values at which the given biome\n can generate. The values are in min/max pairs in order of:\n temperature, humidity, continentalness, erosion, depth, weirdness."] pub fn getBiomeParaLimits (mc : :: std :: os :: raw :: c_int , id : :: std :: os :: raw :: c_int) -> * const :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " Determines which biomes are able to generate given a set of climate\n parameter limits. Possible biomes are marked non-zero in the 'ids'."] pub fn getPossibleBiomesForLimits (ids : * mut :: std :: os :: raw :: c_char , mc : :: std :: os :: raw :: c_int , limits : * mut [:: std :: os :: raw :: c_int ; 2usize]) ; } unsafe extern "C" { # [doc = " Find the largest rectangle in ids[sx][sz] which consists only of 'match'.\n The limit corners are written to p0 and p1. Returned is the rectangle's area."] pub fn getLargestRec (match_ : :: std :: os :: raw :: c_int , ids : * const :: std :: os :: raw :: c_int , sx : :: std :: os :: raw :: c_int , sz : :: std :: os :: raw :: c_int , p0 : * mut Pos , p1 : * mut Pos) -> :: std :: os :: raw :: c_int ; } pub type __gnuc_va_list = __builtin_va_list ; # [repr (C)] # [derive (Copy , Clone)] pub struct __mbstate_t { pub __count : :: std :: os :: raw :: c_int , pub __value : __mbstate_t__bindgen_ty_1 , } # [repr (C)] # [derive (Copy , Clone)] pub union __mbstate_t__bindgen_ty_1 { pub __wch : :: std :: os :: raw :: c_uint , pub __wchb : [:: std :: os :: raw :: c_char ; 4usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __mbstate_t__bindgen_ty_1"] [:: std :: mem :: size_of :: < __mbstate_t__bindgen_ty_1 > () - 4usize] ; ["Alignment of __mbstate_t__bindgen_ty_1"] [:: std :: mem :: align_of :: < __mbstate_t__bindgen_ty_1 > () - 4usize] ; ["Offset of field: __mbstate_t__bindgen_ty_1::__wch"] [:: std :: mem :: offset_of ! (__mbstate_t__bindgen_ty_1 , __wch) - 0usize] ; ["Offset of field: __mbstate_t__bindgen_ty_1::__wchb"] [:: std :: mem :: offset_of ! (__mbstate_t__bindgen_ty_1 , __wchb) - 0usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __mbstate_t"] [:: std :: mem :: size_of :: < __mbstate_t > () - 8usize] ; ["Alignment of __mbstate_t"] [:: std :: mem :: align_of :: < __mbstate_t > () - 4usize] ; ["Offset of field: __mbstate_t::__count"] [:: std :: mem :: offset_of ! (__mbstate_t , __count) - 0usize] ; ["Offset of field: __mbstate_t::__value"] [:: std :: mem :: offset_of ! (__mbstate_t , __value) - 4usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub struct _G_fpos_t { pub __pos : __off_t , pub __state : __mbstate_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of _G_fpos_t"] [:: std :: mem :: size_of :: < _G_fpos_t > () - 16usize] ; ["Alignment of _G_fpos_t"] [:: std :: mem :: align_of :: < _G_fpos_t > () - 8usize] ; ["Offset of field: _G_fpos_t::__pos"] [:: std :: mem :: offset_of ! (_G_fpos_t , __pos) - 0usize] ; ["Offset of field: _G_fpos_t::__state"] [:: std :: mem :: offset_of ! (_G_fpos_t , __state) - 8usize] ; } ; pub type __fpos_t = _G_fpos_t ; # [repr (C)] # [derive (Copy , Clone)] pub struct _G_fpos64_t { pub __pos : __off64_t , pub __state : __mbstate_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of _G_fpos64_t"] [:: std :: mem :: size_of :: < _G_fpos64_t > () - 16usize] ; ["Alignment of _G_fpos64_t"] [:: std :: mem :: align_of :: < _G_fpos64_t > () - 8usize] ; ["Offset of field: _G_fpos64_t::__pos"] [:: std :: mem :: offset_of ! (_G_fpos64_t , __pos) - 0usize] ; ["Offset of field: _G_fpos64_t::__state"] [:: std :: mem :: offset_of ! (_G_fpos64_t , __state) - 8usize] ; } ; pub type __fpos64_t = _G_fpos64_t ; pub type __FILE = _IO_FILE ; pub type FILE = _IO_FILE ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_marker { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_codecvt { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_wide_data { _unused : [u8 ; 0] , } pub type _IO_lock_t = :: std :: os :: raw :: c_void ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_FILE { pub _flags : :: std :: os :: raw :: c_int , pub _IO_read_ptr : * mut :: std :: os :: raw :: c_char , pub _IO_read_end : * mut :: std :: os :: raw :: c_char , pub _IO_read_base : * mut :: std :: os :: raw :: c_char , pub _IO_write_base : * mut :: std :: os :: raw :: c_char , pub _IO_write_ptr : * mut :: std :: os :: raw :: c_char , pub _IO_write_end : * mut :: std :: os :: raw :: c_char , pub _IO_buf_base : * mut :: std :: os :: raw :: c_char , pub _IO_buf_end : * mut :: std :: os :: raw :: c_char , pub _IO_save_base : * mut :: std :: os :: raw :: c_char , pub _IO_backup_base : * mut :: std :: os :: raw :: c_char , pub _IO_save_end : * mut :: std :: os :: raw :: c_char , pub _markers : * mut _IO_marker , pub _chain : * mut _IO_FILE , pub _fileno : :: std :: os :: raw :: c_int , pub _bitfield_align_1 : [u32 ; 0] , pub _bitfield_1 : __BindgenBitfieldUnit < [u8 ; 3usize] > , pub _short_backupbuf : [:: std :: os :: raw :: c_char ; 1usize] , pub _old_offset : __off_t , pub _cur_column : :: std :: os :: raw :: c_ushort , pub _vtable_offset : :: std :: os :: raw :: c_schar , pub _shortbuf : [:: std :: os :: raw :: c_char ; 1usize] , pub _lock : * mut _IO_lock_t , pub _offset : __off64_t , pub _codecvt : * mut _IO_codecvt , pub _wide_data : * mut _IO_wide_data , pub _freeres_list : * mut _IO_FILE , pub _freeres_buf : * mut :: std :: os :: raw :: c_void , pub _prevchain : * mut * mut _IO_FILE , pub _mode : :: std :: os :: raw :: c_int , pub _unused3 : :: std :: os :: raw :: c_int , pub _total_written : __uint64_t , pub _unused2 : [:: std :: os :: raw :: c_char ; 8usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of _IO_FILE"] [:: std :: mem :: size_of :: < _IO_FILE > () - 216usize] ; ["Alignment of _IO_FILE"] [:: std :: mem :: align_of :: < _IO_FILE > () - 8usize] ; ["Offset of field: _IO_FILE::_flags"] [:: std :: mem :: offset_of ! (_IO_FILE , _flags) - 0usize] ; ["Offset of field: _IO_FILE::_IO_read_ptr"] [:: std :: mem :: offset_of ! (_IO_FILE , _IO_read_ptr) - 8usize] ; ["Offset of field: _IO_FILE::_IO_read_end"] [:: std :: mem :: offset_of ! (_IO_FILE , _IO_read_end) - 16usize] ; ["Offset of field: _IO_FILE::_IO_read_base"] [:: std :: mem :: offset_of ! (_IO_FILE , _IO_read_base) - 24usize] ; ["Offset of field: _IO_FILE::_IO_write_base"] [:: std :: mem :: offset_of ! (_IO_FILE , _IO_write_base) - 32usize] ; ["Offset of field: _IO_FILE::_IO_write_ptr"] [:: std :: mem :: offset_of ! (_IO_FILE , _IO_write_ptr) - 40usize] ; ["Offset of field: _IO_FILE::_IO_write_end"] [:: std :: mem :: offset_of ! (_IO_FILE , _IO_write_end) - 48usize] ; ["Offset of field: _IO_FILE::_IO_buf_base"] [:: std :: mem :: offset_of ! (_IO_FILE , _IO_buf_base) - 56usize] ; ["Offset of field: _IO_FILE::_IO_buf_end"] [:: std :: mem :: offset_of ! (_IO_FILE , _IO_buf_end) - 64usize] ; ["Offset of field: _IO_FILE::_IO_save_base"] [:: std :: mem :: offset_of ! (_IO_FILE , _IO_save_base) - 72usize] ; ["Offset of field: _IO_FILE::_IO_backup_base"] [:: std :: mem :: offset_of ! (_IO_FILE , _IO_backup_base) - 80usize] ; ["Offset of field: _IO_FILE::_IO_save_end"] [:: std :: mem :: offset_of ! (_IO_FILE , _IO_save_end) - 88usize] ; ["Offset of field: _IO_FILE::_markers"] [:: std :: mem :: offset_of ! (_IO_FILE , _markers) - 96usize] ; ["Offset of field: _IO_FILE::_chain"] [:: std :: mem :: offset_of ! (_IO_FILE , _chain) - 104usize] ; ["Offset of field: _IO_FILE::_fileno"] [:: std :: mem :: offset_of ! (_IO_FILE , _fileno) - 112usize] ; ["Offset of field: _IO_FILE::_short_backupbuf"] [:: std :: mem :: offset_of ! (_IO_FILE , _short_backupbuf) - 119usize] ; ["Offset of field: _IO_FILE::_old_offset"] [:: std :: mem :: offset_of ! (_IO_FILE , _old_offset) - 120usize] ; ["Offset of field: _IO_FILE::_cur_column"] [:: std :: mem :: offset_of ! (_IO_FILE , _cur_column) - 128usize] ; ["Offset of field: _IO_FILE::_vtable_offset"] [:: std :: mem :: offset_of ! (_IO_FILE , _vtable_offset) - 130usize] ; ["Offset of field: _IO_FILE::_shortbuf"] [:: std :: mem :: offset_of ! (_IO_FILE , _shortbuf) - 131usize] ; ["Offset of field: _IO_FILE::_lock"] [:: std :: mem :: offset_of ! (_IO_FILE , _lock) - 136usize] ; ["Offset of field: _IO_FILE::_offset"] [:: std :: mem :: offset_of ! (_IO_FILE , _offset) - 144usize] ; ["Offset of field: _IO_FILE::_codecvt"] [:: std :: mem :: offset_of ! (_IO_FILE , _codecvt) - 152usize] ; ["Offset of field: _IO_FILE::_wide_data"] [:: std :: mem :: offset_of ! (_IO_FILE , _wide_data) - 160usize] ; ["Offset of field: _IO_FILE::_freeres_list"] [:: std :: mem :: offset_of ! (_IO_FILE , _freeres_list) - 168usize] ; ["Offset of field: _IO_FILE::_freeres_buf"] [:: std :: mem :: offset_of ! (_IO_FILE , _freeres_buf) - 176usize] ; ["Offset of field: _IO_FILE::_prevchain"] [:: std :: mem :: offset_of ! (_IO_FILE , _prevchain) - 184usize] ; ["Offset of field: _IO_FILE::_mode"] [:: std :: mem :: offset_of ! (_IO_FILE , _mode) - 192usize] ; ["Offset of field: _IO_FILE::_unused3"] [:: std :: mem :: offset_of ! (_IO_FILE , _unused3) - 196usize] ; ["Offset of field: _IO_FILE::_total_written"] [:: std :: mem :: offset_of ! (_IO_FILE , _total_written) - 200usize] ; ["Offset of field: _IO_FILE::_unused2"] [:: std :: mem :: offset_of ! (_IO_FILE , _unused2) - 208usize] ; } ; impl _IO_FILE { # [inline] pub fn _flags2 (& self) -> :: std :: os :: raw :: c_int { unsafe { :: std :: mem :: transmute (self . _bitfield_1 . get (0usize , 24u8) as u32) } } # [inline] pub fn set__flags2 (& mut self , val : :: std :: os :: raw :: c_int) { unsafe { let val : u32 = :: std :: mem :: transmute (val) ; self . _bitfield_1 . set (0usize , 24u8 , val as u64) } } # [inline] pub unsafe fn _flags2_raw (this : * const Self) -> :: std :: os :: raw :: c_int { unsafe { :: std :: mem :: transmute (< __BindgenBitfieldUnit < [u8 ; 3usize] > > :: raw_get (:: std :: ptr :: addr_of ! ((* this) . _bitfield_1) , 0usize , 24u8 ,) as u32) } } # [inline] pub unsafe fn set__flags2_raw (this : * mut Self , val : :: std :: os :: raw :: c_int) { unsafe { let val : u32 = i32::cast_unsigned (val) ; < __BindgenBitfieldUnit < [u8 ; 3usize] > > :: raw_set (:: std :: ptr :: addr_of_mut ! ((* this) . _bitfield_1) , 0usize , 24u8 , val as u64 ,) } } # [inline] pub fn new_bitfield_1 (_flags2 : :: std :: os :: raw :: c_int) -> __BindgenBitfieldUnit < [u8 ; 3usize] > { let mut __bindgen_bitfield_unit : __BindgenBitfieldUnit < [u8 ; 3usize] > = Default :: default () ; __bindgen_bitfield_unit . set (0usize , 24u8 , { let _flags2 : u32 = unsafe { :: std :: mem :: transmute (_flags2) } ; _flags2 as u64 }) ; __bindgen_bitfield_unit } } pub type cookie_read_function_t = :: std :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: std :: os :: raw :: c_void , __buf : * mut :: std :: os :: raw :: c_char , __nbytes : usize) -> __ssize_t > ; pub type cookie_write_function_t = :: std :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: std :: os :: raw :: c_void , __buf : * const :: std :: os :: raw :: c_char , __nbytes : usize) -> __ssize_t > ; pub type cookie_seek_function_t = :: std :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: std :: os :: raw :: c_void , __pos : * mut __off64_t , __w : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int > ; pub type cookie_close_function_t = :: std :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_cookie_io_functions_t { pub read : cookie_read_function_t , pub write : cookie_write_function_t , pub seek : cookie_seek_function_t , pub close : cookie_close_function_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of _IO_cookie_io_functions_t"] [:: std :: mem :: size_of :: < _IO_cookie_io_functions_t > () - 32usize] ; ["Alignment of _IO_cookie_io_functions_t"] [:: std :: mem :: align_of :: < _IO_cookie_io_functions_t > () - 8usize] ; ["Offset of field: _IO_cookie_io_functions_t::read"] [:: std :: mem :: offset_of ! (_IO_cookie_io_functions_t , read) - 0usize] ; ["Offset of field: _IO_cookie_io_functions_t::write"] [:: std :: mem :: offset_of ! (_IO_cookie_io_functions_t , write) - 8usize] ; ["Offset of field: _IO_cookie_io_functions_t::seek"] [:: std :: mem :: offset_of ! (_IO_cookie_io_functions_t , seek) - 16usize] ; ["Offset of field: _IO_cookie_io_functions_t::close"] [:: std :: mem :: offset_of ! (_IO_cookie_io_functions_t , close) - 24usize] ; } ; pub type cookie_io_functions_t = _IO_cookie_io_functions_t ; pub type va_list = __gnuc_va_list ; pub type fpos_t = __fpos_t ; unsafe extern "C" { pub static mut stdin : * mut FILE ; } unsafe extern "C" { pub static mut stdout : * mut FILE ; } unsafe extern "C" { pub static mut stderr : * mut FILE ; } unsafe extern "C" { pub fn remove (__filename : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn rename (__old : * const :: std :: os :: raw :: c_char , __new : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn renameat (__oldfd : :: std :: os :: raw :: c_int , __old : * const :: std :: os :: raw :: c_char , __newfd : :: std :: os :: raw :: c_int , __new : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn fclose (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn tmpfile () -> * mut FILE ; } unsafe extern "C" { pub fn tmpnam (arg1 : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn tmpnam_r (__s : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn tempnam (__dir : * const :: std :: os :: raw :: c_char , __pfx : * const :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn fflush (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn fflush_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn fopen (__filename : * const :: std :: os :: raw :: c_char , __modes : * const :: std :: os :: raw :: c_char) -> * mut FILE ; } unsafe extern "C" { pub fn freopen (__filename : * const :: std :: os :: raw :: c_char , __modes : * const :: std :: os :: raw :: c_char , __stream : * mut FILE) -> * mut FILE ; } unsafe extern "C" { pub fn fdopen (__fd : :: std :: os :: raw :: c_int , __modes : * const :: std :: os :: raw :: c_char) -> * mut FILE ; } unsafe extern "C" { pub fn fopencookie (__magic_cookie : * mut :: std :: os :: raw :: c_void , __modes : * const :: std :: os :: raw :: c_char , __io_funcs : cookie_io_functions_t) -> * mut FILE ; } unsafe extern "C" { pub fn fmemopen (__s : * mut :: std :: os :: raw :: c_void , __len : usize , __modes : * const :: std :: os :: raw :: c_char) -> * mut FILE ; } unsafe extern "C" { pub fn open_memstream (__bufloc : * mut * mut :: std :: os :: raw :: c_char , __sizeloc : * mut usize) -> * mut FILE ; } unsafe extern "C" { pub fn setbuf (__stream : * mut FILE , __buf : * mut :: std :: os :: raw :: c_char) ; } unsafe extern "C" { pub fn setvbuf (__stream : * mut FILE , __buf : * mut :: std :: os :: raw :: c_char , __modes : :: std :: os :: raw :: c_int , __n : usize) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn setbuffer (__stream : * mut FILE , __buf : * mut :: std :: os :: raw :: c_char , __size : usize) ; } unsafe extern "C" { pub fn setlinebuf (__stream : * mut FILE) ; } unsafe extern "C" { pub fn fprintf (__stream : * mut FILE , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn printf (__format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn sprintf (__s : * mut :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn vfprintf (__s : * mut FILE , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn vprintf (__format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn vsprintf (__s : * mut :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn snprintf (__s : * mut :: std :: os :: raw :: c_char , __maxlen : :: std :: os :: raw :: c_ulong , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn vsnprintf (__s : * mut :: std :: os :: raw :: c_char , __maxlen : :: std :: os :: raw :: c_ulong , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn vasprintf (__ptr : * mut * mut :: std :: os :: raw :: c_char , __f : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __asprintf (__ptr : * mut * mut :: std :: os :: raw :: c_char , __fmt : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn asprintf (__ptr : * mut * mut :: std :: os :: raw :: c_char , __fmt : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn vdprintf (__fd : :: std :: os :: raw :: c_int , __fmt : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn dprintf (__fd : :: std :: os :: raw :: c_int , __fmt : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn fscanf (__stream : * mut FILE , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn scanf (__format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn sscanf (__s : * const :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [link_name = "\u{1}__isoc99_fscanf"] pub fn fscanf1 (__stream : * mut FILE , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [link_name = "\u{1}__isoc99_scanf"] pub fn scanf1 (__format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [link_name = "\u{1}__isoc99_sscanf"] pub fn sscanf1 (__s : * const :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn vfscanf (__s : * mut FILE , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn vscanf (__format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn vsscanf (__s : * const :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [link_name = "\u{1}__isoc99_vfscanf"] pub fn vfscanf1 (__s : * mut FILE , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [link_name = "\u{1}__isoc99_vscanf"] pub fn vscanf1 (__format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [link_name = "\u{1}__isoc99_vsscanf"] pub fn vsscanf1 (__s : * const :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn fgetc (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getc (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getchar () -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getc_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getchar_unlocked () -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn fgetc_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn fputc (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn putc (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn putchar (__c : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn fputc_unlocked (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn putc_unlocked (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn putchar_unlocked (__c : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getw (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn putw (__w : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn fgets (__s : * mut :: std :: os :: raw :: c_char , __n : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn __getdelim (__lineptr : * mut * mut :: std :: os :: raw :: c_char , __n : * mut usize , __delimiter : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> __ssize_t ; } unsafe extern "C" { pub fn getdelim (__lineptr : * mut * mut :: std :: os :: raw :: c_char , __n : * mut usize , __delimiter : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> __ssize_t ; } unsafe extern "C" { pub fn getline (__lineptr : * mut * mut :: std :: os :: raw :: c_char , __n : * mut usize , __stream : * mut FILE) -> __ssize_t ; } unsafe extern "C" { pub fn fputs (__s : * const :: std :: os :: raw :: c_char , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn puts (__s : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn ungetc (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn fread (__ptr : * mut :: std :: os :: raw :: c_void , __size : :: std :: os :: raw :: c_ulong , __n : :: std :: os :: raw :: c_ulong , __stream : * mut FILE) -> :: std :: os :: raw :: c_ulong ; } unsafe extern "C" { pub fn fwrite (__ptr : * const :: std :: os :: raw :: c_void , __size : :: std :: os :: raw :: c_ulong , __n : :: std :: os :: raw :: c_ulong , __s : * mut FILE) -> :: std :: os :: raw :: c_ulong ; } unsafe extern "C" { pub fn fread_unlocked (__ptr : * mut :: std :: os :: raw :: c_void , __size : usize , __n : usize , __stream : * mut FILE) -> usize ; } unsafe extern "C" { pub fn fwrite_unlocked (__ptr : * const :: std :: os :: raw :: c_void , __size : usize , __n : usize , __stream : * mut FILE) -> usize ; } unsafe extern "C" { pub fn fseek (__stream : * mut FILE , __off : :: std :: os :: raw :: c_long , __whence : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn ftell (__stream : * mut FILE) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn rewind (__stream : * mut FILE) ; } unsafe extern "C" { pub fn fseeko (__stream : * mut FILE , __off : __off_t , __whence : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn ftello (__stream : * mut FILE) -> __off_t ; } unsafe extern "C" { pub fn fgetpos (__stream : * mut FILE , __pos : * mut fpos_t) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn fsetpos (__stream : * mut FILE , __pos : * const fpos_t) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn clearerr (__stream : * mut FILE) ; } unsafe extern "C" { pub fn feof (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn ferror (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn clearerr_unlocked (__stream : * mut FILE) ; } unsafe extern "C" { pub fn feof_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn ferror_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn perror (__s : * const :: std :: os :: raw :: c_char) ; } unsafe extern "C" { pub fn fileno (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn fileno_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn pclose (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn popen (__command : * const :: std :: os :: raw :: c_char , __modes : * const :: std :: os :: raw :: c_char) -> * mut FILE ; } unsafe extern "C" { pub fn ctermid (__s : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn flockfile (__stream : * mut FILE) ; } unsafe extern "C" { pub fn ftrylockfile (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn funlockfile (__stream : * mut FILE) ; } unsafe extern "C" { pub fn __uflow (arg1 : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __overflow (arg1 : * mut FILE , arg2 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " Quad-Witch-Huts\n\n  For a quad-structure, we mainly care about relative positioning, so we can\n  get away with just checking the regions near the origin: (0,0),(0,1),(1,0)\n  and (1,1) and then move the structures to the desired position.\n\n  Futhermore, the PRNG that determines the chunk positions inside each region,\n  performs some modular arithmatic on the 48-bit numbers which causes some\n  restrictions on the lower bits when looking for near perfect structure\n  positions. This is difficult to prove, but can be used to reduce the number\n  of free bits to 28 which can be comfortably brute-forced to get the entire\n  set of quad-structure candidates. Each of the seeds found this way\n  describes entire set of possible quad-witch-huts (with degrees of freedom\n  for region-transposition, as well as the top 16-bit bits)."] pub static low20QuadIdeal : [u64 ; 4usize] ; } unsafe extern "C" { pub static low20QuadClassic : [u64 ; 5usize] ; } unsafe extern "C" { pub static low20QuadHutNormal : [u64 ; 11usize] ; } unsafe extern "C" { pub static low20QuadHutBarely : [u64 ; 29usize] ; } pub const CST_NONE : _bindgen_ty_9 = _bindgen_ty_9 (0) ; pub const CST_IDEAL : _bindgen_ty_9 = _bindgen_ty_9 (1) ; pub const CST_CLASSIC : _bindgen_ty_9 = _bindgen_ty_9 (2) ; pub const CST_NORMAL : _bindgen_ty_9 = _bindgen_ty_9 (3) ; pub const CST_BARELY : _bindgen_ty_9 = _bindgen_ty_9 (4) ; # [repr (transparent)] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct _bindgen_ty_9 (pub :: std :: os :: raw :: c_uint) ; unsafe extern "C" { pub fn getQuadHutCst (low20 : u64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn searchAll48 (seedbuf : * mut * mut u64 , buflen : * mut u64 , path : * const :: std :: os :: raw :: c_char , threads : :: std :: os :: raw :: c_int , lowBits : * const u64 , lowBitN : :: std :: os :: raw :: c_int , check : :: std :: option :: Option < unsafe extern "C" fn (s48 : u64 , data : * mut :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int > , data : * mut :: std :: os :: raw :: c_void , stop : * mut :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getOptimalAfk (p : * mut Pos , ax : :: std :: os :: raw :: c_int , ay : :: std :: os :: raw :: c_int , az : :: std :: os :: raw :: c_int , spcnt : * mut :: std :: os :: raw :: c_int) -> Pos ; } unsafe extern "C" { pub fn scanForQuads (sconf : StructureConfig , radius : :: std :: os :: raw :: c_int , s48 : u64 , lowBits : * const u64 , lowBitN : :: std :: os :: raw :: c_int , salt : u64 , x : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , w : :: std :: os :: raw :: c_int , h : :: std :: os :: raw :: c_int , qplist : * mut Pos , n : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn loadSavedSeeds (fnam : * const :: std :: os :: raw :: c_char , scnt : * mut u64) -> * mut u64 ; } unsafe extern "C" { # [doc = " convert between version enum and text"] pub fn mc2str (mc : :: std :: os :: raw :: c_int) -> * const :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn str2mc (s : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " get the resource id name for a biome (for versions 1.13+)"] pub fn biome2str (mc : :: std :: os :: raw :: c_int , id : :: std :: os :: raw :: c_int) -> * const :: std :: os :: raw :: c_char ; } unsafe extern "C" { # [doc = " get the resource id name for a structure"] pub fn struct2str (stype : :: std :: os :: raw :: c_int) -> * const :: std :: os :: raw :: c_char ; } unsafe extern "C" { # [doc = " initialize a biome colormap with some defaults"] pub fn initBiomeColors (biomeColors : * mut [:: std :: os :: raw :: c_uchar ; 3usize]) ; } unsafe extern "C" { pub fn initBiomeTypeColors (biomeColors : * mut [:: std :: os :: raw :: c_uchar ; 3usize]) ; } unsafe extern "C" { pub fn parseBiomeColors (biomeColors : * mut [:: std :: os :: raw :: c_uchar ; 3usize] , buf : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn biomesToImage (pixels : * mut :: std :: os :: raw :: c_uchar , biomeColors : * mut [:: std :: os :: raw :: c_uchar ; 3usize] , biomes : * const :: std :: os :: raw :: c_int , sx : :: std :: os :: raw :: c_uint , sy : :: std :: os :: raw :: c_uint , pixscale : :: std :: os :: raw :: c_uint , flip : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn savePPM (path : * const :: std :: os :: raw :: c_char , pixels : * const :: std :: os :: raw :: c_uchar , sx : :: std :: os :: raw :: c_uint , sy : :: std :: os :: raw :: c_uint) -> :: std :: os :: raw :: c_int ; } pub type __builtin_va_list = [__va_list_tag ; 1usize] ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __va_list_tag { pub gp_offset : :: std :: os :: raw :: c_uint , pub fp_offset : :: std :: os :: raw :: c_uint , pub overflow_arg_area : * mut :: std :: os :: raw :: c_void , pub reg_save_area : * mut :: std :: os :: raw :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __va_list_tag"] [:: std :: mem :: size_of :: < __va_list_tag > () - 24usize] ; ["Alignment of __va_list_tag"] [:: std :: mem :: align_of :: < __va_list_tag > () - 8usize] ; ["Offset of field: __va_list_tag::gp_offset"] [:: std :: mem :: offset_of ! (__va_list_tag , gp_offset) - 0usize] ; ["Offset of field: __va_list_tag::fp_offset"] [:: std :: mem :: offset_of ! (__va_list_tag , fp_offset) - 4usize] ; ["Offset of field: __va_list_tag::overflow_arg_area"] [:: std :: mem :: offset_of ! (__va_list_tag , overflow_arg_area) - 8usize] ; ["Offset of field: __va_list_tag::reg_save_area"] [:: std :: mem :: offset_of ! (__va_list_tag , reg_save_area) - 16usize] ; } ;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary transmute
[INFO] [stdout]  --> /opt/rustwide/target/debug/build/cubiomes-sys-067509f04bd29817/out/bindings.rs:3:216367
[INFO] [stdout]   |
[INFO] [stdout] 3 | ...0usize , 24u8 , { let _flags2 : u32 = unsafe { :: std :: mem :: transmute (_flags2) } ; _flags2 as u64 }) ; __bindgen_bitfield_uni...
[INFO] [stdout]   |                                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout] help: replace this with
[INFO] [stdout]   |
[INFO] [stdout] 3 - # [repr (C)] # [derive (Copy , Clone , Debug , Default , Eq , Hash , Ord , PartialEq , PartialOrd)] pub struct __BindgenBitfieldUnit < Storage > { storage : Storage , } impl < Storage > __BindgenBitfieldUnit < Storage > { # [inline] pub const fn new (storage : Storage) -> Self { Self { storage } } } impl < Storage > __BindgenBitfieldUnit < Storage > where Storage : AsRef < [u8] > + AsMut < [u8] >, { # [inline] fn extract_bit (byte : u8 , index : usize) -> bool { let bit_index = if cfg ! (target_endian = "big") { 7 - (index % 8) } else { index % 8 } ; let mask = 1 << bit_index ; byte & mask == mask } # [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] ; Self :: extract_bit (byte , index) } # [inline] pub unsafe fn raw_get_bit (this : * const Self , index : usize) -> bool { debug_assert ! (index / 8 < core :: mem :: size_of ::< Storage > ()) ; let byte_index = index / 8 ; let byte = * (core :: ptr :: addr_of ! ((* this) . storage) as * const u8) . offset (byte_index as isize) ; Self :: extract_bit (byte , index) } # [inline] fn change_bit (byte : u8 , index : usize , val : bool) -> u8 { let bit_index = if cfg ! (target_endian = "big") { 7 - (index % 8) } else { index % 8 } ; let mask = 1 << bit_index ; if val { byte | mask } else { byte & ! 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] ; * byte = Self :: change_bit (* byte , index , val) ; } # [inline] pub unsafe fn raw_set_bit (this : * mut Self , index : usize , val : bool) { debug_assert ! (index / 8 < core :: mem :: size_of ::< Storage > ()) ; let byte_index = index / 8 ; let byte = (core :: ptr :: addr_of_mut ! ((* this) . storage) as * mut u8) . offset (byte_index as isize) ; * byte = Self :: change_bit (* byte , index , val) ; } # [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) { let index = if cfg ! (target_endian = "big") { bit_width as usize - 1 - i } else { i } ; val |= 1 << index ; } } val } # [inline] pub unsafe fn raw_get (this : * const Self , bit_offset : usize , bit_width : u8 ,) -> u64 { debug_assert ! (bit_width <= 64) ; debug_assert ! (bit_offset / 8 < core :: mem :: size_of ::< Storage > ()) ; debug_assert ! ((bit_offset + (bit_width as usize)) / 8 <= core :: mem :: size_of ::< Storage > ()) ; let mut val = 0 ; for i in 0 .. (bit_width as usize) { if Self :: raw_get_bit (this , i + bit_offset) { let index = if cfg ! (target_endian = "big") { bit_width as usize - 1 - i } else { i } ; val |= 1 << index ; } } 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 ; let index = if cfg ! (target_endian = "big") { bit_width as usize - 1 - i } else { i } ; self . set_bit (index + bit_offset , val_bit_is_set) ; } } # [inline] pub unsafe fn raw_set (this : * mut Self , bit_offset : usize , bit_width : u8 , val : u64 ,) { debug_assert ! (bit_width <= 64) ; debug_assert ! (bit_offset / 8 < core :: mem :: size_of ::< Storage > ()) ; debug_assert ! ((bit_offset + (bit_width as usize)) / 8 <= core :: mem :: size_of ::< Storage > ()) ; for i in 0 .. (bit_width as usize) { let mask = 1 << i ; let val_bit_is_set = val & mask == mask ; let index = if cfg ! (target_endian = "big") { bit_width as usize - 1 - i } else { i } ; Self :: raw_set_bit (this , index + bit_offset , val_bit_is_set) ; } } } # [derive (PartialEq , Copy , Clone , Hash , Debug , Default)] # [repr (C)] pub struct __BindgenComplex < T > { pub re : T , pub im : T } pub const __STDC_FORMAT_MACROS : u32 = 1 ; pub const _FEATURES_H : u32 = 1 ; pub const _DEFAULT_SOURCE : u32 = 1 ; pub const __GLIBC_USE_ISOC2Y : u32 = 0 ; pub const __GLIBC_USE_ISOC23 : u32 = 0 ; pub const __USE_ISOC11 : u32 = 1 ; pub const __USE_ISOC99 : u32 = 1 ; pub const __USE_ISOC95 : u32 = 1 ; pub const __USE_POSIX_IMPLICITLY : u32 = 1 ; pub const _POSIX_SOURCE : u32 = 1 ; pub const _POSIX_C_SOURCE : u32 = 202405 ; pub const __USE_POSIX : u32 = 1 ; pub const __USE_POSIX2 : u32 = 1 ; pub const __USE_POSIX199309 : u32 = 1 ; pub const __USE_POSIX199506 : u32 = 1 ; pub const __USE_XOPEN2K : u32 = 1 ; pub const __USE_XOPEN2K8 : u32 = 1 ; pub const _ATFILE_SOURCE : u32 = 1 ; pub const __USE_XOPEN2K24 : u32 = 1 ; pub const __WORDSIZE : u32 = 64 ; pub const __WORDSIZE_TIME64_COMPAT32 : u32 = 1 ; pub const __SYSCALL_WORDSIZE : u32 = 64 ; pub const __TIMESIZE : u32 = 64 ; pub const __USE_TIME_BITS64 : u32 = 1 ; pub const __USE_MISC : u32 = 1 ; pub const __USE_ATFILE : u32 = 1 ; pub const __USE_FORTIFY_LEVEL : u32 = 0 ; pub const __GLIBC_USE_DEPRECATED_GETS : u32 = 0 ; pub const __GLIBC_USE_DEPRECATED_SCANF : u32 = 0 ; pub const __GLIBC_USE_C23_STRTOL : u32 = 0 ; pub const _STDC_PREDEF_H : u32 = 1 ; pub const __STDC_IEC_559__ : u32 = 1 ; pub const __STDC_IEC_60559_BFP__ : u32 = 201404 ; pub const __STDC_IEC_559_COMPLEX__ : u32 = 1 ; pub const __STDC_IEC_60559_COMPLEX__ : u32 = 201404 ; pub const __STDC_ISO_10646__ : u32 = 201706 ; pub const __GNU_LIBRARY__ : u32 = 6 ; pub const __GLIBC__ : u32 = 2 ; pub const __GLIBC_MINOR__ : u32 = 43 ; pub const _SYS_CDEFS_H : u32 = 1 ; pub const __glibc_c99_flexarr_available : u32 = 1 ; pub const __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI : u32 = 0 ; pub const __HAVE_GENERIC_SELECTION : u32 = 1 ; pub const __GLIBC_USE_LIB_EXT2 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_BFP_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_BFP_EXT_C23 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_FUNCS_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_FUNCS_EXT_C23 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_TYPES_EXT : u32 = 0 ; pub const _STDLIB_H : u32 = 1 ; pub const WNOHANG : u32 = 1 ; pub const WUNTRACED : u32 = 2 ; pub const WSTOPPED : u32 = 2 ; pub const WEXITED : u32 = 4 ; pub const WCONTINUED : u32 = 8 ; pub const WNOWAIT : u32 = 16777216 ; pub const __WNOTHREAD : u32 = 536870912 ; pub const __WALL : u32 = 1073741824 ; pub const __WCLONE : u32 = 2147483648 ; pub const __W_CONTINUED : u32 = 65535 ; pub const __WCOREFLAG : u32 = 128 ; pub const __HAVE_FLOAT128 : u32 = 1 ; pub const __HAVE_DISTINCT_FLOAT128 : u32 = 1 ; pub const __HAVE_FLOAT64X : u32 = 1 ; pub const __HAVE_FLOAT64X_LONG_DOUBLE : u32 = 1 ; pub const __HAVE_FLOAT16 : u32 = 0 ; pub const __HAVE_FLOAT32 : u32 = 1 ; pub const __HAVE_FLOAT64 : u32 = 1 ; pub const __HAVE_FLOAT32X : u32 = 1 ; pub const __HAVE_FLOAT128X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT16 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT32 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT64 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT32X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT64X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT128X : u32 = 0 ; pub const __HAVE_FLOATN_NOT_TYPEDEF : u32 = 0 ; pub const __ldiv_t_defined : u32 = 1 ; pub const __lldiv_t_defined : u32 = 1 ; pub const RAND_MAX : u32 = 2147483647 ; pub const EXIT_FAILURE : u32 = 1 ; pub const EXIT_SUCCESS : u32 = 0 ; pub const _SYS_TYPES_H : u32 = 1 ; pub const _BITS_TYPES_H : u32 = 1 ; pub const _BITS_TYPESIZES_H : u32 = 1 ; pub const __OFF_T_MATCHES_OFF64_T : u32 = 1 ; pub const __INO_T_MATCHES_INO64_T : u32 = 1 ; pub const __RLIM_T_MATCHES_RLIM64_T : u32 = 1 ; pub const __STATFS_MATCHES_STATFS64 : u32 = 1 ; pub const __KERNEL_OLD_TIMEVAL_MATCHES_TIMEVAL64 : u32 = 1 ; pub const __FD_SETSIZE : u32 = 1024 ; pub const _BITS_TIME64_H : u32 = 1 ; pub const __clock_t_defined : u32 = 1 ; pub const __clockid_t_defined : u32 = 1 ; pub const __time_t_defined : u32 = 1 ; pub const __timer_t_defined : u32 = 1 ; pub const _BITS_STDINT_INTN_H : u32 = 1 ; pub const __BIT_TYPES_DEFINED__ : u32 = 1 ; pub const _ENDIAN_H : u32 = 1 ; pub const _BITS_ENDIAN_H : u32 = 1 ; pub const __LITTLE_ENDIAN : u32 = 1234 ; pub const __BIG_ENDIAN : u32 = 4321 ; pub const __PDP_ENDIAN : u32 = 3412 ; pub const _BITS_ENDIANNESS_H : u32 = 1 ; pub const __BYTE_ORDER : u32 = 1234 ; pub const __FLOAT_WORD_ORDER : u32 = 1234 ; pub const LITTLE_ENDIAN : u32 = 1234 ; pub const BIG_ENDIAN : u32 = 4321 ; pub const PDP_ENDIAN : u32 = 3412 ; pub const BYTE_ORDER : u32 = 1234 ; pub const _BITS_BYTESWAP_H : u32 = 1 ; pub const _BITS_UINTN_IDENTITY_H : u32 = 1 ; pub const _SYS_SELECT_H : u32 = 1 ; pub const __sigset_t_defined : u32 = 1 ; pub const __timeval_defined : u32 = 1 ; pub const _STRUCT_TIMESPEC : u32 = 1 ; pub const FD_SETSIZE : u32 = 1024 ; pub const _BITS_PTHREADTYPES_COMMON_H : u32 = 1 ; pub const _THREAD_SHARED_TYPES_H : u32 = 1 ; pub const _BITS_PTHREADTYPES_ARCH_H : u32 = 1 ; pub const __SIZEOF_PTHREAD_MUTEX_T : u32 = 40 ; pub const __SIZEOF_PTHREAD_ATTR_T : u32 = 56 ; pub const __SIZEOF_PTHREAD_RWLOCK_T : u32 = 56 ; pub const __SIZEOF_PTHREAD_BARRIER_T : u32 = 32 ; pub const __SIZEOF_PTHREAD_MUTEXATTR_T : u32 = 4 ; pub const __SIZEOF_PTHREAD_COND_T : u32 = 48 ; pub const __SIZEOF_PTHREAD_CONDATTR_T : u32 = 4 ; pub const __SIZEOF_PTHREAD_RWLOCKATTR_T : u32 = 8 ; pub const __SIZEOF_PTHREAD_BARRIERATTR_T : u32 = 4 ; pub const _THREAD_MUTEX_INTERNAL_H : u32 = 1 ; pub const __PTHREAD_MUTEX_HAVE_PREV : u32 = 1 ; pub const __have_pthread_attr_t : u32 = 1 ; pub const _ALLOCA_H : u32 = 1 ; pub const _INTTYPES_H : u32 = 1 ; pub const _STDINT_H : u32 = 1 ; pub const _BITS_WCHAR_H : u32 = 1 ; pub const _BITS_STDINT_UINTN_H : u32 = 1 ; pub const _BITS_STDINT_LEAST_H : u32 = 1 ; pub const INT8_MIN : i32 = - 128 ; pub const INT16_MIN : i32 = - 32768 ; pub const INT32_MIN : i32 = - 2147483648 ; pub const INT8_MAX : u32 = 127 ; pub const INT16_MAX : u32 = 32767 ; pub const INT32_MAX : u32 = 2147483647 ; pub const UINT8_MAX : u32 = 255 ; pub const UINT16_MAX : u32 = 65535 ; pub const UINT32_MAX : u32 = 4294967295 ; pub const INT_LEAST8_MIN : i32 = - 128 ; pub const INT_LEAST16_MIN : i32 = - 32768 ; pub const INT_LEAST32_MIN : i32 = - 2147483648 ; pub const INT_LEAST8_MAX : u32 = 127 ; pub const INT_LEAST16_MAX : u32 = 32767 ; pub const INT_LEAST32_MAX : u32 = 2147483647 ; pub const UINT_LEAST8_MAX : u32 = 255 ; pub const UINT_LEAST16_MAX : u32 = 65535 ; pub const UINT_LEAST32_MAX : u32 = 4294967295 ; pub const INT_FAST8_MIN : i32 = - 128 ; pub const INT_FAST16_MIN : i64 = - 9223372036854775808 ; pub const INT_FAST32_MIN : i64 = - 9223372036854775808 ; pub const INT_FAST8_MAX : u32 = 127 ; pub const INT_FAST16_MAX : u64 = 9223372036854775807 ; pub const INT_FAST32_MAX : u64 = 9223372036854775807 ; pub const UINT_FAST8_MAX : u32 = 255 ; pub const UINT_FAST16_MAX : i32 = - 1 ; pub const UINT_FAST32_MAX : i32 = - 1 ; pub const INTPTR_MIN : i64 = - 9223372036854775808 ; pub const INTPTR_MAX : u64 = 9223372036854775807 ; pub const UINTPTR_MAX : i32 = - 1 ; pub const PTRDIFF_MIN : i64 = - 9223372036854775808 ; pub const PTRDIFF_MAX : u64 = 9223372036854775807 ; pub const SIG_ATOMIC_MIN : i32 = - 2147483648 ; pub const SIG_ATOMIC_MAX : u32 = 2147483647 ; pub const SIZE_MAX : i32 = - 1 ; pub const WINT_MIN : u32 = 0 ; pub const WINT_MAX : u32 = 4294967295 ; pub const ____gwchar_t_defined : u32 = 1 ; pub const __PRI64_PREFIX : & [u8 ; 2] = b"l\0" ; pub const __PRIPTR_PREFIX : & [u8 ; 2] = b"l\0" ; pub const PRId8 : & [u8 ; 4] = b"hhd\0" ; pub const PRId16 : & [u8 ; 3] = b"hd\0" ; pub const PRId32 : & [u8 ; 2] = b"d\0" ; pub const PRId64 : & [u8 ; 3] = b"ld\0" ; pub const PRIdLEAST8 : & [u8 ; 4] = b"hhd\0" ; pub const PRIdLEAST16 : & [u8 ; 3] = b"hd\0" ; pub const PRIdLEAST32 : & [u8 ; 2] = b"d\0" ; pub const PRIdLEAST64 : & [u8 ; 3] = b"ld\0" ; pub const PRIdFAST8 : & [u8 ; 4] = b"hhd\0" ; pub const PRIdFAST16 : & [u8 ; 3] = b"ld\0" ; pub const PRIdFAST32 : & [u8 ; 3] = b"ld\0" ; pub const PRIdFAST64 : & [u8 ; 3] = b"ld\0" ; pub const PRIi8 : & [u8 ; 4] = b"hhi\0" ; pub const PRIi16 : & [u8 ; 3] = b"hi\0" ; pub const PRIi32 : & [u8 ; 2] = b"i\0" ; pub const PRIi64 : & [u8 ; 3] = b"li\0" ; pub const PRIiLEAST8 : & [u8 ; 4] = b"hhi\0" ; pub const PRIiLEAST16 : & [u8 ; 3] = b"hi\0" ; pub const PRIiLEAST32 : & [u8 ; 2] = b"i\0" ; pub const PRIiLEAST64 : & [u8 ; 3] = b"li\0" ; pub const PRIiFAST8 : & [u8 ; 4] = b"hhi\0" ; pub const PRIiFAST16 : & [u8 ; 3] = b"li\0" ; pub const PRIiFAST32 : & [u8 ; 3] = b"li\0" ; pub const PRIiFAST64 : & [u8 ; 3] = b"li\0" ; pub const PRIo8 : & [u8 ; 4] = b"hho\0" ; pub const PRIo16 : & [u8 ; 3] = b"ho\0" ; pub const PRIo32 : & [u8 ; 2] = b"o\0" ; pub const PRIo64 : & [u8 ; 3] = b"lo\0" ; pub const PRIoLEAST8 : & [u8 ; 4] = b"hho\0" ; pub const PRIoLEAST16 : & [u8 ; 3] = b"ho\0" ; pub const PRIoLEAST32 : & [u8 ; 2] = b"o\0" ; pub const PRIoLEAST64 : & [u8 ; 3] = b"lo\0" ; pub const PRIoFAST8 : & [u8 ; 4] = b"hho\0" ; pub const PRIoFAST16 : & [u8 ; 3] = b"lo\0" ; pub const PRIoFAST32 : & [u8 ; 3] = b"lo\0" ; pub const PRIoFAST64 : & [u8 ; 3] = b"lo\0" ; pub const PRIu8 : & [u8 ; 4] = b"hhu\0" ; pub const PRIu16 : & [u8 ; 3] = b"hu\0" ; pub const PRIu32 : & [u8 ; 2] = b"u\0" ; pub const PRIu64 : & [u8 ; 3] = b"lu\0" ; pub const PRIuLEAST8 : & [u8 ; 4] = b"hhu\0" ; pub const PRIuLEAST16 : & [u8 ; 3] = b"hu\0" ; pub const PRIuLEAST32 : & [u8 ; 2] = b"u\0" ; pub const PRIuLEAST64 : & [u8 ; 3] = b"lu\0" ; pub const PRIuFAST8 : & [u8 ; 4] = b"hhu\0" ; pub const PRIuFAST16 : & [u8 ; 3] = b"lu\0" ; pub const PRIuFAST32 : & [u8 ; 3] = b"lu\0" ; pub const PRIuFAST64 : & [u8 ; 3] = b"lu\0" ; pub const PRIx8 : & [u8 ; 4] = b"hhx\0" ; pub const PRIx16 : & [u8 ; 3] = b"hx\0" ; pub const PRIx32 : & [u8 ; 2] = b"x\0" ; pub const PRIx64 : & [u8 ; 3] = b"lx\0" ; pub const PRIxLEAST8 : & [u8 ; 4] = b"hhx\0" ; pub const PRIxLEAST16 : & [u8 ; 3] = b"hx\0" ; pub const PRIxLEAST32 : & [u8 ; 2] = b"x\0" ; pub const PRIxLEAST64 : & [u8 ; 3] = b"lx\0" ; pub const PRIxFAST8 : & [u8 ; 4] = b"hhx\0" ; pub const PRIxFAST16 : & [u8 ; 3] = b"lx\0" ; pub const PRIxFAST32 : & [u8 ; 3] = b"lx\0" ; pub const PRIxFAST64 : & [u8 ; 3] = b"lx\0" ; pub const PRIX8 : & [u8 ; 4] = b"hhX\0" ; pub const PRIX16 : & [u8 ; 3] = b"hX\0" ; pub const PRIX32 : & [u8 ; 2] = b"X\0" ; pub const PRIX64 : & [u8 ; 3] = b"lX\0" ; pub const PRIXLEAST8 : & [u8 ; 4] = b"hhX\0" ; pub const PRIXLEAST16 : & [u8 ; 3] = b"hX\0" ; pub const PRIXLEAST32 : & [u8 ; 2] = b"X\0" ; pub const PRIXLEAST64 : & [u8 ; 3] = b"lX\0" ; pub const PRIXFAST8 : & [u8 ; 4] = b"hhX\0" ; pub const PRIXFAST16 : & [u8 ; 3] = b"lX\0" ; pub const PRIXFAST32 : & [u8 ; 3] = b"lX\0" ; pub const PRIXFAST64 : & [u8 ; 3] = b"lX\0" ; pub const PRIdMAX : & [u8 ; 3] = b"ld\0" ; pub const PRIiMAX : & [u8 ; 3] = b"li\0" ; pub const PRIoMAX : & [u8 ; 3] = b"lo\0" ; pub const PRIuMAX : & [u8 ; 3] = b"lu\0" ; pub const PRIxMAX : & [u8 ; 3] = b"lx\0" ; pub const PRIXMAX : & [u8 ; 3] = b"lX\0" ; pub const PRIdPTR : & [u8 ; 3] = b"ld\0" ; pub const PRIiPTR : & [u8 ; 3] = b"li\0" ; pub const PRIoPTR : & [u8 ; 3] = b"lo\0" ; pub const PRIuPTR : & [u8 ; 3] = b"lu\0" ; pub const PRIxPTR : & [u8 ; 3] = b"lx\0" ; pub const PRIXPTR : & [u8 ; 3] = b"lX\0" ; pub const SCNd8 : & [u8 ; 4] = b"hhd\0" ; pub const SCNd16 : & [u8 ; 3] = b"hd\0" ; pub const SCNd32 : & [u8 ; 2] = b"d\0" ; pub const SCNd64 : & [u8 ; 3] = b"ld\0" ; pub const SCNdLEAST8 : & [u8 ; 4] = b"hhd\0" ; pub const SCNdLEAST16 : & [u8 ; 3] = b"hd\0" ; pub const SCNdLEAST32 : & [u8 ; 2] = b"d\0" ; pub const SCNdLEAST64 : & [u8 ; 3] = b"ld\0" ; pub const SCNdFAST8 : & [u8 ; 4] = b"hhd\0" ; pub const SCNdFAST16 : & [u8 ; 3] = b"ld\0" ; pub const SCNdFAST32 : & [u8 ; 3] = b"ld\0" ; pub const SCNdFAST64 : & [u8 ; 3] = b"ld\0" ; pub const SCNi8 : & [u8 ; 4] = b"hhi\0" ; pub const SCNi16 : & [u8 ; 3] = b"hi\0" ; pub const SCNi32 : & [u8 ; 2] = b"i\0" ; pub const SCNi64 : & [u8 ; 3] = b"li\0" ; pub const SCNiLEAST8 : & [u8 ; 4] = b"hhi\0" ; pub const SCNiLEAST16 : & [u8 ; 3] = b"hi\0" ; pub const SCNiLEAST32 : & [u8 ; 2] = b"i\0" ; pub const SCNiLEAST64 : & [u8 ; 3] = b"li\0" ; pub const SCNiFAST8 : & [u8 ; 4] = b"hhi\0" ; pub const SCNiFAST16 : & [u8 ; 3] = b"li\0" ; pub const SCNiFAST32 : & [u8 ; 3] = b"li\0" ; pub const SCNiFAST64 : & [u8 ; 3] = b"li\0" ; pub const SCNu8 : & [u8 ; 4] = b"hhu\0" ; pub const SCNu16 : & [u8 ; 3] = b"hu\0" ; pub const SCNu32 : & [u8 ; 2] = b"u\0" ; pub const SCNu64 : & [u8 ; 3] = b"lu\0" ; pub const SCNuLEAST8 : & [u8 ; 4] = b"hhu\0" ; pub const SCNuLEAST16 : & [u8 ; 3] = b"hu\0" ; pub const SCNuLEAST32 : & [u8 ; 2] = b"u\0" ; pub const SCNuLEAST64 : & [u8 ; 3] = b"lu\0" ; pub const SCNuFAST8 : & [u8 ; 4] = b"hhu\0" ; pub const SCNuFAST16 : & [u8 ; 3] = b"lu\0" ; pub const SCNuFAST32 : & [u8 ; 3] = b"lu\0" ; pub const SCNuFAST64 : & [u8 ; 3] = b"lu\0" ; pub const SCNo8 : & [u8 ; 4] = b"hho\0" ; pub const SCNo16 : & [u8 ; 3] = b"ho\0" ; pub const SCNo32 : & [u8 ; 2] = b"o\0" ; pub const SCNo64 : & [u8 ; 3] = b"lo\0" ; pub const SCNoLEAST8 : & [u8 ; 4] = b"hho\0" ; pub const SCNoLEAST16 : & [u8 ; 3] = b"ho\0" ; pub const SCNoLEAST32 : & [u8 ; 2] = b"o\0" ; pub const SCNoLEAST64 : & [u8 ; 3] = b"lo\0" ; pub const SCNoFAST8 : & [u8 ; 4] = b"hho\0" ; pub const SCNoFAST16 : & [u8 ; 3] = b"lo\0" ; pub const SCNoFAST32 : & [u8 ; 3] = b"lo\0" ; pub const SCNoFAST64 : & [u8 ; 3] = b"lo\0" ; pub const SCNx8 : & [u8 ; 4] = b"hhx\0" ; pub const SCNx16 : & [u8 ; 3] = b"hx\0" ; pub const SCNx32 : & [u8 ; 2] = b"x\0" ; pub const SCNx64 : & [u8 ; 3] = b"lx\0" ; pub const SCNxLEAST8 : & [u8 ; 4] = b"hhx\0" ; pub const SCNxLEAST16 : & [u8 ; 3] = b"hx\0" ; pub const SCNxLEAST32 : & [u8 ; 2] = b"x\0" ; pub const SCNxLEAST64 : & [u8 ; 3] = b"lx\0" ; pub const SCNxFAST8 : & [u8 ; 4] = b"hhx\0" ; pub const SCNxFAST16 : & [u8 ; 3] = b"lx\0" ; pub const SCNxFAST32 : & [u8 ; 3] = b"lx\0" ; pub const SCNxFAST64 : & [u8 ; 3] = b"lx\0" ; pub const SCNdMAX : & [u8 ; 3] = b"ld\0" ; pub const SCNiMAX : & [u8 ; 3] = b"li\0" ; pub const SCNoMAX : & [u8 ; 3] = b"lo\0" ; pub const SCNuMAX : & [u8 ; 3] = b"lu\0" ; pub const SCNxMAX : & [u8 ; 3] = b"lx\0" ; pub const SCNdPTR : & [u8 ; 3] = b"ld\0" ; pub const SCNiPTR : & [u8 ; 3] = b"li\0" ; pub const SCNoPTR : & [u8 ; 3] = b"lo\0" ; pub const SCNuPTR : & [u8 ; 3] = b"lu\0" ; pub const SCNxPTR : & [u8 ; 3] = b"lx\0" ; pub const _MATH_H : u32 = 1 ; pub const _BITS_LIBM_SIMD_DECL_STUBS_H : u32 = 1 ; pub const __FP_LOGB0_IS_MIN : u32 = 1 ; pub const __FP_LOGBNAN_IS_MIN : u32 = 1 ; pub const FP_ILOGB0 : i32 = - 2147483648 ; pub const FP_ILOGBNAN : i32 = - 2147483648 ; pub const __MATH_DECLARING_DOUBLE : u32 = 1 ; pub const __MATH_DECLARING_FLOATN : u32 = 0 ; pub const __MATH_DECLARE_LDOUBLE : u32 = 1 ; pub const MATH_ERRNO : u32 = 1 ; pub const MATH_ERREXCEPT : u32 = 2 ; pub const math_errhandling : u32 = 3 ; pub const M_E : f64 = 2.718281828459045 ; pub const M_LOG2E : f64 = 1.4426950408889634 ; pub const M_LOG10E : f64 = 0.4342944819032518 ; pub const M_LN2 : f64 = 0.6931471805599453 ; pub const M_LN10 : f64 = 2.302585092994046 ; pub const M_PI : f64 = 3.141592653589793 ; pub const M_PI_2 : f64 = 1.5707963267948966 ; pub const M_PI_4 : f64 = 0.7853981633974483 ; pub const M_1_PI : f64 = 0.3183098861837907 ; pub const M_2_PI : f64 = 0.6366197723675814 ; pub const M_2_SQRTPI : f64 = 1.1283791670955126 ; pub const M_SQRT2 : f64 = 1.4142135623730951 ; pub const M_SQRT1_2 : f64 = 0.7071067811865476 ; pub const LAYER_INIT_SHA : i32 = - 1 ; pub const _STDIO_H : u32 = 1 ; pub const _____fpos_t_defined : u32 = 1 ; pub const ____mbstate_t_defined : u32 = 1 ; pub const _____fpos64_t_defined : u32 = 1 ; pub const ____FILE_defined : u32 = 1 ; pub const __FILE_defined : u32 = 1 ; pub const __struct_FILE_defined : u32 = 1 ; pub const _IO_EOF_SEEN : u32 = 16 ; pub const _IO_ERR_SEEN : u32 = 32 ; pub const _IO_USER_LOCK : u32 = 32768 ; pub const __cookie_io_functions_t_defined : u32 = 1 ; pub const _IOFBF : u32 = 0 ; pub const _IOLBF : u32 = 1 ; pub const _IONBF : u32 = 2 ; pub const BUFSIZ : u32 = 8192 ; pub const EOF : i32 = - 1 ; pub const SEEK_SET : u32 = 0 ; pub const SEEK_CUR : u32 = 1 ; pub const SEEK_END : u32 = 2 ; pub const P_tmpdir : & [u8 ; 5] = b"/tmp\0" ; pub const L_tmpnam : u32 = 20 ; pub const TMP_MAX : u32 = 238328 ; pub const _BITS_STDIO_LIM_H : u32 = 1 ; pub const FILENAME_MAX : u32 = 4096 ; pub const L_ctermid : u32 = 9 ; pub const FOPEN_MAX : u32 = 16 ; pub type wchar_t = :: std :: os :: raw :: c_int ; pub type __cfloat128 = __BindgenComplex < u128 > ; pub type _Float128 = u128 ; pub type _Float32 = f32 ; pub type _Float64 = f64 ; pub type _Float32x = f64 ; pub type _Float64x = u128 ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct div_t { pub quot : :: std :: os :: raw :: c_int , pub rem : :: std :: os :: raw :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of div_t"] [:: std :: mem :: size_of :: < div_t > () - 8usize] ; ["Alignment of div_t"] [:: std :: mem :: align_of :: < div_t > () - 4usize] ; ["Offset of field: div_t::quot"] [:: std :: mem :: offset_of ! (div_t , quot) - 0usize] ; ["Offset of field: div_t::rem"] [:: std :: mem :: offset_of ! (div_t , rem) - 4usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ldiv_t { pub quot : :: std :: os :: raw :: c_long , pub rem : :: std :: os :: raw :: c_long , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ldiv_t"] [:: std :: mem :: size_of :: < ldiv_t > () - 16usize] ; ["Alignment of ldiv_t"] [:: std :: mem :: align_of :: < ldiv_t > () - 8usize] ; ["Offset of field: ldiv_t::quot"] [:: std :: mem :: offset_of ! (ldiv_t , quot) - 0usize] ; ["Offset of field: ldiv_t::rem"] [:: std :: mem :: offset_of ! (ldiv_t , rem) - 8usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct lldiv_t { pub quot : :: std :: os :: raw :: c_longlong , pub rem : :: std :: os :: raw :: c_longlong , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of lldiv_t"] [:: std :: mem :: size_of :: < lldiv_t > () - 16usize] ; ["Alignment of lldiv_t"] [:: std :: mem :: align_of :: < lldiv_t > () - 8usize] ; ["Offset of field: lldiv_t::quot"] [:: std :: mem :: offset_of ! (lldiv_t , quot) - 0usize] ; ["Offset of field: lldiv_t::rem"] [:: std :: mem :: offset_of ! (lldiv_t , rem) - 8usize] ; } ; unsafe extern "C" { pub fn __ctype_get_mb_cur_max () -> usize ; } unsafe extern "C" { pub fn atof (__nptr : * const :: std :: os :: raw :: c_char) -> f64 ; } unsafe extern "C" { pub fn atoi (__nptr : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn atol (__nptr : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn atoll (__nptr : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn strtod (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char) -> f64 ; } unsafe extern "C" { pub fn strtof (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char) -> f32 ; } unsafe extern "C" { pub fn strtold (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char) -> u128 ; } unsafe extern "C" { pub fn strtol (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn strtoul (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_ulong ; } unsafe extern "C" { pub fn strtoq (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn strtouq (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_ulonglong ; } unsafe extern "C" { pub fn strtoll (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn strtoull (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_ulonglong ; } unsafe extern "C" { pub fn l64a (__n : :: std :: os :: raw :: c_long) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn a64l (__s : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_long ; } pub type __u_char = :: std :: os :: raw :: c_uchar ; pub type __u_short = :: std :: os :: raw :: c_ushort ; pub type __u_int = :: std :: os :: raw :: c_uint ; pub type __u_long = :: std :: os :: raw :: c_ulong ; 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_long ; pub type __uint64_t = :: std :: os :: raw :: c_ulong ; pub type __int_least8_t = __int8_t ; pub type __uint_least8_t = __uint8_t ; pub type __int_least16_t = __int16_t ; pub type __uint_least16_t = __uint16_t ; pub type __int_least32_t = __int32_t ; pub type __uint_least32_t = __uint32_t ; pub type __int_least64_t = __int64_t ; pub type __uint_least64_t = __uint64_t ; pub type __quad_t = :: std :: os :: raw :: c_long ; pub type __u_quad_t = :: std :: os :: raw :: c_ulong ; pub type __intmax_t = :: std :: os :: raw :: c_long ; pub type __uintmax_t = :: std :: os :: raw :: c_ulong ; pub type __dev_t = :: std :: os :: raw :: c_ulong ; pub type __uid_t = :: std :: os :: raw :: c_uint ; pub type __gid_t = :: std :: os :: raw :: c_uint ; pub type __ino_t = :: std :: os :: raw :: c_ulong ; pub type __ino64_t = :: std :: os :: raw :: c_ulong ; pub type __mode_t = :: std :: os :: raw :: c_uint ; pub type __nlink_t = :: std :: os :: raw :: c_ulong ; pub type __off_t = :: std :: os :: raw :: c_long ; pub type __off64_t = :: std :: os :: raw :: c_long ; pub type __pid_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [:: std :: os :: raw :: c_int ; 2usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __fsid_t"] [:: std :: mem :: size_of :: < __fsid_t > () - 8usize] ; ["Alignment of __fsid_t"] [:: std :: mem :: align_of :: < __fsid_t > () - 4usize] ; ["Offset of field: __fsid_t::__val"] [:: std :: mem :: offset_of ! (__fsid_t , __val) - 0usize] ; } ; pub type __clock_t = :: std :: os :: raw :: c_long ; pub type __rlim_t = :: std :: os :: raw :: c_ulong ; pub type __rlim64_t = :: std :: os :: raw :: c_ulong ; pub type __id_t = :: std :: os :: raw :: c_uint ; pub type __time_t = :: std :: os :: raw :: c_long ; pub type __useconds_t = :: std :: os :: raw :: c_uint ; pub type __suseconds_t = :: std :: os :: raw :: c_long ; pub type __suseconds64_t = :: std :: os :: raw :: c_long ; pub type __daddr_t = :: std :: os :: raw :: c_int ; pub type __key_t = :: std :: os :: raw :: c_int ; pub type __clockid_t = :: std :: os :: raw :: c_int ; pub type __timer_t = * mut :: std :: os :: raw :: c_void ; pub type __blksize_t = :: std :: os :: raw :: c_long ; pub type __blkcnt_t = :: std :: os :: raw :: c_long ; pub type __blkcnt64_t = :: std :: os :: raw :: c_long ; pub type __fsblkcnt_t = :: std :: os :: raw :: c_ulong ; pub type __fsblkcnt64_t = :: std :: os :: raw :: c_ulong ; pub type __fsfilcnt_t = :: std :: os :: raw :: c_ulong ; pub type __fsfilcnt64_t = :: std :: os :: raw :: c_ulong ; pub type __fsword_t = :: std :: os :: raw :: c_long ; pub type __ssize_t = :: std :: os :: raw :: c_long ; pub type __syscall_slong_t = :: std :: os :: raw :: c_long ; pub type __syscall_ulong_t = :: std :: os :: raw :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut :: std :: os :: raw :: c_char ; pub type __intptr_t = :: std :: os :: raw :: c_long ; pub type __socklen_t = :: std :: os :: raw :: c_uint ; pub type __sig_atomic_t = :: std :: os :: raw :: c_int ; pub type u_char = __u_char ; pub type u_short = __u_short ; pub type u_int = __u_int ; pub type u_long = __u_long ; pub type quad_t = __quad_t ; pub type u_quad_t = __u_quad_t ; pub type fsid_t = __fsid_t ; pub type loff_t = __loff_t ; pub type ino_t = __ino_t ; pub type dev_t = __dev_t ; pub type gid_t = __gid_t ; pub type mode_t = __mode_t ; pub type nlink_t = __nlink_t ; pub type uid_t = __uid_t ; pub type off_t = __off_t ; pub type pid_t = __pid_t ; pub type id_t = __id_t ; pub type daddr_t = __daddr_t ; pub type caddr_t = __caddr_t ; pub type key_t = __key_t ; pub type clock_t = __clock_t ; pub type clockid_t = __clockid_t ; pub type time_t = __time_t ; pub type timer_t = __timer_t ; pub type ulong = :: std :: os :: raw :: c_ulong ; pub type ushort = :: std :: os :: raw :: c_ushort ; pub type uint = :: std :: os :: raw :: c_uint ; pub type u_int8_t = __uint8_t ; pub type u_int16_t = __uint16_t ; pub type u_int32_t = __uint32_t ; pub type u_int64_t = __uint64_t ; pub type register_t = :: std :: os :: raw :: c_long ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __sigset_t { pub __val : [:: std :: os :: raw :: c_ulong ; 16usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __sigset_t"] [:: std :: mem :: size_of :: < __sigset_t > () - 128usize] ; ["Alignment of __sigset_t"] [:: std :: mem :: align_of :: < __sigset_t > () - 8usize] ; ["Offset of field: __sigset_t::__val"] [:: std :: mem :: offset_of ! (__sigset_t , __val) - 0usize] ; } ; pub type sigset_t = __sigset_t ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct timeval { pub tv_sec : __time_t , pub tv_usec : __suseconds_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of timeval"] [:: std :: mem :: size_of :: < timeval > () - 16usize] ; ["Alignment of timeval"] [:: std :: mem :: align_of :: < timeval > () - 8usize] ; ["Offset of field: timeval::tv_sec"] [:: std :: mem :: offset_of ! (timeval , tv_sec) - 0usize] ; ["Offset of field: timeval::tv_usec"] [:: std :: mem :: offset_of ! (timeval , tv_usec) - 8usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct timespec { pub tv_sec : __time_t , pub tv_nsec : __syscall_slong_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of timespec"] [:: std :: mem :: size_of :: < timespec > () - 16usize] ; ["Alignment of timespec"] [:: std :: mem :: align_of :: < timespec > () - 8usize] ; ["Offset of field: timespec::tv_sec"] [:: std :: mem :: offset_of ! (timespec , tv_sec) - 0usize] ; ["Offset of field: timespec::tv_nsec"] [:: std :: mem :: offset_of ! (timespec , tv_nsec) - 8usize] ; } ; pub type suseconds_t = __suseconds_t ; pub type __fd_mask = :: std :: os :: raw :: c_long ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct fd_set { pub __fds_bits : [__fd_mask ; 16usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of fd_set"] [:: std :: mem :: size_of :: < fd_set > () - 128usize] ; ["Alignment of fd_set"] [:: std :: mem :: align_of :: < fd_set > () - 8usize] ; ["Offset of field: fd_set::__fds_bits"] [:: std :: mem :: offset_of ! (fd_set , __fds_bits) - 0usize] ; } ; pub type fd_mask = __fd_mask ; unsafe extern "C" { pub fn select (__nfds : :: std :: os :: raw :: c_int , __readfds : * mut fd_set , __writefds : * mut fd_set , __exceptfds : * mut fd_set , __timeout : * mut timeval) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn pselect (__nfds : :: std :: os :: raw :: c_int , __readfds : * mut fd_set , __writefds : * mut fd_set , __exceptfds : * mut fd_set , __timeout : * const timespec , __sigmask : * const __sigset_t) -> :: std :: os :: raw :: c_int ; } pub type blksize_t = __blksize_t ; pub type blkcnt_t = __blkcnt_t ; pub type fsblkcnt_t = __fsblkcnt_t ; pub type fsfilcnt_t = __fsfilcnt_t ; # [repr (C)] # [derive (Copy , Clone)] pub union __atomic_wide_counter { pub __value64 : :: std :: os :: raw :: c_ulonglong , pub __value32 : __atomic_wide_counter__bindgen_ty_1 , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __atomic_wide_counter__bindgen_ty_1 { pub __low : :: std :: os :: raw :: c_uint , pub __high : :: std :: os :: raw :: c_uint , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __atomic_wide_counter__bindgen_ty_1"] [:: std :: mem :: size_of :: < __atomic_wide_counter__bindgen_ty_1 > () - 8usize] ; ["Alignment of __atomic_wide_counter__bindgen_ty_1"] [:: std :: mem :: align_of :: < __atomic_wide_counter__bindgen_ty_1 > () - 4usize] ; ["Offset of field: __atomic_wide_counter__bindgen_ty_1::__low"] [:: std :: mem :: offset_of ! (__atomic_wide_counter__bindgen_ty_1 , __low) - 0usize] ; ["Offset of field: __atomic_wide_counter__bindgen_ty_1::__high"] [:: std :: mem :: offset_of ! (__atomic_wide_counter__bindgen_ty_1 , __high) - 4usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __atomic_wide_counter"] [:: std :: mem :: size_of :: < __atomic_wide_counter > () - 8usize] ; ["Alignment of __atomic_wide_counter"] [:: std :: mem :: align_of :: < __atomic_wide_counter > () - 8usize] ; ["Offset of field: __atomic_wide_counter::__value64"] [:: std :: mem :: offset_of ! (__atomic_wide_counter , __value64) - 0usize] ; ["Offset of field: __atomic_wide_counter::__value32"] [:: std :: mem :: offset_of ! (__atomic_wide_counter , __value32) - 0usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_internal_list { pub __prev : * mut __pthread_internal_list , pub __next : * mut __pthread_internal_list , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __pthread_internal_list"] [:: std :: mem :: size_of :: < __pthread_internal_list > () - 16usize] ; ["Alignment of __pthread_internal_list"] [:: std :: mem :: align_of :: < __pthread_internal_list > () - 8usize] ; ["Offset of field: __pthread_internal_list::__prev"] [:: std :: mem :: offset_of ! (__pthread_internal_list , __prev) - 0usize] ; ["Offset of field: __pthread_internal_list::__next"] [:: std :: mem :: offset_of ! (__pthread_internal_list , __next) - 8usize] ; } ; pub type __pthread_list_t = __pthread_internal_list ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_internal_slist { pub __next : * mut __pthread_internal_slist , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __pthread_internal_slist"] [:: std :: mem :: size_of :: < __pthread_internal_slist > () - 8usize] ; ["Alignment of __pthread_internal_slist"] [:: std :: mem :: align_of :: < __pthread_internal_slist > () - 8usize] ; ["Offset of field: __pthread_internal_slist::__next"] [:: std :: mem :: offset_of ! (__pthread_internal_slist , __next) - 0usize] ; } ; pub type __pthread_slist_t = __pthread_internal_slist ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_mutex_s { pub __lock : :: std :: os :: raw :: c_int , pub __count : :: std :: os :: raw :: c_uint , pub __owner : :: std :: os :: raw :: c_int , pub __nusers : :: std :: os :: raw :: c_uint , pub __kind : :: std :: os :: raw :: c_int , pub __spins : :: std :: os :: raw :: c_short , pub __unused : :: std :: os :: raw :: c_short , pub __list : __pthread_list_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __pthread_mutex_s"] [:: std :: mem :: size_of :: < __pthread_mutex_s > () - 40usize] ; ["Alignment of __pthread_mutex_s"] [:: std :: mem :: align_of :: < __pthread_mutex_s > () - 8usize] ; ["Offset of field: __pthread_mutex_s::__lock"] [:: std :: mem :: offset_of ! (__pthread_mutex_s , __lock) - 0usize] ; ["Offset of field: __pthread_mutex_s::__count"] [:: std :: mem :: offset_of ! (__pthread_mutex_s , __count) - 4usize] ; ["Offset of field: __pthread_mutex_s::__owner"] [:: std :: mem :: offset_of ! (__pthread_mutex_s , __owner) - 8usize] ; ["Offset of field: __pthread_mutex_s::__nusers"] [:: std :: mem :: offset_of ! (__pthread_mutex_s , __nusers) - 12usize] ; ["Offset of field: __pthread_mutex_s::__kind"] [:: std :: mem :: offset_of ! (__pthread_mutex_s , __kind) - 16usize] ; ["Offset of field: __pthread_mutex_s::__spins"] [:: std :: mem :: offset_of ! (__pthread_mutex_s , __spins) - 20usize] ; ["Offset of field: __pthread_mutex_s::__unused"] [:: std :: mem :: offset_of ! (__pthread_mutex_s , __unused) - 22usize] ; ["Offset of field: __pthread_mutex_s::__list"] [:: std :: mem :: offset_of ! (__pthread_mutex_s , __list) - 24usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_rwlock_arch_t { pub __readers : :: std :: os :: raw :: c_uint , pub __writers : :: std :: os :: raw :: c_uint , pub __wrphase_futex : :: std :: os :: raw :: c_uint , pub __writers_futex : :: std :: os :: raw :: c_uint , pub __pad3 : :: std :: os :: raw :: c_uint , pub __pad4 : :: std :: os :: raw :: c_uint , pub __cur_writer : :: std :: os :: raw :: c_int , pub __shared : :: std :: os :: raw :: c_int , pub __pad1 : :: std :: os :: raw :: c_ulong , pub __pad2 : :: std :: os :: raw :: c_ulong , pub __flags : :: std :: os :: raw :: c_uint , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __pthread_rwlock_arch_t"] [:: std :: mem :: size_of :: < __pthread_rwlock_arch_t > () - 56usize] ; ["Alignment of __pthread_rwlock_arch_t"] [:: std :: mem :: align_of :: < __pthread_rwlock_arch_t > () - 8usize] ; ["Offset of field: __pthread_rwlock_arch_t::__readers"] [:: std :: mem :: offset_of ! (__pthread_rwlock_arch_t , __readers) - 0usize] ; ["Offset of field: __pthread_rwlock_arch_t::__writers"] [:: std :: mem :: offset_of ! (__pthread_rwlock_arch_t , __writers) - 4usize] ; ["Offset of field: __pthread_rwlock_arch_t::__wrphase_futex"] [:: std :: mem :: offset_of ! (__pthread_rwlock_arch_t , __wrphase_futex) - 8usize] ; ["Offset of field: __pthread_rwlock_arch_t::__writers_futex"] [:: std :: mem :: offset_of ! (__pthread_rwlock_arch_t , __writers_futex) - 12usize] ; ["Offset of field: __pthread_rwlock_arch_t::__pad3"] [:: std :: mem :: offset_of ! (__pthread_rwlock_arch_t , __pad3) - 16usize] ; ["Offset of field: __pthread_rwlock_arch_t::__pad4"] [:: std :: mem :: offset_of ! (__pthread_rwlock_arch_t , __pad4) - 20usize] ; ["Offset of field: __pthread_rwlock_arch_t::__cur_writer"] [:: std :: mem :: offset_of ! (__pthread_rwlock_arch_t , __cur_writer) - 24usize] ; ["Offset of field: __pthread_rwlock_arch_t::__shared"] [:: std :: mem :: offset_of ! (__pthread_rwlock_arch_t , __shared) - 28usize] ; ["Offset of field: __pthread_rwlock_arch_t::__pad1"] [:: std :: mem :: offset_of ! (__pthread_rwlock_arch_t , __pad1) - 32usize] ; ["Offset of field: __pthread_rwlock_arch_t::__pad2"] [:: std :: mem :: offset_of ! (__pthread_rwlock_arch_t , __pad2) - 40usize] ; ["Offset of field: __pthread_rwlock_arch_t::__flags"] [:: std :: mem :: offset_of ! (__pthread_rwlock_arch_t , __flags) - 48usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub struct __pthread_cond_s { pub __wseq : __atomic_wide_counter , pub __g1_start : __atomic_wide_counter , pub __g_size : [:: std :: os :: raw :: c_uint ; 2usize] , pub __g1_orig_size : :: std :: os :: raw :: c_uint , pub __wrefs : :: std :: os :: raw :: c_uint , pub __g_signals : [:: std :: os :: raw :: c_uint ; 2usize] , pub __unused_initialized_1 : :: std :: os :: raw :: c_uint , pub __unused_initialized_2 : :: std :: os :: raw :: c_uint , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __pthread_cond_s"] [:: std :: mem :: size_of :: < __pthread_cond_s > () - 48usize] ; ["Alignment of __pthread_cond_s"] [:: std :: mem :: align_of :: < __pthread_cond_s > () - 8usize] ; ["Offset of field: __pthread_cond_s::__wseq"] [:: std :: mem :: offset_of ! (__pthread_cond_s , __wseq) - 0usize] ; ["Offset of field: __pthread_cond_s::__g1_start"] [:: std :: mem :: offset_of ! (__pthread_cond_s , __g1_start) - 8usize] ; ["Offset of field: __pthread_cond_s::__g_size"] [:: std :: mem :: offset_of ! (__pthread_cond_s , __g_size) - 16usize] ; ["Offset of field: __pthread_cond_s::__g1_orig_size"] [:: std :: mem :: offset_of ! (__pthread_cond_s , __g1_orig_size) - 24usize] ; ["Offset of field: __pthread_cond_s::__wrefs"] [:: std :: mem :: offset_of ! (__pthread_cond_s , __wrefs) - 28usize] ; ["Offset of field: __pthread_cond_s::__g_signals"] [:: std :: mem :: offset_of ! (__pthread_cond_s , __g_signals) - 32usize] ; ["Offset of field: __pthread_cond_s::__unused_initialized_1"] [:: std :: mem :: offset_of ! (__pthread_cond_s , __unused_initialized_1) - 40usize] ; ["Offset of field: __pthread_cond_s::__unused_initialized_2"] [:: std :: mem :: offset_of ! (__pthread_cond_s , __unused_initialized_2) - 44usize] ; } ; pub type __tss_t = :: std :: os :: raw :: c_uint ; pub type __thrd_t = :: std :: os :: raw :: c_ulong ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __once_flag { pub __data : :: std :: os :: raw :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __once_flag"] [:: std :: mem :: size_of :: < __once_flag > () - 4usize] ; ["Alignment of __once_flag"] [:: std :: mem :: align_of :: < __once_flag > () - 4usize] ; ["Offset of field: __once_flag::__data"] [:: std :: mem :: offset_of ! (__once_flag , __data) - 0usize] ; } ; pub type pthread_t = :: std :: os :: raw :: c_ulong ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_mutexattr_t { pub __size : [:: std :: os :: raw :: c_char ; 4usize] , pub __align : :: std :: os :: raw :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_mutexattr_t"] [:: std :: mem :: size_of :: < pthread_mutexattr_t > () - 4usize] ; ["Alignment of pthread_mutexattr_t"] [:: std :: mem :: align_of :: < pthread_mutexattr_t > () - 4usize] ; ["Offset of field: pthread_mutexattr_t::__size"] [:: std :: mem :: offset_of ! (pthread_mutexattr_t , __size) - 0usize] ; ["Offset of field: pthread_mutexattr_t::__align"] [:: std :: mem :: offset_of ! (pthread_mutexattr_t , __align) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_condattr_t { pub __size : [:: std :: os :: raw :: c_char ; 4usize] , pub __align : :: std :: os :: raw :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_condattr_t"] [:: std :: mem :: size_of :: < pthread_condattr_t > () - 4usize] ; ["Alignment of pthread_condattr_t"] [:: std :: mem :: align_of :: < pthread_condattr_t > () - 4usize] ; ["Offset of field: pthread_condattr_t::__size"] [:: std :: mem :: offset_of ! (pthread_condattr_t , __size) - 0usize] ; ["Offset of field: pthread_condattr_t::__align"] [:: std :: mem :: offset_of ! (pthread_condattr_t , __align) - 0usize] ; } ; pub type pthread_key_t = :: std :: os :: raw :: c_uint ; pub type pthread_once_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_attr_t { pub __size : [:: std :: os :: raw :: c_char ; 56usize] , pub __align : :: std :: os :: raw :: c_long , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_attr_t"] [:: std :: mem :: size_of :: < pthread_attr_t > () - 56usize] ; ["Alignment of pthread_attr_t"] [:: std :: mem :: align_of :: < pthread_attr_t > () - 8usize] ; ["Offset of field: pthread_attr_t::__size"] [:: std :: mem :: offset_of ! (pthread_attr_t , __size) - 0usize] ; ["Offset of field: pthread_attr_t::__align"] [:: std :: mem :: offset_of ! (pthread_attr_t , __align) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_mutex_t { pub __data : __pthread_mutex_s , pub __size : [:: std :: os :: raw :: c_char ; 40usize] , pub __align : :: std :: os :: raw :: c_long , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_mutex_t"] [:: std :: mem :: size_of :: < pthread_mutex_t > () - 40usize] ; ["Alignment of pthread_mutex_t"] [:: std :: mem :: align_of :: < pthread_mutex_t > () - 8usize] ; ["Offset of field: pthread_mutex_t::__data"] [:: std :: mem :: offset_of ! (pthread_mutex_t , __data) - 0usize] ; ["Offset of field: pthread_mutex_t::__size"] [:: std :: mem :: offset_of ! (pthread_mutex_t , __size) - 0usize] ; ["Offset of field: pthread_mutex_t::__align"] [:: std :: mem :: offset_of ! (pthread_mutex_t , __align) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_cond_t { pub __data : __pthread_cond_s , pub __size : [:: std :: os :: raw :: c_char ; 48usize] , pub __align : :: std :: os :: raw :: c_longlong , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_cond_t"] [:: std :: mem :: size_of :: < pthread_cond_t > () - 48usize] ; ["Alignment of pthread_cond_t"] [:: std :: mem :: align_of :: < pthread_cond_t > () - 8usize] ; ["Offset of field: pthread_cond_t::__data"] [:: std :: mem :: offset_of ! (pthread_cond_t , __data) - 0usize] ; ["Offset of field: pthread_cond_t::__size"] [:: std :: mem :: offset_of ! (pthread_cond_t , __size) - 0usize] ; ["Offset of field: pthread_cond_t::__align"] [:: std :: mem :: offset_of ! (pthread_cond_t , __align) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_rwlock_t { pub __data : __pthread_rwlock_arch_t , pub __size : [:: std :: os :: raw :: c_char ; 56usize] , pub __align : :: std :: os :: raw :: c_long , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_rwlock_t"] [:: std :: mem :: size_of :: < pthread_rwlock_t > () - 56usize] ; ["Alignment of pthread_rwlock_t"] [:: std :: mem :: align_of :: < pthread_rwlock_t > () - 8usize] ; ["Offset of field: pthread_rwlock_t::__data"] [:: std :: mem :: offset_of ! (pthread_rwlock_t , __data) - 0usize] ; ["Offset of field: pthread_rwlock_t::__size"] [:: std :: mem :: offset_of ! (pthread_rwlock_t , __size) - 0usize] ; ["Offset of field: pthread_rwlock_t::__align"] [:: std :: mem :: offset_of ! (pthread_rwlock_t , __align) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_rwlockattr_t { pub __size : [:: std :: os :: raw :: c_char ; 8usize] , pub __align : :: std :: os :: raw :: c_long , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_rwlockattr_t"] [:: std :: mem :: size_of :: < pthread_rwlockattr_t > () - 8usize] ; ["Alignment of pthread_rwlockattr_t"] [:: std :: mem :: align_of :: < pthread_rwlockattr_t > () - 8usize] ; ["Offset of field: pthread_rwlockattr_t::__size"] [:: std :: mem :: offset_of ! (pthread_rwlockattr_t , __size) - 0usize] ; ["Offset of field: pthread_rwlockattr_t::__align"] [:: std :: mem :: offset_of ! (pthread_rwlockattr_t , __align) - 0usize] ; } ; pub type pthread_spinlock_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_barrier_t { pub __size : [:: std :: os :: raw :: c_char ; 32usize] , pub __align : :: std :: os :: raw :: c_long , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_barrier_t"] [:: std :: mem :: size_of :: < pthread_barrier_t > () - 32usize] ; ["Alignment of pthread_barrier_t"] [:: std :: mem :: align_of :: < pthread_barrier_t > () - 8usize] ; ["Offset of field: pthread_barrier_t::__size"] [:: std :: mem :: offset_of ! (pthread_barrier_t , __size) - 0usize] ; ["Offset of field: pthread_barrier_t::__align"] [:: std :: mem :: offset_of ! (pthread_barrier_t , __align) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_barrierattr_t { pub __size : [:: std :: os :: raw :: c_char ; 4usize] , pub __align : :: std :: os :: raw :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_barrierattr_t"] [:: std :: mem :: size_of :: < pthread_barrierattr_t > () - 4usize] ; ["Alignment of pthread_barrierattr_t"] [:: std :: mem :: align_of :: < pthread_barrierattr_t > () - 4usize] ; ["Offset of field: pthread_barrierattr_t::__size"] [:: std :: mem :: offset_of ! (pthread_barrierattr_t , __size) - 0usize] ; ["Offset of field: pthread_barrierattr_t::__align"] [:: std :: mem :: offset_of ! (pthread_barrierattr_t , __align) - 0usize] ; } ; unsafe extern "C" { pub fn random () -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn srandom (__seed : :: std :: os :: raw :: c_uint) ; } unsafe extern "C" { pub fn initstate (__seed : :: std :: os :: raw :: c_uint , __statebuf : * mut :: std :: os :: raw :: c_char , __statelen : usize) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn setstate (__statebuf : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct random_data { pub fptr : * mut i32 , pub rptr : * mut i32 , pub state : * mut i32 , pub rand_type : :: std :: os :: raw :: c_int , pub rand_deg : :: std :: os :: raw :: c_int , pub rand_sep : :: std :: os :: raw :: c_int , pub end_ptr : * mut i32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of random_data"] [:: std :: mem :: size_of :: < random_data > () - 48usize] ; ["Alignment of random_data"] [:: std :: mem :: align_of :: < random_data > () - 8usize] ; ["Offset of field: random_data::fptr"] [:: std :: mem :: offset_of ! (random_data , fptr) - 0usize] ; ["Offset of field: random_data::rptr"] [:: std :: mem :: offset_of ! (random_data , rptr) - 8usize] ; ["Offset of field: random_data::state"] [:: std :: mem :: offset_of ! (random_data , state) - 16usize] ; ["Offset of field: random_data::rand_type"] [:: std :: mem :: offset_of ! (random_data , rand_type) - 24usize] ; ["Offset of field: random_data::rand_deg"] [:: std :: mem :: offset_of ! (random_data , rand_deg) - 28usize] ; ["Offset of field: random_data::rand_sep"] [:: std :: mem :: offset_of ! (random_data , rand_sep) - 32usize] ; ["Offset of field: random_data::end_ptr"] [:: std :: mem :: offset_of ! (random_data , end_ptr) - 40usize] ; } ; unsafe extern "C" { pub fn random_r (__buf : * mut random_data , __result : * mut i32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn srandom_r (__seed : :: std :: os :: raw :: c_uint , __buf : * mut random_data) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn initstate_r (__seed : :: std :: os :: raw :: c_uint , __statebuf : * mut :: std :: os :: raw :: c_char , __statelen : usize , __buf : * mut random_data) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn setstate_r (__statebuf : * mut :: std :: os :: raw :: c_char , __buf : * mut random_data) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn rand () -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn srand (__seed : :: std :: os :: raw :: c_uint) ; } unsafe extern "C" { pub fn rand_r (__seed : * mut :: std :: os :: raw :: c_uint) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn drand48 () -> f64 ; } unsafe extern "C" { pub fn erand48 (__xsubi : * mut :: std :: os :: raw :: c_ushort) -> f64 ; } unsafe extern "C" { pub fn lrand48 () -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn nrand48 (__xsubi : * mut :: std :: os :: raw :: c_ushort) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn mrand48 () -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn jrand48 (__xsubi : * mut :: std :: os :: raw :: c_ushort) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn srand48 (__seedval : :: std :: os :: raw :: c_long) ; } unsafe extern "C" { pub fn seed48 (__seed16v : * mut :: std :: os :: raw :: c_ushort) -> * mut :: std :: os :: raw :: c_ushort ; } unsafe extern "C" { pub fn lcong48 (__param : * mut :: std :: os :: raw :: c_ushort) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct drand48_data { pub __x : [:: std :: os :: raw :: c_ushort ; 3usize] , pub __old_x : [:: std :: os :: raw :: c_ushort ; 3usize] , pub __c : :: std :: os :: raw :: c_ushort , pub __init : :: std :: os :: raw :: c_ushort , pub __a : :: std :: os :: raw :: c_ulonglong , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of drand48_data"] [:: std :: mem :: size_of :: < drand48_data > () - 24usize] ; ["Alignment of drand48_data"] [:: std :: mem :: align_of :: < drand48_data > () - 8usize] ; ["Offset of field: drand48_data::__x"] [:: std :: mem :: offset_of ! (drand48_data , __x) - 0usize] ; ["Offset of field: drand48_data::__old_x"] [:: std :: mem :: offset_of ! (drand48_data , __old_x) - 6usize] ; ["Offset of field: drand48_data::__c"] [:: std :: mem :: offset_of ! (drand48_data , __c) - 12usize] ; ["Offset of field: drand48_data::__init"] [:: std :: mem :: offset_of ! (drand48_data , __init) - 14usize] ; ["Offset of field: drand48_data::__a"] [:: std :: mem :: offset_of ! (drand48_data , __a) - 16usize] ; } ; unsafe extern "C" { pub fn drand48_r (__buffer : * mut drand48_data , __result : * mut f64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn erand48_r (__xsubi : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data , __result : * mut f64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn lrand48_r (__buffer : * mut drand48_data , __result : * mut :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn nrand48_r (__xsubi : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data , __result : * mut :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mrand48_r (__buffer : * mut drand48_data , __result : * mut :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn jrand48_r (__xsubi : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data , __result : * mut :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn srand48_r (__seedval : :: std :: os :: raw :: c_long , __buffer : * mut drand48_data) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn seed48_r (__seed16v : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn lcong48_r (__param : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn arc4random () -> __uint32_t ; } unsafe extern "C" { pub fn arc4random_buf (__buf : * mut :: std :: os :: raw :: c_void , __size : usize) ; } unsafe extern "C" { pub fn arc4random_uniform (__upper_bound : __uint32_t) -> __uint32_t ; } unsafe extern "C" { pub fn malloc (__size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } unsafe extern "C" { pub fn calloc (__nmemb : :: std :: os :: raw :: c_ulong , __size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } unsafe extern "C" { pub fn realloc (__ptr : * mut :: std :: os :: raw :: c_void , __size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } unsafe extern "C" { pub fn free (__ptr : * mut :: std :: os :: raw :: c_void) ; } unsafe extern "C" { pub fn reallocarray (__ptr : * mut :: std :: os :: raw :: c_void , __nmemb : usize , __size : usize) -> * mut :: std :: os :: raw :: c_void ; } unsafe extern "C" { pub fn alloca (__size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } unsafe extern "C" { pub fn valloc (__size : usize) -> * mut :: std :: os :: raw :: c_void ; } unsafe extern "C" { pub fn posix_memalign (__memptr : * mut * mut :: std :: os :: raw :: c_void , __alignment : usize , __size : usize) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn aligned_alloc (__alignment : :: std :: os :: raw :: c_ulong , __size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } unsafe extern "C" { pub fn abort () -> ! ; } unsafe extern "C" { pub fn atexit (__func : :: std :: option :: Option < unsafe extern "C" fn () >) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn at_quick_exit (__func : :: std :: option :: Option < unsafe extern "C" fn () >) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn on_exit (__func : :: std :: option :: Option < unsafe extern "C" fn (__status : :: std :: os :: raw :: c_int , __arg : * mut :: std :: os :: raw :: c_void) > , __arg : * mut :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn exit (__status : :: std :: os :: raw :: c_int) -> ! ; } unsafe extern "C" { pub fn quick_exit (__status : :: std :: os :: raw :: c_int) -> ! ; } unsafe extern "C" { pub fn _Exit (__status : :: std :: os :: raw :: c_int) -> ! ; } unsafe extern "C" { pub fn getenv (__name : * const :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn putenv (__string : * mut :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn setenv (__name : * const :: std :: os :: raw :: c_char , __value : * const :: std :: os :: raw :: c_char , __replace : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn unsetenv (__name : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn clearenv () -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mktemp (__template : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn mkstemp (__template : * mut :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mkstemps (__template : * mut :: std :: os :: raw :: c_char , __suffixlen : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mkdtemp (__template : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn system (__command : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn realpath (__name : * const :: std :: os :: raw :: c_char , __resolved : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } pub type __compar_fn_t = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * const :: std :: os :: raw :: c_void , arg2 : * const :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int > ; unsafe extern "C" { pub fn bsearch (__key : * const :: std :: os :: raw :: c_void , __base : * const :: std :: os :: raw :: c_void , __nmemb : usize , __size : usize , __compar : __compar_fn_t) -> * mut :: std :: os :: raw :: c_void ; } unsafe extern "C" { pub fn qsort (__base : * mut :: std :: os :: raw :: c_void , __nmemb : usize , __size : usize , __compar : __compar_fn_t) ; } unsafe extern "C" { pub fn abs (__x : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn labs (__x : :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn llabs (__x : :: std :: os :: raw :: c_longlong) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn div (__numer : :: std :: os :: raw :: c_int , __denom : :: std :: os :: raw :: c_int) -> div_t ; } unsafe extern "C" { pub fn ldiv (__numer : :: std :: os :: raw :: c_long , __denom : :: std :: os :: raw :: c_long) -> ldiv_t ; } unsafe extern "C" { pub fn lldiv (__numer : :: std :: os :: raw :: c_longlong , __denom : :: std :: os :: raw :: c_longlong) -> lldiv_t ; } unsafe extern "C" { pub fn ecvt (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn fcvt (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn gcvt (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn qecvt (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn qfcvt (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn qgcvt (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn ecvt_r (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char , __len : usize) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn fcvt_r (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char , __len : usize) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn qecvt_r (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char , __len : usize) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn qfcvt_r (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char , __len : usize) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mblen (__s : * const :: std :: os :: raw :: c_char , __n : usize) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mbtowc (__pwc : * mut wchar_t , __s : * const :: std :: os :: raw :: c_char , __n : usize) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn wctomb (__s : * mut :: std :: os :: raw :: c_char , __wchar : wchar_t) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mbstowcs (__pwcs : * mut wchar_t , __s : * const :: std :: os :: raw :: c_char , __n : usize) -> usize ; } unsafe extern "C" { pub fn wcstombs (__s : * mut :: std :: os :: raw :: c_char , __pwcs : * const wchar_t , __n : usize) -> usize ; } unsafe extern "C" { pub fn rpmatch (__response : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getsubopt (__optionp : * mut * mut :: std :: os :: raw :: c_char , __tokens : * const * mut :: std :: os :: raw :: c_char , __valuep : * mut * mut :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getloadavg (__loadavg : * mut f64 , __nelem : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } # [repr (C)] # [repr (align (16))] # [derive (Debug , Copy , Clone)] pub struct max_align_t { pub __clang_max_align_nonce1 : :: std :: os :: raw :: c_longlong , pub __bindgen_padding_0 : u64 , pub __clang_max_align_nonce2 : u128 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of max_align_t"] [:: std :: mem :: size_of :: < max_align_t > () - 32usize] ; ["Alignment of max_align_t"] [:: std :: mem :: align_of :: < max_align_t > () - 16usize] ; ["Offset of field: max_align_t::__clang_max_align_nonce1"] [:: std :: mem :: offset_of ! (max_align_t , __clang_max_align_nonce1) - 0usize] ; ["Offset of field: max_align_t::__clang_max_align_nonce2"] [:: std :: mem :: offset_of ! (max_align_t , __clang_max_align_nonce2) - 16usize] ; } ; pub type int_least8_t = __int_least8_t ; pub type int_least16_t = __int_least16_t ; pub type int_least32_t = __int_least32_t ; pub type int_least64_t = __int_least64_t ; pub type uint_least8_t = __uint_least8_t ; pub type uint_least16_t = __uint_least16_t ; pub type uint_least32_t = __uint_least32_t ; pub type uint_least64_t = __uint_least64_t ; pub type int_fast8_t = :: std :: os :: raw :: c_schar ; pub type int_fast16_t = :: std :: os :: raw :: c_long ; pub type int_fast32_t = :: std :: os :: raw :: c_long ; pub type int_fast64_t = :: std :: os :: raw :: c_long ; pub type uint_fast8_t = :: std :: os :: raw :: c_uchar ; pub type uint_fast16_t = :: std :: os :: raw :: c_ulong ; pub type uint_fast32_t = :: std :: os :: raw :: c_ulong ; pub type uint_fast64_t = :: std :: os :: raw :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub type __gwchar_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct imaxdiv_t { pub quot : :: std :: os :: raw :: c_long , pub rem : :: std :: os :: raw :: c_long , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of imaxdiv_t"] [:: std :: mem :: size_of :: < imaxdiv_t > () - 16usize] ; ["Alignment of imaxdiv_t"] [:: std :: mem :: align_of :: < imaxdiv_t > () - 8usize] ; ["Offset of field: imaxdiv_t::quot"] [:: std :: mem :: offset_of ! (imaxdiv_t , quot) - 0usize] ; ["Offset of field: imaxdiv_t::rem"] [:: std :: mem :: offset_of ! (imaxdiv_t , rem) - 8usize] ; } ; unsafe extern "C" { pub fn imaxabs (__n : intmax_t) -> intmax_t ; } unsafe extern "C" { pub fn imaxdiv (__numer : intmax_t , __denom : intmax_t) -> imaxdiv_t ; } unsafe extern "C" { pub fn strtoimax (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> intmax_t ; } unsafe extern "C" { pub fn strtoumax (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> uintmax_t ; } unsafe extern "C" { pub fn wcstoimax (__nptr : * const __gwchar_t , __endptr : * mut * mut __gwchar_t , __base : :: std :: os :: raw :: c_int) -> intmax_t ; } unsafe extern "C" { pub fn wcstoumax (__nptr : * const __gwchar_t , __endptr : * mut * mut __gwchar_t , __base : :: std :: os :: raw :: c_int) -> uintmax_t ; } # [doc = "=============================================================================\n                      Compiler and Platform Features\n============================================================================="] pub type i8_ = i8 ; pub type u8_ = u8 ; pub type i16_ = i16 ; pub type u16_ = u16 ; pub type i32_ = i32 ; pub type u32_ = u32 ; pub type i64_ = i64 ; pub type u64_ = u64 ; pub type f32_ = f32 ; pub type f64_ = f64 ; # [doc = "=============================================================================\n                               Xoroshiro 128\n============================================================================="] # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Xoroshiro { pub lo : u64 , pub hi : u64 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Xoroshiro"] [:: std :: mem :: size_of :: < Xoroshiro > () - 16usize] ; ["Alignment of Xoroshiro"] [:: std :: mem :: align_of :: < Xoroshiro > () - 8usize] ; ["Offset of field: Xoroshiro::lo"] [:: std :: mem :: offset_of ! (Xoroshiro , lo) - 0usize] ; ["Offset of field: Xoroshiro::hi"] [:: std :: mem :: offset_of ! (Xoroshiro , hi) - 8usize] ; } ; pub type float_t = f32 ; pub type double_t = f64 ; unsafe extern "C" { pub fn __fpclassify (__value : f64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __signbit (__value : f64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __isinf (__value : f64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __finite (__value : f64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __isnan (__value : f64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __iseqsig (__x : f64 , __y : f64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __issignaling (__value : f64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn acos (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __acos (__x : f64) -> f64 ; } unsafe extern "C" { pub fn asin (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __asin (__x : f64) -> f64 ; } unsafe extern "C" { pub fn atan (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __atan (__x : f64) -> f64 ; } unsafe extern "C" { pub fn atan2 (__y : f64 , __x : f64) -> f64 ; } unsafe extern "C" { pub fn __atan2 (__y : f64 , __x : f64) -> f64 ; } unsafe extern "C" { pub fn cos (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __cos (__x : f64) -> f64 ; } unsafe extern "C" { pub fn sin (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __sin (__x : f64) -> f64 ; } unsafe extern "C" { pub fn tan (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __tan (__x : f64) -> f64 ; } unsafe extern "C" { pub fn cosh (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __cosh (__x : f64) -> f64 ; } unsafe extern "C" { pub fn sinh (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __sinh (__x : f64) -> f64 ; } unsafe extern "C" { pub fn tanh (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __tanh (__x : f64) -> f64 ; } unsafe extern "C" { pub fn acosh (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __acosh (__x : f64) -> f64 ; } unsafe extern "C" { pub fn asinh (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __asinh (__x : f64) -> f64 ; } unsafe extern "C" { pub fn atanh (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __atanh (__x : f64) -> f64 ; } unsafe extern "C" { pub fn exp (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __exp (__x : f64) -> f64 ; } unsafe extern "C" { pub fn frexp (__x : f64 , __exponent : * mut :: std :: os :: raw :: c_int) -> f64 ; } unsafe extern "C" { pub fn __frexp (__x : f64 , __exponent : * mut :: std :: os :: raw :: c_int) -> f64 ; } unsafe extern "C" { pub fn ldexp (__x : f64 , __exponent : :: std :: os :: raw :: c_int) -> f64 ; } unsafe extern "C" { pub fn __ldexp (__x : f64 , __exponent : :: std :: os :: raw :: c_int) -> f64 ; } unsafe extern "C" { pub fn log (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __log (__x : f64) -> f64 ; } unsafe extern "C" { pub fn log10 (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __log10 (__x : f64) -> f64 ; } unsafe extern "C" { pub fn modf (__x : f64 , __iptr : * mut f64) -> f64 ; } unsafe extern "C" { pub fn __modf (__x : f64 , __iptr : * mut f64) -> f64 ; } unsafe extern "C" { pub fn expm1 (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __expm1 (__x : f64) -> f64 ; } unsafe extern "C" { pub fn log1p (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __log1p (__x : f64) -> f64 ; } unsafe extern "C" { pub fn logb (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __logb (__x : f64) -> f64 ; } unsafe extern "C" { pub fn exp2 (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __exp2 (__x : f64) -> f64 ; } unsafe extern "C" { pub fn log2 (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __log2 (__x : f64) -> f64 ; } unsafe extern "C" { pub fn pow (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn __pow (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn sqrt (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __sqrt (__x : f64) -> f64 ; } unsafe extern "C" { pub fn hypot (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn __hypot (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn cbrt (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __cbrt (__x : f64) -> f64 ; } unsafe extern "C" { pub fn ceil (__x : f64) -> f64 ; } unsafe extern "C" { pub fn fabs (__x : f64) -> f64 ; } unsafe extern "C" { pub fn floor (__x : f64) -> f64 ; } unsafe extern "C" { pub fn fmod (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn __fmod (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn isinf (__value : f64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn finite (__value : f64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn drem (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn __drem (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn significand (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __significand (__x : f64) -> f64 ; } unsafe extern "C" { pub fn copysign (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn nan (__tagb : * const :: std :: os :: raw :: c_char) -> f64 ; } unsafe extern "C" { pub fn __nan (__tagb : * const :: std :: os :: raw :: c_char) -> f64 ; } unsafe extern "C" { pub fn isnan (__value : f64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn j0 (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn __j0 (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn j1 (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn __j1 (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn jn (arg1 : :: std :: os :: raw :: c_int , arg2 : f64) -> f64 ; } unsafe extern "C" { pub fn __jn (arg1 : :: std :: os :: raw :: c_int , arg2 : f64) -> f64 ; } unsafe extern "C" { pub fn y0 (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn __y0 (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn y1 (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn __y1 (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn yn (arg1 : :: std :: os :: raw :: c_int , arg2 : f64) -> f64 ; } unsafe extern "C" { pub fn __yn (arg1 : :: std :: os :: raw :: c_int , arg2 : f64) -> f64 ; } unsafe extern "C" { pub fn erf (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn __erf (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn erfc (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn __erfc (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn lgamma (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn __lgamma (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn tgamma (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn __tgamma (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn gamma (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn __gamma (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn lgamma_r (arg1 : f64 , __signgamp : * mut :: std :: os :: raw :: c_int) -> f64 ; } unsafe extern "C" { pub fn __lgamma_r (arg1 : f64 , __signgamp : * mut :: std :: os :: raw :: c_int) -> f64 ; } unsafe extern "C" { pub fn rint (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __rint (__x : f64) -> f64 ; } unsafe extern "C" { pub fn nextafter (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn __nextafter (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn nexttoward (__x : f64 , __y : u128) -> f64 ; } unsafe extern "C" { pub fn __nexttoward (__x : f64 , __y : u128) -> f64 ; } unsafe extern "C" { pub fn remainder (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn __remainder (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn scalbn (__x : f64 , __n : :: std :: os :: raw :: c_int) -> f64 ; } unsafe extern "C" { pub fn __scalbn (__x : f64 , __n : :: std :: os :: raw :: c_int) -> f64 ; } unsafe extern "C" { pub fn ilogb (__x : f64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __ilogb (__x : f64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn scalbln (__x : f64 , __n : :: std :: os :: raw :: c_long) -> f64 ; } unsafe extern "C" { pub fn __scalbln (__x : f64 , __n : :: std :: os :: raw :: c_long) -> f64 ; } unsafe extern "C" { pub fn nearbyint (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __nearbyint (__x : f64) -> f64 ; } unsafe extern "C" { pub fn round (__x : f64) -> f64 ; } unsafe extern "C" { pub fn trunc (__x : f64) -> f64 ; } unsafe extern "C" { pub fn remquo (__x : f64 , __y : f64 , __quo : * mut :: std :: os :: raw :: c_int) -> f64 ; } unsafe extern "C" { pub fn __remquo (__x : f64 , __y : f64 , __quo : * mut :: std :: os :: raw :: c_int) -> f64 ; } unsafe extern "C" { pub fn lrint (__x : f64) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn __lrint (__x : f64) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn llrint (__x : f64) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn __llrint (__x : f64) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn lround (__x : f64) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn __lround (__x : f64) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn llround (__x : f64) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn __llround (__x : f64) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn fdim (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn __fdim (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn fmax (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn fmin (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn fma (__x : f64 , __y : f64 , __z : f64) -> f64 ; } unsafe extern "C" { pub fn __fma (__x : f64 , __y : f64 , __z : f64) -> f64 ; } unsafe extern "C" { pub fn scalb (__x : f64 , __n : f64) -> f64 ; } unsafe extern "C" { pub fn __scalb (__x : f64 , __n : f64) -> f64 ; } unsafe extern "C" { pub fn __fpclassifyf (__value : f32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __signbitf (__value : f32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __isinff (__value : f32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __finitef (__value : f32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __isnanf (__value : f32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __iseqsigf (__x : f32 , __y : f32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __issignalingf (__value : f32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn acosf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __acosf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn asinf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __asinf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn atanf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __atanf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn atan2f (__y : f32 , __x : f32) -> f32 ; } unsafe extern "C" { pub fn __atan2f (__y : f32 , __x : f32) -> f32 ; } unsafe extern "C" { pub fn cosf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __cosf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn sinf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __sinf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn tanf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __tanf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn coshf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __coshf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn sinhf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __sinhf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn tanhf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __tanhf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn acoshf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __acoshf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn asinhf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __asinhf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn atanhf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __atanhf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn expf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __expf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn frexpf (__x : f32 , __exponent : * mut :: std :: os :: raw :: c_int) -> f32 ; } unsafe extern "C" { pub fn __frexpf (__x : f32 , __exponent : * mut :: std :: os :: raw :: c_int) -> f32 ; } unsafe extern "C" { pub fn ldexpf (__x : f32 , __exponent : :: std :: os :: raw :: c_int) -> f32 ; } unsafe extern "C" { pub fn __ldexpf (__x : f32 , __exponent : :: std :: os :: raw :: c_int) -> f32 ; } unsafe extern "C" { pub fn logf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __logf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn log10f (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __log10f (__x : f32) -> f32 ; } unsafe extern "C" { pub fn modff (__x : f32 , __iptr : * mut f32) -> f32 ; } unsafe extern "C" { pub fn __modff (__x : f32 , __iptr : * mut f32) -> f32 ; } unsafe extern "C" { pub fn expm1f (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __expm1f (__x : f32) -> f32 ; } unsafe extern "C" { pub fn log1pf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __log1pf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn logbf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __logbf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn exp2f (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __exp2f (__x : f32) -> f32 ; } unsafe extern "C" { pub fn log2f (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __log2f (__x : f32) -> f32 ; } unsafe extern "C" { pub fn powf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn __powf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn sqrtf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __sqrtf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn hypotf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn __hypotf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn cbrtf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __cbrtf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn ceilf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn fabsf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn floorf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn fmodf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn __fmodf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn isinff (__value : f32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn finitef (__value : f32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn dremf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn __dremf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn significandf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __significandf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn copysignf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn nanf (__tagb : * const :: std :: os :: raw :: c_char) -> f32 ; } unsafe extern "C" { pub fn __nanf (__tagb : * const :: std :: os :: raw :: c_char) -> f32 ; } unsafe extern "C" { pub fn isnanf (__value : f32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn j0f (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn __j0f (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn j1f (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn __j1f (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn jnf (arg1 : :: std :: os :: raw :: c_int , arg2 : f32) -> f32 ; } unsafe extern "C" { pub fn __jnf (arg1 : :: std :: os :: raw :: c_int , arg2 : f32) -> f32 ; } unsafe extern "C" { pub fn y0f (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn __y0f (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn y1f (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn __y1f (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn ynf (arg1 : :: std :: os :: raw :: c_int , arg2 : f32) -> f32 ; } unsafe extern "C" { pub fn __ynf (arg1 : :: std :: os :: raw :: c_int , arg2 : f32) -> f32 ; } unsafe extern "C" { pub fn erff (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn __erff (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn erfcf (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn __erfcf (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn lgammaf (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn __lgammaf (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn tgammaf (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn __tgammaf (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn gammaf (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn __gammaf (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn lgammaf_r (arg1 : f32 , __signgamp : * mut :: std :: os :: raw :: c_int) -> f32 ; } unsafe extern "C" { pub fn __lgammaf_r (arg1 : f32 , __signgamp : * mut :: std :: os :: raw :: c_int) -> f32 ; } unsafe extern "C" { pub fn rintf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __rintf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn nextafterf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn __nextafterf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn nexttowardf (__x : f32 , __y : u128) -> f32 ; } unsafe extern "C" { pub fn __nexttowardf (__x : f32 , __y : u128) -> f32 ; } unsafe extern "C" { pub fn remainderf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn __remainderf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn scalbnf (__x : f32 , __n : :: std :: os :: raw :: c_int) -> f32 ; } unsafe extern "C" { pub fn __scalbnf (__x : f32 , __n : :: std :: os :: raw :: c_int) -> f32 ; } unsafe extern "C" { pub fn ilogbf (__x : f32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __ilogbf (__x : f32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn scalblnf (__x : f32 , __n : :: std :: os :: raw :: c_long) -> f32 ; } unsafe extern "C" { pub fn __scalblnf (__x : f32 , __n : :: std :: os :: raw :: c_long) -> f32 ; } unsafe extern "C" { pub fn nearbyintf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __nearbyintf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn roundf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn truncf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn remquof (__x : f32 , __y : f32 , __quo : * mut :: std :: os :: raw :: c_int) -> f32 ; } unsafe extern "C" { pub fn __remquof (__x : f32 , __y : f32 , __quo : * mut :: std :: os :: raw :: c_int) -> f32 ; } unsafe extern "C" { pub fn lrintf (__x : f32) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn __lrintf (__x : f32) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn llrintf (__x : f32) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn __llrintf (__x : f32) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn lroundf (__x : f32) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn __lroundf (__x : f32) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn llroundf (__x : f32) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn __llroundf (__x : f32) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn fdimf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn __fdimf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn fmaxf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn fminf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn fmaf (__x : f32 , __y : f32 , __z : f32) -> f32 ; } unsafe extern "C" { pub fn __fmaf (__x : f32 , __y : f32 , __z : f32) -> f32 ; } unsafe extern "C" { pub fn scalbf (__x : f32 , __n : f32) -> f32 ; } unsafe extern "C" { pub fn __scalbf (__x : f32 , __n : f32) -> f32 ; } unsafe extern "C" { pub fn __fpclassifyl (__value : u128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __signbitl (__value : u128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __isinfl (__value : u128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __finitel (__value : u128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __isnanl (__value : u128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __iseqsigl (__x : u128 , __y : u128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __issignalingl (__value : u128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn acosl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __acosl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn asinl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __asinl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn atanl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __atanl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn atan2l (__y : u128 , __x : u128) -> u128 ; } unsafe extern "C" { pub fn __atan2l (__y : u128 , __x : u128) -> u128 ; } unsafe extern "C" { pub fn cosl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __cosl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn sinl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __sinl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn tanl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __tanl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn coshl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __coshl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn sinhl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __sinhl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn tanhl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __tanhl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn acoshl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __acoshl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn asinhl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __asinhl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn atanhl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __atanhl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn expl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __expl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn frexpl (__x : u128 , __exponent : * mut :: std :: os :: raw :: c_int) -> u128 ; } unsafe extern "C" { pub fn __frexpl (__x : u128 , __exponent : * mut :: std :: os :: raw :: c_int) -> u128 ; } unsafe extern "C" { pub fn ldexpl (__x : u128 , __exponent : :: std :: os :: raw :: c_int) -> u128 ; } unsafe extern "C" { pub fn __ldexpl (__x : u128 , __exponent : :: std :: os :: raw :: c_int) -> u128 ; } unsafe extern "C" { pub fn logl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __logl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn log10l (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __log10l (__x : u128) -> u128 ; } unsafe extern "C" { pub fn modfl (__x : u128 , __iptr : * mut u128) -> u128 ; } unsafe extern "C" { pub fn __modfl (__x : u128 , __iptr : * mut u128) -> u128 ; } unsafe extern "C" { pub fn expm1l (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __expm1l (__x : u128) -> u128 ; } unsafe extern "C" { pub fn log1pl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __log1pl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn logbl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __logbl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn exp2l (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __exp2l (__x : u128) -> u128 ; } unsafe extern "C" { pub fn log2l (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __log2l (__x : u128) -> u128 ; } unsafe extern "C" { pub fn powl (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn __powl (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn sqrtl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __sqrtl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn hypotl (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn __hypotl (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn cbrtl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __cbrtl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn ceill (__x : u128) -> u128 ; } unsafe extern "C" { pub fn fabsl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn floorl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn fmodl (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn __fmodl (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn isinfl (__value : u128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn finitel (__value : u128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn dreml (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn __dreml (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn significandl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __significandl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn copysignl (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn nanl (__tagb : * const :: std :: os :: raw :: c_char) -> u128 ; } unsafe extern "C" { pub fn __nanl (__tagb : * const :: std :: os :: raw :: c_char) -> u128 ; } unsafe extern "C" { pub fn isnanl (__value : u128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn j0l (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn __j0l (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn j1l (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn __j1l (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn jnl (arg1 : :: std :: os :: raw :: c_int , arg2 : u128) -> u128 ; } unsafe extern "C" { pub fn __jnl (arg1 : :: std :: os :: raw :: c_int , arg2 : u128) -> u128 ; } unsafe extern "C" { pub fn y0l (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn __y0l (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn y1l (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn __y1l (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn ynl (arg1 : :: std :: os :: raw :: c_int , arg2 : u128) -> u128 ; } unsafe extern "C" { pub fn __ynl (arg1 : :: std :: os :: raw :: c_int , arg2 : u128) -> u128 ; } unsafe extern "C" { pub fn erfl (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn __erfl (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn erfcl (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn __erfcl (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn lgammal (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn __lgammal (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn tgammal (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn __tgammal (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn gammal (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn __gammal (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn lgammal_r (arg1 : u128 , __signgamp : * mut :: std :: os :: raw :: c_int) -> u128 ; } unsafe extern "C" { pub fn __lgammal_r (arg1 : u128 , __signgamp : * mut :: std :: os :: raw :: c_int) -> u128 ; } unsafe extern "C" { pub fn rintl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __rintl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn nextafterl (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn __nextafterl (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn nexttowardl (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn __nexttowardl (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn remainderl (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn __remainderl (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn scalbnl (__x : u128 , __n : :: std :: os :: raw :: c_int) -> u128 ; } unsafe extern "C" { pub fn __scalbnl (__x : u128 , __n : :: std :: os :: raw :: c_int) -> u128 ; } unsafe extern "C" { pub fn ilogbl (__x : u128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __ilogbl (__x : u128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn scalblnl (__x : u128 , __n : :: std :: os :: raw :: c_long) -> u128 ; } unsafe extern "C" { pub fn __scalblnl (__x : u128 , __n : :: std :: os :: raw :: c_long) -> u128 ; } unsafe extern "C" { pub fn nearbyintl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __nearbyintl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn roundl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn truncl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn remquol (__x : u128 , __y : u128 , __quo : * mut :: std :: os :: raw :: c_int) -> u128 ; } unsafe extern "C" { pub fn __remquol (__x : u128 , __y : u128 , __quo : * mut :: std :: os :: raw :: c_int) -> u128 ; } unsafe extern "C" { pub fn lrintl (__x : u128) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn __lrintl (__x : u128) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn llrintl (__x : u128) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn __llrintl (__x : u128) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn lroundl (__x : u128) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn __lroundl (__x : u128) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn llroundl (__x : u128) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn __llroundl (__x : u128) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn fdiml (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn __fdiml (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn fmaxl (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn fminl (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn fmal (__x : u128 , __y : u128 , __z : u128) -> u128 ; } unsafe extern "C" { pub fn __fmal (__x : u128 , __y : u128 , __z : u128) -> u128 ; } unsafe extern "C" { pub fn scalbl (__x : u128 , __n : u128) -> u128 ; } unsafe extern "C" { pub fn __scalbl (__x : u128 , __n : u128) -> u128 ; } unsafe extern "C" { pub fn __fpclassifyf128 (__value : _Float128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __signbitf128 (__value : _Float128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __isinff128 (__value : _Float128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __finitef128 (__value : _Float128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __isnanf128 (__value : _Float128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __iseqsigf128 (__x : _Float128 , __y : _Float128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __issignalingf128 (__value : _Float128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub static mut signgam : :: std :: os :: raw :: c_int ; } pub const FP_NAN : _bindgen_ty_1 = _bindgen_ty_1 (0) ; pub const FP_INFINITE : _bindgen_ty_1 = _bindgen_ty_1 (1) ; pub const FP_ZERO : _bindgen_ty_1 = _bindgen_ty_1 (2) ; pub const FP_SUBNORMAL : _bindgen_ty_1 = _bindgen_ty_1 (3) ; pub const FP_NORMAL : _bindgen_ty_1 = _bindgen_ty_1 (4) ; # [repr (transparent)] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct _bindgen_ty_1 (pub :: std :: os :: raw :: c_uint) ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct PerlinNoise { pub d : [u8 ; 257usize] , pub h2 : u8 , pub a : f64 , pub b : f64 , pub c : f64 , pub amplitude : f64 , pub lacunarity : f64 , pub d2 : f64 , pub t2 : f64 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of PerlinNoise"] [:: std :: mem :: size_of :: < PerlinNoise > () - 320usize] ; ["Alignment of PerlinNoise"] [:: std :: mem :: align_of :: < PerlinNoise > () - 8usize] ; ["Offset of field: PerlinNoise::d"] [:: std :: mem :: offset_of ! (PerlinNoise , d) - 0usize] ; ["Offset of field: PerlinNoise::h2"] [:: std :: mem :: offset_of ! (PerlinNoise , h2) - 257usize] ; ["Offset of field: PerlinNoise::a"] [:: std :: mem :: offset_of ! (PerlinNoise , a) - 264usize] ; ["Offset of field: PerlinNoise::b"] [:: std :: mem :: offset_of ! (PerlinNoise , b) - 272usize] ; ["Offset of field: PerlinNoise::c"] [:: std :: mem :: offset_of ! (PerlinNoise , c) - 280usize] ; ["Offset of field: PerlinNoise::amplitude"] [:: std :: mem :: offset_of ! (PerlinNoise , amplitude) - 288usize] ; ["Offset of field: PerlinNoise::lacunarity"] [:: std :: mem :: offset_of ! (PerlinNoise , lacunarity) - 296usize] ; ["Offset of field: PerlinNoise::d2"] [:: std :: mem :: offset_of ! (PerlinNoise , d2) - 304usize] ; ["Offset of field: PerlinNoise::t2"] [:: std :: mem :: offset_of ! (PerlinNoise , t2) - 312usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct OctaveNoise { pub octcnt : :: std :: os :: raw :: c_int , pub octaves : * mut PerlinNoise , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of OctaveNoise"] [:: std :: mem :: size_of :: < OctaveNoise > () - 16usize] ; ["Alignment of OctaveNoise"] [:: std :: mem :: align_of :: < OctaveNoise > () - 8usize] ; ["Offset of field: OctaveNoise::octcnt"] [:: std :: mem :: offset_of ! (OctaveNoise , octcnt) - 0usize] ; ["Offset of field: OctaveNoise::octaves"] [:: std :: mem :: offset_of ! (OctaveNoise , octaves) - 8usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct DoublePerlinNoise { pub amplitude : f64 , pub octA : OctaveNoise , pub octB : OctaveNoise , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of DoublePerlinNoise"] [:: std :: mem :: size_of :: < DoublePerlinNoise > () - 40usize] ; ["Alignment of DoublePerlinNoise"] [:: std :: mem :: align_of :: < DoublePerlinNoise > () - 8usize] ; ["Offset of field: DoublePerlinNoise::amplitude"] [:: std :: mem :: offset_of ! (DoublePerlinNoise , amplitude) - 0usize] ; ["Offset of field: DoublePerlinNoise::octA"] [:: std :: mem :: offset_of ! (DoublePerlinNoise , octA) - 8usize] ; ["Offset of field: DoublePerlinNoise::octB"] [:: std :: mem :: offset_of ! (DoublePerlinNoise , octB) - 24usize] ; } ; unsafe extern "C" { # [doc = " Perlin noise"] pub fn perlinInit (noise : * mut PerlinNoise , seed : * mut u64) ; } unsafe extern "C" { pub fn xPerlinInit (noise : * mut PerlinNoise , xr : * mut Xoroshiro) ; } unsafe extern "C" { pub fn samplePerlin (noise : * const PerlinNoise , x : f64 , y : f64 , z : f64 , yamp : f64 , ymin : f64) -> f64 ; } unsafe extern "C" { pub fn sampleSimplex2D (noise : * const PerlinNoise , x : f64 , y : f64) -> f64 ; } unsafe extern "C" { # [doc = " Perlin Octaves"] pub fn octaveInit (noise : * mut OctaveNoise , seed : * mut u64 , octaves : * mut PerlinNoise , omin : :: std :: os :: raw :: c_int , len : :: std :: os :: raw :: c_int) ; } unsafe extern "C" { pub fn octaveInitBeta (noise : * mut OctaveNoise , seed : * mut u64 , octaves : * mut PerlinNoise , octcnt : :: std :: os :: raw :: c_int , lac : f64 , lacMul : f64 , persist : f64 , persistMul : f64) ; } unsafe extern "C" { pub fn xOctaveInit (noise : * mut OctaveNoise , xr : * mut Xoroshiro , octaves : * mut PerlinNoise , amplitudes : * const f64 , omin : :: std :: os :: raw :: c_int , len : :: std :: os :: raw :: c_int , nmax : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn sampleOctave (noise : * const OctaveNoise , x : f64 , y : f64 , z : f64) -> f64 ; } unsafe extern "C" { pub fn sampleOctaveAmp (noise : * const OctaveNoise , x : f64 , y : f64 , z : f64 , yamp : f64 , ymin : f64 , ydefault : :: std :: os :: raw :: c_int) -> f64 ; } unsafe extern "C" { pub fn sampleOctave2D (noise : * const OctaveNoise , x : f64 , z : f64) -> f64 ; } unsafe extern "C" { pub fn sampleOctaveBeta17Biome (noise : * const OctaveNoise , x : f64 , z : f64) -> f64 ; } unsafe extern "C" { pub fn sampleOctaveBeta17Terrain (noise : * const OctaveNoise , v : * mut f64 , x : f64 , z : f64 , yLacFlag : :: std :: os :: raw :: c_int , lacmin : f64) ; } unsafe extern "C" { # [doc = " Double Perlin"] pub fn doublePerlinInit (noise : * mut DoublePerlinNoise , seed : * mut u64 , octavesA : * mut PerlinNoise , octavesB : * mut PerlinNoise , omin : :: std :: os :: raw :: c_int , len : :: std :: os :: raw :: c_int) ; } unsafe extern "C" { pub fn xDoublePerlinInit (noise : * mut DoublePerlinNoise , xr : * mut Xoroshiro , octaves : * mut PerlinNoise , amplitudes : * const f64 , omin : :: std :: os :: raw :: c_int , len : :: std :: os :: raw :: c_int , nmax : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn sampleDoublePerlin (noise : * const DoublePerlinNoise , x : f64 , y : f64 , z : f64) -> f64 ; } impl MCVersion { pub const MC_UNDEF : MCVersion = MCVersion (0) ; } impl MCVersion { pub const MC_B1_7 : MCVersion = MCVersion (1) ; } impl MCVersion { pub const MC_B1_8 : MCVersion = MCVersion (2) ; } impl MCVersion { pub const MC_1_0_0 : MCVersion = MCVersion (3) ; } impl MCVersion { pub const MC_1_0 : MCVersion = MCVersion (3) ; } impl MCVersion { pub const MC_1_1_0 : MCVersion = MCVersion (4) ; } impl MCVersion { pub const MC_1_1 : MCVersion = MCVersion (4) ; } impl MCVersion { pub const MC_1_2_5 : MCVersion = MCVersion (5) ; } impl MCVersion { pub const MC_1_2 : MCVersion = MCVersion (5) ; } impl MCVersion { pub const MC_1_3_2 : MCVersion = MCVersion (6) ; } impl MCVersion { pub const MC_1_3 : MCVersion = MCVersion (6) ; } impl MCVersion { pub const MC_1_4_7 : MCVersion = MCVersion (7) ; } impl MCVersion { pub const MC_1_4 : MCVersion = MCVersion (7) ; } impl MCVersion { pub const MC_1_5_2 : MCVersion = MCVersion (8) ; } impl MCVersion { pub const MC_1_5 : MCVersion = MCVersion (8) ; } impl MCVersion { pub const MC_1_6_4 : MCVersion = MCVersion (9) ; } impl MCVersion { pub const MC_1_6 : MCVersion = MCVersion (9) ; } impl MCVersion { pub const MC_1_7_10 : MCVersion = MCVersion (10) ; } impl MCVersion { pub const MC_1_7 : MCVersion = MCVersion (10) ; } impl MCVersion { pub const MC_1_8_9 : MCVersion = MCVersion (11) ; } impl MCVersion { pub const MC_1_8 : MCVersion = MCVersion (11) ; } impl MCVersion { pub const MC_1_9_4 : MCVersion = MCVersion (12) ; } impl MCVersion { pub const MC_1_9 : MCVersion = MCVersion (12) ; } impl MCVersion { pub const MC_1_10_2 : MCVersion = MCVersion (13) ; } impl MCVersion { pub const MC_1_10 : MCVersion = MCVersion (13) ; } impl MCVersion { pub const MC_1_11_2 : MCVersion = MCVersion (14) ; } impl MCVersion { pub const MC_1_11 : MCVersion = MCVersion (14) ; } impl MCVersion { pub const MC_1_12_2 : MCVersion = MCVersion (15) ; } impl MCVersion { pub const MC_1_12 : MCVersion = MCVersion (15) ; } impl MCVersion { pub const MC_1_13_2 : MCVersion = MCVersion (16) ; } impl MCVersion { pub const MC_1_13 : MCVersion = MCVersion (16) ; } impl MCVersion { pub const MC_1_14_4 : MCVersion = MCVersion (17) ; } impl MCVersion { pub const MC_1_14 : MCVersion = MCVersion (17) ; } impl MCVersion { pub const MC_1_15_2 : MCVersion = MCVersion (18) ; } impl MCVersion { pub const MC_1_15 : MCVersion = MCVersion (18) ; } impl MCVersion { pub const MC_1_16_1 : MCVersion = MCVersion (19) ; } impl MCVersion { pub const MC_1_16_5 : MCVersion = MCVersion (20) ; } impl MCVersion { pub const MC_1_16 : MCVersion = MCVersion (20) ; } impl MCVersion { pub const MC_1_17_1 : MCVersion = MCVersion (21) ; } impl MCVersion { pub const MC_1_17 : MCVersion = MCVersion (21) ; } impl MCVersion { pub const MC_1_18_2 : MCVersion = MCVersion (22) ; } impl MCVersion { pub const MC_1_18 : MCVersion = MCVersion (22) ; } impl MCVersion { pub const MC_1_19_2 : MCVersion = MCVersion (23) ; } impl MCVersion { pub const MC_1_19_4 : MCVersion = MCVersion (24) ; } impl MCVersion { pub const MC_1_19 : MCVersion = MCVersion (24) ; } impl MCVersion { pub const MC_1_20_6 : MCVersion = MCVersion (25) ; } impl MCVersion { pub const MC_1_20 : MCVersion = MCVersion (25) ; } impl MCVersion { pub const MC_1_21_1 : MCVersion = MCVersion (26) ; } impl MCVersion { pub const MC_1_21_3 : MCVersion = MCVersion (27) ; } impl MCVersion { pub const MC_1_21_WD : MCVersion = MCVersion (28) ; } impl MCVersion { pub const MC_1_21 : MCVersion = MCVersion (28) ; } impl MCVersion { pub const MC_NEWEST : MCVersion = MCVersion (28) ; } # [repr (transparent)] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct MCVersion (pub :: std :: os :: raw :: c_uint) ; impl Dimension { pub const DIM_NETHER : Dimension = Dimension (- 1) ; } impl Dimension { pub const DIM_OVERWORLD : Dimension = Dimension (0) ; } impl Dimension { pub const DIM_END : Dimension = Dimension (1) ; } impl Dimension { pub const DIM_UNDEF : Dimension = Dimension (1000) ; } # [repr (transparent)] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct Dimension (pub :: std :: os :: raw :: c_int) ; impl BiomeID { pub const none : BiomeID = BiomeID (- 1) ; } impl BiomeID { pub const ocean : BiomeID = BiomeID (0) ; } impl BiomeID { pub const plains : BiomeID = BiomeID (1) ; } impl BiomeID { pub const desert : BiomeID = BiomeID (2) ; } impl BiomeID { pub const mountains : BiomeID = BiomeID (3) ; } impl BiomeID { pub const extremeHills : BiomeID = BiomeID (3) ; } impl BiomeID { pub const forest : BiomeID = BiomeID (4) ; } impl BiomeID { pub const taiga : BiomeID = BiomeID (5) ; } impl BiomeID { pub const swamp : BiomeID = BiomeID (6) ; } impl BiomeID { pub const swampland : BiomeID = BiomeID (6) ; } impl BiomeID { pub const river : BiomeID = BiomeID (7) ; } impl BiomeID { pub const nether_wastes : BiomeID = BiomeID (8) ; } impl BiomeID { pub const hell : BiomeID = BiomeID (8) ; } impl BiomeID { pub const the_end : BiomeID = BiomeID (9) ; } impl BiomeID { pub const sky : BiomeID = BiomeID (9) ; } impl BiomeID { pub const frozen_ocean : BiomeID = BiomeID (10) ; } impl BiomeID { pub const frozenOcean : BiomeID = BiomeID (10) ; } impl BiomeID { pub const frozen_river : BiomeID = BiomeID (11) ; } impl BiomeID { pub const frozenRiver : BiomeID = BiomeID (11) ; } impl BiomeID { pub const snowy_tundra : BiomeID = BiomeID (12) ; } impl BiomeID { pub const icePlains : BiomeID = BiomeID (12) ; } impl BiomeID { pub const snowy_mountains : BiomeID = BiomeID (13) ; } impl BiomeID { pub const iceMountains : BiomeID = BiomeID (13) ; } impl BiomeID { pub const mushroom_fields : BiomeID = BiomeID (14) ; } impl BiomeID { pub const mushroomIsland : BiomeID = BiomeID (14) ; } impl BiomeID { pub const mushroom_field_shore : BiomeID = BiomeID (15) ; } impl BiomeID { pub const mushroomIslandShore : BiomeID = BiomeID (15) ; } impl BiomeID { pub const beach : BiomeID = BiomeID (16) ; } impl BiomeID { pub const desert_hills : BiomeID = BiomeID (17) ; } impl BiomeID { pub const desertHills : BiomeID = BiomeID (17) ; } impl BiomeID { pub const wooded_hills : BiomeID = BiomeID (18) ; } impl BiomeID { pub const forestHills : BiomeID = BiomeID (18) ; } impl BiomeID { pub const taiga_hills : BiomeID = BiomeID (19) ; } impl BiomeID { pub const taigaHills : BiomeID = BiomeID (19) ; } impl BiomeID { pub const mountain_edge : BiomeID = BiomeID (20) ; } impl BiomeID { pub const extremeHillsEdge : BiomeID = BiomeID (20) ; } impl BiomeID { pub const jungle : BiomeID = BiomeID (21) ; } impl BiomeID { pub const jungle_hills : BiomeID = BiomeID (22) ; } impl BiomeID { pub const jungleHills : BiomeID = BiomeID (22) ; } impl BiomeID { pub const jungle_edge : BiomeID = BiomeID (23) ; } impl BiomeID { pub const jungleEdge : BiomeID = BiomeID (23) ; } impl BiomeID { pub const deep_ocean : BiomeID = BiomeID (24) ; } impl BiomeID { pub const deepOcean : BiomeID = BiomeID (24) ; } impl BiomeID { pub const stone_shore : BiomeID = BiomeID (25) ; } impl BiomeID { pub const stoneBeach : BiomeID = BiomeID (25) ; } impl BiomeID { pub const snowy_beach : BiomeID = BiomeID (26) ; } impl BiomeID { pub const coldBeach : BiomeID = BiomeID (26) ; } impl BiomeID { pub const birch_forest : BiomeID = BiomeID (27) ; } impl BiomeID { pub const birchForest : BiomeID = BiomeID (27) ; } impl BiomeID { pub const birch_forest_hills : BiomeID = BiomeID (28) ; } impl BiomeID { pub const birchForestHills : BiomeID = BiomeID (28) ; } impl BiomeID { pub const dark_forest : BiomeID = BiomeID (29) ; } impl BiomeID { pub const roofedForest : BiomeID = BiomeID (29) ; } impl BiomeID { pub const snowy_taiga : BiomeID = BiomeID (30) ; } impl BiomeID { pub const coldTaiga : BiomeID = BiomeID (30) ; } impl BiomeID { pub const snowy_taiga_hills : BiomeID = BiomeID (31) ; } impl BiomeID { pub const coldTaigaHills : BiomeID = BiomeID (31) ; } impl BiomeID { pub const giant_tree_taiga : BiomeID = BiomeID (32) ; } impl BiomeID { pub const megaTaiga : BiomeID = BiomeID (32) ; } impl BiomeID { pub const giant_tree_taiga_hills : BiomeID = BiomeID (33) ; } impl BiomeID { pub const megaTaigaHills : BiomeID = BiomeID (33) ; } impl BiomeID { pub const wooded_mountains : BiomeID = BiomeID (34) ; } impl BiomeID { pub const extremeHillsPlus : BiomeID = BiomeID (34) ; } impl BiomeID { pub const savanna : BiomeID = BiomeID (35) ; } impl BiomeID { pub const savanna_plateau : BiomeID = BiomeID (36) ; } impl BiomeID { pub const savannaPlateau : BiomeID = BiomeID (36) ; } impl BiomeID { pub const badlands : BiomeID = BiomeID (37) ; } impl BiomeID { pub const mesa : BiomeID = BiomeID (37) ; } impl BiomeID { pub const wooded_badlands_plateau : BiomeID = BiomeID (38) ; } impl BiomeID { pub const mesaPlateau_F : BiomeID = BiomeID (38) ; } impl BiomeID { pub const badlands_plateau : BiomeID = BiomeID (39) ; } impl BiomeID { pub const mesaPlateau : BiomeID = BiomeID (39) ; } impl BiomeID { pub const small_end_islands : BiomeID = BiomeID (40) ; } impl BiomeID { pub const end_midlands : BiomeID = BiomeID (41) ; } impl BiomeID { pub const end_highlands : BiomeID = BiomeID (42) ; } impl BiomeID { pub const end_barrens : BiomeID = BiomeID (43) ; } impl BiomeID { pub const warm_ocean : BiomeID = BiomeID (44) ; } impl BiomeID { pub const warmOcean : BiomeID = BiomeID (44) ; } impl BiomeID { pub const lukewarm_ocean : BiomeID = BiomeID (45) ; } impl BiomeID { pub const lukewarmOcean : BiomeID = BiomeID (45) ; } impl BiomeID { pub const cold_ocean : BiomeID = BiomeID (46) ; } impl BiomeID { pub const coldOcean : BiomeID = BiomeID (46) ; } impl BiomeID { pub const deep_warm_ocean : BiomeID = BiomeID (47) ; } impl BiomeID { pub const warmDeepOcean : BiomeID = BiomeID (47) ; } impl BiomeID { pub const deep_lukewarm_ocean : BiomeID = BiomeID (48) ; } impl BiomeID { pub const lukewarmDeepOcean : BiomeID = BiomeID (48) ; } impl BiomeID { pub const deep_cold_ocean : BiomeID = BiomeID (49) ; } impl BiomeID { pub const coldDeepOcean : BiomeID = BiomeID (49) ; } impl BiomeID { pub const deep_frozen_ocean : BiomeID = BiomeID (50) ; } impl BiomeID { pub const frozenDeepOcean : BiomeID = BiomeID (50) ; } impl BiomeID { pub const seasonal_forest : BiomeID = BiomeID (51) ; } impl BiomeID { pub const rainforest : BiomeID = BiomeID (52) ; } impl BiomeID { pub const shrubland : BiomeID = BiomeID (53) ; } impl BiomeID { pub const the_void : BiomeID = BiomeID (127) ; } impl BiomeID { pub const sunflower_plains : BiomeID = BiomeID (129) ; } impl BiomeID { pub const desert_lakes : BiomeID = BiomeID (130) ; } impl BiomeID { pub const gravelly_mountains : BiomeID = BiomeID (131) ; } impl BiomeID { pub const flower_forest : BiomeID = BiomeID (132) ; } impl BiomeID { pub const taiga_mountains : BiomeID = BiomeID (133) ; } impl BiomeID { pub const swamp_hills : BiomeID = BiomeID (134) ; } impl BiomeID { pub const ice_spikes : BiomeID = BiomeID (140) ; } impl BiomeID { pub const modified_jungle : BiomeID = BiomeID (149) ; } impl BiomeID { pub const modified_jungle_edge : BiomeID = BiomeID (151) ; } impl BiomeID { pub const tall_birch_forest : BiomeID = BiomeID (155) ; } impl BiomeID { pub const tall_birch_hills : BiomeID = BiomeID (156) ; } impl BiomeID { pub const dark_forest_hills : BiomeID = BiomeID (157) ; } impl BiomeID { pub const snowy_taiga_mountains : BiomeID = BiomeID (158) ; } impl BiomeID { pub const giant_spruce_taiga : BiomeID = BiomeID (160) ; } impl BiomeID { pub const giant_spruce_taiga_hills : BiomeID = BiomeID (161) ; } impl BiomeID { pub const modified_gravelly_mountains : BiomeID = BiomeID (162) ; } impl BiomeID { pub const shattered_savanna : BiomeID = BiomeID (163) ; } impl BiomeID { pub const shattered_savanna_plateau : BiomeID = BiomeID (164) ; } impl BiomeID { pub const eroded_badlands : BiomeID = BiomeID (165) ; } impl BiomeID { pub const modified_wooded_badlands_plateau : BiomeID = BiomeID (166) ; } impl BiomeID { pub const modified_badlands_plateau : BiomeID = BiomeID (167) ; } impl BiomeID { pub const bamboo_jungle : BiomeID = BiomeID (168) ; } impl BiomeID { pub const bamboo_jungle_hills : BiomeID = BiomeID (169) ; } impl BiomeID { pub const soul_sand_valley : BiomeID = BiomeID (170) ; } impl BiomeID { pub const crimson_forest : BiomeID = BiomeID (171) ; } impl BiomeID { pub const warped_forest : BiomeID = BiomeID (172) ; } impl BiomeID { pub const basalt_deltas : BiomeID = BiomeID (173) ; } impl BiomeID { pub const dripstone_caves : BiomeID = BiomeID (174) ; } impl BiomeID { pub const lush_caves : BiomeID = BiomeID (175) ; } impl BiomeID { pub const meadow : BiomeID = BiomeID (177) ; } impl BiomeID { pub const grove : BiomeID = BiomeID (178) ; } impl BiomeID { pub const snowy_slopes : BiomeID = BiomeID (179) ; } impl BiomeID { pub const jagged_peaks : BiomeID = BiomeID (180) ; } impl BiomeID { pub const frozen_peaks : BiomeID = BiomeID (181) ; } impl BiomeID { pub const stony_peaks : BiomeID = BiomeID (182) ; } impl BiomeID { pub const old_growth_birch_forest : BiomeID = BiomeID (155) ; } impl BiomeID { pub const old_growth_pine_taiga : BiomeID = BiomeID (32) ; } impl BiomeID { pub const old_growth_spruce_taiga : BiomeID = BiomeID (160) ; } impl BiomeID { pub const snowy_plains : BiomeID = BiomeID (12) ; } impl BiomeID { pub const sparse_jungle : BiomeID = BiomeID (23) ; } impl BiomeID { pub const stony_shore : BiomeID = BiomeID (25) ; } impl BiomeID { pub const windswept_hills : BiomeID = BiomeID (3) ; } impl BiomeID { pub const windswept_forest : BiomeID = BiomeID (34) ; } impl BiomeID { pub const windswept_gravelly_hills : BiomeID = BiomeID (131) ; } impl BiomeID { pub const windswept_savanna : BiomeID = BiomeID (163) ; } impl BiomeID { pub const wooded_badlands : BiomeID = BiomeID (38) ; } impl BiomeID { pub const deep_dark : BiomeID = BiomeID (183) ; } impl BiomeID { pub const mangrove_swamp : BiomeID = BiomeID (184) ; } impl BiomeID { pub const cherry_grove : BiomeID = BiomeID (185) ; } impl BiomeID { pub const pale_garden : BiomeID = BiomeID (186) ; } # [repr (transparent)] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct BiomeID (pub :: std :: os :: raw :: c_int) ; unsafe extern "C" { pub fn biomeExists (mc : :: std :: os :: raw :: c_int , id : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn isOverworld (mc : :: std :: os :: raw :: c_int , id : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getDimension (id : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getMutated (mc : :: std :: os :: raw :: c_int , id : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getCategory (mc : :: std :: os :: raw :: c_int , id : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn areSimilar (mc : :: std :: os :: raw :: c_int , id1 : :: std :: os :: raw :: c_int , id2 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn isMesa (id : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn isShallowOcean (id : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn isDeepOcean (id : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn isOceanic (id : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn isSnowy (id : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } impl BiomeTempCategory { pub const Oceanic : BiomeTempCategory = BiomeTempCategory (0) ; } impl BiomeTempCategory { pub const Warm : BiomeTempCategory = BiomeTempCategory (1) ; } impl BiomeTempCategory { pub const Lush : BiomeTempCategory = BiomeTempCategory (2) ; } impl BiomeTempCategory { pub const Cold : BiomeTempCategory = BiomeTempCategory (3) ; } impl BiomeTempCategory { pub const Freezing : BiomeTempCategory = BiomeTempCategory (4) ; } impl BiomeTempCategory { pub const Special : BiomeTempCategory = BiomeTempCategory (5) ; } # [repr (transparent)] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct BiomeTempCategory (pub :: std :: os :: raw :: c_uint) ; impl LayerId { pub const L_CONTINENT_4096 : LayerId = LayerId (0) ; } impl LayerId { pub const L_ISLAND_4096 : LayerId = LayerId (0) ; } impl LayerId { pub const L_ZOOM_4096 : LayerId = LayerId (1) ; } impl LayerId { pub const L_LAND_4096 : LayerId = LayerId (2) ; } impl LayerId { pub const L_ZOOM_2048 : LayerId = LayerId (3) ; } impl LayerId { pub const L_LAND_2048 : LayerId = LayerId (4) ; } impl LayerId { pub const L_ADD_ISLAND_2048 : LayerId = LayerId (4) ; } impl LayerId { pub const L_ZOOM_1024 : LayerId = LayerId (5) ; } impl LayerId { pub const L_LAND_1024_A : LayerId = LayerId (6) ; } impl LayerId { pub const L_ADD_ISLAND_1024A : LayerId = LayerId (6) ; } impl LayerId { pub const L_LAND_1024_B : LayerId = LayerId (7) ; } impl LayerId { pub const L_ADD_ISLAND_1024B : LayerId = LayerId (7) ; } impl LayerId { pub const L_LAND_1024_C : LayerId = LayerId (8) ; } impl LayerId { pub const L_ADD_ISLAND_1024C : LayerId = LayerId (8) ; } impl LayerId { pub const L_ISLAND_1024 : LayerId = LayerId (9) ; } impl LayerId { pub const L_REMOVE_OCEAN_1024 : LayerId = LayerId (9) ; } impl LayerId { pub const L_SNOW_1024 : LayerId = LayerId (10) ; } impl LayerId { pub const L_ADD_SNOW_1024 : LayerId = LayerId (10) ; } impl LayerId { pub const L_LAND_1024_D : LayerId = LayerId (11) ; } impl LayerId { pub const L_ADD_ISLAND_1024D : LayerId = LayerId (11) ; } impl LayerId { pub const L_COOL_1024 : LayerId = LayerId (12) ; } impl LayerId { pub const L_COOL_WARM_1024 : LayerId = LayerId (12) ; } impl LayerId { pub const L_HEAT_1024 : LayerId = LayerId (13) ; } impl LayerId { pub const L_HEAT_ICE_1024 : LayerId = LayerId (13) ; } impl LayerId { pub const L_SPECIAL_1024 : LayerId = LayerId (14) ; } impl LayerId { pub const L_ZOOM_512 : LayerId = LayerId (15) ; } impl LayerId { pub const L_LAND_512 : LayerId = LayerId (16) ; } impl LayerId { pub const L_ZOOM_256 : LayerId = LayerId (17) ; } impl LayerId { pub const L_LAND_256 : LayerId = LayerId (18) ; } impl LayerId { pub const L_ADD_ISLAND_256 : LayerId = LayerId (18) ; } impl LayerId { pub const L_MUSHROOM_256 : LayerId = LayerId (19) ; } impl LayerId { pub const L_ADD_MUSHROOM_256 : LayerId = LayerId (19) ; } impl LayerId { pub const L_DEEP_OCEAN_256 : LayerId = LayerId (20) ; } impl LayerId { pub const L_BIOME_256 : LayerId = LayerId (21) ; } impl LayerId { pub const L_BAMBOO_256 : LayerId = LayerId (22) ; } impl LayerId { pub const L14_BAMBOO_256 : LayerId = LayerId (22) ; } impl LayerId { pub const L_ZOOM_128 : LayerId = LayerId (23) ; } impl LayerId { pub const L_ZOOM_64 : LayerId = LayerId (24) ; } impl LayerId { pub const L_BIOME_EDGE_64 : LayerId = LayerId (25) ; } impl LayerId { pub const L_NOISE_256 : LayerId = LayerId (26) ; } impl LayerId { pub const L_RIVER_INIT_256 : LayerId = LayerId (26) ; } impl LayerId { pub const L_ZOOM_128_HILLS : LayerId = LayerId (27) ; } impl LayerId { pub const L_ZOOM_64_HILLS : LayerId = LayerId (28) ; } impl LayerId { pub const L_HILLS_64 : LayerId = LayerId (29) ; } impl LayerId { pub const L_SUNFLOWER_64 : LayerId = LayerId (30) ; } impl LayerId { pub const L_RARE_BIOME_64 : LayerId = LayerId (30) ; } impl LayerId { pub const L_ZOOM_32 : LayerId = LayerId (31) ; } impl LayerId { pub const L_LAND_32 : LayerId = LayerId (32) ; } impl LayerId { pub const L_ADD_ISLAND_32 : LayerId = LayerId (32) ; } impl LayerId { pub const L_ZOOM_16 : LayerId = LayerId (33) ; } impl LayerId { pub const L_SHORE_16 : LayerId = LayerId (34) ; } impl LayerId { pub const L_SWAMP_RIVER_16 : LayerId = LayerId (35) ; } impl LayerId { pub const L_ZOOM_8 : LayerId = LayerId (36) ; } impl LayerId { pub const L_ZOOM_4 : LayerId = LayerId (37) ; } impl LayerId { pub const L_SMOOTH_4 : LayerId = LayerId (38) ; } impl LayerId { pub const L_ZOOM_128_RIVER : LayerId = LayerId (39) ; } impl LayerId { pub const L_ZOOM_64_RIVER : LayerId = LayerId (40) ; } impl LayerId { pub const L_ZOOM_32_RIVER : LayerId = LayerId (41) ; } impl LayerId { pub const L_ZOOM_16_RIVER : LayerId = LayerId (42) ; } impl LayerId { pub const L_ZOOM_8_RIVER : LayerId = LayerId (43) ; } impl LayerId { pub const L_ZOOM_4_RIVER : LayerId = LayerId (44) ; } impl LayerId { pub const L_RIVER_4 : LayerId = LayerId (45) ; } impl LayerId { pub const L_SMOOTH_4_RIVER : LayerId = LayerId (46) ; } impl LayerId { pub const L_RIVER_MIX_4 : LayerId = LayerId (47) ; } impl LayerId { pub const L_OCEAN_TEMP_256 : LayerId = LayerId (48) ; } impl LayerId { pub const L13_OCEAN_TEMP_256 : LayerId = LayerId (48) ; } impl LayerId { pub const L_ZOOM_128_OCEAN : LayerId = LayerId (49) ; } impl LayerId { pub const L13_ZOOM_128 : LayerId = LayerId (49) ; } impl LayerId { pub const L_ZOOM_64_OCEAN : LayerId = LayerId (50) ; } impl LayerId { pub const L13_ZOOM_64 : LayerId = LayerId (50) ; } impl LayerId { pub const L_ZOOM_32_OCEAN : LayerId = LayerId (51) ; } impl LayerId { pub const L13_ZOOM_32 : LayerId = LayerId (51) ; } impl LayerId { pub const L_ZOOM_16_OCEAN : LayerId = LayerId (52) ; } impl LayerId { pub const L13_ZOOM_16 : LayerId = LayerId (52) ; } impl LayerId { pub const L_ZOOM_8_OCEAN : LayerId = LayerId (53) ; } impl LayerId { pub const L13_ZOOM_8 : LayerId = LayerId (53) ; } impl LayerId { pub const L_ZOOM_4_OCEAN : LayerId = LayerId (54) ; } impl LayerId { pub const L13_ZOOM_4 : LayerId = LayerId (54) ; } impl LayerId { pub const L_OCEAN_MIX_4 : LayerId = LayerId (55) ; } impl LayerId { pub const L13_OCEAN_MIX_4 : LayerId = LayerId (55) ; } impl LayerId { pub const L_VORONOI_1 : LayerId = LayerId (56) ; } impl LayerId { pub const L_VORONOI_ZOOM_1 : LayerId = LayerId (56) ; } impl LayerId { pub const L_ZOOM_LARGE_A : LayerId = LayerId (57) ; } impl LayerId { pub const L_ZOOM_LARGE_B : LayerId = LayerId (58) ; } impl LayerId { pub const L_ZOOM_L_RIVER_A : LayerId = LayerId (59) ; } impl LayerId { pub const L_ZOOM_L_RIVER_B : LayerId = LayerId (60) ; } impl LayerId { pub const L_NUM : LayerId = LayerId (61) ; } # [repr (transparent)] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct LayerId (pub :: std :: os :: raw :: c_uint) ; pub type mapfunc_t = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Layer { pub getMap : mapfunc_t , pub mc : i8 , pub zoom : i8 , pub edge : i8 , pub scale : :: std :: os :: raw :: c_int , pub layerSalt : u64 , pub startSalt : u64 , pub startSeed : u64 , pub noise : * mut :: std :: os :: raw :: c_void , pub data : * mut :: std :: os :: raw :: c_void , pub p : * mut Layer , pub p2 : * mut Layer , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Layer"] [:: std :: mem :: size_of :: < Layer > () - 72usize] ; ["Alignment of Layer"] [:: std :: mem :: align_of :: < Layer > () - 8usize] ; ["Offset of field: Layer::getMap"] [:: std :: mem :: offset_of ! (Layer , getMap) - 0usize] ; ["Offset of field: Layer::mc"] [:: std :: mem :: offset_of ! (Layer , mc) - 8usize] ; ["Offset of field: Layer::zoom"] [:: std :: mem :: offset_of ! (Layer , zoom) - 9usize] ; ["Offset of field: Layer::edge"] [:: std :: mem :: offset_of ! (Layer , edge) - 10usize] ; ["Offset of field: Layer::scale"] [:: std :: mem :: offset_of ! (Layer , scale) - 12usize] ; ["Offset of field: Layer::layerSalt"] [:: std :: mem :: offset_of ! (Layer , layerSalt) - 16usize] ; ["Offset of field: Layer::startSalt"] [:: std :: mem :: offset_of ! (Layer , startSalt) - 24usize] ; ["Offset of field: Layer::startSeed"] [:: std :: mem :: offset_of ! (Layer , startSeed) - 32usize] ; ["Offset of field: Layer::noise"] [:: std :: mem :: offset_of ! (Layer , noise) - 40usize] ; ["Offset of field: Layer::data"] [:: std :: mem :: offset_of ! (Layer , data) - 48usize] ; ["Offset of field: Layer::p"] [:: std :: mem :: offset_of ! (Layer , p) - 56usize] ; ["Offset of field: Layer::p2"] [:: std :: mem :: offset_of ! (Layer , p2) - 64usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct LayerStack { pub layers : [Layer ; 61usize] , pub entry_1 : * mut Layer , pub entry_4 : * mut Layer , pub entry_16 : * mut Layer , pub entry_64 : * mut Layer , pub entry_256 : * mut Layer , pub oceanRnd : PerlinNoise , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of LayerStack"] [:: std :: mem :: size_of :: < LayerStack > () - 4752usize] ; ["Alignment of LayerStack"] [:: std :: mem :: align_of :: < LayerStack > () - 8usize] ; ["Offset of field: LayerStack::layers"] [:: std :: mem :: offset_of ! (LayerStack , layers) - 0usize] ; ["Offset of field: LayerStack::entry_1"] [:: std :: mem :: offset_of ! (LayerStack , entry_1) - 4392usize] ; ["Offset of field: LayerStack::entry_4"] [:: std :: mem :: offset_of ! (LayerStack , entry_4) - 4400usize] ; ["Offset of field: LayerStack::entry_16"] [:: std :: mem :: offset_of ! (LayerStack , entry_16) - 4408usize] ; ["Offset of field: LayerStack::entry_64"] [:: std :: mem :: offset_of ! (LayerStack , entry_64) - 4416usize] ; ["Offset of field: LayerStack::entry_256"] [:: std :: mem :: offset_of ! (LayerStack , entry_256) - 4424usize] ; ["Offset of field: LayerStack::oceanRnd"] [:: std :: mem :: offset_of ! (LayerStack , oceanRnd) - 4432usize] ; } ; unsafe extern "C" { pub fn setLayerSeed (layer : * mut Layer , worldSeed : u64) ; } unsafe extern "C" { pub fn mapContinent (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapZoomFuzzy (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapZoom (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapLand (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapLand16 (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapLandB18 (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapIsland (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapSnow (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapSnow16 (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapCool (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapHeat (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapSpecial (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapMushroom (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapDeepOcean (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapBiome (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapBamboo (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapNoise (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapBiomeEdge (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapHills (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapRiver (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapSmooth (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapSunflower (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapShore (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapSwampRiver (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapRiverMix (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapOceanTemp (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapOceanMix (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapVoronoi (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapVoronoi114 (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getVoronoiSHA (worldSeed : u64) -> u64 ; } unsafe extern "C" { pub fn voronoiAccess3D (sha : u64 , x : :: std :: os :: raw :: c_int , y : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , x4 : * mut :: std :: os :: raw :: c_int , y4 : * mut :: std :: os :: raw :: c_int , z4 : * mut :: std :: os :: raw :: c_int) ; } unsafe extern "C" { pub fn mapVoronoiPlane (sha : u64 , out : * mut :: std :: os :: raw :: c_int , src : * mut :: std :: os :: raw :: c_int , x : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , w : :: std :: os :: raw :: c_int , h : :: std :: os :: raw :: c_int , y : :: std :: os :: raw :: c_int , px : :: std :: os :: raw :: c_int , pz : :: std :: os :: raw :: c_int , pw : :: std :: os :: raw :: c_int , ph : :: std :: os :: raw :: c_int) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Range { pub scale : :: std :: os :: raw :: c_int , pub x : :: std :: os :: raw :: c_int , pub z : :: std :: os :: raw :: c_int , pub sx : :: std :: os :: raw :: c_int , pub sz : :: std :: os :: raw :: c_int , pub y : :: std :: os :: raw :: c_int , pub sy : :: std :: os :: raw :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Range"] [:: std :: mem :: size_of :: < Range > () - 28usize] ; ["Alignment of Range"] [:: std :: mem :: align_of :: < Range > () - 4usize] ; ["Offset of field: Range::scale"] [:: std :: mem :: offset_of ! (Range , scale) - 0usize] ; ["Offset of field: Range::x"] [:: std :: mem :: offset_of ! (Range , x) - 4usize] ; ["Offset of field: Range::z"] [:: std :: mem :: offset_of ! (Range , z) - 8usize] ; ["Offset of field: Range::sx"] [:: std :: mem :: offset_of ! (Range , sx) - 12usize] ; ["Offset of field: Range::sz"] [:: std :: mem :: offset_of ! (Range , sz) - 16usize] ; ["Offset of field: Range::y"] [:: std :: mem :: offset_of ! (Range , y) - 20usize] ; ["Offset of field: Range::sy"] [:: std :: mem :: offset_of ! (Range , sy) - 24usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct NetherNoise { pub temperature : DoublePerlinNoise , pub humidity : DoublePerlinNoise , pub oct : [PerlinNoise ; 8usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of NetherNoise"] [:: std :: mem :: size_of :: < NetherNoise > () - 2640usize] ; ["Alignment of NetherNoise"] [:: std :: mem :: align_of :: < NetherNoise > () - 8usize] ; ["Offset of field: NetherNoise::temperature"] [:: std :: mem :: offset_of ! (NetherNoise , temperature) - 0usize] ; ["Offset of field: NetherNoise::humidity"] [:: std :: mem :: offset_of ! (NetherNoise , humidity) - 40usize] ; ["Offset of field: NetherNoise::oct"] [:: std :: mem :: offset_of ! (NetherNoise , oct) - 80usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct EndNoise { pub perlin : PerlinNoise , pub mc : :: std :: os :: raw :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of EndNoise"] [:: std :: mem :: size_of :: < EndNoise > () - 328usize] ; ["Alignment of EndNoise"] [:: std :: mem :: align_of :: < EndNoise > () - 8usize] ; ["Offset of field: EndNoise::perlin"] [:: std :: mem :: offset_of ! (EndNoise , perlin) - 0usize] ; ["Offset of field: EndNoise::mc"] [:: std :: mem :: offset_of ! (EndNoise , mc) - 320usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct SurfaceNoise { pub xzScale : f64 , pub yScale : f64 , pub xzFactor : f64 , pub yFactor : f64 , pub octmin : OctaveNoise , pub octmax : OctaveNoise , pub octmain : OctaveNoise , pub octsurf : OctaveNoise , pub octdepth : OctaveNoise , pub oct : [PerlinNoise ; 60usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of SurfaceNoise"] [:: std :: mem :: size_of :: < SurfaceNoise > () - 19312usize] ; ["Alignment of SurfaceNoise"] [:: std :: mem :: align_of :: < SurfaceNoise > () - 8usize] ; ["Offset of field: SurfaceNoise::xzScale"] [:: std :: mem :: offset_of ! (SurfaceNoise , xzScale) - 0usize] ; ["Offset of field: SurfaceNoise::yScale"] [:: std :: mem :: offset_of ! (SurfaceNoise , yScale) - 8usize] ; ["Offset of field: SurfaceNoise::xzFactor"] [:: std :: mem :: offset_of ! (SurfaceNoise , xzFactor) - 16usize] ; ["Offset of field: SurfaceNoise::yFactor"] [:: std :: mem :: offset_of ! (SurfaceNoise , yFactor) - 24usize] ; ["Offset of field: SurfaceNoise::octmin"] [:: std :: mem :: offset_of ! (SurfaceNoise , octmin) - 32usize] ; ["Offset of field: SurfaceNoise::octmax"] [:: std :: mem :: offset_of ! (SurfaceNoise , octmax) - 48usize] ; ["Offset of field: SurfaceNoise::octmain"] [:: std :: mem :: offset_of ! (SurfaceNoise , octmain) - 64usize] ; ["Offset of field: SurfaceNoise::octsurf"] [:: std :: mem :: offset_of ! (SurfaceNoise , octsurf) - 80usize] ; ["Offset of field: SurfaceNoise::octdepth"] [:: std :: mem :: offset_of ! (SurfaceNoise , octdepth) - 96usize] ; ["Offset of field: SurfaceNoise::oct"] [:: std :: mem :: offset_of ! (SurfaceNoise , oct) - 112usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct SurfaceNoiseBeta { pub octmin : OctaveNoise , pub octmax : OctaveNoise , pub octmain : OctaveNoise , pub octcontA : OctaveNoise , pub octcontB : OctaveNoise , pub oct : [PerlinNoise ; 66usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of SurfaceNoiseBeta"] [:: std :: mem :: size_of :: < SurfaceNoiseBeta > () - 21200usize] ; ["Alignment of SurfaceNoiseBeta"] [:: std :: mem :: align_of :: < SurfaceNoiseBeta > () - 8usize] ; ["Offset of field: SurfaceNoiseBeta::octmin"] [:: std :: mem :: offset_of ! (SurfaceNoiseBeta , octmin) - 0usize] ; ["Offset of field: SurfaceNoiseBeta::octmax"] [:: std :: mem :: offset_of ! (SurfaceNoiseBeta , octmax) - 16usize] ; ["Offset of field: SurfaceNoiseBeta::octmain"] [:: std :: mem :: offset_of ! (SurfaceNoiseBeta , octmain) - 32usize] ; ["Offset of field: SurfaceNoiseBeta::octcontA"] [:: std :: mem :: offset_of ! (SurfaceNoiseBeta , octcontA) - 48usize] ; ["Offset of field: SurfaceNoiseBeta::octcontB"] [:: std :: mem :: offset_of ! (SurfaceNoiseBeta , octcontB) - 64usize] ; ["Offset of field: SurfaceNoiseBeta::oct"] [:: std :: mem :: offset_of ! (SurfaceNoiseBeta , oct) - 80usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct SeaLevelColumnNoiseBeta { pub contASample : f64 , pub contBSample : f64 , pub minSample : [f64 ; 2usize] , pub maxSample : [f64 ; 2usize] , pub mainSample : [f64 ; 2usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of SeaLevelColumnNoiseBeta"] [:: std :: mem :: size_of :: < SeaLevelColumnNoiseBeta > () - 64usize] ; ["Alignment of SeaLevelColumnNoiseBeta"] [:: std :: mem :: align_of :: < SeaLevelColumnNoiseBeta > () - 8usize] ; ["Offset of field: SeaLevelColumnNoiseBeta::contASample"] [:: std :: mem :: offset_of ! (SeaLevelColumnNoiseBeta , contASample) - 0usize] ; ["Offset of field: SeaLevelColumnNoiseBeta::contBSample"] [:: std :: mem :: offset_of ! (SeaLevelColumnNoiseBeta , contBSample) - 8usize] ; ["Offset of field: SeaLevelColumnNoiseBeta::minSample"] [:: std :: mem :: offset_of ! (SeaLevelColumnNoiseBeta , minSample) - 16usize] ; ["Offset of field: SeaLevelColumnNoiseBeta::maxSample"] [:: std :: mem :: offset_of ! (SeaLevelColumnNoiseBeta , maxSample) - 32usize] ; ["Offset of field: SeaLevelColumnNoiseBeta::mainSample"] [:: std :: mem :: offset_of ! (SeaLevelColumnNoiseBeta , mainSample) - 48usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Spline { pub len : :: std :: os :: raw :: c_int , pub typ : :: std :: os :: raw :: c_int , pub loc : [f32 ; 12usize] , pub der : [f32 ; 12usize] , pub val : [* mut Spline ; 12usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Spline"] [:: std :: mem :: size_of :: < Spline > () - 200usize] ; ["Alignment of Spline"] [:: std :: mem :: align_of :: < Spline > () - 8usize] ; ["Offset of field: Spline::len"] [:: std :: mem :: offset_of ! (Spline , len) - 0usize] ; ["Offset of field: Spline::typ"] [:: std :: mem :: offset_of ! (Spline , typ) - 4usize] ; ["Offset of field: Spline::loc"] [:: std :: mem :: offset_of ! (Spline , loc) - 8usize] ; ["Offset of field: Spline::der"] [:: std :: mem :: offset_of ! (Spline , der) - 56usize] ; ["Offset of field: Spline::val"] [:: std :: mem :: offset_of ! (Spline , val) - 104usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FixSpline { pub len : :: std :: os :: raw :: c_int , pub val : f32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of FixSpline"] [:: std :: mem :: size_of :: < FixSpline > () - 8usize] ; ["Alignment of FixSpline"] [:: std :: mem :: align_of :: < FixSpline > () - 4usize] ; ["Offset of field: FixSpline::len"] [:: std :: mem :: offset_of ! (FixSpline , len) - 0usize] ; ["Offset of field: FixSpline::val"] [:: std :: mem :: offset_of ! (FixSpline , val) - 4usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct SplineStack { pub stack : [Spline ; 42usize] , pub fstack : [FixSpline ; 151usize] , pub len : :: std :: os :: raw :: c_int , pub flen : :: std :: os :: raw :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of SplineStack"] [:: std :: mem :: size_of :: < SplineStack > () - 9616usize] ; ["Alignment of SplineStack"] [:: std :: mem :: align_of :: < SplineStack > () - 8usize] ; ["Offset of field: SplineStack::stack"] [:: std :: mem :: offset_of ! (SplineStack , stack) - 0usize] ; ["Offset of field: SplineStack::fstack"] [:: std :: mem :: offset_of ! (SplineStack , fstack) - 8400usize] ; ["Offset of field: SplineStack::len"] [:: std :: mem :: offset_of ! (SplineStack , len) - 9608usize] ; ["Offset of field: SplineStack::flen"] [:: std :: mem :: offset_of ! (SplineStack , flen) - 9612usize] ; } ; pub const NP_TEMPERATURE : _bindgen_ty_2 = _bindgen_ty_2 (0) ; pub const NP_HUMIDITY : _bindgen_ty_2 = _bindgen_ty_2 (1) ; pub const NP_CONTINENTALNESS : _bindgen_ty_2 = _bindgen_ty_2 (2) ; pub const NP_EROSION : _bindgen_ty_2 = _bindgen_ty_2 (3) ; pub const NP_SHIFT : _bindgen_ty_2 = _bindgen_ty_2 (4) ; pub const NP_DEPTH : _bindgen_ty_2 = _bindgen_ty_2 (4) ; pub const NP_WEIRDNESS : _bindgen_ty_2 = _bindgen_ty_2 (5) ; pub const NP_MAX : _bindgen_ty_2 = _bindgen_ty_2 (6) ; # [repr (transparent)] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct _bindgen_ty_2 (pub :: std :: os :: raw :: c_uint) ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct BiomeNoise { pub climate : [DoublePerlinNoise ; 6usize] , pub oct : [PerlinNoise ; 46usize] , pub sp : * mut Spline , pub ss : SplineStack , pub nptype : :: std :: os :: raw :: c_int , pub mc : :: std :: os :: raw :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of BiomeNoise"] [:: std :: mem :: size_of :: < BiomeNoise > () - 24592usize] ; ["Alignment of BiomeNoise"] [:: std :: mem :: align_of :: < BiomeNoise > () - 8usize] ; ["Offset of field: BiomeNoise::climate"] [:: std :: mem :: offset_of ! (BiomeNoise , climate) - 0usize] ; ["Offset of field: BiomeNoise::oct"] [:: std :: mem :: offset_of ! (BiomeNoise , oct) - 240usize] ; ["Offset of field: BiomeNoise::sp"] [:: std :: mem :: offset_of ! (BiomeNoise , sp) - 14960usize] ; ["Offset of field: BiomeNoise::ss"] [:: std :: mem :: offset_of ! (BiomeNoise , ss) - 14968usize] ; ["Offset of field: BiomeNoise::nptype"] [:: std :: mem :: offset_of ! (BiomeNoise , nptype) - 24584usize] ; ["Offset of field: BiomeNoise::mc"] [:: std :: mem :: offset_of ! (BiomeNoise , mc) - 24588usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct BiomeNoiseBeta { pub climate : [OctaveNoise ; 3usize] , pub oct : [PerlinNoise ; 10usize] , pub nptype : :: std :: os :: raw :: c_int , pub mc : :: std :: os :: raw :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of BiomeNoiseBeta"] [:: std :: mem :: size_of :: < BiomeNoiseBeta > () - 3256usize] ; ["Alignment of BiomeNoiseBeta"] [:: std :: mem :: align_of :: < BiomeNoiseBeta > () - 8usize] ; ["Offset of field: BiomeNoiseBeta::climate"] [:: std :: mem :: offset_of ! (BiomeNoiseBeta , climate) - 0usize] ; ["Offset of field: BiomeNoiseBeta::oct"] [:: std :: mem :: offset_of ! (BiomeNoiseBeta , oct) - 48usize] ; ["Offset of field: BiomeNoiseBeta::nptype"] [:: std :: mem :: offset_of ! (BiomeNoiseBeta , nptype) - 3248usize] ; ["Offset of field: BiomeNoiseBeta::mc"] [:: std :: mem :: offset_of ! (BiomeNoiseBeta , mc) - 3252usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct BiomeTree { pub steps : * const u32 , pub param : * const i32 , pub nodes : * const u64 , pub order : u32 , pub len : u32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of BiomeTree"] [:: std :: mem :: size_of :: < BiomeTree > () - 32usize] ; ["Alignment of BiomeTree"] [:: std :: mem :: align_of :: < BiomeTree > () - 8usize] ; ["Offset of field: BiomeTree::steps"] [:: std :: mem :: offset_of ! (BiomeTree , steps) - 0usize] ; ["Offset of field: BiomeTree::param"] [:: std :: mem :: offset_of ! (BiomeTree , param) - 8usize] ; ["Offset of field: BiomeTree::nodes"] [:: std :: mem :: offset_of ! (BiomeTree , nodes) - 16usize] ; ["Offset of field: BiomeTree::order"] [:: std :: mem :: offset_of ! (BiomeTree , order) - 24usize] ; ["Offset of field: BiomeTree::len"] [:: std :: mem :: offset_of ! (BiomeTree , len) - 28usize] ; } ; unsafe extern "C" { pub fn initSurfaceNoise (sn : * mut SurfaceNoise , dim : :: std :: os :: raw :: c_int , seed : u64) ; } unsafe extern "C" { pub fn initSurfaceNoiseBeta (snb : * mut SurfaceNoiseBeta , seed : u64) ; } unsafe extern "C" { pub fn sampleSurfaceNoise (sn : * const SurfaceNoise , x : :: std :: os :: raw :: c_int , y : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int) -> f64 ; } unsafe extern "C" { pub fn sampleSurfaceNoiseBetween (sn : * const SurfaceNoise , x : :: std :: os :: raw :: c_int , y : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , noiseMin : f64 , noiseMax : f64) -> f64 ; } unsafe extern "C" { # [doc = " Nether biomes are 3D, and generated at scale 1:4. Use voronoiAccess3D() to\n convert coordinates at 1:1 scale to their 1:4 access. Biome checks for\n structures are generally done at y=0.\n\n The function getNetherBiome() determines the nether biome at a given\n coordinate at scale 1:4. The parameter 'ndel' is an output noise delta for\n optimization purposes and can be ignored (nullable).\n\n Use mapNether2D() to get a 2D area of nether biomes at y=0, scale 1:4.\n\n The mapNether3D() function attempts to optimize the generation of a volume\n at scale 1:4. The output is indexed as:\n out[i_y*(r.sx*r.sz) + i_z*r.sx + i_x].\n If the optimization parameter 'confidence' has a value less than 1.0, the\n generation will generally be faster, but can yield incorrect results in some\n circumstances.\n\n The output buffer for the map-functions need only be of sufficient size to\n hold the generated area (i.e. w*h or r.sx*r.sy*r.sz)."] pub fn setNetherSeed (nn : * mut NetherNoise , seed : u64) ; } unsafe extern "C" { pub fn getNetherBiome (nn : * const NetherNoise , x : :: std :: os :: raw :: c_int , y : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , ndel : * mut f32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapNether2D (nn : * const NetherNoise , out : * mut :: std :: os :: raw :: c_int , x : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , w : :: std :: os :: raw :: c_int , h : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapNether3D (nn : * const NetherNoise , out : * mut :: std :: os :: raw :: c_int , r : Range , confidence : f32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " The scaled Nether generation supports scales 1, 4, 16, 64, and 256.\n It is similar to mapNether3D(), but applies voronoi zoom if necessary, and\n fills the output buffer with nether_wastes for versions older than 1.16."] pub fn genNetherScaled (nn : * const NetherNoise , out : * mut :: std :: os :: raw :: c_int , r : Range , mc : :: std :: os :: raw :: c_int , sha : u64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " End biome generation is based on simplex noise and varies only at a 1:16\n chunk scale which can be generated with mapEndBiome(). The function mapEnd()\n is a variation which also scales this up on a regular grid to 1:4. The final\n access at a 1:1 scale uses voronoi."] pub fn setEndSeed (en : * mut EndNoise , mc : :: std :: os :: raw :: c_int , seed : u64) ; } unsafe extern "C" { pub fn mapEndBiome (en : * const EndNoise , out : * mut :: std :: os :: raw :: c_int , x : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , w : :: std :: os :: raw :: c_int , h : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapEnd (en : * const EndNoise , out : * mut :: std :: os :: raw :: c_int , x : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , w : :: std :: os :: raw :: c_int , h : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getEndSurfaceHeight (mc : :: std :: os :: raw :: c_int , seed : u64 , x : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapEndSurfaceHeight (y : * mut f32 , en : * const EndNoise , sn : * const SurfaceNoise , x : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , w : :: std :: os :: raw :: c_int , h : :: std :: os :: raw :: c_int , scale : :: std :: os :: raw :: c_int , ymin : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " The scaled End generation supports scales 1, 4, 16, and 64.\n The End biomes are usually 2D, but in 1.15+ there is 3D voronoi noise, which\n is controlled by the 'sha' hash of the seed. For scales higher than 1:1, and\n versions up to 1.14, 'sha' is ignored."] pub fn genEndScaled (en : * const EndNoise , out : * mut :: std :: os :: raw :: c_int , r : Range , mc : :: std :: os :: raw :: c_int , sha : u64) -> :: std :: os :: raw :: c_int ; } pub const SAMPLE_NO_SHIFT : _bindgen_ty_3 = _bindgen_ty_3 (1) ; pub const SAMPLE_NO_DEPTH : _bindgen_ty_3 = _bindgen_ty_3 (2) ; pub const SAMPLE_NO_BIOME : _bindgen_ty_3 = _bindgen_ty_3 (4) ; # [repr (transparent)] # [doc = " In 1.18 the Overworld uses a new noise map system for the biome generation.\n The random number generation also has updated to a Xiroshiro128 algorithm.\n The scale is 1:4, and is sampled at each point individually as there is\n currently not much benefit from generating a volume as a whole.\n\n The 1.18 End generation remains similar to 1.17 and does NOT use the\n biome noise."] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct _bindgen_ty_3 (pub :: std :: os :: raw :: c_uint) ; unsafe extern "C" { pub fn initBiomeNoise (bn : * mut BiomeNoise , mc : :: std :: os :: raw :: c_int) ; } unsafe extern "C" { pub fn setBiomeSeed (bn : * mut BiomeNoise , seed : u64 , large : :: std :: os :: raw :: c_int) ; } unsafe extern "C" { pub fn setBetaBiomeSeed (bnb : * mut BiomeNoiseBeta , seed : u64) ; } unsafe extern "C" { pub fn sampleBiomeNoise (bn : * const BiomeNoise , np : * mut i64 , x : :: std :: os :: raw :: c_int , y : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , dat : * mut u64 , sample_flags : u32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn sampleBiomeNoiseBeta (bnb : * const BiomeNoiseBeta , np : * mut i64 , nv : * mut f64 , x : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn approxSurfaceBeta (bnb : * const BiomeNoiseBeta , snb : * const SurfaceNoiseBeta , x : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int) -> f64 ; } unsafe extern "C" { # [doc = " (Alpha 1.2 - Beta 1.7)\n Temperature and humidity values to biome."] pub fn getOldBetaBiome (t : f32 , h : f32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " Uses the global biome tree definitions (see tables/btreeXX.h)\n to map a noise point (i.e. climate) to the corresponding overworld biome."] pub fn climateToBiome (mc : :: std :: os :: raw :: c_int , np : * const u64 , dat : * mut u64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " Initialize BiomeNoise for only a single climate parameter.\n If nptype == NP_DEPTH, the value is sampled at y=0. Note that this value\n changes linearly with the height (i.e. -= y/128).\n A maximum of nmax octaves is set, initializing only the most contributing\n octaves up to that point. Use -1 for a full initialization."] pub fn setClimateParaSeed (bn : * mut BiomeNoise , seed : u64 , large : :: std :: os :: raw :: c_int , nptype : :: std :: os :: raw :: c_int , nmax : :: std :: os :: raw :: c_int) ; } unsafe extern "C" { pub fn sampleClimatePara (bn : * const BiomeNoise , np : * mut i64 , x : f64 , z : f64) -> f64 ; } unsafe extern "C" { # [doc = " Currently, in 1.18, we have to generate biomes one chunk at a time to get an\n accurate mapping of the biomes in the level storage, as there is no longer a\n unique mapping from noise points to biomes (MC-241546). Note that the results\n from this are not suitable for chunk population/structure generation.\n The output is in the form out[x][y][z] for the 64 biome points in the chunk\n section. The coordinates {cx,cy,cz} are all at scale 1:16 and the 'dat'\n argument should be the previous noise sampling and can be left NULL."] pub fn genBiomeNoiseChunkSection (bn : * const BiomeNoise , out : * mut [[:: std :: os :: raw :: c_int ; 4usize] ; 4usize] , cx : :: std :: os :: raw :: c_int , cy : :: std :: os :: raw :: c_int , cz : :: std :: os :: raw :: c_int , dat : * mut u64) ; } unsafe extern "C" { # [doc = " The scaled biome noise generation applies for the Overworld version 1.18+.\n The 'sha' hash of the seed is only required for voronoi at scale 1:1.\n A scale of zero is interpreted as the default 1:4 scale."] pub fn genBiomeNoiseScaled (bn : * const BiomeNoise , out : * mut :: std :: os :: raw :: c_int , r : Range , sha : u64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " Generates the biomes for Beta 1.7, the surface noise is optional and enables\n ocean mapping in areas that fall below the sea level."] pub fn genBiomeNoiseBetaScaled (bnb : * const BiomeNoiseBeta , snb : * const SurfaceNoiseBeta , out : * mut :: std :: os :: raw :: c_int , r : Range) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getBiomeDepthAndScale (id : :: std :: os :: raw :: c_int , depth : * mut f64 , scale : * mut f64 , grass : * mut :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getVoronoiSrcRange (r : Range) -> Range ; } pub const LARGE_BIOMES : _bindgen_ty_4 = _bindgen_ty_4 (1) ; pub const NO_BETA_OCEAN : _bindgen_ty_4 = _bindgen_ty_4 (2) ; pub const FORCE_OCEAN_VARIANTS : _bindgen_ty_4 = _bindgen_ty_4 (4) ; # [repr (transparent)] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct _bindgen_ty_4 (pub :: std :: os :: raw :: c_uint) ; # [repr (C)] # [derive (Copy , Clone)] pub struct Generator { pub mc : :: std :: os :: raw :: c_int , pub dim : :: std :: os :: raw :: c_int , pub flags : u32 , pub seed : u64 , pub sha : u64 , pub __bindgen_anon_1 : Generator__bindgen_ty_1 , pub nn : NetherNoise , pub en : EndNoise , } # [repr (C)] # [derive (Copy , Clone)] pub union Generator__bindgen_ty_1 { pub __bindgen_anon_1 : Generator__bindgen_ty_1__bindgen_ty_1 , pub __bindgen_anon_2 : Generator__bindgen_ty_1__bindgen_ty_2 , pub __bindgen_anon_3 : Generator__bindgen_ty_1__bindgen_ty_3 , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Generator__bindgen_ty_1__bindgen_ty_1 { pub ls : LayerStack , pub xlayer : [Layer ; 5usize] , pub entry : * mut Layer , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Generator__bindgen_ty_1__bindgen_ty_1"] [:: std :: mem :: size_of :: < Generator__bindgen_ty_1__bindgen_ty_1 > () - 5120usize] ; ["Alignment of Generator__bindgen_ty_1__bindgen_ty_1"] [:: std :: mem :: align_of :: < Generator__bindgen_ty_1__bindgen_ty_1 > () - 8usize] ; ["Offset of field: Generator__bindgen_ty_1__bindgen_ty_1::ls"] [:: std :: mem :: offset_of ! (Generator__bindgen_ty_1__bindgen_ty_1 , ls) - 0usize] ; ["Offset of field: Generator__bindgen_ty_1__bindgen_ty_1::xlayer"] [:: std :: mem :: offset_of ! (Generator__bindgen_ty_1__bindgen_ty_1 , xlayer) - 4752usize] ; ["Offset of field: Generator__bindgen_ty_1__bindgen_ty_1::entry"] [:: std :: mem :: offset_of ! (Generator__bindgen_ty_1__bindgen_ty_1 , entry) - 5112usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Generator__bindgen_ty_1__bindgen_ty_2 { pub bn : BiomeNoise , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Generator__bindgen_ty_1__bindgen_ty_2"] [:: std :: mem :: size_of :: < Generator__bindgen_ty_1__bindgen_ty_2 > () - 24592usize] ; ["Alignment of Generator__bindgen_ty_1__bindgen_ty_2"] [:: std :: mem :: align_of :: < Generator__bindgen_ty_1__bindgen_ty_2 > () - 8usize] ; ["Offset of field: Generator__bindgen_ty_1__bindgen_ty_2::bn"] [:: std :: mem :: offset_of ! (Generator__bindgen_ty_1__bindgen_ty_2 , bn) - 0usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Generator__bindgen_ty_1__bindgen_ty_3 { pub bnb : BiomeNoiseBeta , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Generator__bindgen_ty_1__bindgen_ty_3"] [:: std :: mem :: size_of :: < Generator__bindgen_ty_1__bindgen_ty_3 > () - 3256usize] ; ["Alignment of Generator__bindgen_ty_1__bindgen_ty_3"] [:: std :: mem :: align_of :: < Generator__bindgen_ty_1__bindgen_ty_3 > () - 8usize] ; ["Offset of field: Generator__bindgen_ty_1__bindgen_ty_3::bnb"] [:: std :: mem :: offset_of ! (Generator__bindgen_ty_1__bindgen_ty_3 , bnb) - 0usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Generator__bindgen_ty_1"] [:: std :: mem :: size_of :: < Generator__bindgen_ty_1 > () - 24592usize] ; ["Alignment of Generator__bindgen_ty_1"] [:: std :: mem :: align_of :: < Generator__bindgen_ty_1 > () - 8usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Generator"] [:: std :: mem :: size_of :: < Generator > () - 27592usize] ; ["Alignment of Generator"] [:: std :: mem :: align_of :: < Generator > () - 8usize] ; ["Offset of field: Generator::mc"] [:: std :: mem :: offset_of ! (Generator , mc) - 0usize] ; ["Offset of field: Generator::dim"] [:: std :: mem :: offset_of ! (Generator , dim) - 4usize] ; ["Offset of field: Generator::flags"] [:: std :: mem :: offset_of ! (Generator , flags) - 8usize] ; ["Offset of field: Generator::seed"] [:: std :: mem :: offset_of ! (Generator , seed) - 16usize] ; ["Offset of field: Generator::sha"] [:: std :: mem :: offset_of ! (Generator , sha) - 24usize] ; ["Offset of field: Generator::nn"] [:: std :: mem :: offset_of ! (Generator , nn) - 24624usize] ; ["Offset of field: Generator::en"] [:: std :: mem :: offset_of ! (Generator , en) - 27264usize] ; } ; unsafe extern "C" { # [doc = " Sets up a biome generator for a given MC version. The 'flags' can be used to\n control LARGE_BIOMES or to FORCE_OCEAN_VARIANTS to enable ocean variants at\n scales higher than normal."] pub fn setupGenerator (g : * mut Generator , mc : :: std :: os :: raw :: c_int , flags : u32) ; } unsafe extern "C" { # [doc = " Initializes the generator for a given dimension and seed.\n dim=0:   Overworld\n dim=-1:  Nether\n dim=+1:  End"] pub fn applySeed (g : * mut Generator , dim : :: std :: os :: raw :: c_int , seed : u64) ; } unsafe extern "C" { # [doc = " Calculates the buffer size (number of ints) required to generate a cuboidal\n volume of size (sx, sy, sz). If 'sy' is zero the buffer is calculated for a\n 2D plane (which is equivalent to sy=1 here).\n The function allocCache() can be used to allocate the corresponding int\n buffer using malloc()."] pub fn getMinCacheSize (g : * const Generator , scale : :: std :: os :: raw :: c_int , sx : :: std :: os :: raw :: c_int , sy : :: std :: os :: raw :: c_int , sz : :: std :: os :: raw :: c_int) -> usize ; } unsafe extern "C" { pub fn allocCache (g : * const Generator , r : Range) -> * mut :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " Generates the biomes for a cuboidal scaled range given by 'r'.\n (See description of Range for more detail.)\n\n The output is generated inside the cache. Upon success the biome ids can be\n accessed by indexing as:\n  cache[ y*r.sx*r.sz + z*r.sx + x ]\n where (x,y,z) is an relative position inside the range cuboid.\n\n The required length of the cache can be determined with getMinCacheSize().\n\n The return value is zero upon success."] pub fn genBiomes (g : * const Generator , cache : * mut :: std :: os :: raw :: c_int , r : Range) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " Gets the biome for a specified scaled position. Note that the scale should\n be either 1 or 4, for block or biome coordinates respectively.\n Returns none (-1) upon failure."] pub fn getBiomeAt (g : * const Generator , scale : :: std :: os :: raw :: c_int , x : :: std :: os :: raw :: c_int , y : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " Returns the default layer that corresponds to the given scale.\n Supported scales are {0, 1, 4, 16, 64, 256}. A scale of zero indicates the\n custom entry layer 'g->entry'.\n (Overworld, MC <= 1.17)"] pub fn getLayerForScale (g : * const Generator , scale : :: std :: os :: raw :: c_int) -> * const Layer ; } unsafe extern "C" { # [doc = "=============================================================================\n Layered Biome Generation (old interface up to 1.17)\n============================================================================="] pub fn setupLayerStack (g : * mut LayerStack , mc : :: std :: os :: raw :: c_int , largeBiomes : :: std :: os :: raw :: c_int) ; } unsafe extern "C" { pub fn getMinLayerCacheSize (layer : * const Layer , sizeX : :: std :: os :: raw :: c_int , sizeZ : :: std :: os :: raw :: c_int) -> usize ; } unsafe extern "C" { pub fn setupLayer (l : * mut Layer , map : mapfunc_t , mc : :: std :: os :: raw :: c_int , zoom : i8 , edge : i8 , saltbase : u64 , p : * mut Layer , p2 : * mut Layer) -> * mut Layer ; } unsafe extern "C" { pub fn genArea (layer : * const Layer , out : * mut :: std :: os :: raw :: c_int , areaX : :: std :: os :: raw :: c_int , areaZ : :: std :: os :: raw :: c_int , areaWidth : :: std :: os :: raw :: c_int , areaHeight : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " Map an approximation of the Overworld surface height.\n The horizontal scaling is 1:4. If non-null, the ids are filled with the\n biomes of the area. The height (written to y) is in blocks."] pub fn mapApproxHeight (y : * mut f32 , ids : * mut :: std :: os :: raw :: c_int , g : * const Generator , sn : * const SurfaceNoise , x : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , w : :: std :: os :: raw :: c_int , h : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } impl StructureType { pub const Feature : StructureType = StructureType (0) ; } impl StructureType { pub const Desert_Pyramid : StructureType = StructureType (1) ; } impl StructureType { pub const Jungle_Temple : StructureType = StructureType (2) ; } impl StructureType { pub const Jungle_Pyramid : StructureType = StructureType (2) ; } impl StructureType { pub const Swamp_Hut : StructureType = StructureType (3) ; } impl StructureType { pub const Igloo : StructureType = StructureType (4) ; } impl StructureType { pub const Village : StructureType = StructureType (5) ; } impl StructureType { pub const Ocean_Ruin : StructureType = StructureType (6) ; } impl StructureType { pub const Shipwreck : StructureType = StructureType (7) ; } impl StructureType { pub const Monument : StructureType = StructureType (8) ; } impl StructureType { pub const Mansion : StructureType = StructureType (9) ; } impl StructureType { pub const Outpost : StructureType = StructureType (10) ; } impl StructureType { pub const Ruined_Portal : StructureType = StructureType (11) ; } impl StructureType { pub const Ruined_Portal_N : StructureType = StructureType (12) ; } impl StructureType { pub const Ancient_City : StructureType = StructureType (13) ; } impl StructureType { pub const Treasure : StructureType = StructureType (14) ; } impl StructureType { pub const Mineshaft : StructureType = StructureType (15) ; } impl StructureType { pub const Desert_Well : StructureType = StructureType (16) ; } impl StructureType { pub const Geode : StructureType = StructureType (17) ; } impl StructureType { pub const Fortress : StructureType = StructureType (18) ; } impl StructureType { pub const Bastion : StructureType = StructureType (19) ; } impl StructureType { pub const End_City : StructureType = StructureType (20) ; } impl StructureType { pub const End_Gateway : StructureType = StructureType (21) ; } impl StructureType { pub const End_Island : StructureType = StructureType (22) ; } impl StructureType { pub const Trail_Ruins : StructureType = StructureType (23) ; } impl StructureType { pub const Trial_Chambers : StructureType = StructureType (24) ; } impl StructureType { pub const FEATURE_NUM : StructureType = StructureType (25) ; } # [repr (transparent)] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct StructureType (pub :: std :: os :: raw :: c_uint) ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct StructureConfig { pub salt : i32 , pub regionSize : i8 , pub chunkRange : i8 , pub structType : u8 , pub dim : i8 , pub rarity : f32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of StructureConfig"] [:: std :: mem :: size_of :: < StructureConfig > () - 12usize] ; ["Alignment of StructureConfig"] [:: std :: mem :: align_of :: < StructureConfig > () - 4usize] ; ["Offset of field: StructureConfig::salt"] [:: std :: mem :: offset_of ! (StructureConfig , salt) - 0usize] ; ["Offset of field: StructureConfig::regionSize"] [:: std :: mem :: offset_of ! (StructureConfig , regionSize) - 4usize] ; ["Offset of field: StructureConfig::chunkRange"] [:: std :: mem :: offset_of ! (StructureConfig , chunkRange) - 5usize] ; ["Offset of field: StructureConfig::structType"] [:: std :: mem :: offset_of ! (StructureConfig , structType) - 6usize] ; ["Offset of field: StructureConfig::dim"] [:: std :: mem :: offset_of ! (StructureConfig , dim) - 7usize] ; ["Offset of field: StructureConfig::rarity"] [:: std :: mem :: offset_of ! (StructureConfig , rarity) - 8usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Pos { pub x : :: std :: os :: raw :: c_int , pub z : :: std :: os :: raw :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Pos"] [:: std :: mem :: size_of :: < Pos > () - 8usize] ; ["Alignment of Pos"] [:: std :: mem :: align_of :: < Pos > () - 4usize] ; ["Offset of field: Pos::x"] [:: std :: mem :: offset_of ! (Pos , x) - 0usize] ; ["Offset of field: Pos::z"] [:: std :: mem :: offset_of ! (Pos , z) - 4usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Pos3 { pub x : :: std :: os :: raw :: c_int , pub y : :: std :: os :: raw :: c_int , pub z : :: std :: os :: raw :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Pos3"] [:: std :: mem :: size_of :: < Pos3 > () - 12usize] ; ["Alignment of Pos3"] [:: std :: mem :: align_of :: < Pos3 > () - 4usize] ; ["Offset of field: Pos3::x"] [:: std :: mem :: offset_of ! (Pos3 , x) - 0usize] ; ["Offset of field: Pos3::y"] [:: std :: mem :: offset_of ! (Pos3 , y) - 4usize] ; ["Offset of field: Pos3::z"] [:: std :: mem :: offset_of ! (Pos3 , z) - 8usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct StrongholdIter { pub pos : Pos , pub nextapprox : Pos , pub index : :: std :: os :: raw :: c_int , pub ringnum : :: std :: os :: raw :: c_int , pub ringmax : :: std :: os :: raw :: c_int , pub ringidx : :: std :: os :: raw :: c_int , pub angle : f64 , pub dist : f64 , pub rnds : u64 , pub mc : :: std :: os :: raw :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of StrongholdIter"] [:: std :: mem :: size_of :: < StrongholdIter > () - 64usize] ; ["Alignment of StrongholdIter"] [:: std :: mem :: align_of :: < StrongholdIter > () - 8usize] ; ["Offset of field: StrongholdIter::pos"] [:: std :: mem :: offset_of ! (StrongholdIter , pos) - 0usize] ; ["Offset of field: StrongholdIter::nextapprox"] [:: std :: mem :: offset_of ! (StrongholdIter , nextapprox) - 8usize] ; ["Offset of field: StrongholdIter::index"] [:: std :: mem :: offset_of ! (StrongholdIter , index) - 16usize] ; ["Offset of field: StrongholdIter::ringnum"] [:: std :: mem :: offset_of ! (StrongholdIter , ringnum) - 20usize] ; ["Offset of field: StrongholdIter::ringmax"] [:: std :: mem :: offset_of ! (StrongholdIter , ringmax) - 24usize] ; ["Offset of field: StrongholdIter::ringidx"] [:: std :: mem :: offset_of ! (StrongholdIter , ringidx) - 28usize] ; ["Offset of field: StrongholdIter::angle"] [:: std :: mem :: offset_of ! (StrongholdIter , angle) - 32usize] ; ["Offset of field: StrongholdIter::dist"] [:: std :: mem :: offset_of ! (StrongholdIter , dist) - 40usize] ; ["Offset of field: StrongholdIter::rnds"] [:: std :: mem :: offset_of ! (StrongholdIter , rnds) - 48usize] ; ["Offset of field: StrongholdIter::mc"] [:: std :: mem :: offset_of ! (StrongholdIter , mc) - 56usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct StructureVariant { pub _bitfield_align_1 : [u8 ; 0] , pub _bitfield_1 : __BindgenBitfieldUnit < [u8 ; 1usize] > , pub size : u8 , pub start : u8 , pub biome : :: std :: os :: raw :: c_short , pub rotation : u8 , pub mirror : u8 , pub x : i16 , pub y : i16 , pub z : i16 , pub sx : i16 , pub sy : i16 , pub sz : i16 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of StructureVariant"] [:: std :: mem :: size_of :: < StructureVariant > () - 20usize] ; ["Alignment of StructureVariant"] [:: std :: mem :: align_of :: < StructureVariant > () - 2usize] ; ["Offset of field: StructureVariant::size"] [:: std :: mem :: offset_of ! (StructureVariant , size) - 1usize] ; ["Offset of field: StructureVariant::start"] [:: std :: mem :: offset_of ! (StructureVariant , start) - 2usize] ; ["Offset of field: StructureVariant::biome"] [:: std :: mem :: offset_of ! (StructureVariant , biome) - 4usize] ; ["Offset of field: StructureVariant::rotation"] [:: std :: mem :: offset_of ! (StructureVariant , rotation) - 6usize] ; ["Offset of field: StructureVariant::mirror"] [:: std :: mem :: offset_of ! (StructureVariant , mirror) - 7usize] ; ["Offset of field: StructureVariant::x"] [:: std :: mem :: offset_of ! (StructureVariant , x) - 8usize] ; ["Offset of field: StructureVariant::y"] [:: std :: mem :: offset_of ! (StructureVariant , y) - 10usize] ; ["Offset of field: StructureVariant::z"] [:: std :: mem :: offset_of ! (StructureVariant , z) - 12usize] ; ["Offset of field: StructureVariant::sx"] [:: std :: mem :: offset_of ! (StructureVariant , sx) - 14usize] ; ["Offset of field: StructureVariant::sy"] [:: std :: mem :: offset_of ! (StructureVariant , sy) - 16usize] ; ["Offset of field: StructureVariant::sz"] [:: std :: mem :: offset_of ! (StructureVariant , sz) - 18usize] ; } ; impl StructureVariant { # [inline] pub fn abandoned (& self) -> u8 { unsafe { :: std :: mem :: transmute (self . _bitfield_1 . get (0usize , 1u8) as u8) } } # [inline] pub fn set_abandoned (& mut self , val : u8) { unsafe { let val : u8 = :: std :: mem :: transmute (val) ; self . _bitfield_1 . set (0usize , 1u8 , val as u64) } } # [inline] pub unsafe fn abandoned_raw (this : * const Self) -> u8 { unsafe { :: std :: mem :: transmute (< __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_get (:: std :: ptr :: addr_of ! ((* this) . _bitfield_1) , 0usize , 1u8 ,) as u8) } } # [inline] pub unsafe fn set_abandoned_raw (this : * mut Self , val : u8) { unsafe { let val : u8 = :: std :: mem :: transmute (val) ; < __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_set (:: std :: ptr :: addr_of_mut ! ((* this) . _bitfield_1) , 0usize , 1u8 , val as u64 ,) } } # [inline] pub fn giant (& self) -> u8 { unsafe { :: std :: mem :: transmute (self . _bitfield_1 . get (1usize , 1u8) as u8) } } # [inline] pub fn set_giant (& mut self , val : u8) { unsafe { let val : u8 = :: std :: mem :: transmute (val) ; self . _bitfield_1 . set (1usize , 1u8 , val as u64) } } # [inline] pub unsafe fn giant_raw (this : * const Self) -> u8 { unsafe { :: std :: mem :: transmute (< __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_get (:: std :: ptr :: addr_of ! ((* this) . _bitfield_1) , 1usize , 1u8 ,) as u8) } } # [inline] pub unsafe fn set_giant_raw (this : * mut Self , val : u8) { unsafe { let val : u8 = :: std :: mem :: transmute (val) ; < __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_set (:: std :: ptr :: addr_of_mut ! ((* this) . _bitfield_1) , 1usize , 1u8 , val as u64 ,) } } # [inline] pub fn underground (& self) -> u8 { unsafe { :: std :: mem :: transmute (self . _bitfield_1 . get (2usize , 1u8) as u8) } } # [inline] pub fn set_underground (& mut self , val : u8) { unsafe { let val : u8 = :: std :: mem :: transmute (val) ; self . _bitfield_1 . set (2usize , 1u8 , val as u64) } } # [inline] pub unsafe fn underground_raw (this : * const Self) -> u8 { unsafe { :: std :: mem :: transmute (< __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_get (:: std :: ptr :: addr_of ! ((* this) . _bitfield_1) , 2usize , 1u8 ,) as u8) } } # [inline] pub unsafe fn set_underground_raw (this : * mut Self , val : u8) { unsafe { let val : u8 = :: std :: mem :: transmute (val) ; < __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_set (:: std :: ptr :: addr_of_mut ! ((* this) . _bitfield_1) , 2usize , 1u8 , val as u64 ,) } } # [inline] pub fn airpocket (& self) -> u8 { unsafe { :: std :: mem :: transmute (self . _bitfield_1 . get (3usize , 1u8) as u8) } } # [inline] pub fn set_airpocket (& mut self , val : u8) { unsafe { let val : u8 = :: std :: mem :: transmute (val) ; self . _bitfield_1 . set (3usize , 1u8 , val as u64) } } # [inline] pub unsafe fn airpocket_raw (this : * const Self) -> u8 { unsafe { :: std :: mem :: transmute (< __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_get (:: std :: ptr :: addr_of ! ((* this) . _bitfield_1) , 3usize , 1u8 ,) as u8) } } # [inline] pub unsafe fn set_airpocket_raw (this : * mut Self , val : u8) { unsafe { let val : u8 = :: std :: mem :: transmute (val) ; < __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_set (:: std :: ptr :: addr_of_mut ! ((* this) . _bitfield_1) , 3usize , 1u8 , val as u64 ,) } } # [inline] pub fn basement (& self) -> u8 { unsafe { :: std :: mem :: transmute (self . _bitfield_1 . get (4usize , 1u8) as u8) } } # [inline] pub fn set_basement (& mut self , val : u8) { unsafe { let val : u8 = :: std :: mem :: transmute (val) ; self . _bitfield_1 . set (4usize , 1u8 , val as u64) } } # [inline] pub unsafe fn basement_raw (this : * const Self) -> u8 { unsafe { :: std :: mem :: transmute (< __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_get (:: std :: ptr :: addr_of ! ((* this) . _bitfield_1) , 4usize , 1u8 ,) as u8) } } # [inline] pub unsafe fn set_basement_raw (this : * mut Self , val : u8) { unsafe { let val : u8 = :: std :: mem :: transmute (val) ; < __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_set (:: std :: ptr :: addr_of_mut ! ((* this) . _bitfield_1) , 4usize , 1u8 , val as u64 ,) } } # [inline] pub fn cracked (& self) -> u8 { unsafe { :: std :: mem :: transmute (self . _bitfield_1 . get (5usize , 1u8) as u8) } } # [inline] pub fn set_cracked (& mut self , val : u8) { unsafe { let val : u8 = :: std :: mem :: transmute (val) ; self . _bitfield_1 . set (5usize , 1u8 , val as u64) } } # [inline] pub unsafe fn cracked_raw (this : * const Self) -> u8 { unsafe { :: std :: mem :: transmute (< __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_get (:: std :: ptr :: addr_of ! ((* this) . _bitfield_1) , 5usize , 1u8 ,) as u8) } } # [inline] pub unsafe fn set_cracked_raw (this : * mut Self , val : u8) { unsafe { let val : u8 = :: std :: mem :: transmute (val) ; < __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_set (:: std :: ptr :: addr_of_mut ! ((* this) . _bitfield_1) , 5usize , 1u8 , val as u64 ,) } } # [inline] pub fn new_bitfield_1 (abandoned : u8 , giant : u8 , underground : u8 , airpocket : u8 , basement : u8 , cracked : u8) -> __BindgenBitfieldUnit < [u8 ; 1usize] > { let mut __bindgen_bitfield_unit : __BindgenBitfieldUnit < [u8 ; 1usize] > = Default :: default () ; __bindgen_bitfield_unit . set (0usize , 1u8 , { let abandoned : u8 = unsafe { :: std :: mem :: transmute (abandoned) } ; abandoned as u64 }) ; __bindgen_bitfield_unit . set (1usize , 1u8 , { let giant : u8 = unsafe { :: std :: mem :: transmute (giant) } ; giant as u64 }) ; __bindgen_bitfield_unit . set (2usize , 1u8 , { let underground : u8 = unsafe { :: std :: mem :: transmute (underground) } ; underground as u64 }) ; __bindgen_bitfield_unit . set (3usize , 1u8 , { let airpocket : u8 = unsafe { :: std :: mem :: transmute (airpocket) } ; airpocket as u64 }) ; __bindgen_bitfield_unit . set (4usize , 1u8 , { let basement : u8 = unsafe { :: std :: mem :: transmute (basement) } ; basement as u64 }) ; __bindgen_bitfield_unit . set (5usize , 1u8 , { let cracked : u8 = unsafe { :: std :: mem :: transmute (cracked) } ; cracked as u64 }) ; __bindgen_bitfield_unit } } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Piece { pub name : * const :: std :: os :: raw :: c_char , pub pos : Pos3 , pub bb0 : Pos3 , pub bb1 : Pos3 , pub rot : u8 , pub depth : i8 , pub type_ : i8 , pub next : * mut Piece , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Piece"] [:: std :: mem :: size_of :: < Piece > () - 56usize] ; ["Alignment of Piece"] [:: std :: mem :: align_of :: < Piece > () - 8usize] ; ["Offset of field: Piece::name"] [:: std :: mem :: offset_of ! (Piece , name) - 0usize] ; ["Offset of field: Piece::pos"] [:: std :: mem :: offset_of ! (Piece , pos) - 8usize] ; ["Offset of field: Piece::bb0"] [:: std :: mem :: offset_of ! (Piece , bb0) - 20usize] ; ["Offset of field: Piece::bb1"] [:: std :: mem :: offset_of ! (Piece , bb1) - 32usize] ; ["Offset of field: Piece::rot"] [:: std :: mem :: offset_of ! (Piece , rot) - 44usize] ; ["Offset of field: Piece::depth"] [:: std :: mem :: offset_of ! (Piece , depth) - 45usize] ; ["Offset of field: Piece::type_"] [:: std :: mem :: offset_of ! (Piece , type_) - 46usize] ; ["Offset of field: Piece::next"] [:: std :: mem :: offset_of ! (Piece , next) - 48usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct EndIsland { pub x : :: std :: os :: raw :: c_int , pub y : :: std :: os :: raw :: c_int , pub z : :: std :: os :: raw :: c_int , pub r : :: std :: os :: raw :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of EndIsland"] [:: std :: mem :: size_of :: < EndIsland > () - 16usize] ; ["Alignment of EndIsland"] [:: std :: mem :: align_of :: < EndIsland > () - 4usize] ; ["Offset of field: EndIsland::x"] [:: std :: mem :: offset_of ! (EndIsland , x) - 0usize] ; ["Offset of field: EndIsland::y"] [:: std :: mem :: offset_of ! (EndIsland , y) - 4usize] ; ["Offset of field: EndIsland::z"] [:: std :: mem :: offset_of ! (EndIsland , z) - 8usize] ; ["Offset of field: EndIsland::r"] [:: std :: mem :: offset_of ! (EndIsland , r) - 12usize] ; } ; pub const BF_APPROX : _bindgen_ty_5 = _bindgen_ty_5 (1) ; pub const BF_FORCED_OCEAN : _bindgen_ty_5 = _bindgen_ty_5 (4) ; # [repr (transparent)] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct _bindgen_ty_5 (pub :: std :: os :: raw :: c_uint) ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct BiomeFilter { pub tempsToFind : u64 , pub otempToFind : u64 , pub majorToFind : u64 , pub edgesToFind : u64 , pub raresToFind : u64 , pub raresToFindM : u64 , pub shoreToFind : u64 , pub shoreToFindM : u64 , pub riverToFind : u64 , pub riverToFindM : u64 , pub oceanToFind : u64 , pub specialCnt : :: std :: os :: raw :: c_int , pub flags : u32 , pub tempsToExcl : u64 , pub majorToExcl : u64 , pub edgesToExcl : u64 , pub raresToExcl : u64 , pub raresToExclM : u64 , pub shoreToExcl : u64 , pub shoreToExclM : u64 , pub riverToExcl : u64 , pub riverToExclM : u64 , pub biomeToExcl : u64 , pub biomeToExclM : u64 , pub biomeToFind : u64 , pub biomeToFindM : u64 , pub biomeToPick : u64 , pub biomeToPickM : u64 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of BiomeFilter"] [:: std :: mem :: size_of :: < BiomeFilter > () - 216usize] ; ["Alignment of BiomeFilter"] [:: std :: mem :: align_of :: < BiomeFilter > () - 8usize] ; ["Offset of field: BiomeFilter::tempsToFind"] [:: std :: mem :: offset_of ! (BiomeFilter , tempsToFind) - 0usize] ; ["Offset of field: BiomeFilter::otempToFind"] [:: std :: mem :: offset_of ! (BiomeFilter , otempToFind) - 8usize] ; ["Offset of field: BiomeFilter::majorToFind"] [:: std :: mem :: offset_of ! (BiomeFilter , majorToFind) - 16usize] ; ["Offset of field: BiomeFilter::edgesToFind"] [:: std :: mem :: offset_of ! (BiomeFilter , edgesToFind) - 24usize] ; ["Offset of field: BiomeFilter::raresToFind"] [:: std :: mem :: offset_of ! (BiomeFilter , raresToFind) - 32usize] ; ["Offset of field: BiomeFilter::raresToFindM"] [:: std :: mem :: offset_of ! (BiomeFilter , raresToFindM) - 40usize] ; ["Offset of field: BiomeFilter::shoreToFind"] [:: std :: mem :: offset_of ! (BiomeFilter , shoreToFind) - 48usize] ; ["Offset of field: BiomeFilter::shoreToFindM"] [:: std :: mem :: offset_of ! (BiomeFilter , shoreToFindM) - 56usize] ; ["Offset of field: BiomeFilter::riverToFind"] [:: std :: mem :: offset_of ! (BiomeFilter , riverToFind) - 64usize] ; ["Offset of field: BiomeFilter::riverToFindM"] [:: std :: mem :: offset_of ! (BiomeFilter , riverToFindM) - 72usize] ; ["Offset of field: BiomeFilter::oceanToFind"] [:: std :: mem :: offset_of ! (BiomeFilter , oceanToFind) - 80usize] ; ["Offset of field: BiomeFilter::specialCnt"] [:: std :: mem :: offset_of ! (BiomeFilter , specialCnt) - 88usize] ; ["Offset of field: BiomeFilter::flags"] [:: std :: mem :: offset_of ! (BiomeFilter , flags) - 92usize] ; ["Offset of field: BiomeFilter::tempsToExcl"] [:: std :: mem :: offset_of ! (BiomeFilter , tempsToExcl) - 96usize] ; ["Offset of field: BiomeFilter::majorToExcl"] [:: std :: mem :: offset_of ! (BiomeFilter , majorToExcl) - 104usize] ; ["Offset of field: BiomeFilter::edgesToExcl"] [:: std :: mem :: offset_of ! (BiomeFilter , edgesToExcl) - 112usize] ; ["Offset of field: BiomeFilter::raresToExcl"] [:: std :: mem :: offset_of ! (BiomeFilter , raresToExcl) - 120usize] ; ["Offset of field: BiomeFilter::raresToExclM"] [:: std :: mem :: offset_of ! (BiomeFilter , raresToExclM) - 128usize] ; ["Offset of field: BiomeFilter::shoreToExcl"] [:: std :: mem :: offset_of ! (BiomeFilter , shoreToExcl) - 136usize] ; ["Offset of field: BiomeFilter::shoreToExclM"] [:: std :: mem :: offset_of ! (BiomeFilter , shoreToExclM) - 144usize] ; ["Offset of field: BiomeFilter::riverToExcl"] [:: std :: mem :: offset_of ! (BiomeFilter , riverToExcl) - 152usize] ; ["Offset of field: BiomeFilter::riverToExclM"] [:: std :: mem :: offset_of ! (BiomeFilter , riverToExclM) - 160usize] ; ["Offset of field: BiomeFilter::biomeToExcl"] [:: std :: mem :: offset_of ! (BiomeFilter , biomeToExcl) - 168usize] ; ["Offset of field: BiomeFilter::biomeToExclM"] [:: std :: mem :: offset_of ! (BiomeFilter , biomeToExclM) - 176usize] ; ["Offset of field: BiomeFilter::biomeToFind"] [:: std :: mem :: offset_of ! (BiomeFilter , biomeToFind) - 184usize] ; ["Offset of field: BiomeFilter::biomeToFindM"] [:: std :: mem :: offset_of ! (BiomeFilter , biomeToFindM) - 192usize] ; ["Offset of field: BiomeFilter::biomeToPick"] [:: std :: mem :: offset_of ! (BiomeFilter , biomeToPick) - 200usize] ; ["Offset of field: BiomeFilter::biomeToPickM"] [:: std :: mem :: offset_of ! (BiomeFilter , biomeToPickM) - 208usize] ; } ; unsafe extern "C" { pub fn getStructureConfig (structureType : :: std :: os :: raw :: c_int , mc : :: std :: os :: raw :: c_int , sconf : * mut StructureConfig) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getStructurePos (structureType : :: std :: os :: raw :: c_int , mc : :: std :: os :: raw :: c_int , seed : u64 , regX : :: std :: os :: raw :: c_int , regZ : :: std :: os :: raw :: c_int , pos : * mut Pos) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getMineshafts (mc : :: std :: os :: raw :: c_int , seed : u64 , chunkX : :: std :: os :: raw :: c_int , chunkZ : :: std :: os :: raw :: c_int , chunkW : :: std :: os :: raw :: c_int , chunkH : :: std :: os :: raw :: c_int , out : * mut Pos , nout : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getEndIslands (islands : * mut EndIsland , mc : :: std :: os :: raw :: c_int , seed : u64 , chunkX : :: std :: os :: raw :: c_int , chunkZ : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapEndIslandHeight (y : * mut f32 , en : * const EndNoise , seed : u64 , x : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , w : :: std :: os :: raw :: c_int , h : :: std :: os :: raw :: c_int , scale : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn isEndChunkEmpty (en : * const EndNoise , sn : * const SurfaceNoise , seed : u64 , chunkX : :: std :: os :: raw :: c_int , chunkZ : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn initFirstStronghold (sh : * mut StrongholdIter , mc : :: std :: os :: raw :: c_int , s48 : u64) -> Pos ; } unsafe extern "C" { pub fn nextStronghold (sh : * mut StrongholdIter , g : * const Generator) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn estimateSpawn (g : * const Generator , rng : * mut u64) -> Pos ; } unsafe extern "C" { pub fn getSpawn (g : * const Generator) -> Pos ; } unsafe extern "C" { pub fn locateBiome (g : * const Generator , x : :: std :: os :: raw :: c_int , y : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , radius : :: std :: os :: raw :: c_int , validB : u64 , validM : u64 , rng : * mut u64 , passes : * mut :: std :: os :: raw :: c_int) -> Pos ; } unsafe extern "C" { pub fn isViableStructurePos (structType : :: std :: os :: raw :: c_int , g : * mut Generator , blockX : :: std :: os :: raw :: c_int , blockZ : :: std :: os :: raw :: c_int , flags : u32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn isViableFeatureBiome (mc : :: std :: os :: raw :: c_int , structureType : :: std :: os :: raw :: c_int , biomeID : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn isViableStructureTerrain (structType : :: std :: os :: raw :: c_int , g : * mut Generator , blockX : :: std :: os :: raw :: c_int , blockZ : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn isViableEndCityTerrain (g : * const Generator , sn : * const SurfaceNoise , blockX : :: std :: os :: raw :: c_int , blockZ : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getVariant (sv : * mut StructureVariant , structType : :: std :: os :: raw :: c_int , mc : :: std :: os :: raw :: c_int , seed : u64 , blockX : :: std :: os :: raw :: c_int , blockZ : :: std :: os :: raw :: c_int , biomeID : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getEndCityPieces (pieces : * mut Piece , seed : u64 , chunkX : :: std :: os :: raw :: c_int , chunkZ : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } pub const BASE_FLOOR : _bindgen_ty_6 = _bindgen_ty_6 (0) ; pub const BASE_ROOF : _bindgen_ty_6 = _bindgen_ty_6 (1) ; pub const BRIDGE_END : _bindgen_ty_6 = _bindgen_ty_6 (2) ; pub const BRIDGE_GENTLE_STAIRS : _bindgen_ty_6 = _bindgen_ty_6 (3) ; pub const BRIDGE_PIECE : _bindgen_ty_6 = _bindgen_ty_6 (4) ; pub const BRIDGE_STEEP_STAIRS : _bindgen_ty_6 = _bindgen_ty_6 (5) ; pub const FAT_TOWER_BASE : _bindgen_ty_6 = _bindgen_ty_6 (6) ; pub const FAT_TOWER_MIDDLE : _bindgen_ty_6 = _bindgen_ty_6 (7) ; pub const FAT_TOWER_TOP : _bindgen_ty_6 = _bindgen_ty_6 (8) ; pub const SECOND_FLOOR_1 : _bindgen_ty_6 = _bindgen_ty_6 (9) ; pub const SECOND_FLOOR_2 : _bindgen_ty_6 = _bindgen_ty_6 (10) ; pub const SECOND_ROOF : _bindgen_ty_6 = _bindgen_ty_6 (11) ; pub const END_SHIP : _bindgen_ty_6 = _bindgen_ty_6 (12) ; pub const THIRD_FLOOR_1 : _bindgen_ty_6 = _bindgen_ty_6 (13) ; pub const THIRD_FLOOR_2 : _bindgen_ty_6 = _bindgen_ty_6 (14) ; pub const THIRD_ROOF : _bindgen_ty_6 = _bindgen_ty_6 (15) ; pub const TOWER_BASE : _bindgen_ty_6 = _bindgen_ty_6 (16) ; pub const TOWER_FLOOR : _bindgen_ty_6 = _bindgen_ty_6 (17) ; pub const TOWER_PIECE : _bindgen_ty_6 = _bindgen_ty_6 (18) ; pub const TOWER_TOP : _bindgen_ty_6 = _bindgen_ty_6 (19) ; pub const END_CITY_PIECES_MAX : _bindgen_ty_6 = _bindgen_ty_6 (421) ; # [repr (transparent)] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct _bindgen_ty_6 (pub :: std :: os :: raw :: c_uint) ; unsafe extern "C" { pub fn getFortressPieces (list : * mut Piece , n : :: std :: os :: raw :: c_int , mc : :: std :: os :: raw :: c_int , seed : u64 , chunkX : :: std :: os :: raw :: c_int , chunkZ : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } pub const FORTRESS_START : _bindgen_ty_7 = _bindgen_ty_7 (0) ; pub const BRIDGE_STRAIGHT : _bindgen_ty_7 = _bindgen_ty_7 (1) ; pub const BRIDGE_CROSSING : _bindgen_ty_7 = _bindgen_ty_7 (2) ; pub const BRIDGE_FORTIFIED_CROSSING : _bindgen_ty_7 = _bindgen_ty_7 (3) ; pub const BRIDGE_STAIRS : _bindgen_ty_7 = _bindgen_ty_7 (4) ; pub const BRIDGE_SPAWNER : _bindgen_ty_7 = _bindgen_ty_7 (5) ; pub const BRIDGE_CORRIDOR_ENTRANCE : _bindgen_ty_7 = _bindgen_ty_7 (6) ; pub const CORRIDOR_STRAIGHT : _bindgen_ty_7 = _bindgen_ty_7 (7) ; pub const CORRIDOR_CROSSING : _bindgen_ty_7 = _bindgen_ty_7 (8) ; pub const CORRIDOR_TURN_RIGHT : _bindgen_ty_7 = _bindgen_ty_7 (9) ; pub const CORRIDOR_TURN_LEFT : _bindgen_ty_7 = _bindgen_ty_7 (10) ; pub const CORRIDOR_STAIRS : _bindgen_ty_7 = _bindgen_ty_7 (11) ; pub const CORRIDOR_T_CROSSING : _bindgen_ty_7 = _bindgen_ty_7 (12) ; pub const CORRIDOR_NETHER_WART : _bindgen_ty_7 = _bindgen_ty_7 (13) ; pub const FORTRESS_END : _bindgen_ty_7 = _bindgen_ty_7 (14) ; pub const PIECE_COUNT : _bindgen_ty_7 = _bindgen_ty_7 (15) ; # [repr (transparent)] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct _bindgen_ty_7 (pub :: std :: os :: raw :: c_uint) ; unsafe extern "C" { pub fn getFixedEndGateways (mc : :: std :: os :: raw :: c_int , seed : u64 , src : * mut Pos) ; } unsafe extern "C" { pub fn getLinkedGatewayChunk (en : * const EndNoise , sn : * const SurfaceNoise , seed : u64 , src : Pos , dst : * mut Pos) -> Pos ; } unsafe extern "C" { pub fn getLinkedGatewayPos (en : * const EndNoise , sn : * const SurfaceNoise , seed : u64 , src : Pos) -> Pos ; } pub const HouseSmall : _bindgen_ty_8 = _bindgen_ty_8 (0) ; pub const Church : _bindgen_ty_8 = _bindgen_ty_8 (1) ; pub const Library : _bindgen_ty_8 = _bindgen_ty_8 (2) ; pub const WoodHut : _bindgen_ty_8 = _bindgen_ty_8 (3) ; pub const Butcher : _bindgen_ty_8 = _bindgen_ty_8 (4) ; pub const FarmLarge : _bindgen_ty_8 = _bindgen_ty_8 (5) ; pub const FarmSmall : _bindgen_ty_8 = _bindgen_ty_8 (6) ; pub const Blacksmith : _bindgen_ty_8 = _bindgen_ty_8 (7) ; pub const HouseLarge : _bindgen_ty_8 = _bindgen_ty_8 (8) ; pub const HOUSE_NUM : _bindgen_ty_8 = _bindgen_ty_8 (9) ; # [repr (transparent)] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct _bindgen_ty_8 (pub :: std :: os :: raw :: c_uint) ; unsafe extern "C" { pub fn getHouseList (houses : * mut :: std :: os :: raw :: c_int , seed : u64 , chunkX : :: std :: os :: raw :: c_int , chunkZ : :: std :: os :: raw :: c_int) -> u64 ; } unsafe extern "C" { pub fn monteCarloBiomes (g : * mut Generator , r : Range , rng : * mut u64 , coverage : f64 , confidence : f64 , eval : :: std :: option :: Option < unsafe extern "C" fn (g : * mut Generator , scale : :: std :: os :: raw :: c_int , x : :: std :: os :: raw :: c_int , y : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , data : * mut :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int > , data : * mut :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn setupBiomeFilter (bf : * mut BiomeFilter , mc : :: std :: os :: raw :: c_int , flags : u32 , required : * const :: std :: os :: raw :: c_int , requiredLen : :: std :: os :: raw :: c_int , excluded : * const :: std :: os :: raw :: c_int , excludedLen : :: std :: os :: raw :: c_int , matchany : * const :: std :: os :: raw :: c_int , matchanyLen : :: std :: os :: raw :: c_int) ; } unsafe extern "C" { pub fn checkForBiomes (g : * mut Generator , cache : * mut :: std :: os :: raw :: c_int , r : Range , dim : :: std :: os :: raw :: c_int , seed : u64 , filter : * const BiomeFilter , stop : * mut :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn checkForBiomesAtLayer (ls : * mut LayerStack , entry : * mut Layer , cache : * mut :: std :: os :: raw :: c_int , seed : u64 , x : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , w : :: std :: os :: raw :: c_uint , h : :: std :: os :: raw :: c_uint , filter : * const BiomeFilter) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn checkForTemps (g : * mut LayerStack , seed : u64 , x : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , w : :: std :: os :: raw :: c_int , h : :: std :: os :: raw :: c_int , tc : * const :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getBiomeCenters (pos : * mut Pos , siz : * mut :: std :: os :: raw :: c_int , nmax : :: std :: os :: raw :: c_int , g : * mut Generator , r : Range , match_ : :: std :: os :: raw :: c_int , minsiz : :: std :: os :: raw :: c_int , tol : :: std :: os :: raw :: c_int , stop : * mut :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn canBiomeGenerate (layerId : :: std :: os :: raw :: c_int , mc : :: std :: os :: raw :: c_int , flags : u32 , biomeID : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn genPotential (mL : * mut u64 , mM : * mut u64 , layerId : :: std :: os :: raw :: c_int , mc : :: std :: os :: raw :: c_int , flags : u32 , biomeID : :: std :: os :: raw :: c_int) ; } unsafe extern "C" { pub fn getAvailableBiomes (mL : * mut u64 , mM : * mut u64 , layerId : :: std :: os :: raw :: c_int , mc : :: std :: os :: raw :: c_int , flags : u32) ; } unsafe extern "C" { # [doc = " Runs a gradient descent towards the minimum of the noise parameter times a\n given factor. The algorithm is restricted to the area (x,z,w,h) and starts\n at (i0,j0) relative to (x,z). The iteration is terminated when either\n 1) a fix point has been reached,\n 2) maxiter iterations have been completed,\n 3) or the sampling position has moved more than maxrad away from (i0,j0).\n\n Alpha is an optimization argument that is used to determine the length of\n large steps based on the current gradient.\n\n Optionally, the iteration can also call the custom function:\n  func(data, x, z, factor*para_noise(x,z));\n\n The return value is the minimum value reached."] pub fn getParaDescent (para : * const DoublePerlinNoise , factor : f64 , x : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , w : :: std :: os :: raw :: c_int , h : :: std :: os :: raw :: c_int , i0 : :: std :: os :: raw :: c_int , j0 : :: std :: os :: raw :: c_int , maxrad : :: std :: os :: raw :: c_int , maxiter : :: std :: os :: raw :: c_int , alpha : f64 , data : * mut :: std :: os :: raw :: c_void , func : :: std :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: std :: os :: raw :: c_void , arg2 : :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : f64) -> :: std :: os :: raw :: c_int >) -> f64 ; } unsafe extern "C" { # [doc = " Determines the value range of a climate noise parameter over the given area.\n The sampling has scale 1:4 and sampling shift is not considered, so biomes\n could potentially *leak* in at the boarders.\n An optional function:\n  func(data, x, z, climate_noise(x,z))\n is called in each gradient descent iteration. If this function returns\n non-zero the search is aborted, the results are undefined and a non-zero\n error is returned.\n\n The results are written to pmin and pmax (which would be cast to an integer\n during boime mapping). Nullable, to look for minima and maxima separately."] pub fn getParaRange (para : * const DoublePerlinNoise , pmin : * mut f64 , pmax : * mut f64 , x : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , w : :: std :: os :: raw :: c_int , h : :: std :: os :: raw :: c_int , data : * mut :: std :: os :: raw :: c_void , func : :: std :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: std :: os :: raw :: c_void , arg2 : :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : f64) -> :: std :: os :: raw :: c_int >) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " Gets the min/max parameter values within which a biome change can occur."] pub fn getBiomeParaExtremes (mc : :: std :: os :: raw :: c_int) -> * const :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " Gets the min/max possible noise parameter values at which the given biome\n can generate. The values are in min/max pairs in order of:\n temperature, humidity, continentalness, erosion, depth, weirdness."] pub fn getBiomeParaLimits (mc : :: std :: os :: raw :: c_int , id : :: std :: os :: raw :: c_int) -> * const :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " Determines which biomes are able to generate given a set of climate\n parameter limits. Possible biomes are marked non-zero in the 'ids'."] pub fn getPossibleBiomesForLimits (ids : * mut :: std :: os :: raw :: c_char , mc : :: std :: os :: raw :: c_int , limits : * mut [:: std :: os :: raw :: c_int ; 2usize]) ; } unsafe extern "C" { # [doc = " Find the largest rectangle in ids[sx][sz] which consists only of 'match'.\n The limit corners are written to p0 and p1. Returned is the rectangle's area."] pub fn getLargestRec (match_ : :: std :: os :: raw :: c_int , ids : * const :: std :: os :: raw :: c_int , sx : :: std :: os :: raw :: c_int , sz : :: std :: os :: raw :: c_int , p0 : * mut Pos , p1 : * mut Pos) -> :: std :: os :: raw :: c_int ; } pub type __gnuc_va_list = __builtin_va_list ; # [repr (C)] # [derive (Copy , Clone)] pub struct __mbstate_t { pub __count : :: std :: os :: raw :: c_int , pub __value : __mbstate_t__bindgen_ty_1 , } # [repr (C)] # [derive (Copy , Clone)] pub union __mbstate_t__bindgen_ty_1 { pub __wch : :: std :: os :: raw :: c_uint , pub __wchb : [:: std :: os :: raw :: c_char ; 4usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __mbstate_t__bindgen_ty_1"] [:: std :: mem :: size_of :: < __mbstate_t__bindgen_ty_1 > () - 4usize] ; ["Alignment of __mbstate_t__bindgen_ty_1"] [:: std :: mem :: align_of :: < __mbstate_t__bindgen_ty_1 > () - 4usize] ; ["Offset of field: __mbstate_t__bindgen_ty_1::__wch"] [:: std :: mem :: offset_of ! (__mbstate_t__bindgen_ty_1 , __wch) - 0usize] ; ["Offset of field: __mbstate_t__bindgen_ty_1::__wchb"] [:: std :: mem :: offset_of ! (__mbstate_t__bindgen_ty_1 , __wchb) - 0usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __mbstate_t"] [:: std :: mem :: size_of :: < __mbstate_t > () - 8usize] ; ["Alignment of __mbstate_t"] [:: std :: mem :: align_of :: < __mbstate_t > () - 4usize] ; ["Offset of field: __mbstate_t::__count"] [:: std :: mem :: offset_of ! (__mbstate_t , __count) - 0usize] ; ["Offset of field: __mbstate_t::__value"] [:: std :: mem :: offset_of ! (__mbstate_t , __value) - 4usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub struct _G_fpos_t { pub __pos : __off_t , pub __state : __mbstate_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of _G_fpos_t"] [:: std :: mem :: size_of :: < _G_fpos_t > () - 16usize] ; ["Alignment of _G_fpos_t"] [:: std :: mem :: align_of :: < _G_fpos_t > () - 8usize] ; ["Offset of field: _G_fpos_t::__pos"] [:: std :: mem :: offset_of ! (_G_fpos_t , __pos) - 0usize] ; ["Offset of field: _G_fpos_t::__state"] [:: std :: mem :: offset_of ! (_G_fpos_t , __state) - 8usize] ; } ; pub type __fpos_t = _G_fpos_t ; # [repr (C)] # [derive (Copy , Clone)] pub struct _G_fpos64_t { pub __pos : __off64_t , pub __state : __mbstate_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of _G_fpos64_t"] [:: std :: mem :: size_of :: < _G_fpos64_t > () - 16usize] ; ["Alignment of _G_fpos64_t"] [:: std :: mem :: align_of :: < _G_fpos64_t > () - 8usize] ; ["Offset of field: _G_fpos64_t::__pos"] [:: std :: mem :: offset_of ! (_G_fpos64_t , __pos) - 0usize] ; ["Offset of field: _G_fpos64_t::__state"] [:: std :: mem :: offset_of ! (_G_fpos64_t , __state) - 8usize] ; } ; pub type __fpos64_t = _G_fpos64_t ; pub type __FILE = _IO_FILE ; pub type FILE = _IO_FILE ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_marker { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_codecvt { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_wide_data { _unused : [u8 ; 0] , } pub type _IO_lock_t = :: std :: os :: raw :: c_void ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_FILE { pub _flags : :: std :: os :: raw :: c_int , pub _IO_read_ptr : * mut :: std :: os :: raw :: c_char , pub _IO_read_end : * mut :: std :: os :: raw :: c_char , pub _IO_read_base : * mut :: std :: os :: raw :: c_char , pub _IO_write_base : * mut :: std :: os :: raw :: c_char , pub _IO_write_ptr : * mut :: std :: os :: raw :: c_char , pub _IO_write_end : * mut :: std :: os :: raw :: c_char , pub _IO_buf_base : * mut :: std :: os :: raw :: c_char , pub _IO_buf_end : * mut :: std :: os :: raw :: c_char , pub _IO_save_base : * mut :: std :: os :: raw :: c_char , pub _IO_backup_base : * mut :: std :: os :: raw :: c_char , pub _IO_save_end : * mut :: std :: os :: raw :: c_char , pub _markers : * mut _IO_marker , pub _chain : * mut _IO_FILE , pub _fileno : :: std :: os :: raw :: c_int , pub _bitfield_align_1 : [u32 ; 0] , pub _bitfield_1 : __BindgenBitfieldUnit < [u8 ; 3usize] > , pub _short_backupbuf : [:: std :: os :: raw :: c_char ; 1usize] , pub _old_offset : __off_t , pub _cur_column : :: std :: os :: raw :: c_ushort , pub _vtable_offset : :: std :: os :: raw :: c_schar , pub _shortbuf : [:: std :: os :: raw :: c_char ; 1usize] , pub _lock : * mut _IO_lock_t , pub _offset : __off64_t , pub _codecvt : * mut _IO_codecvt , pub _wide_data : * mut _IO_wide_data , pub _freeres_list : * mut _IO_FILE , pub _freeres_buf : * mut :: std :: os :: raw :: c_void , pub _prevchain : * mut * mut _IO_FILE , pub _mode : :: std :: os :: raw :: c_int , pub _unused3 : :: std :: os :: raw :: c_int , pub _total_written : __uint64_t , pub _unused2 : [:: std :: os :: raw :: c_char ; 8usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of _IO_FILE"] [:: std :: mem :: size_of :: < _IO_FILE > () - 216usize] ; ["Alignment of _IO_FILE"] [:: std :: mem :: align_of :: < _IO_FILE > () - 8usize] ; ["Offset of field: _IO_FILE::_flags"] [:: std :: mem :: offset_of ! (_IO_FILE , _flags) - 0usize] ; ["Offset of field: _IO_FILE::_IO_read_ptr"] [:: std :: mem :: offset_of ! (_IO_FILE , _IO_read_ptr) - 8usize] ; ["Offset of field: _IO_FILE::_IO_read_end"] [:: std :: mem :: offset_of ! (_IO_FILE , _IO_read_end) - 16usize] ; ["Offset of field: _IO_FILE::_IO_read_base"] [:: std :: mem :: offset_of ! (_IO_FILE , _IO_read_base) - 24usize] ; ["Offset of field: _IO_FILE::_IO_write_base"] [:: std :: mem :: offset_of ! (_IO_FILE , _IO_write_base) - 32usize] ; ["Offset of field: _IO_FILE::_IO_write_ptr"] [:: std :: mem :: offset_of ! (_IO_FILE , _IO_write_ptr) - 40usize] ; ["Offset of field: _IO_FILE::_IO_write_end"] [:: std :: mem :: offset_of ! (_IO_FILE , _IO_write_end) - 48usize] ; ["Offset of field: _IO_FILE::_IO_buf_base"] [:: std :: mem :: offset_of ! (_IO_FILE , _IO_buf_base) - 56usize] ; ["Offset of field: _IO_FILE::_IO_buf_end"] [:: std :: mem :: offset_of ! (_IO_FILE , _IO_buf_end) - 64usize] ; ["Offset of field: _IO_FILE::_IO_save_base"] [:: std :: mem :: offset_of ! (_IO_FILE , _IO_save_base) - 72usize] ; ["Offset of field: _IO_FILE::_IO_backup_base"] [:: std :: mem :: offset_of ! (_IO_FILE , _IO_backup_base) - 80usize] ; ["Offset of field: _IO_FILE::_IO_save_end"] [:: std :: mem :: offset_of ! (_IO_FILE , _IO_save_end) - 88usize] ; ["Offset of field: _IO_FILE::_markers"] [:: std :: mem :: offset_of ! (_IO_FILE , _markers) - 96usize] ; ["Offset of field: _IO_FILE::_chain"] [:: std :: mem :: offset_of ! (_IO_FILE , _chain) - 104usize] ; ["Offset of field: _IO_FILE::_fileno"] [:: std :: mem :: offset_of ! (_IO_FILE , _fileno) - 112usize] ; ["Offset of field: _IO_FILE::_short_backupbuf"] [:: std :: mem :: offset_of ! (_IO_FILE , _short_backupbuf) - 119usize] ; ["Offset of field: _IO_FILE::_old_offset"] [:: std :: mem :: offset_of ! (_IO_FILE , _old_offset) - 120usize] ; ["Offset of field: _IO_FILE::_cur_column"] [:: std :: mem :: offset_of ! (_IO_FILE , _cur_column) - 128usize] ; ["Offset of field: _IO_FILE::_vtable_offset"] [:: std :: mem :: offset_of ! (_IO_FILE , _vtable_offset) - 130usize] ; ["Offset of field: _IO_FILE::_shortbuf"] [:: std :: mem :: offset_of ! (_IO_FILE , _shortbuf) - 131usize] ; ["Offset of field: _IO_FILE::_lock"] [:: std :: mem :: offset_of ! (_IO_FILE , _lock) - 136usize] ; ["Offset of field: _IO_FILE::_offset"] [:: std :: mem :: offset_of ! (_IO_FILE , _offset) - 144usize] ; ["Offset of field: _IO_FILE::_codecvt"] [:: std :: mem :: offset_of ! (_IO_FILE , _codecvt) - 152usize] ; ["Offset of field: _IO_FILE::_wide_data"] [:: std :: mem :: offset_of ! (_IO_FILE , _wide_data) - 160usize] ; ["Offset of field: _IO_FILE::_freeres_list"] [:: std :: mem :: offset_of ! (_IO_FILE , _freeres_list) - 168usize] ; ["Offset of field: _IO_FILE::_freeres_buf"] [:: std :: mem :: offset_of ! (_IO_FILE , _freeres_buf) - 176usize] ; ["Offset of field: _IO_FILE::_prevchain"] [:: std :: mem :: offset_of ! (_IO_FILE , _prevchain) - 184usize] ; ["Offset of field: _IO_FILE::_mode"] [:: std :: mem :: offset_of ! (_IO_FILE , _mode) - 192usize] ; ["Offset of field: _IO_FILE::_unused3"] [:: std :: mem :: offset_of ! (_IO_FILE , _unused3) - 196usize] ; ["Offset of field: _IO_FILE::_total_written"] [:: std :: mem :: offset_of ! (_IO_FILE , _total_written) - 200usize] ; ["Offset of field: _IO_FILE::_unused2"] [:: std :: mem :: offset_of ! (_IO_FILE , _unused2) - 208usize] ; } ; impl _IO_FILE { # [inline] pub fn _flags2 (& self) -> :: std :: os :: raw :: c_int { unsafe { :: std :: mem :: transmute (self . _bitfield_1 . get (0usize , 24u8) as u32) } } # [inline] pub fn set__flags2 (& mut self , val : :: std :: os :: raw :: c_int) { unsafe { let val : u32 = :: std :: mem :: transmute (val) ; self . _bitfield_1 . set (0usize , 24u8 , val as u64) } } # [inline] pub unsafe fn _flags2_raw (this : * const Self) -> :: std :: os :: raw :: c_int { unsafe { :: std :: mem :: transmute (< __BindgenBitfieldUnit < [u8 ; 3usize] > > :: raw_get (:: std :: ptr :: addr_of ! ((* this) . _bitfield_1) , 0usize , 24u8 ,) as u32) } } # [inline] pub unsafe fn set__flags2_raw (this : * mut Self , val : :: std :: os :: raw :: c_int) { unsafe { let val : u32 = :: std :: mem :: transmute (val) ; < __BindgenBitfieldUnit < [u8 ; 3usize] > > :: raw_set (:: std :: ptr :: addr_of_mut ! ((* this) . _bitfield_1) , 0usize , 24u8 , val as u64 ,) } } # [inline] pub fn new_bitfield_1 (_flags2 : :: std :: os :: raw :: c_int) -> __BindgenBitfieldUnit < [u8 ; 3usize] > { let mut __bindgen_bitfield_unit : __BindgenBitfieldUnit < [u8 ; 3usize] > = Default :: default () ; __bindgen_bitfield_unit . set (0usize , 24u8 , { let _flags2 : u32 = unsafe { :: std :: mem :: transmute (_flags2) } ; _flags2 as u64 }) ; __bindgen_bitfield_unit } } pub type cookie_read_function_t = :: std :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: std :: os :: raw :: c_void , __buf : * mut :: std :: os :: raw :: c_char , __nbytes : usize) -> __ssize_t > ; pub type cookie_write_function_t = :: std :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: std :: os :: raw :: c_void , __buf : * const :: std :: os :: raw :: c_char , __nbytes : usize) -> __ssize_t > ; pub type cookie_seek_function_t = :: std :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: std :: os :: raw :: c_void , __pos : * mut __off64_t , __w : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int > ; pub type cookie_close_function_t = :: std :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_cookie_io_functions_t { pub read : cookie_read_function_t , pub write : cookie_write_function_t , pub seek : cookie_seek_function_t , pub close : cookie_close_function_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of _IO_cookie_io_functions_t"] [:: std :: mem :: size_of :: < _IO_cookie_io_functions_t > () - 32usize] ; ["Alignment of _IO_cookie_io_functions_t"] [:: std :: mem :: align_of :: < _IO_cookie_io_functions_t > () - 8usize] ; ["Offset of field: _IO_cookie_io_functions_t::read"] [:: std :: mem :: offset_of ! (_IO_cookie_io_functions_t , read) - 0usize] ; ["Offset of field: _IO_cookie_io_functions_t::write"] [:: std :: mem :: offset_of ! (_IO_cookie_io_functions_t , write) - 8usize] ; ["Offset of field: _IO_cookie_io_functions_t::seek"] [:: std :: mem :: offset_of ! (_IO_cookie_io_functions_t , seek) - 16usize] ; ["Offset of field: _IO_cookie_io_functions_t::close"] [:: std :: mem :: offset_of ! (_IO_cookie_io_functions_t , close) - 24usize] ; } ; pub type cookie_io_functions_t = _IO_cookie_io_functions_t ; pub type va_list = __gnuc_va_list ; pub type fpos_t = __fpos_t ; unsafe extern "C" { pub static mut stdin : * mut FILE ; } unsafe extern "C" { pub static mut stdout : * mut FILE ; } unsafe extern "C" { pub static mut stderr : * mut FILE ; } unsafe extern "C" { pub fn remove (__filename : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn rename (__old : * const :: std :: os :: raw :: c_char , __new : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn renameat (__oldfd : :: std :: os :: raw :: c_int , __old : * const :: std :: os :: raw :: c_char , __newfd : :: std :: os :: raw :: c_int , __new : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn fclose (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn tmpfile () -> * mut FILE ; } unsafe extern "C" { pub fn tmpnam (arg1 : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn tmpnam_r (__s : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn tempnam (__dir : * const :: std :: os :: raw :: c_char , __pfx : * const :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn fflush (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn fflush_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn fopen (__filename : * const :: std :: os :: raw :: c_char , __modes : * const :: std :: os :: raw :: c_char) -> * mut FILE ; } unsafe extern "C" { pub fn freopen (__filename : * const :: std :: os :: raw :: c_char , __modes : * const :: std :: os :: raw :: c_char , __stream : * mut FILE) -> * mut FILE ; } unsafe extern "C" { pub fn fdopen (__fd : :: std :: os :: raw :: c_int , __modes : * const :: std :: os :: raw :: c_char) -> * mut FILE ; } unsafe extern "C" { pub fn fopencookie (__magic_cookie : * mut :: std :: os :: raw :: c_void , __modes : * const :: std :: os :: raw :: c_char , __io_funcs : cookie_io_functions_t) -> * mut FILE ; } unsafe extern "C" { pub fn fmemopen (__s : * mut :: std :: os :: raw :: c_void , __len : usize , __modes : * const :: std :: os :: raw :: c_char) -> * mut FILE ; } unsafe extern "C" { pub fn open_memstream (__bufloc : * mut * mut :: std :: os :: raw :: c_char , __sizeloc : * mut usize) -> * mut FILE ; } unsafe extern "C" { pub fn setbuf (__stream : * mut FILE , __buf : * mut :: std :: os :: raw :: c_char) ; } unsafe extern "C" { pub fn setvbuf (__stream : * mut FILE , __buf : * mut :: std :: os :: raw :: c_char , __modes : :: std :: os :: raw :: c_int , __n : usize) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn setbuffer (__stream : * mut FILE , __buf : * mut :: std :: os :: raw :: c_char , __size : usize) ; } unsafe extern "C" { pub fn setlinebuf (__stream : * mut FILE) ; } unsafe extern "C" { pub fn fprintf (__stream : * mut FILE , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn printf (__format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn sprintf (__s : * mut :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn vfprintf (__s : * mut FILE , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn vprintf (__format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn vsprintf (__s : * mut :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn snprintf (__s : * mut :: std :: os :: raw :: c_char , __maxlen : :: std :: os :: raw :: c_ulong , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn vsnprintf (__s : * mut :: std :: os :: raw :: c_char , __maxlen : :: std :: os :: raw :: c_ulong , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn vasprintf (__ptr : * mut * mut :: std :: os :: raw :: c_char , __f : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __asprintf (__ptr : * mut * mut :: std :: os :: raw :: c_char , __fmt : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn asprintf (__ptr : * mut * mut :: std :: os :: raw :: c_char , __fmt : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn vdprintf (__fd : :: std :: os :: raw :: c_int , __fmt : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn dprintf (__fd : :: std :: os :: raw :: c_int , __fmt : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn fscanf (__stream : * mut FILE , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn scanf (__format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn sscanf (__s : * const :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [link_name = "\u{1}__isoc99_fscanf"] pub fn fscanf1 (__stream : * mut FILE , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [link_name = "\u{1}__isoc99_scanf"] pub fn scanf1 (__format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [link_name = "\u{1}__isoc99_sscanf"] pub fn sscanf1 (__s : * const :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn vfscanf (__s : * mut FILE , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn vscanf (__format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn vsscanf (__s : * const :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [link_name = "\u{1}__isoc99_vfscanf"] pub fn vfscanf1 (__s : * mut FILE , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [link_name = "\u{1}__isoc99_vscanf"] pub fn vscanf1 (__format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [link_name = "\u{1}__isoc99_vsscanf"] pub fn vsscanf1 (__s : * const :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn fgetc (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getc (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getchar () -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getc_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getchar_unlocked () -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn fgetc_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn fputc (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn putc (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn putchar (__c : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn fputc_unlocked (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn putc_unlocked (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn putchar_unlocked (__c : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getw (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn putw (__w : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn fgets (__s : * mut :: std :: os :: raw :: c_char , __n : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn __getdelim (__lineptr : * mut * mut :: std :: os :: raw :: c_char , __n : * mut usize , __delimiter : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> __ssize_t ; } unsafe extern "C" { pub fn getdelim (__lineptr : * mut * mut :: std :: os :: raw :: c_char , __n : * mut usize , __delimiter : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> __ssize_t ; } unsafe extern "C" { pub fn getline (__lineptr : * mut * mut :: std :: os :: raw :: c_char , __n : * mut usize , __stream : * mut FILE) -> __ssize_t ; } unsafe extern "C" { pub fn fputs (__s : * const :: std :: os :: raw :: c_char , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn puts (__s : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn ungetc (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn fread (__ptr : * mut :: std :: os :: raw :: c_void , __size : :: std :: os :: raw :: c_ulong , __n : :: std :: os :: raw :: c_ulong , __stream : * mut FILE) -> :: std :: os :: raw :: c_ulong ; } unsafe extern "C" { pub fn fwrite (__ptr : * const :: std :: os :: raw :: c_void , __size : :: std :: os :: raw :: c_ulong , __n : :: std :: os :: raw :: c_ulong , __s : * mut FILE) -> :: std :: os :: raw :: c_ulong ; } unsafe extern "C" { pub fn fread_unlocked (__ptr : * mut :: std :: os :: raw :: c_void , __size : usize , __n : usize , __stream : * mut FILE) -> usize ; } unsafe extern "C" { pub fn fwrite_unlocked (__ptr : * const :: std :: os :: raw :: c_void , __size : usize , __n : usize , __stream : * mut FILE) -> usize ; } unsafe extern "C" { pub fn fseek (__stream : * mut FILE , __off : :: std :: os :: raw :: c_long , __whence : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn ftell (__stream : * mut FILE) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn rewind (__stream : * mut FILE) ; } unsafe extern "C" { pub fn fseeko (__stream : * mut FILE , __off : __off_t , __whence : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn ftello (__stream : * mut FILE) -> __off_t ; } unsafe extern "C" { pub fn fgetpos (__stream : * mut FILE , __pos : * mut fpos_t) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn fsetpos (__stream : * mut FILE , __pos : * const fpos_t) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn clearerr (__stream : * mut FILE) ; } unsafe extern "C" { pub fn feof (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn ferror (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn clearerr_unlocked (__stream : * mut FILE) ; } unsafe extern "C" { pub fn feof_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn ferror_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn perror (__s : * const :: std :: os :: raw :: c_char) ; } unsafe extern "C" { pub fn fileno (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn fileno_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn pclose (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn popen (__command : * const :: std :: os :: raw :: c_char , __modes : * const :: std :: os :: raw :: c_char) -> * mut FILE ; } unsafe extern "C" { pub fn ctermid (__s : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn flockfile (__stream : * mut FILE) ; } unsafe extern "C" { pub fn ftrylockfile (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn funlockfile (__stream : * mut FILE) ; } unsafe extern "C" { pub fn __uflow (arg1 : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __overflow (arg1 : * mut FILE , arg2 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " Quad-Witch-Huts\n\n  For a quad-structure, we mainly care about relative positioning, so we can\n  get away with just checking the regions near the origin: (0,0),(0,1),(1,0)\n  and (1,1) and then move the structures to the desired position.\n\n  Futhermore, the PRNG that determines the chunk positions inside each region,\n  performs some modular arithmatic on the 48-bit numbers which causes some\n  restrictions on the lower bits when looking for near perfect structure\n  positions. This is difficult to prove, but can be used to reduce the number\n  of free bits to 28 which can be comfortably brute-forced to get the entire\n  set of quad-structure candidates. Each of the seeds found this way\n  describes entire set of possible quad-witch-huts (with degrees of freedom\n  for region-transposition, as well as the top 16-bit bits)."] pub static low20QuadIdeal : [u64 ; 4usize] ; } unsafe extern "C" { pub static low20QuadClassic : [u64 ; 5usize] ; } unsafe extern "C" { pub static low20QuadHutNormal : [u64 ; 11usize] ; } unsafe extern "C" { pub static low20QuadHutBarely : [u64 ; 29usize] ; } pub const CST_NONE : _bindgen_ty_9 = _bindgen_ty_9 (0) ; pub const CST_IDEAL : _bindgen_ty_9 = _bindgen_ty_9 (1) ; pub const CST_CLASSIC : _bindgen_ty_9 = _bindgen_ty_9 (2) ; pub const CST_NORMAL : _bindgen_ty_9 = _bindgen_ty_9 (3) ; pub const CST_BARELY : _bindgen_ty_9 = _bindgen_ty_9 (4) ; # [repr (transparent)] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct _bindgen_ty_9 (pub :: std :: os :: raw :: c_uint) ; unsafe extern "C" { pub fn getQuadHutCst (low20 : u64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn searchAll48 (seedbuf : * mut * mut u64 , buflen : * mut u64 , path : * const :: std :: os :: raw :: c_char , threads : :: std :: os :: raw :: c_int , lowBits : * const u64 , lowBitN : :: std :: os :: raw :: c_int , check : :: std :: option :: Option < unsafe extern "C" fn (s48 : u64 , data : * mut :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int > , data : * mut :: std :: os :: raw :: c_void , stop : * mut :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getOptimalAfk (p : * mut Pos , ax : :: std :: os :: raw :: c_int , ay : :: std :: os :: raw :: c_int , az : :: std :: os :: raw :: c_int , spcnt : * mut :: std :: os :: raw :: c_int) -> Pos ; } unsafe extern "C" { pub fn scanForQuads (sconf : StructureConfig , radius : :: std :: os :: raw :: c_int , s48 : u64 , lowBits : * const u64 , lowBitN : :: std :: os :: raw :: c_int , salt : u64 , x : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , w : :: std :: os :: raw :: c_int , h : :: std :: os :: raw :: c_int , qplist : * mut Pos , n : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn loadSavedSeeds (fnam : * const :: std :: os :: raw :: c_char , scnt : * mut u64) -> * mut u64 ; } unsafe extern "C" { # [doc = " convert between version enum and text"] pub fn mc2str (mc : :: std :: os :: raw :: c_int) -> * const :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn str2mc (s : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " get the resource id name for a biome (for versions 1.13+)"] pub fn biome2str (mc : :: std :: os :: raw :: c_int , id : :: std :: os :: raw :: c_int) -> * const :: std :: os :: raw :: c_char ; } unsafe extern "C" { # [doc = " get the resource id name for a structure"] pub fn struct2str (stype : :: std :: os :: raw :: c_int) -> * const :: std :: os :: raw :: c_char ; } unsafe extern "C" { # [doc = " initialize a biome colormap with some defaults"] pub fn initBiomeColors (biomeColors : * mut [:: std :: os :: raw :: c_uchar ; 3usize]) ; } unsafe extern "C" { pub fn initBiomeTypeColors (biomeColors : * mut [:: std :: os :: raw :: c_uchar ; 3usize]) ; } unsafe extern "C" { pub fn parseBiomeColors (biomeColors : * mut [:: std :: os :: raw :: c_uchar ; 3usize] , buf : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn biomesToImage (pixels : * mut :: std :: os :: raw :: c_uchar , biomeColors : * mut [:: std :: os :: raw :: c_uchar ; 3usize] , biomes : * const :: std :: os :: raw :: c_int , sx : :: std :: os :: raw :: c_uint , sy : :: std :: os :: raw :: c_uint , pixscale : :: std :: os :: raw :: c_uint , flip : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn savePPM (path : * const :: std :: os :: raw :: c_char , pixels : * const :: std :: os :: raw :: c_uchar , sx : :: std :: os :: raw :: c_uint , sy : :: std :: os :: raw :: c_uint) -> :: std :: os :: raw :: c_int ; } pub type __builtin_va_list = [__va_list_tag ; 1usize] ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __va_list_tag { pub gp_offset : :: std :: os :: raw :: c_uint , pub fp_offset : :: std :: os :: raw :: c_uint , pub overflow_arg_area : * mut :: std :: os :: raw :: c_void , pub reg_save_area : * mut :: std :: os :: raw :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __va_list_tag"] [:: std :: mem :: size_of :: < __va_list_tag > () - 24usize] ; ["Alignment of __va_list_tag"] [:: std :: mem :: align_of :: < __va_list_tag > () - 8usize] ; ["Offset of field: __va_list_tag::gp_offset"] [:: std :: mem :: offset_of ! (__va_list_tag , gp_offset) - 0usize] ; ["Offset of field: __va_list_tag::fp_offset"] [:: std :: mem :: offset_of ! (__va_list_tag , fp_offset) - 4usize] ; ["Offset of field: __va_list_tag::overflow_arg_area"] [:: std :: mem :: offset_of ! (__va_list_tag , overflow_arg_area) - 8usize] ; ["Offset of field: __va_list_tag::reg_save_area"] [:: std :: mem :: offset_of ! (__va_list_tag , reg_save_area) - 16usize] ; } ;
[INFO] [stdout] 3 + # [repr (C)] # [derive (Copy , Clone , Debug , Default , Eq , Hash , Ord , PartialEq , PartialOrd)] pub struct __BindgenBitfieldUnit < Storage > { storage : Storage , } impl < Storage > __BindgenBitfieldUnit < Storage > { # [inline] pub const fn new (storage : Storage) -> Self { Self { storage } } } impl < Storage > __BindgenBitfieldUnit < Storage > where Storage : AsRef < [u8] > + AsMut < [u8] >, { # [inline] fn extract_bit (byte : u8 , index : usize) -> bool { let bit_index = if cfg ! (target_endian = "big") { 7 - (index % 8) } else { index % 8 } ; let mask = 1 << bit_index ; byte & mask == mask } # [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] ; Self :: extract_bit (byte , index) } # [inline] pub unsafe fn raw_get_bit (this : * const Self , index : usize) -> bool { debug_assert ! (index / 8 < core :: mem :: size_of ::< Storage > ()) ; let byte_index = index / 8 ; let byte = * (core :: ptr :: addr_of ! ((* this) . storage) as * const u8) . offset (byte_index as isize) ; Self :: extract_bit (byte , index) } # [inline] fn change_bit (byte : u8 , index : usize , val : bool) -> u8 { let bit_index = if cfg ! (target_endian = "big") { 7 - (index % 8) } else { index % 8 } ; let mask = 1 << bit_index ; if val { byte | mask } else { byte & ! 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] ; * byte = Self :: change_bit (* byte , index , val) ; } # [inline] pub unsafe fn raw_set_bit (this : * mut Self , index : usize , val : bool) { debug_assert ! (index / 8 < core :: mem :: size_of ::< Storage > ()) ; let byte_index = index / 8 ; let byte = (core :: ptr :: addr_of_mut ! ((* this) . storage) as * mut u8) . offset (byte_index as isize) ; * byte = Self :: change_bit (* byte , index , val) ; } # [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) { let index = if cfg ! (target_endian = "big") { bit_width as usize - 1 - i } else { i } ; val |= 1 << index ; } } val } # [inline] pub unsafe fn raw_get (this : * const Self , bit_offset : usize , bit_width : u8 ,) -> u64 { debug_assert ! (bit_width <= 64) ; debug_assert ! (bit_offset / 8 < core :: mem :: size_of ::< Storage > ()) ; debug_assert ! ((bit_offset + (bit_width as usize)) / 8 <= core :: mem :: size_of ::< Storage > ()) ; let mut val = 0 ; for i in 0 .. (bit_width as usize) { if Self :: raw_get_bit (this , i + bit_offset) { let index = if cfg ! (target_endian = "big") { bit_width as usize - 1 - i } else { i } ; val |= 1 << index ; } } 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 ; let index = if cfg ! (target_endian = "big") { bit_width as usize - 1 - i } else { i } ; self . set_bit (index + bit_offset , val_bit_is_set) ; } } # [inline] pub unsafe fn raw_set (this : * mut Self , bit_offset : usize , bit_width : u8 , val : u64 ,) { debug_assert ! (bit_width <= 64) ; debug_assert ! (bit_offset / 8 < core :: mem :: size_of ::< Storage > ()) ; debug_assert ! ((bit_offset + (bit_width as usize)) / 8 <= core :: mem :: size_of ::< Storage > ()) ; for i in 0 .. (bit_width as usize) { let mask = 1 << i ; let val_bit_is_set = val & mask == mask ; let index = if cfg ! (target_endian = "big") { bit_width as usize - 1 - i } else { i } ; Self :: raw_set_bit (this , index + bit_offset , val_bit_is_set) ; } } } # [derive (PartialEq , Copy , Clone , Hash , Debug , Default)] # [repr (C)] pub struct __BindgenComplex < T > { pub re : T , pub im : T } pub const __STDC_FORMAT_MACROS : u32 = 1 ; pub const _FEATURES_H : u32 = 1 ; pub const _DEFAULT_SOURCE : u32 = 1 ; pub const __GLIBC_USE_ISOC2Y : u32 = 0 ; pub const __GLIBC_USE_ISOC23 : u32 = 0 ; pub const __USE_ISOC11 : u32 = 1 ; pub const __USE_ISOC99 : u32 = 1 ; pub const __USE_ISOC95 : u32 = 1 ; pub const __USE_POSIX_IMPLICITLY : u32 = 1 ; pub const _POSIX_SOURCE : u32 = 1 ; pub const _POSIX_C_SOURCE : u32 = 202405 ; pub const __USE_POSIX : u32 = 1 ; pub const __USE_POSIX2 : u32 = 1 ; pub const __USE_POSIX199309 : u32 = 1 ; pub const __USE_POSIX199506 : u32 = 1 ; pub const __USE_XOPEN2K : u32 = 1 ; pub const __USE_XOPEN2K8 : u32 = 1 ; pub const _ATFILE_SOURCE : u32 = 1 ; pub const __USE_XOPEN2K24 : u32 = 1 ; pub const __WORDSIZE : u32 = 64 ; pub const __WORDSIZE_TIME64_COMPAT32 : u32 = 1 ; pub const __SYSCALL_WORDSIZE : u32 = 64 ; pub const __TIMESIZE : u32 = 64 ; pub const __USE_TIME_BITS64 : u32 = 1 ; pub const __USE_MISC : u32 = 1 ; pub const __USE_ATFILE : u32 = 1 ; pub const __USE_FORTIFY_LEVEL : u32 = 0 ; pub const __GLIBC_USE_DEPRECATED_GETS : u32 = 0 ; pub const __GLIBC_USE_DEPRECATED_SCANF : u32 = 0 ; pub const __GLIBC_USE_C23_STRTOL : u32 = 0 ; pub const _STDC_PREDEF_H : u32 = 1 ; pub const __STDC_IEC_559__ : u32 = 1 ; pub const __STDC_IEC_60559_BFP__ : u32 = 201404 ; pub const __STDC_IEC_559_COMPLEX__ : u32 = 1 ; pub const __STDC_IEC_60559_COMPLEX__ : u32 = 201404 ; pub const __STDC_ISO_10646__ : u32 = 201706 ; pub const __GNU_LIBRARY__ : u32 = 6 ; pub const __GLIBC__ : u32 = 2 ; pub const __GLIBC_MINOR__ : u32 = 43 ; pub const _SYS_CDEFS_H : u32 = 1 ; pub const __glibc_c99_flexarr_available : u32 = 1 ; pub const __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI : u32 = 0 ; pub const __HAVE_GENERIC_SELECTION : u32 = 1 ; pub const __GLIBC_USE_LIB_EXT2 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_BFP_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_BFP_EXT_C23 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_FUNCS_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_FUNCS_EXT_C23 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_TYPES_EXT : u32 = 0 ; pub const _STDLIB_H : u32 = 1 ; pub const WNOHANG : u32 = 1 ; pub const WUNTRACED : u32 = 2 ; pub const WSTOPPED : u32 = 2 ; pub const WEXITED : u32 = 4 ; pub const WCONTINUED : u32 = 8 ; pub const WNOWAIT : u32 = 16777216 ; pub const __WNOTHREAD : u32 = 536870912 ; pub const __WALL : u32 = 1073741824 ; pub const __WCLONE : u32 = 2147483648 ; pub const __W_CONTINUED : u32 = 65535 ; pub const __WCOREFLAG : u32 = 128 ; pub const __HAVE_FLOAT128 : u32 = 1 ; pub const __HAVE_DISTINCT_FLOAT128 : u32 = 1 ; pub const __HAVE_FLOAT64X : u32 = 1 ; pub const __HAVE_FLOAT64X_LONG_DOUBLE : u32 = 1 ; pub const __HAVE_FLOAT16 : u32 = 0 ; pub const __HAVE_FLOAT32 : u32 = 1 ; pub const __HAVE_FLOAT64 : u32 = 1 ; pub const __HAVE_FLOAT32X : u32 = 1 ; pub const __HAVE_FLOAT128X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT16 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT32 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT64 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT32X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT64X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT128X : u32 = 0 ; pub const __HAVE_FLOATN_NOT_TYPEDEF : u32 = 0 ; pub const __ldiv_t_defined : u32 = 1 ; pub const __lldiv_t_defined : u32 = 1 ; pub const RAND_MAX : u32 = 2147483647 ; pub const EXIT_FAILURE : u32 = 1 ; pub const EXIT_SUCCESS : u32 = 0 ; pub const _SYS_TYPES_H : u32 = 1 ; pub const _BITS_TYPES_H : u32 = 1 ; pub const _BITS_TYPESIZES_H : u32 = 1 ; pub const __OFF_T_MATCHES_OFF64_T : u32 = 1 ; pub const __INO_T_MATCHES_INO64_T : u32 = 1 ; pub const __RLIM_T_MATCHES_RLIM64_T : u32 = 1 ; pub const __STATFS_MATCHES_STATFS64 : u32 = 1 ; pub const __KERNEL_OLD_TIMEVAL_MATCHES_TIMEVAL64 : u32 = 1 ; pub const __FD_SETSIZE : u32 = 1024 ; pub const _BITS_TIME64_H : u32 = 1 ; pub const __clock_t_defined : u32 = 1 ; pub const __clockid_t_defined : u32 = 1 ; pub const __time_t_defined : u32 = 1 ; pub const __timer_t_defined : u32 = 1 ; pub const _BITS_STDINT_INTN_H : u32 = 1 ; pub const __BIT_TYPES_DEFINED__ : u32 = 1 ; pub const _ENDIAN_H : u32 = 1 ; pub const _BITS_ENDIAN_H : u32 = 1 ; pub const __LITTLE_ENDIAN : u32 = 1234 ; pub const __BIG_ENDIAN : u32 = 4321 ; pub const __PDP_ENDIAN : u32 = 3412 ; pub const _BITS_ENDIANNESS_H : u32 = 1 ; pub const __BYTE_ORDER : u32 = 1234 ; pub const __FLOAT_WORD_ORDER : u32 = 1234 ; pub const LITTLE_ENDIAN : u32 = 1234 ; pub const BIG_ENDIAN : u32 = 4321 ; pub const PDP_ENDIAN : u32 = 3412 ; pub const BYTE_ORDER : u32 = 1234 ; pub const _BITS_BYTESWAP_H : u32 = 1 ; pub const _BITS_UINTN_IDENTITY_H : u32 = 1 ; pub const _SYS_SELECT_H : u32 = 1 ; pub const __sigset_t_defined : u32 = 1 ; pub const __timeval_defined : u32 = 1 ; pub const _STRUCT_TIMESPEC : u32 = 1 ; pub const FD_SETSIZE : u32 = 1024 ; pub const _BITS_PTHREADTYPES_COMMON_H : u32 = 1 ; pub const _THREAD_SHARED_TYPES_H : u32 = 1 ; pub const _BITS_PTHREADTYPES_ARCH_H : u32 = 1 ; pub const __SIZEOF_PTHREAD_MUTEX_T : u32 = 40 ; pub const __SIZEOF_PTHREAD_ATTR_T : u32 = 56 ; pub const __SIZEOF_PTHREAD_RWLOCK_T : u32 = 56 ; pub const __SIZEOF_PTHREAD_BARRIER_T : u32 = 32 ; pub const __SIZEOF_PTHREAD_MUTEXATTR_T : u32 = 4 ; pub const __SIZEOF_PTHREAD_COND_T : u32 = 48 ; pub const __SIZEOF_PTHREAD_CONDATTR_T : u32 = 4 ; pub const __SIZEOF_PTHREAD_RWLOCKATTR_T : u32 = 8 ; pub const __SIZEOF_PTHREAD_BARRIERATTR_T : u32 = 4 ; pub const _THREAD_MUTEX_INTERNAL_H : u32 = 1 ; pub const __PTHREAD_MUTEX_HAVE_PREV : u32 = 1 ; pub const __have_pthread_attr_t : u32 = 1 ; pub const _ALLOCA_H : u32 = 1 ; pub const _INTTYPES_H : u32 = 1 ; pub const _STDINT_H : u32 = 1 ; pub const _BITS_WCHAR_H : u32 = 1 ; pub const _BITS_STDINT_UINTN_H : u32 = 1 ; pub const _BITS_STDINT_LEAST_H : u32 = 1 ; pub const INT8_MIN : i32 = - 128 ; pub const INT16_MIN : i32 = - 32768 ; pub const INT32_MIN : i32 = - 2147483648 ; pub const INT8_MAX : u32 = 127 ; pub const INT16_MAX : u32 = 32767 ; pub const INT32_MAX : u32 = 2147483647 ; pub const UINT8_MAX : u32 = 255 ; pub const UINT16_MAX : u32 = 65535 ; pub const UINT32_MAX : u32 = 4294967295 ; pub const INT_LEAST8_MIN : i32 = - 128 ; pub const INT_LEAST16_MIN : i32 = - 32768 ; pub const INT_LEAST32_MIN : i32 = - 2147483648 ; pub const INT_LEAST8_MAX : u32 = 127 ; pub const INT_LEAST16_MAX : u32 = 32767 ; pub const INT_LEAST32_MAX : u32 = 2147483647 ; pub const UINT_LEAST8_MAX : u32 = 255 ; pub const UINT_LEAST16_MAX : u32 = 65535 ; pub const UINT_LEAST32_MAX : u32 = 4294967295 ; pub const INT_FAST8_MIN : i32 = - 128 ; pub const INT_FAST16_MIN : i64 = - 9223372036854775808 ; pub const INT_FAST32_MIN : i64 = - 9223372036854775808 ; pub const INT_FAST8_MAX : u32 = 127 ; pub const INT_FAST16_MAX : u64 = 9223372036854775807 ; pub const INT_FAST32_MAX : u64 = 9223372036854775807 ; pub const UINT_FAST8_MAX : u32 = 255 ; pub const UINT_FAST16_MAX : i32 = - 1 ; pub const UINT_FAST32_MAX : i32 = - 1 ; pub const INTPTR_MIN : i64 = - 9223372036854775808 ; pub const INTPTR_MAX : u64 = 9223372036854775807 ; pub const UINTPTR_MAX : i32 = - 1 ; pub const PTRDIFF_MIN : i64 = - 9223372036854775808 ; pub const PTRDIFF_MAX : u64 = 9223372036854775807 ; pub const SIG_ATOMIC_MIN : i32 = - 2147483648 ; pub const SIG_ATOMIC_MAX : u32 = 2147483647 ; pub const SIZE_MAX : i32 = - 1 ; pub const WINT_MIN : u32 = 0 ; pub const WINT_MAX : u32 = 4294967295 ; pub const ____gwchar_t_defined : u32 = 1 ; pub const __PRI64_PREFIX : & [u8 ; 2] = b"l\0" ; pub const __PRIPTR_PREFIX : & [u8 ; 2] = b"l\0" ; pub const PRId8 : & [u8 ; 4] = b"hhd\0" ; pub const PRId16 : & [u8 ; 3] = b"hd\0" ; pub const PRId32 : & [u8 ; 2] = b"d\0" ; pub const PRId64 : & [u8 ; 3] = b"ld\0" ; pub const PRIdLEAST8 : & [u8 ; 4] = b"hhd\0" ; pub const PRIdLEAST16 : & [u8 ; 3] = b"hd\0" ; pub const PRIdLEAST32 : & [u8 ; 2] = b"d\0" ; pub const PRIdLEAST64 : & [u8 ; 3] = b"ld\0" ; pub const PRIdFAST8 : & [u8 ; 4] = b"hhd\0" ; pub const PRIdFAST16 : & [u8 ; 3] = b"ld\0" ; pub const PRIdFAST32 : & [u8 ; 3] = b"ld\0" ; pub const PRIdFAST64 : & [u8 ; 3] = b"ld\0" ; pub const PRIi8 : & [u8 ; 4] = b"hhi\0" ; pub const PRIi16 : & [u8 ; 3] = b"hi\0" ; pub const PRIi32 : & [u8 ; 2] = b"i\0" ; pub const PRIi64 : & [u8 ; 3] = b"li\0" ; pub const PRIiLEAST8 : & [u8 ; 4] = b"hhi\0" ; pub const PRIiLEAST16 : & [u8 ; 3] = b"hi\0" ; pub const PRIiLEAST32 : & [u8 ; 2] = b"i\0" ; pub const PRIiLEAST64 : & [u8 ; 3] = b"li\0" ; pub const PRIiFAST8 : & [u8 ; 4] = b"hhi\0" ; pub const PRIiFAST16 : & [u8 ; 3] = b"li\0" ; pub const PRIiFAST32 : & [u8 ; 3] = b"li\0" ; pub const PRIiFAST64 : & [u8 ; 3] = b"li\0" ; pub const PRIo8 : & [u8 ; 4] = b"hho\0" ; pub const PRIo16 : & [u8 ; 3] = b"ho\0" ; pub const PRIo32 : & [u8 ; 2] = b"o\0" ; pub const PRIo64 : & [u8 ; 3] = b"lo\0" ; pub const PRIoLEAST8 : & [u8 ; 4] = b"hho\0" ; pub const PRIoLEAST16 : & [u8 ; 3] = b"ho\0" ; pub const PRIoLEAST32 : & [u8 ; 2] = b"o\0" ; pub const PRIoLEAST64 : & [u8 ; 3] = b"lo\0" ; pub const PRIoFAST8 : & [u8 ; 4] = b"hho\0" ; pub const PRIoFAST16 : & [u8 ; 3] = b"lo\0" ; pub const PRIoFAST32 : & [u8 ; 3] = b"lo\0" ; pub const PRIoFAST64 : & [u8 ; 3] = b"lo\0" ; pub const PRIu8 : & [u8 ; 4] = b"hhu\0" ; pub const PRIu16 : & [u8 ; 3] = b"hu\0" ; pub const PRIu32 : & [u8 ; 2] = b"u\0" ; pub const PRIu64 : & [u8 ; 3] = b"lu\0" ; pub const PRIuLEAST8 : & [u8 ; 4] = b"hhu\0" ; pub const PRIuLEAST16 : & [u8 ; 3] = b"hu\0" ; pub const PRIuLEAST32 : & [u8 ; 2] = b"u\0" ; pub const PRIuLEAST64 : & [u8 ; 3] = b"lu\0" ; pub const PRIuFAST8 : & [u8 ; 4] = b"hhu\0" ; pub const PRIuFAST16 : & [u8 ; 3] = b"lu\0" ; pub const PRIuFAST32 : & [u8 ; 3] = b"lu\0" ; pub const PRIuFAST64 : & [u8 ; 3] = b"lu\0" ; pub const PRIx8 : & [u8 ; 4] = b"hhx\0" ; pub const PRIx16 : & [u8 ; 3] = b"hx\0" ; pub const PRIx32 : & [u8 ; 2] = b"x\0" ; pub const PRIx64 : & [u8 ; 3] = b"lx\0" ; pub const PRIxLEAST8 : & [u8 ; 4] = b"hhx\0" ; pub const PRIxLEAST16 : & [u8 ; 3] = b"hx\0" ; pub const PRIxLEAST32 : & [u8 ; 2] = b"x\0" ; pub const PRIxLEAST64 : & [u8 ; 3] = b"lx\0" ; pub const PRIxFAST8 : & [u8 ; 4] = b"hhx\0" ; pub const PRIxFAST16 : & [u8 ; 3] = b"lx\0" ; pub const PRIxFAST32 : & [u8 ; 3] = b"lx\0" ; pub const PRIxFAST64 : & [u8 ; 3] = b"lx\0" ; pub const PRIX8 : & [u8 ; 4] = b"hhX\0" ; pub const PRIX16 : & [u8 ; 3] = b"hX\0" ; pub const PRIX32 : & [u8 ; 2] = b"X\0" ; pub const PRIX64 : & [u8 ; 3] = b"lX\0" ; pub const PRIXLEAST8 : & [u8 ; 4] = b"hhX\0" ; pub const PRIXLEAST16 : & [u8 ; 3] = b"hX\0" ; pub const PRIXLEAST32 : & [u8 ; 2] = b"X\0" ; pub const PRIXLEAST64 : & [u8 ; 3] = b"lX\0" ; pub const PRIXFAST8 : & [u8 ; 4] = b"hhX\0" ; pub const PRIXFAST16 : & [u8 ; 3] = b"lX\0" ; pub const PRIXFAST32 : & [u8 ; 3] = b"lX\0" ; pub const PRIXFAST64 : & [u8 ; 3] = b"lX\0" ; pub const PRIdMAX : & [u8 ; 3] = b"ld\0" ; pub const PRIiMAX : & [u8 ; 3] = b"li\0" ; pub const PRIoMAX : & [u8 ; 3] = b"lo\0" ; pub const PRIuMAX : & [u8 ; 3] = b"lu\0" ; pub const PRIxMAX : & [u8 ; 3] = b"lx\0" ; pub const PRIXMAX : & [u8 ; 3] = b"lX\0" ; pub const PRIdPTR : & [u8 ; 3] = b"ld\0" ; pub const PRIiPTR : & [u8 ; 3] = b"li\0" ; pub const PRIoPTR : & [u8 ; 3] = b"lo\0" ; pub const PRIuPTR : & [u8 ; 3] = b"lu\0" ; pub const PRIxPTR : & [u8 ; 3] = b"lx\0" ; pub const PRIXPTR : & [u8 ; 3] = b"lX\0" ; pub const SCNd8 : & [u8 ; 4] = b"hhd\0" ; pub const SCNd16 : & [u8 ; 3] = b"hd\0" ; pub const SCNd32 : & [u8 ; 2] = b"d\0" ; pub const SCNd64 : & [u8 ; 3] = b"ld\0" ; pub const SCNdLEAST8 : & [u8 ; 4] = b"hhd\0" ; pub const SCNdLEAST16 : & [u8 ; 3] = b"hd\0" ; pub const SCNdLEAST32 : & [u8 ; 2] = b"d\0" ; pub const SCNdLEAST64 : & [u8 ; 3] = b"ld\0" ; pub const SCNdFAST8 : & [u8 ; 4] = b"hhd\0" ; pub const SCNdFAST16 : & [u8 ; 3] = b"ld\0" ; pub const SCNdFAST32 : & [u8 ; 3] = b"ld\0" ; pub const SCNdFAST64 : & [u8 ; 3] = b"ld\0" ; pub const SCNi8 : & [u8 ; 4] = b"hhi\0" ; pub const SCNi16 : & [u8 ; 3] = b"hi\0" ; pub const SCNi32 : & [u8 ; 2] = b"i\0" ; pub const SCNi64 : & [u8 ; 3] = b"li\0" ; pub const SCNiLEAST8 : & [u8 ; 4] = b"hhi\0" ; pub const SCNiLEAST16 : & [u8 ; 3] = b"hi\0" ; pub const SCNiLEAST32 : & [u8 ; 2] = b"i\0" ; pub const SCNiLEAST64 : & [u8 ; 3] = b"li\0" ; pub const SCNiFAST8 : & [u8 ; 4] = b"hhi\0" ; pub const SCNiFAST16 : & [u8 ; 3] = b"li\0" ; pub const SCNiFAST32 : & [u8 ; 3] = b"li\0" ; pub const SCNiFAST64 : & [u8 ; 3] = b"li\0" ; pub const SCNu8 : & [u8 ; 4] = b"hhu\0" ; pub const SCNu16 : & [u8 ; 3] = b"hu\0" ; pub const SCNu32 : & [u8 ; 2] = b"u\0" ; pub const SCNu64 : & [u8 ; 3] = b"lu\0" ; pub const SCNuLEAST8 : & [u8 ; 4] = b"hhu\0" ; pub const SCNuLEAST16 : & [u8 ; 3] = b"hu\0" ; pub const SCNuLEAST32 : & [u8 ; 2] = b"u\0" ; pub const SCNuLEAST64 : & [u8 ; 3] = b"lu\0" ; pub const SCNuFAST8 : & [u8 ; 4] = b"hhu\0" ; pub const SCNuFAST16 : & [u8 ; 3] = b"lu\0" ; pub const SCNuFAST32 : & [u8 ; 3] = b"lu\0" ; pub const SCNuFAST64 : & [u8 ; 3] = b"lu\0" ; pub const SCNo8 : & [u8 ; 4] = b"hho\0" ; pub const SCNo16 : & [u8 ; 3] = b"ho\0" ; pub const SCNo32 : & [u8 ; 2] = b"o\0" ; pub const SCNo64 : & [u8 ; 3] = b"lo\0" ; pub const SCNoLEAST8 : & [u8 ; 4] = b"hho\0" ; pub const SCNoLEAST16 : & [u8 ; 3] = b"ho\0" ; pub const SCNoLEAST32 : & [u8 ; 2] = b"o\0" ; pub const SCNoLEAST64 : & [u8 ; 3] = b"lo\0" ; pub const SCNoFAST8 : & [u8 ; 4] = b"hho\0" ; pub const SCNoFAST16 : & [u8 ; 3] = b"lo\0" ; pub const SCNoFAST32 : & [u8 ; 3] = b"lo\0" ; pub const SCNoFAST64 : & [u8 ; 3] = b"lo\0" ; pub const SCNx8 : & [u8 ; 4] = b"hhx\0" ; pub const SCNx16 : & [u8 ; 3] = b"hx\0" ; pub const SCNx32 : & [u8 ; 2] = b"x\0" ; pub const SCNx64 : & [u8 ; 3] = b"lx\0" ; pub const SCNxLEAST8 : & [u8 ; 4] = b"hhx\0" ; pub const SCNxLEAST16 : & [u8 ; 3] = b"hx\0" ; pub const SCNxLEAST32 : & [u8 ; 2] = b"x\0" ; pub const SCNxLEAST64 : & [u8 ; 3] = b"lx\0" ; pub const SCNxFAST8 : & [u8 ; 4] = b"hhx\0" ; pub const SCNxFAST16 : & [u8 ; 3] = b"lx\0" ; pub const SCNxFAST32 : & [u8 ; 3] = b"lx\0" ; pub const SCNxFAST64 : & [u8 ; 3] = b"lx\0" ; pub const SCNdMAX : & [u8 ; 3] = b"ld\0" ; pub const SCNiMAX : & [u8 ; 3] = b"li\0" ; pub const SCNoMAX : & [u8 ; 3] = b"lo\0" ; pub const SCNuMAX : & [u8 ; 3] = b"lu\0" ; pub const SCNxMAX : & [u8 ; 3] = b"lx\0" ; pub const SCNdPTR : & [u8 ; 3] = b"ld\0" ; pub const SCNiPTR : & [u8 ; 3] = b"li\0" ; pub const SCNoPTR : & [u8 ; 3] = b"lo\0" ; pub const SCNuPTR : & [u8 ; 3] = b"lu\0" ; pub const SCNxPTR : & [u8 ; 3] = b"lx\0" ; pub const _MATH_H : u32 = 1 ; pub const _BITS_LIBM_SIMD_DECL_STUBS_H : u32 = 1 ; pub const __FP_LOGB0_IS_MIN : u32 = 1 ; pub const __FP_LOGBNAN_IS_MIN : u32 = 1 ; pub const FP_ILOGB0 : i32 = - 2147483648 ; pub const FP_ILOGBNAN : i32 = - 2147483648 ; pub const __MATH_DECLARING_DOUBLE : u32 = 1 ; pub const __MATH_DECLARING_FLOATN : u32 = 0 ; pub const __MATH_DECLARE_LDOUBLE : u32 = 1 ; pub const MATH_ERRNO : u32 = 1 ; pub const MATH_ERREXCEPT : u32 = 2 ; pub const math_errhandling : u32 = 3 ; pub const M_E : f64 = 2.718281828459045 ; pub const M_LOG2E : f64 = 1.4426950408889634 ; pub const M_LOG10E : f64 = 0.4342944819032518 ; pub const M_LN2 : f64 = 0.6931471805599453 ; pub const M_LN10 : f64 = 2.302585092994046 ; pub const M_PI : f64 = 3.141592653589793 ; pub const M_PI_2 : f64 = 1.5707963267948966 ; pub const M_PI_4 : f64 = 0.7853981633974483 ; pub const M_1_PI : f64 = 0.3183098861837907 ; pub const M_2_PI : f64 = 0.6366197723675814 ; pub const M_2_SQRTPI : f64 = 1.1283791670955126 ; pub const M_SQRT2 : f64 = 1.4142135623730951 ; pub const M_SQRT1_2 : f64 = 0.7071067811865476 ; pub const LAYER_INIT_SHA : i32 = - 1 ; pub const _STDIO_H : u32 = 1 ; pub const _____fpos_t_defined : u32 = 1 ; pub const ____mbstate_t_defined : u32 = 1 ; pub const _____fpos64_t_defined : u32 = 1 ; pub const ____FILE_defined : u32 = 1 ; pub const __FILE_defined : u32 = 1 ; pub const __struct_FILE_defined : u32 = 1 ; pub const _IO_EOF_SEEN : u32 = 16 ; pub const _IO_ERR_SEEN : u32 = 32 ; pub const _IO_USER_LOCK : u32 = 32768 ; pub const __cookie_io_functions_t_defined : u32 = 1 ; pub const _IOFBF : u32 = 0 ; pub const _IOLBF : u32 = 1 ; pub const _IONBF : u32 = 2 ; pub const BUFSIZ : u32 = 8192 ; pub const EOF : i32 = - 1 ; pub const SEEK_SET : u32 = 0 ; pub const SEEK_CUR : u32 = 1 ; pub const SEEK_END : u32 = 2 ; pub const P_tmpdir : & [u8 ; 5] = b"/tmp\0" ; pub const L_tmpnam : u32 = 20 ; pub const TMP_MAX : u32 = 238328 ; pub const _BITS_STDIO_LIM_H : u32 = 1 ; pub const FILENAME_MAX : u32 = 4096 ; pub const L_ctermid : u32 = 9 ; pub const FOPEN_MAX : u32 = 16 ; pub type wchar_t = :: std :: os :: raw :: c_int ; pub type __cfloat128 = __BindgenComplex < u128 > ; pub type _Float128 = u128 ; pub type _Float32 = f32 ; pub type _Float64 = f64 ; pub type _Float32x = f64 ; pub type _Float64x = u128 ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct div_t { pub quot : :: std :: os :: raw :: c_int , pub rem : :: std :: os :: raw :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of div_t"] [:: std :: mem :: size_of :: < div_t > () - 8usize] ; ["Alignment of div_t"] [:: std :: mem :: align_of :: < div_t > () - 4usize] ; ["Offset of field: div_t::quot"] [:: std :: mem :: offset_of ! (div_t , quot) - 0usize] ; ["Offset of field: div_t::rem"] [:: std :: mem :: offset_of ! (div_t , rem) - 4usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ldiv_t { pub quot : :: std :: os :: raw :: c_long , pub rem : :: std :: os :: raw :: c_long , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ldiv_t"] [:: std :: mem :: size_of :: < ldiv_t > () - 16usize] ; ["Alignment of ldiv_t"] [:: std :: mem :: align_of :: < ldiv_t > () - 8usize] ; ["Offset of field: ldiv_t::quot"] [:: std :: mem :: offset_of ! (ldiv_t , quot) - 0usize] ; ["Offset of field: ldiv_t::rem"] [:: std :: mem :: offset_of ! (ldiv_t , rem) - 8usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct lldiv_t { pub quot : :: std :: os :: raw :: c_longlong , pub rem : :: std :: os :: raw :: c_longlong , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of lldiv_t"] [:: std :: mem :: size_of :: < lldiv_t > () - 16usize] ; ["Alignment of lldiv_t"] [:: std :: mem :: align_of :: < lldiv_t > () - 8usize] ; ["Offset of field: lldiv_t::quot"] [:: std :: mem :: offset_of ! (lldiv_t , quot) - 0usize] ; ["Offset of field: lldiv_t::rem"] [:: std :: mem :: offset_of ! (lldiv_t , rem) - 8usize] ; } ; unsafe extern "C" { pub fn __ctype_get_mb_cur_max () -> usize ; } unsafe extern "C" { pub fn atof (__nptr : * const :: std :: os :: raw :: c_char) -> f64 ; } unsafe extern "C" { pub fn atoi (__nptr : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn atol (__nptr : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn atoll (__nptr : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn strtod (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char) -> f64 ; } unsafe extern "C" { pub fn strtof (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char) -> f32 ; } unsafe extern "C" { pub fn strtold (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char) -> u128 ; } unsafe extern "C" { pub fn strtol (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn strtoul (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_ulong ; } unsafe extern "C" { pub fn strtoq (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn strtouq (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_ulonglong ; } unsafe extern "C" { pub fn strtoll (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn strtoull (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_ulonglong ; } unsafe extern "C" { pub fn l64a (__n : :: std :: os :: raw :: c_long) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn a64l (__s : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_long ; } pub type __u_char = :: std :: os :: raw :: c_uchar ; pub type __u_short = :: std :: os :: raw :: c_ushort ; pub type __u_int = :: std :: os :: raw :: c_uint ; pub type __u_long = :: std :: os :: raw :: c_ulong ; 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_long ; pub type __uint64_t = :: std :: os :: raw :: c_ulong ; pub type __int_least8_t = __int8_t ; pub type __uint_least8_t = __uint8_t ; pub type __int_least16_t = __int16_t ; pub type __uint_least16_t = __uint16_t ; pub type __int_least32_t = __int32_t ; pub type __uint_least32_t = __uint32_t ; pub type __int_least64_t = __int64_t ; pub type __uint_least64_t = __uint64_t ; pub type __quad_t = :: std :: os :: raw :: c_long ; pub type __u_quad_t = :: std :: os :: raw :: c_ulong ; pub type __intmax_t = :: std :: os :: raw :: c_long ; pub type __uintmax_t = :: std :: os :: raw :: c_ulong ; pub type __dev_t = :: std :: os :: raw :: c_ulong ; pub type __uid_t = :: std :: os :: raw :: c_uint ; pub type __gid_t = :: std :: os :: raw :: c_uint ; pub type __ino_t = :: std :: os :: raw :: c_ulong ; pub type __ino64_t = :: std :: os :: raw :: c_ulong ; pub type __mode_t = :: std :: os :: raw :: c_uint ; pub type __nlink_t = :: std :: os :: raw :: c_ulong ; pub type __off_t = :: std :: os :: raw :: c_long ; pub type __off64_t = :: std :: os :: raw :: c_long ; pub type __pid_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [:: std :: os :: raw :: c_int ; 2usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __fsid_t"] [:: std :: mem :: size_of :: < __fsid_t > () - 8usize] ; ["Alignment of __fsid_t"] [:: std :: mem :: align_of :: < __fsid_t > () - 4usize] ; ["Offset of field: __fsid_t::__val"] [:: std :: mem :: offset_of ! (__fsid_t , __val) - 0usize] ; } ; pub type __clock_t = :: std :: os :: raw :: c_long ; pub type __rlim_t = :: std :: os :: raw :: c_ulong ; pub type __rlim64_t = :: std :: os :: raw :: c_ulong ; pub type __id_t = :: std :: os :: raw :: c_uint ; pub type __time_t = :: std :: os :: raw :: c_long ; pub type __useconds_t = :: std :: os :: raw :: c_uint ; pub type __suseconds_t = :: std :: os :: raw :: c_long ; pub type __suseconds64_t = :: std :: os :: raw :: c_long ; pub type __daddr_t = :: std :: os :: raw :: c_int ; pub type __key_t = :: std :: os :: raw :: c_int ; pub type __clockid_t = :: std :: os :: raw :: c_int ; pub type __timer_t = * mut :: std :: os :: raw :: c_void ; pub type __blksize_t = :: std :: os :: raw :: c_long ; pub type __blkcnt_t = :: std :: os :: raw :: c_long ; pub type __blkcnt64_t = :: std :: os :: raw :: c_long ; pub type __fsblkcnt_t = :: std :: os :: raw :: c_ulong ; pub type __fsblkcnt64_t = :: std :: os :: raw :: c_ulong ; pub type __fsfilcnt_t = :: std :: os :: raw :: c_ulong ; pub type __fsfilcnt64_t = :: std :: os :: raw :: c_ulong ; pub type __fsword_t = :: std :: os :: raw :: c_long ; pub type __ssize_t = :: std :: os :: raw :: c_long ; pub type __syscall_slong_t = :: std :: os :: raw :: c_long ; pub type __syscall_ulong_t = :: std :: os :: raw :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut :: std :: os :: raw :: c_char ; pub type __intptr_t = :: std :: os :: raw :: c_long ; pub type __socklen_t = :: std :: os :: raw :: c_uint ; pub type __sig_atomic_t = :: std :: os :: raw :: c_int ; pub type u_char = __u_char ; pub type u_short = __u_short ; pub type u_int = __u_int ; pub type u_long = __u_long ; pub type quad_t = __quad_t ; pub type u_quad_t = __u_quad_t ; pub type fsid_t = __fsid_t ; pub type loff_t = __loff_t ; pub type ino_t = __ino_t ; pub type dev_t = __dev_t ; pub type gid_t = __gid_t ; pub type mode_t = __mode_t ; pub type nlink_t = __nlink_t ; pub type uid_t = __uid_t ; pub type off_t = __off_t ; pub type pid_t = __pid_t ; pub type id_t = __id_t ; pub type daddr_t = __daddr_t ; pub type caddr_t = __caddr_t ; pub type key_t = __key_t ; pub type clock_t = __clock_t ; pub type clockid_t = __clockid_t ; pub type time_t = __time_t ; pub type timer_t = __timer_t ; pub type ulong = :: std :: os :: raw :: c_ulong ; pub type ushort = :: std :: os :: raw :: c_ushort ; pub type uint = :: std :: os :: raw :: c_uint ; pub type u_int8_t = __uint8_t ; pub type u_int16_t = __uint16_t ; pub type u_int32_t = __uint32_t ; pub type u_int64_t = __uint64_t ; pub type register_t = :: std :: os :: raw :: c_long ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __sigset_t { pub __val : [:: std :: os :: raw :: c_ulong ; 16usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __sigset_t"] [:: std :: mem :: size_of :: < __sigset_t > () - 128usize] ; ["Alignment of __sigset_t"] [:: std :: mem :: align_of :: < __sigset_t > () - 8usize] ; ["Offset of field: __sigset_t::__val"] [:: std :: mem :: offset_of ! (__sigset_t , __val) - 0usize] ; } ; pub type sigset_t = __sigset_t ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct timeval { pub tv_sec : __time_t , pub tv_usec : __suseconds_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of timeval"] [:: std :: mem :: size_of :: < timeval > () - 16usize] ; ["Alignment of timeval"] [:: std :: mem :: align_of :: < timeval > () - 8usize] ; ["Offset of field: timeval::tv_sec"] [:: std :: mem :: offset_of ! (timeval , tv_sec) - 0usize] ; ["Offset of field: timeval::tv_usec"] [:: std :: mem :: offset_of ! (timeval , tv_usec) - 8usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct timespec { pub tv_sec : __time_t , pub tv_nsec : __syscall_slong_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of timespec"] [:: std :: mem :: size_of :: < timespec > () - 16usize] ; ["Alignment of timespec"] [:: std :: mem :: align_of :: < timespec > () - 8usize] ; ["Offset of field: timespec::tv_sec"] [:: std :: mem :: offset_of ! (timespec , tv_sec) - 0usize] ; ["Offset of field: timespec::tv_nsec"] [:: std :: mem :: offset_of ! (timespec , tv_nsec) - 8usize] ; } ; pub type suseconds_t = __suseconds_t ; pub type __fd_mask = :: std :: os :: raw :: c_long ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct fd_set { pub __fds_bits : [__fd_mask ; 16usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of fd_set"] [:: std :: mem :: size_of :: < fd_set > () - 128usize] ; ["Alignment of fd_set"] [:: std :: mem :: align_of :: < fd_set > () - 8usize] ; ["Offset of field: fd_set::__fds_bits"] [:: std :: mem :: offset_of ! (fd_set , __fds_bits) - 0usize] ; } ; pub type fd_mask = __fd_mask ; unsafe extern "C" { pub fn select (__nfds : :: std :: os :: raw :: c_int , __readfds : * mut fd_set , __writefds : * mut fd_set , __exceptfds : * mut fd_set , __timeout : * mut timeval) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn pselect (__nfds : :: std :: os :: raw :: c_int , __readfds : * mut fd_set , __writefds : * mut fd_set , __exceptfds : * mut fd_set , __timeout : * const timespec , __sigmask : * const __sigset_t) -> :: std :: os :: raw :: c_int ; } pub type blksize_t = __blksize_t ; pub type blkcnt_t = __blkcnt_t ; pub type fsblkcnt_t = __fsblkcnt_t ; pub type fsfilcnt_t = __fsfilcnt_t ; # [repr (C)] # [derive (Copy , Clone)] pub union __atomic_wide_counter { pub __value64 : :: std :: os :: raw :: c_ulonglong , pub __value32 : __atomic_wide_counter__bindgen_ty_1 , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __atomic_wide_counter__bindgen_ty_1 { pub __low : :: std :: os :: raw :: c_uint , pub __high : :: std :: os :: raw :: c_uint , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __atomic_wide_counter__bindgen_ty_1"] [:: std :: mem :: size_of :: < __atomic_wide_counter__bindgen_ty_1 > () - 8usize] ; ["Alignment of __atomic_wide_counter__bindgen_ty_1"] [:: std :: mem :: align_of :: < __atomic_wide_counter__bindgen_ty_1 > () - 4usize] ; ["Offset of field: __atomic_wide_counter__bindgen_ty_1::__low"] [:: std :: mem :: offset_of ! (__atomic_wide_counter__bindgen_ty_1 , __low) - 0usize] ; ["Offset of field: __atomic_wide_counter__bindgen_ty_1::__high"] [:: std :: mem :: offset_of ! (__atomic_wide_counter__bindgen_ty_1 , __high) - 4usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __atomic_wide_counter"] [:: std :: mem :: size_of :: < __atomic_wide_counter > () - 8usize] ; ["Alignment of __atomic_wide_counter"] [:: std :: mem :: align_of :: < __atomic_wide_counter > () - 8usize] ; ["Offset of field: __atomic_wide_counter::__value64"] [:: std :: mem :: offset_of ! (__atomic_wide_counter , __value64) - 0usize] ; ["Offset of field: __atomic_wide_counter::__value32"] [:: std :: mem :: offset_of ! (__atomic_wide_counter , __value32) - 0usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_internal_list { pub __prev : * mut __pthread_internal_list , pub __next : * mut __pthread_internal_list , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __pthread_internal_list"] [:: std :: mem :: size_of :: < __pthread_internal_list > () - 16usize] ; ["Alignment of __pthread_internal_list"] [:: std :: mem :: align_of :: < __pthread_internal_list > () - 8usize] ; ["Offset of field: __pthread_internal_list::__prev"] [:: std :: mem :: offset_of ! (__pthread_internal_list , __prev) - 0usize] ; ["Offset of field: __pthread_internal_list::__next"] [:: std :: mem :: offset_of ! (__pthread_internal_list , __next) - 8usize] ; } ; pub type __pthread_list_t = __pthread_internal_list ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_internal_slist { pub __next : * mut __pthread_internal_slist , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __pthread_internal_slist"] [:: std :: mem :: size_of :: < __pthread_internal_slist > () - 8usize] ; ["Alignment of __pthread_internal_slist"] [:: std :: mem :: align_of :: < __pthread_internal_slist > () - 8usize] ; ["Offset of field: __pthread_internal_slist::__next"] [:: std :: mem :: offset_of ! (__pthread_internal_slist , __next) - 0usize] ; } ; pub type __pthread_slist_t = __pthread_internal_slist ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_mutex_s { pub __lock : :: std :: os :: raw :: c_int , pub __count : :: std :: os :: raw :: c_uint , pub __owner : :: std :: os :: raw :: c_int , pub __nusers : :: std :: os :: raw :: c_uint , pub __kind : :: std :: os :: raw :: c_int , pub __spins : :: std :: os :: raw :: c_short , pub __unused : :: std :: os :: raw :: c_short , pub __list : __pthread_list_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __pthread_mutex_s"] [:: std :: mem :: size_of :: < __pthread_mutex_s > () - 40usize] ; ["Alignment of __pthread_mutex_s"] [:: std :: mem :: align_of :: < __pthread_mutex_s > () - 8usize] ; ["Offset of field: __pthread_mutex_s::__lock"] [:: std :: mem :: offset_of ! (__pthread_mutex_s , __lock) - 0usize] ; ["Offset of field: __pthread_mutex_s::__count"] [:: std :: mem :: offset_of ! (__pthread_mutex_s , __count) - 4usize] ; ["Offset of field: __pthread_mutex_s::__owner"] [:: std :: mem :: offset_of ! (__pthread_mutex_s , __owner) - 8usize] ; ["Offset of field: __pthread_mutex_s::__nusers"] [:: std :: mem :: offset_of ! (__pthread_mutex_s , __nusers) - 12usize] ; ["Offset of field: __pthread_mutex_s::__kind"] [:: std :: mem :: offset_of ! (__pthread_mutex_s , __kind) - 16usize] ; ["Offset of field: __pthread_mutex_s::__spins"] [:: std :: mem :: offset_of ! (__pthread_mutex_s , __spins) - 20usize] ; ["Offset of field: __pthread_mutex_s::__unused"] [:: std :: mem :: offset_of ! (__pthread_mutex_s , __unused) - 22usize] ; ["Offset of field: __pthread_mutex_s::__list"] [:: std :: mem :: offset_of ! (__pthread_mutex_s , __list) - 24usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_rwlock_arch_t { pub __readers : :: std :: os :: raw :: c_uint , pub __writers : :: std :: os :: raw :: c_uint , pub __wrphase_futex : :: std :: os :: raw :: c_uint , pub __writers_futex : :: std :: os :: raw :: c_uint , pub __pad3 : :: std :: os :: raw :: c_uint , pub __pad4 : :: std :: os :: raw :: c_uint , pub __cur_writer : :: std :: os :: raw :: c_int , pub __shared : :: std :: os :: raw :: c_int , pub __pad1 : :: std :: os :: raw :: c_ulong , pub __pad2 : :: std :: os :: raw :: c_ulong , pub __flags : :: std :: os :: raw :: c_uint , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __pthread_rwlock_arch_t"] [:: std :: mem :: size_of :: < __pthread_rwlock_arch_t > () - 56usize] ; ["Alignment of __pthread_rwlock_arch_t"] [:: std :: mem :: align_of :: < __pthread_rwlock_arch_t > () - 8usize] ; ["Offset of field: __pthread_rwlock_arch_t::__readers"] [:: std :: mem :: offset_of ! (__pthread_rwlock_arch_t , __readers) - 0usize] ; ["Offset of field: __pthread_rwlock_arch_t::__writers"] [:: std :: mem :: offset_of ! (__pthread_rwlock_arch_t , __writers) - 4usize] ; ["Offset of field: __pthread_rwlock_arch_t::__wrphase_futex"] [:: std :: mem :: offset_of ! (__pthread_rwlock_arch_t , __wrphase_futex) - 8usize] ; ["Offset of field: __pthread_rwlock_arch_t::__writers_futex"] [:: std :: mem :: offset_of ! (__pthread_rwlock_arch_t , __writers_futex) - 12usize] ; ["Offset of field: __pthread_rwlock_arch_t::__pad3"] [:: std :: mem :: offset_of ! (__pthread_rwlock_arch_t , __pad3) - 16usize] ; ["Offset of field: __pthread_rwlock_arch_t::__pad4"] [:: std :: mem :: offset_of ! (__pthread_rwlock_arch_t , __pad4) - 20usize] ; ["Offset of field: __pthread_rwlock_arch_t::__cur_writer"] [:: std :: mem :: offset_of ! (__pthread_rwlock_arch_t , __cur_writer) - 24usize] ; ["Offset of field: __pthread_rwlock_arch_t::__shared"] [:: std :: mem :: offset_of ! (__pthread_rwlock_arch_t , __shared) - 28usize] ; ["Offset of field: __pthread_rwlock_arch_t::__pad1"] [:: std :: mem :: offset_of ! (__pthread_rwlock_arch_t , __pad1) - 32usize] ; ["Offset of field: __pthread_rwlock_arch_t::__pad2"] [:: std :: mem :: offset_of ! (__pthread_rwlock_arch_t , __pad2) - 40usize] ; ["Offset of field: __pthread_rwlock_arch_t::__flags"] [:: std :: mem :: offset_of ! (__pthread_rwlock_arch_t , __flags) - 48usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub struct __pthread_cond_s { pub __wseq : __atomic_wide_counter , pub __g1_start : __atomic_wide_counter , pub __g_size : [:: std :: os :: raw :: c_uint ; 2usize] , pub __g1_orig_size : :: std :: os :: raw :: c_uint , pub __wrefs : :: std :: os :: raw :: c_uint , pub __g_signals : [:: std :: os :: raw :: c_uint ; 2usize] , pub __unused_initialized_1 : :: std :: os :: raw :: c_uint , pub __unused_initialized_2 : :: std :: os :: raw :: c_uint , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __pthread_cond_s"] [:: std :: mem :: size_of :: < __pthread_cond_s > () - 48usize] ; ["Alignment of __pthread_cond_s"] [:: std :: mem :: align_of :: < __pthread_cond_s > () - 8usize] ; ["Offset of field: __pthread_cond_s::__wseq"] [:: std :: mem :: offset_of ! (__pthread_cond_s , __wseq) - 0usize] ; ["Offset of field: __pthread_cond_s::__g1_start"] [:: std :: mem :: offset_of ! (__pthread_cond_s , __g1_start) - 8usize] ; ["Offset of field: __pthread_cond_s::__g_size"] [:: std :: mem :: offset_of ! (__pthread_cond_s , __g_size) - 16usize] ; ["Offset of field: __pthread_cond_s::__g1_orig_size"] [:: std :: mem :: offset_of ! (__pthread_cond_s , __g1_orig_size) - 24usize] ; ["Offset of field: __pthread_cond_s::__wrefs"] [:: std :: mem :: offset_of ! (__pthread_cond_s , __wrefs) - 28usize] ; ["Offset of field: __pthread_cond_s::__g_signals"] [:: std :: mem :: offset_of ! (__pthread_cond_s , __g_signals) - 32usize] ; ["Offset of field: __pthread_cond_s::__unused_initialized_1"] [:: std :: mem :: offset_of ! (__pthread_cond_s , __unused_initialized_1) - 40usize] ; ["Offset of field: __pthread_cond_s::__unused_initialized_2"] [:: std :: mem :: offset_of ! (__pthread_cond_s , __unused_initialized_2) - 44usize] ; } ; pub type __tss_t = :: std :: os :: raw :: c_uint ; pub type __thrd_t = :: std :: os :: raw :: c_ulong ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __once_flag { pub __data : :: std :: os :: raw :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __once_flag"] [:: std :: mem :: size_of :: < __once_flag > () - 4usize] ; ["Alignment of __once_flag"] [:: std :: mem :: align_of :: < __once_flag > () - 4usize] ; ["Offset of field: __once_flag::__data"] [:: std :: mem :: offset_of ! (__once_flag , __data) - 0usize] ; } ; pub type pthread_t = :: std :: os :: raw :: c_ulong ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_mutexattr_t { pub __size : [:: std :: os :: raw :: c_char ; 4usize] , pub __align : :: std :: os :: raw :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_mutexattr_t"] [:: std :: mem :: size_of :: < pthread_mutexattr_t > () - 4usize] ; ["Alignment of pthread_mutexattr_t"] [:: std :: mem :: align_of :: < pthread_mutexattr_t > () - 4usize] ; ["Offset of field: pthread_mutexattr_t::__size"] [:: std :: mem :: offset_of ! (pthread_mutexattr_t , __size) - 0usize] ; ["Offset of field: pthread_mutexattr_t::__align"] [:: std :: mem :: offset_of ! (pthread_mutexattr_t , __align) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_condattr_t { pub __size : [:: std :: os :: raw :: c_char ; 4usize] , pub __align : :: std :: os :: raw :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_condattr_t"] [:: std :: mem :: size_of :: < pthread_condattr_t > () - 4usize] ; ["Alignment of pthread_condattr_t"] [:: std :: mem :: align_of :: < pthread_condattr_t > () - 4usize] ; ["Offset of field: pthread_condattr_t::__size"] [:: std :: mem :: offset_of ! (pthread_condattr_t , __size) - 0usize] ; ["Offset of field: pthread_condattr_t::__align"] [:: std :: mem :: offset_of ! (pthread_condattr_t , __align) - 0usize] ; } ; pub type pthread_key_t = :: std :: os :: raw :: c_uint ; pub type pthread_once_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_attr_t { pub __size : [:: std :: os :: raw :: c_char ; 56usize] , pub __align : :: std :: os :: raw :: c_long , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_attr_t"] [:: std :: mem :: size_of :: < pthread_attr_t > () - 56usize] ; ["Alignment of pthread_attr_t"] [:: std :: mem :: align_of :: < pthread_attr_t > () - 8usize] ; ["Offset of field: pthread_attr_t::__size"] [:: std :: mem :: offset_of ! (pthread_attr_t , __size) - 0usize] ; ["Offset of field: pthread_attr_t::__align"] [:: std :: mem :: offset_of ! (pthread_attr_t , __align) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_mutex_t { pub __data : __pthread_mutex_s , pub __size : [:: std :: os :: raw :: c_char ; 40usize] , pub __align : :: std :: os :: raw :: c_long , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_mutex_t"] [:: std :: mem :: size_of :: < pthread_mutex_t > () - 40usize] ; ["Alignment of pthread_mutex_t"] [:: std :: mem :: align_of :: < pthread_mutex_t > () - 8usize] ; ["Offset of field: pthread_mutex_t::__data"] [:: std :: mem :: offset_of ! (pthread_mutex_t , __data) - 0usize] ; ["Offset of field: pthread_mutex_t::__size"] [:: std :: mem :: offset_of ! (pthread_mutex_t , __size) - 0usize] ; ["Offset of field: pthread_mutex_t::__align"] [:: std :: mem :: offset_of ! (pthread_mutex_t , __align) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_cond_t { pub __data : __pthread_cond_s , pub __size : [:: std :: os :: raw :: c_char ; 48usize] , pub __align : :: std :: os :: raw :: c_longlong , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_cond_t"] [:: std :: mem :: size_of :: < pthread_cond_t > () - 48usize] ; ["Alignment of pthread_cond_t"] [:: std :: mem :: align_of :: < pthread_cond_t > () - 8usize] ; ["Offset of field: pthread_cond_t::__data"] [:: std :: mem :: offset_of ! (pthread_cond_t , __data) - 0usize] ; ["Offset of field: pthread_cond_t::__size"] [:: std :: mem :: offset_of ! (pthread_cond_t , __size) - 0usize] ; ["Offset of field: pthread_cond_t::__align"] [:: std :: mem :: offset_of ! (pthread_cond_t , __align) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_rwlock_t { pub __data : __pthread_rwlock_arch_t , pub __size : [:: std :: os :: raw :: c_char ; 56usize] , pub __align : :: std :: os :: raw :: c_long , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_rwlock_t"] [:: std :: mem :: size_of :: < pthread_rwlock_t > () - 56usize] ; ["Alignment of pthread_rwlock_t"] [:: std :: mem :: align_of :: < pthread_rwlock_t > () - 8usize] ; ["Offset of field: pthread_rwlock_t::__data"] [:: std :: mem :: offset_of ! (pthread_rwlock_t , __data) - 0usize] ; ["Offset of field: pthread_rwlock_t::__size"] [:: std :: mem :: offset_of ! (pthread_rwlock_t , __size) - 0usize] ; ["Offset of field: pthread_rwlock_t::__align"] [:: std :: mem :: offset_of ! (pthread_rwlock_t , __align) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_rwlockattr_t { pub __size : [:: std :: os :: raw :: c_char ; 8usize] , pub __align : :: std :: os :: raw :: c_long , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_rwlockattr_t"] [:: std :: mem :: size_of :: < pthread_rwlockattr_t > () - 8usize] ; ["Alignment of pthread_rwlockattr_t"] [:: std :: mem :: align_of :: < pthread_rwlockattr_t > () - 8usize] ; ["Offset of field: pthread_rwlockattr_t::__size"] [:: std :: mem :: offset_of ! (pthread_rwlockattr_t , __size) - 0usize] ; ["Offset of field: pthread_rwlockattr_t::__align"] [:: std :: mem :: offset_of ! (pthread_rwlockattr_t , __align) - 0usize] ; } ; pub type pthread_spinlock_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_barrier_t { pub __size : [:: std :: os :: raw :: c_char ; 32usize] , pub __align : :: std :: os :: raw :: c_long , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_barrier_t"] [:: std :: mem :: size_of :: < pthread_barrier_t > () - 32usize] ; ["Alignment of pthread_barrier_t"] [:: std :: mem :: align_of :: < pthread_barrier_t > () - 8usize] ; ["Offset of field: pthread_barrier_t::__size"] [:: std :: mem :: offset_of ! (pthread_barrier_t , __size) - 0usize] ; ["Offset of field: pthread_barrier_t::__align"] [:: std :: mem :: offset_of ! (pthread_barrier_t , __align) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_barrierattr_t { pub __size : [:: std :: os :: raw :: c_char ; 4usize] , pub __align : :: std :: os :: raw :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_barrierattr_t"] [:: std :: mem :: size_of :: < pthread_barrierattr_t > () - 4usize] ; ["Alignment of pthread_barrierattr_t"] [:: std :: mem :: align_of :: < pthread_barrierattr_t > () - 4usize] ; ["Offset of field: pthread_barrierattr_t::__size"] [:: std :: mem :: offset_of ! (pthread_barrierattr_t , __size) - 0usize] ; ["Offset of field: pthread_barrierattr_t::__align"] [:: std :: mem :: offset_of ! (pthread_barrierattr_t , __align) - 0usize] ; } ; unsafe extern "C" { pub fn random () -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn srandom (__seed : :: std :: os :: raw :: c_uint) ; } unsafe extern "C" { pub fn initstate (__seed : :: std :: os :: raw :: c_uint , __statebuf : * mut :: std :: os :: raw :: c_char , __statelen : usize) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn setstate (__statebuf : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct random_data { pub fptr : * mut i32 , pub rptr : * mut i32 , pub state : * mut i32 , pub rand_type : :: std :: os :: raw :: c_int , pub rand_deg : :: std :: os :: raw :: c_int , pub rand_sep : :: std :: os :: raw :: c_int , pub end_ptr : * mut i32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of random_data"] [:: std :: mem :: size_of :: < random_data > () - 48usize] ; ["Alignment of random_data"] [:: std :: mem :: align_of :: < random_data > () - 8usize] ; ["Offset of field: random_data::fptr"] [:: std :: mem :: offset_of ! (random_data , fptr) - 0usize] ; ["Offset of field: random_data::rptr"] [:: std :: mem :: offset_of ! (random_data , rptr) - 8usize] ; ["Offset of field: random_data::state"] [:: std :: mem :: offset_of ! (random_data , state) - 16usize] ; ["Offset of field: random_data::rand_type"] [:: std :: mem :: offset_of ! (random_data , rand_type) - 24usize] ; ["Offset of field: random_data::rand_deg"] [:: std :: mem :: offset_of ! (random_data , rand_deg) - 28usize] ; ["Offset of field: random_data::rand_sep"] [:: std :: mem :: offset_of ! (random_data , rand_sep) - 32usize] ; ["Offset of field: random_data::end_ptr"] [:: std :: mem :: offset_of ! (random_data , end_ptr) - 40usize] ; } ; unsafe extern "C" { pub fn random_r (__buf : * mut random_data , __result : * mut i32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn srandom_r (__seed : :: std :: os :: raw :: c_uint , __buf : * mut random_data) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn initstate_r (__seed : :: std :: os :: raw :: c_uint , __statebuf : * mut :: std :: os :: raw :: c_char , __statelen : usize , __buf : * mut random_data) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn setstate_r (__statebuf : * mut :: std :: os :: raw :: c_char , __buf : * mut random_data) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn rand () -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn srand (__seed : :: std :: os :: raw :: c_uint) ; } unsafe extern "C" { pub fn rand_r (__seed : * mut :: std :: os :: raw :: c_uint) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn drand48 () -> f64 ; } unsafe extern "C" { pub fn erand48 (__xsubi : * mut :: std :: os :: raw :: c_ushort) -> f64 ; } unsafe extern "C" { pub fn lrand48 () -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn nrand48 (__xsubi : * mut :: std :: os :: raw :: c_ushort) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn mrand48 () -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn jrand48 (__xsubi : * mut :: std :: os :: raw :: c_ushort) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn srand48 (__seedval : :: std :: os :: raw :: c_long) ; } unsafe extern "C" { pub fn seed48 (__seed16v : * mut :: std :: os :: raw :: c_ushort) -> * mut :: std :: os :: raw :: c_ushort ; } unsafe extern "C" { pub fn lcong48 (__param : * mut :: std :: os :: raw :: c_ushort) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct drand48_data { pub __x : [:: std :: os :: raw :: c_ushort ; 3usize] , pub __old_x : [:: std :: os :: raw :: c_ushort ; 3usize] , pub __c : :: std :: os :: raw :: c_ushort , pub __init : :: std :: os :: raw :: c_ushort , pub __a : :: std :: os :: raw :: c_ulonglong , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of drand48_data"] [:: std :: mem :: size_of :: < drand48_data > () - 24usize] ; ["Alignment of drand48_data"] [:: std :: mem :: align_of :: < drand48_data > () - 8usize] ; ["Offset of field: drand48_data::__x"] [:: std :: mem :: offset_of ! (drand48_data , __x) - 0usize] ; ["Offset of field: drand48_data::__old_x"] [:: std :: mem :: offset_of ! (drand48_data , __old_x) - 6usize] ; ["Offset of field: drand48_data::__c"] [:: std :: mem :: offset_of ! (drand48_data , __c) - 12usize] ; ["Offset of field: drand48_data::__init"] [:: std :: mem :: offset_of ! (drand48_data , __init) - 14usize] ; ["Offset of field: drand48_data::__a"] [:: std :: mem :: offset_of ! (drand48_data , __a) - 16usize] ; } ; unsafe extern "C" { pub fn drand48_r (__buffer : * mut drand48_data , __result : * mut f64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn erand48_r (__xsubi : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data , __result : * mut f64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn lrand48_r (__buffer : * mut drand48_data , __result : * mut :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn nrand48_r (__xsubi : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data , __result : * mut :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mrand48_r (__buffer : * mut drand48_data , __result : * mut :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn jrand48_r (__xsubi : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data , __result : * mut :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn srand48_r (__seedval : :: std :: os :: raw :: c_long , __buffer : * mut drand48_data) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn seed48_r (__seed16v : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn lcong48_r (__param : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn arc4random () -> __uint32_t ; } unsafe extern "C" { pub fn arc4random_buf (__buf : * mut :: std :: os :: raw :: c_void , __size : usize) ; } unsafe extern "C" { pub fn arc4random_uniform (__upper_bound : __uint32_t) -> __uint32_t ; } unsafe extern "C" { pub fn malloc (__size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } unsafe extern "C" { pub fn calloc (__nmemb : :: std :: os :: raw :: c_ulong , __size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } unsafe extern "C" { pub fn realloc (__ptr : * mut :: std :: os :: raw :: c_void , __size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } unsafe extern "C" { pub fn free (__ptr : * mut :: std :: os :: raw :: c_void) ; } unsafe extern "C" { pub fn reallocarray (__ptr : * mut :: std :: os :: raw :: c_void , __nmemb : usize , __size : usize) -> * mut :: std :: os :: raw :: c_void ; } unsafe extern "C" { pub fn alloca (__size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } unsafe extern "C" { pub fn valloc (__size : usize) -> * mut :: std :: os :: raw :: c_void ; } unsafe extern "C" { pub fn posix_memalign (__memptr : * mut * mut :: std :: os :: raw :: c_void , __alignment : usize , __size : usize) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn aligned_alloc (__alignment : :: std :: os :: raw :: c_ulong , __size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } unsafe extern "C" { pub fn abort () -> ! ; } unsafe extern "C" { pub fn atexit (__func : :: std :: option :: Option < unsafe extern "C" fn () >) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn at_quick_exit (__func : :: std :: option :: Option < unsafe extern "C" fn () >) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn on_exit (__func : :: std :: option :: Option < unsafe extern "C" fn (__status : :: std :: os :: raw :: c_int , __arg : * mut :: std :: os :: raw :: c_void) > , __arg : * mut :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn exit (__status : :: std :: os :: raw :: c_int) -> ! ; } unsafe extern "C" { pub fn quick_exit (__status : :: std :: os :: raw :: c_int) -> ! ; } unsafe extern "C" { pub fn _Exit (__status : :: std :: os :: raw :: c_int) -> ! ; } unsafe extern "C" { pub fn getenv (__name : * const :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn putenv (__string : * mut :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn setenv (__name : * const :: std :: os :: raw :: c_char , __value : * const :: std :: os :: raw :: c_char , __replace : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn unsetenv (__name : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn clearenv () -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mktemp (__template : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn mkstemp (__template : * mut :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mkstemps (__template : * mut :: std :: os :: raw :: c_char , __suffixlen : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mkdtemp (__template : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn system (__command : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn realpath (__name : * const :: std :: os :: raw :: c_char , __resolved : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } pub type __compar_fn_t = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * const :: std :: os :: raw :: c_void , arg2 : * const :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int > ; unsafe extern "C" { pub fn bsearch (__key : * const :: std :: os :: raw :: c_void , __base : * const :: std :: os :: raw :: c_void , __nmemb : usize , __size : usize , __compar : __compar_fn_t) -> * mut :: std :: os :: raw :: c_void ; } unsafe extern "C" { pub fn qsort (__base : * mut :: std :: os :: raw :: c_void , __nmemb : usize , __size : usize , __compar : __compar_fn_t) ; } unsafe extern "C" { pub fn abs (__x : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn labs (__x : :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn llabs (__x : :: std :: os :: raw :: c_longlong) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn div (__numer : :: std :: os :: raw :: c_int , __denom : :: std :: os :: raw :: c_int) -> div_t ; } unsafe extern "C" { pub fn ldiv (__numer : :: std :: os :: raw :: c_long , __denom : :: std :: os :: raw :: c_long) -> ldiv_t ; } unsafe extern "C" { pub fn lldiv (__numer : :: std :: os :: raw :: c_longlong , __denom : :: std :: os :: raw :: c_longlong) -> lldiv_t ; } unsafe extern "C" { pub fn ecvt (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn fcvt (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn gcvt (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn qecvt (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn qfcvt (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn qgcvt (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn ecvt_r (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char , __len : usize) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn fcvt_r (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char , __len : usize) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn qecvt_r (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char , __len : usize) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn qfcvt_r (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char , __len : usize) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mblen (__s : * const :: std :: os :: raw :: c_char , __n : usize) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mbtowc (__pwc : * mut wchar_t , __s : * const :: std :: os :: raw :: c_char , __n : usize) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn wctomb (__s : * mut :: std :: os :: raw :: c_char , __wchar : wchar_t) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mbstowcs (__pwcs : * mut wchar_t , __s : * const :: std :: os :: raw :: c_char , __n : usize) -> usize ; } unsafe extern "C" { pub fn wcstombs (__s : * mut :: std :: os :: raw :: c_char , __pwcs : * const wchar_t , __n : usize) -> usize ; } unsafe extern "C" { pub fn rpmatch (__response : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getsubopt (__optionp : * mut * mut :: std :: os :: raw :: c_char , __tokens : * const * mut :: std :: os :: raw :: c_char , __valuep : * mut * mut :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getloadavg (__loadavg : * mut f64 , __nelem : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } # [repr (C)] # [repr (align (16))] # [derive (Debug , Copy , Clone)] pub struct max_align_t { pub __clang_max_align_nonce1 : :: std :: os :: raw :: c_longlong , pub __bindgen_padding_0 : u64 , pub __clang_max_align_nonce2 : u128 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of max_align_t"] [:: std :: mem :: size_of :: < max_align_t > () - 32usize] ; ["Alignment of max_align_t"] [:: std :: mem :: align_of :: < max_align_t > () - 16usize] ; ["Offset of field: max_align_t::__clang_max_align_nonce1"] [:: std :: mem :: offset_of ! (max_align_t , __clang_max_align_nonce1) - 0usize] ; ["Offset of field: max_align_t::__clang_max_align_nonce2"] [:: std :: mem :: offset_of ! (max_align_t , __clang_max_align_nonce2) - 16usize] ; } ; pub type int_least8_t = __int_least8_t ; pub type int_least16_t = __int_least16_t ; pub type int_least32_t = __int_least32_t ; pub type int_least64_t = __int_least64_t ; pub type uint_least8_t = __uint_least8_t ; pub type uint_least16_t = __uint_least16_t ; pub type uint_least32_t = __uint_least32_t ; pub type uint_least64_t = __uint_least64_t ; pub type int_fast8_t = :: std :: os :: raw :: c_schar ; pub type int_fast16_t = :: std :: os :: raw :: c_long ; pub type int_fast32_t = :: std :: os :: raw :: c_long ; pub type int_fast64_t = :: std :: os :: raw :: c_long ; pub type uint_fast8_t = :: std :: os :: raw :: c_uchar ; pub type uint_fast16_t = :: std :: os :: raw :: c_ulong ; pub type uint_fast32_t = :: std :: os :: raw :: c_ulong ; pub type uint_fast64_t = :: std :: os :: raw :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub type __gwchar_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct imaxdiv_t { pub quot : :: std :: os :: raw :: c_long , pub rem : :: std :: os :: raw :: c_long , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of imaxdiv_t"] [:: std :: mem :: size_of :: < imaxdiv_t > () - 16usize] ; ["Alignment of imaxdiv_t"] [:: std :: mem :: align_of :: < imaxdiv_t > () - 8usize] ; ["Offset of field: imaxdiv_t::quot"] [:: std :: mem :: offset_of ! (imaxdiv_t , quot) - 0usize] ; ["Offset of field: imaxdiv_t::rem"] [:: std :: mem :: offset_of ! (imaxdiv_t , rem) - 8usize] ; } ; unsafe extern "C" { pub fn imaxabs (__n : intmax_t) -> intmax_t ; } unsafe extern "C" { pub fn imaxdiv (__numer : intmax_t , __denom : intmax_t) -> imaxdiv_t ; } unsafe extern "C" { pub fn strtoimax (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> intmax_t ; } unsafe extern "C" { pub fn strtoumax (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> uintmax_t ; } unsafe extern "C" { pub fn wcstoimax (__nptr : * const __gwchar_t , __endptr : * mut * mut __gwchar_t , __base : :: std :: os :: raw :: c_int) -> intmax_t ; } unsafe extern "C" { pub fn wcstoumax (__nptr : * const __gwchar_t , __endptr : * mut * mut __gwchar_t , __base : :: std :: os :: raw :: c_int) -> uintmax_t ; } # [doc = "=============================================================================\n                      Compiler and Platform Features\n============================================================================="] pub type i8_ = i8 ; pub type u8_ = u8 ; pub type i16_ = i16 ; pub type u16_ = u16 ; pub type i32_ = i32 ; pub type u32_ = u32 ; pub type i64_ = i64 ; pub type u64_ = u64 ; pub type f32_ = f32 ; pub type f64_ = f64 ; # [doc = "=============================================================================\n                               Xoroshiro 128\n============================================================================="] # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Xoroshiro { pub lo : u64 , pub hi : u64 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Xoroshiro"] [:: std :: mem :: size_of :: < Xoroshiro > () - 16usize] ; ["Alignment of Xoroshiro"] [:: std :: mem :: align_of :: < Xoroshiro > () - 8usize] ; ["Offset of field: Xoroshiro::lo"] [:: std :: mem :: offset_of ! (Xoroshiro , lo) - 0usize] ; ["Offset of field: Xoroshiro::hi"] [:: std :: mem :: offset_of ! (Xoroshiro , hi) - 8usize] ; } ; pub type float_t = f32 ; pub type double_t = f64 ; unsafe extern "C" { pub fn __fpclassify (__value : f64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __signbit (__value : f64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __isinf (__value : f64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __finite (__value : f64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __isnan (__value : f64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __iseqsig (__x : f64 , __y : f64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __issignaling (__value : f64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn acos (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __acos (__x : f64) -> f64 ; } unsafe extern "C" { pub fn asin (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __asin (__x : f64) -> f64 ; } unsafe extern "C" { pub fn atan (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __atan (__x : f64) -> f64 ; } unsafe extern "C" { pub fn atan2 (__y : f64 , __x : f64) -> f64 ; } unsafe extern "C" { pub fn __atan2 (__y : f64 , __x : f64) -> f64 ; } unsafe extern "C" { pub fn cos (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __cos (__x : f64) -> f64 ; } unsafe extern "C" { pub fn sin (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __sin (__x : f64) -> f64 ; } unsafe extern "C" { pub fn tan (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __tan (__x : f64) -> f64 ; } unsafe extern "C" { pub fn cosh (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __cosh (__x : f64) -> f64 ; } unsafe extern "C" { pub fn sinh (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __sinh (__x : f64) -> f64 ; } unsafe extern "C" { pub fn tanh (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __tanh (__x : f64) -> f64 ; } unsafe extern "C" { pub fn acosh (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __acosh (__x : f64) -> f64 ; } unsafe extern "C" { pub fn asinh (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __asinh (__x : f64) -> f64 ; } unsafe extern "C" { pub fn atanh (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __atanh (__x : f64) -> f64 ; } unsafe extern "C" { pub fn exp (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __exp (__x : f64) -> f64 ; } unsafe extern "C" { pub fn frexp (__x : f64 , __exponent : * mut :: std :: os :: raw :: c_int) -> f64 ; } unsafe extern "C" { pub fn __frexp (__x : f64 , __exponent : * mut :: std :: os :: raw :: c_int) -> f64 ; } unsafe extern "C" { pub fn ldexp (__x : f64 , __exponent : :: std :: os :: raw :: c_int) -> f64 ; } unsafe extern "C" { pub fn __ldexp (__x : f64 , __exponent : :: std :: os :: raw :: c_int) -> f64 ; } unsafe extern "C" { pub fn log (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __log (__x : f64) -> f64 ; } unsafe extern "C" { pub fn log10 (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __log10 (__x : f64) -> f64 ; } unsafe extern "C" { pub fn modf (__x : f64 , __iptr : * mut f64) -> f64 ; } unsafe extern "C" { pub fn __modf (__x : f64 , __iptr : * mut f64) -> f64 ; } unsafe extern "C" { pub fn expm1 (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __expm1 (__x : f64) -> f64 ; } unsafe extern "C" { pub fn log1p (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __log1p (__x : f64) -> f64 ; } unsafe extern "C" { pub fn logb (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __logb (__x : f64) -> f64 ; } unsafe extern "C" { pub fn exp2 (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __exp2 (__x : f64) -> f64 ; } unsafe extern "C" { pub fn log2 (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __log2 (__x : f64) -> f64 ; } unsafe extern "C" { pub fn pow (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn __pow (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn sqrt (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __sqrt (__x : f64) -> f64 ; } unsafe extern "C" { pub fn hypot (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn __hypot (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn cbrt (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __cbrt (__x : f64) -> f64 ; } unsafe extern "C" { pub fn ceil (__x : f64) -> f64 ; } unsafe extern "C" { pub fn fabs (__x : f64) -> f64 ; } unsafe extern "C" { pub fn floor (__x : f64) -> f64 ; } unsafe extern "C" { pub fn fmod (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn __fmod (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn isinf (__value : f64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn finite (__value : f64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn drem (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn __drem (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn significand (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __significand (__x : f64) -> f64 ; } unsafe extern "C" { pub fn copysign (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn nan (__tagb : * const :: std :: os :: raw :: c_char) -> f64 ; } unsafe extern "C" { pub fn __nan (__tagb : * const :: std :: os :: raw :: c_char) -> f64 ; } unsafe extern "C" { pub fn isnan (__value : f64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn j0 (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn __j0 (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn j1 (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn __j1 (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn jn (arg1 : :: std :: os :: raw :: c_int , arg2 : f64) -> f64 ; } unsafe extern "C" { pub fn __jn (arg1 : :: std :: os :: raw :: c_int , arg2 : f64) -> f64 ; } unsafe extern "C" { pub fn y0 (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn __y0 (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn y1 (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn __y1 (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn yn (arg1 : :: std :: os :: raw :: c_int , arg2 : f64) -> f64 ; } unsafe extern "C" { pub fn __yn (arg1 : :: std :: os :: raw :: c_int , arg2 : f64) -> f64 ; } unsafe extern "C" { pub fn erf (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn __erf (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn erfc (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn __erfc (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn lgamma (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn __lgamma (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn tgamma (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn __tgamma (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn gamma (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn __gamma (arg1 : f64) -> f64 ; } unsafe extern "C" { pub fn lgamma_r (arg1 : f64 , __signgamp : * mut :: std :: os :: raw :: c_int) -> f64 ; } unsafe extern "C" { pub fn __lgamma_r (arg1 : f64 , __signgamp : * mut :: std :: os :: raw :: c_int) -> f64 ; } unsafe extern "C" { pub fn rint (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __rint (__x : f64) -> f64 ; } unsafe extern "C" { pub fn nextafter (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn __nextafter (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn nexttoward (__x : f64 , __y : u128) -> f64 ; } unsafe extern "C" { pub fn __nexttoward (__x : f64 , __y : u128) -> f64 ; } unsafe extern "C" { pub fn remainder (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn __remainder (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn scalbn (__x : f64 , __n : :: std :: os :: raw :: c_int) -> f64 ; } unsafe extern "C" { pub fn __scalbn (__x : f64 , __n : :: std :: os :: raw :: c_int) -> f64 ; } unsafe extern "C" { pub fn ilogb (__x : f64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __ilogb (__x : f64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn scalbln (__x : f64 , __n : :: std :: os :: raw :: c_long) -> f64 ; } unsafe extern "C" { pub fn __scalbln (__x : f64 , __n : :: std :: os :: raw :: c_long) -> f64 ; } unsafe extern "C" { pub fn nearbyint (__x : f64) -> f64 ; } unsafe extern "C" { pub fn __nearbyint (__x : f64) -> f64 ; } unsafe extern "C" { pub fn round (__x : f64) -> f64 ; } unsafe extern "C" { pub fn trunc (__x : f64) -> f64 ; } unsafe extern "C" { pub fn remquo (__x : f64 , __y : f64 , __quo : * mut :: std :: os :: raw :: c_int) -> f64 ; } unsafe extern "C" { pub fn __remquo (__x : f64 , __y : f64 , __quo : * mut :: std :: os :: raw :: c_int) -> f64 ; } unsafe extern "C" { pub fn lrint (__x : f64) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn __lrint (__x : f64) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn llrint (__x : f64) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn __llrint (__x : f64) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn lround (__x : f64) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn __lround (__x : f64) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn llround (__x : f64) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn __llround (__x : f64) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn fdim (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn __fdim (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn fmax (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn fmin (__x : f64 , __y : f64) -> f64 ; } unsafe extern "C" { pub fn fma (__x : f64 , __y : f64 , __z : f64) -> f64 ; } unsafe extern "C" { pub fn __fma (__x : f64 , __y : f64 , __z : f64) -> f64 ; } unsafe extern "C" { pub fn scalb (__x : f64 , __n : f64) -> f64 ; } unsafe extern "C" { pub fn __scalb (__x : f64 , __n : f64) -> f64 ; } unsafe extern "C" { pub fn __fpclassifyf (__value : f32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __signbitf (__value : f32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __isinff (__value : f32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __finitef (__value : f32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __isnanf (__value : f32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __iseqsigf (__x : f32 , __y : f32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __issignalingf (__value : f32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn acosf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __acosf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn asinf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __asinf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn atanf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __atanf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn atan2f (__y : f32 , __x : f32) -> f32 ; } unsafe extern "C" { pub fn __atan2f (__y : f32 , __x : f32) -> f32 ; } unsafe extern "C" { pub fn cosf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __cosf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn sinf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __sinf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn tanf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __tanf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn coshf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __coshf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn sinhf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __sinhf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn tanhf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __tanhf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn acoshf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __acoshf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn asinhf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __asinhf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn atanhf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __atanhf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn expf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __expf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn frexpf (__x : f32 , __exponent : * mut :: std :: os :: raw :: c_int) -> f32 ; } unsafe extern "C" { pub fn __frexpf (__x : f32 , __exponent : * mut :: std :: os :: raw :: c_int) -> f32 ; } unsafe extern "C" { pub fn ldexpf (__x : f32 , __exponent : :: std :: os :: raw :: c_int) -> f32 ; } unsafe extern "C" { pub fn __ldexpf (__x : f32 , __exponent : :: std :: os :: raw :: c_int) -> f32 ; } unsafe extern "C" { pub fn logf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __logf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn log10f (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __log10f (__x : f32) -> f32 ; } unsafe extern "C" { pub fn modff (__x : f32 , __iptr : * mut f32) -> f32 ; } unsafe extern "C" { pub fn __modff (__x : f32 , __iptr : * mut f32) -> f32 ; } unsafe extern "C" { pub fn expm1f (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __expm1f (__x : f32) -> f32 ; } unsafe extern "C" { pub fn log1pf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __log1pf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn logbf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __logbf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn exp2f (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __exp2f (__x : f32) -> f32 ; } unsafe extern "C" { pub fn log2f (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __log2f (__x : f32) -> f32 ; } unsafe extern "C" { pub fn powf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn __powf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn sqrtf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __sqrtf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn hypotf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn __hypotf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn cbrtf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __cbrtf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn ceilf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn fabsf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn floorf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn fmodf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn __fmodf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn isinff (__value : f32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn finitef (__value : f32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn dremf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn __dremf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn significandf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __significandf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn copysignf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn nanf (__tagb : * const :: std :: os :: raw :: c_char) -> f32 ; } unsafe extern "C" { pub fn __nanf (__tagb : * const :: std :: os :: raw :: c_char) -> f32 ; } unsafe extern "C" { pub fn isnanf (__value : f32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn j0f (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn __j0f (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn j1f (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn __j1f (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn jnf (arg1 : :: std :: os :: raw :: c_int , arg2 : f32) -> f32 ; } unsafe extern "C" { pub fn __jnf (arg1 : :: std :: os :: raw :: c_int , arg2 : f32) -> f32 ; } unsafe extern "C" { pub fn y0f (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn __y0f (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn y1f (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn __y1f (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn ynf (arg1 : :: std :: os :: raw :: c_int , arg2 : f32) -> f32 ; } unsafe extern "C" { pub fn __ynf (arg1 : :: std :: os :: raw :: c_int , arg2 : f32) -> f32 ; } unsafe extern "C" { pub fn erff (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn __erff (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn erfcf (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn __erfcf (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn lgammaf (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn __lgammaf (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn tgammaf (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn __tgammaf (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn gammaf (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn __gammaf (arg1 : f32) -> f32 ; } unsafe extern "C" { pub fn lgammaf_r (arg1 : f32 , __signgamp : * mut :: std :: os :: raw :: c_int) -> f32 ; } unsafe extern "C" { pub fn __lgammaf_r (arg1 : f32 , __signgamp : * mut :: std :: os :: raw :: c_int) -> f32 ; } unsafe extern "C" { pub fn rintf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __rintf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn nextafterf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn __nextafterf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn nexttowardf (__x : f32 , __y : u128) -> f32 ; } unsafe extern "C" { pub fn __nexttowardf (__x : f32 , __y : u128) -> f32 ; } unsafe extern "C" { pub fn remainderf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn __remainderf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn scalbnf (__x : f32 , __n : :: std :: os :: raw :: c_int) -> f32 ; } unsafe extern "C" { pub fn __scalbnf (__x : f32 , __n : :: std :: os :: raw :: c_int) -> f32 ; } unsafe extern "C" { pub fn ilogbf (__x : f32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __ilogbf (__x : f32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn scalblnf (__x : f32 , __n : :: std :: os :: raw :: c_long) -> f32 ; } unsafe extern "C" { pub fn __scalblnf (__x : f32 , __n : :: std :: os :: raw :: c_long) -> f32 ; } unsafe extern "C" { pub fn nearbyintf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn __nearbyintf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn roundf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn truncf (__x : f32) -> f32 ; } unsafe extern "C" { pub fn remquof (__x : f32 , __y : f32 , __quo : * mut :: std :: os :: raw :: c_int) -> f32 ; } unsafe extern "C" { pub fn __remquof (__x : f32 , __y : f32 , __quo : * mut :: std :: os :: raw :: c_int) -> f32 ; } unsafe extern "C" { pub fn lrintf (__x : f32) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn __lrintf (__x : f32) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn llrintf (__x : f32) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn __llrintf (__x : f32) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn lroundf (__x : f32) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn __lroundf (__x : f32) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn llroundf (__x : f32) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn __llroundf (__x : f32) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn fdimf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn __fdimf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn fmaxf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn fminf (__x : f32 , __y : f32) -> f32 ; } unsafe extern "C" { pub fn fmaf (__x : f32 , __y : f32 , __z : f32) -> f32 ; } unsafe extern "C" { pub fn __fmaf (__x : f32 , __y : f32 , __z : f32) -> f32 ; } unsafe extern "C" { pub fn scalbf (__x : f32 , __n : f32) -> f32 ; } unsafe extern "C" { pub fn __scalbf (__x : f32 , __n : f32) -> f32 ; } unsafe extern "C" { pub fn __fpclassifyl (__value : u128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __signbitl (__value : u128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __isinfl (__value : u128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __finitel (__value : u128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __isnanl (__value : u128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __iseqsigl (__x : u128 , __y : u128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __issignalingl (__value : u128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn acosl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __acosl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn asinl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __asinl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn atanl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __atanl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn atan2l (__y : u128 , __x : u128) -> u128 ; } unsafe extern "C" { pub fn __atan2l (__y : u128 , __x : u128) -> u128 ; } unsafe extern "C" { pub fn cosl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __cosl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn sinl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __sinl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn tanl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __tanl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn coshl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __coshl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn sinhl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __sinhl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn tanhl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __tanhl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn acoshl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __acoshl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn asinhl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __asinhl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn atanhl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __atanhl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn expl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __expl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn frexpl (__x : u128 , __exponent : * mut :: std :: os :: raw :: c_int) -> u128 ; } unsafe extern "C" { pub fn __frexpl (__x : u128 , __exponent : * mut :: std :: os :: raw :: c_int) -> u128 ; } unsafe extern "C" { pub fn ldexpl (__x : u128 , __exponent : :: std :: os :: raw :: c_int) -> u128 ; } unsafe extern "C" { pub fn __ldexpl (__x : u128 , __exponent : :: std :: os :: raw :: c_int) -> u128 ; } unsafe extern "C" { pub fn logl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __logl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn log10l (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __log10l (__x : u128) -> u128 ; } unsafe extern "C" { pub fn modfl (__x : u128 , __iptr : * mut u128) -> u128 ; } unsafe extern "C" { pub fn __modfl (__x : u128 , __iptr : * mut u128) -> u128 ; } unsafe extern "C" { pub fn expm1l (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __expm1l (__x : u128) -> u128 ; } unsafe extern "C" { pub fn log1pl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __log1pl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn logbl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __logbl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn exp2l (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __exp2l (__x : u128) -> u128 ; } unsafe extern "C" { pub fn log2l (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __log2l (__x : u128) -> u128 ; } unsafe extern "C" { pub fn powl (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn __powl (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn sqrtl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __sqrtl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn hypotl (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn __hypotl (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn cbrtl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __cbrtl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn ceill (__x : u128) -> u128 ; } unsafe extern "C" { pub fn fabsl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn floorl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn fmodl (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn __fmodl (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn isinfl (__value : u128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn finitel (__value : u128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn dreml (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn __dreml (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn significandl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __significandl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn copysignl (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn nanl (__tagb : * const :: std :: os :: raw :: c_char) -> u128 ; } unsafe extern "C" { pub fn __nanl (__tagb : * const :: std :: os :: raw :: c_char) -> u128 ; } unsafe extern "C" { pub fn isnanl (__value : u128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn j0l (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn __j0l (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn j1l (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn __j1l (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn jnl (arg1 : :: std :: os :: raw :: c_int , arg2 : u128) -> u128 ; } unsafe extern "C" { pub fn __jnl (arg1 : :: std :: os :: raw :: c_int , arg2 : u128) -> u128 ; } unsafe extern "C" { pub fn y0l (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn __y0l (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn y1l (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn __y1l (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn ynl (arg1 : :: std :: os :: raw :: c_int , arg2 : u128) -> u128 ; } unsafe extern "C" { pub fn __ynl (arg1 : :: std :: os :: raw :: c_int , arg2 : u128) -> u128 ; } unsafe extern "C" { pub fn erfl (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn __erfl (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn erfcl (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn __erfcl (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn lgammal (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn __lgammal (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn tgammal (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn __tgammal (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn gammal (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn __gammal (arg1 : u128) -> u128 ; } unsafe extern "C" { pub fn lgammal_r (arg1 : u128 , __signgamp : * mut :: std :: os :: raw :: c_int) -> u128 ; } unsafe extern "C" { pub fn __lgammal_r (arg1 : u128 , __signgamp : * mut :: std :: os :: raw :: c_int) -> u128 ; } unsafe extern "C" { pub fn rintl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __rintl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn nextafterl (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn __nextafterl (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn nexttowardl (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn __nexttowardl (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn remainderl (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn __remainderl (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn scalbnl (__x : u128 , __n : :: std :: os :: raw :: c_int) -> u128 ; } unsafe extern "C" { pub fn __scalbnl (__x : u128 , __n : :: std :: os :: raw :: c_int) -> u128 ; } unsafe extern "C" { pub fn ilogbl (__x : u128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __ilogbl (__x : u128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn scalblnl (__x : u128 , __n : :: std :: os :: raw :: c_long) -> u128 ; } unsafe extern "C" { pub fn __scalblnl (__x : u128 , __n : :: std :: os :: raw :: c_long) -> u128 ; } unsafe extern "C" { pub fn nearbyintl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn __nearbyintl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn roundl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn truncl (__x : u128) -> u128 ; } unsafe extern "C" { pub fn remquol (__x : u128 , __y : u128 , __quo : * mut :: std :: os :: raw :: c_int) -> u128 ; } unsafe extern "C" { pub fn __remquol (__x : u128 , __y : u128 , __quo : * mut :: std :: os :: raw :: c_int) -> u128 ; } unsafe extern "C" { pub fn lrintl (__x : u128) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn __lrintl (__x : u128) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn llrintl (__x : u128) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn __llrintl (__x : u128) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn lroundl (__x : u128) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn __lroundl (__x : u128) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn llroundl (__x : u128) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn __llroundl (__x : u128) -> :: std :: os :: raw :: c_longlong ; } unsafe extern "C" { pub fn fdiml (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn __fdiml (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn fmaxl (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn fminl (__x : u128 , __y : u128) -> u128 ; } unsafe extern "C" { pub fn fmal (__x : u128 , __y : u128 , __z : u128) -> u128 ; } unsafe extern "C" { pub fn __fmal (__x : u128 , __y : u128 , __z : u128) -> u128 ; } unsafe extern "C" { pub fn scalbl (__x : u128 , __n : u128) -> u128 ; } unsafe extern "C" { pub fn __scalbl (__x : u128 , __n : u128) -> u128 ; } unsafe extern "C" { pub fn __fpclassifyf128 (__value : _Float128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __signbitf128 (__value : _Float128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __isinff128 (__value : _Float128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __finitef128 (__value : _Float128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __isnanf128 (__value : _Float128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __iseqsigf128 (__x : _Float128 , __y : _Float128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __issignalingf128 (__value : _Float128) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub static mut signgam : :: std :: os :: raw :: c_int ; } pub const FP_NAN : _bindgen_ty_1 = _bindgen_ty_1 (0) ; pub const FP_INFINITE : _bindgen_ty_1 = _bindgen_ty_1 (1) ; pub const FP_ZERO : _bindgen_ty_1 = _bindgen_ty_1 (2) ; pub const FP_SUBNORMAL : _bindgen_ty_1 = _bindgen_ty_1 (3) ; pub const FP_NORMAL : _bindgen_ty_1 = _bindgen_ty_1 (4) ; # [repr (transparent)] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct _bindgen_ty_1 (pub :: std :: os :: raw :: c_uint) ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct PerlinNoise { pub d : [u8 ; 257usize] , pub h2 : u8 , pub a : f64 , pub b : f64 , pub c : f64 , pub amplitude : f64 , pub lacunarity : f64 , pub d2 : f64 , pub t2 : f64 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of PerlinNoise"] [:: std :: mem :: size_of :: < PerlinNoise > () - 320usize] ; ["Alignment of PerlinNoise"] [:: std :: mem :: align_of :: < PerlinNoise > () - 8usize] ; ["Offset of field: PerlinNoise::d"] [:: std :: mem :: offset_of ! (PerlinNoise , d) - 0usize] ; ["Offset of field: PerlinNoise::h2"] [:: std :: mem :: offset_of ! (PerlinNoise , h2) - 257usize] ; ["Offset of field: PerlinNoise::a"] [:: std :: mem :: offset_of ! (PerlinNoise , a) - 264usize] ; ["Offset of field: PerlinNoise::b"] [:: std :: mem :: offset_of ! (PerlinNoise , b) - 272usize] ; ["Offset of field: PerlinNoise::c"] [:: std :: mem :: offset_of ! (PerlinNoise , c) - 280usize] ; ["Offset of field: PerlinNoise::amplitude"] [:: std :: mem :: offset_of ! (PerlinNoise , amplitude) - 288usize] ; ["Offset of field: PerlinNoise::lacunarity"] [:: std :: mem :: offset_of ! (PerlinNoise , lacunarity) - 296usize] ; ["Offset of field: PerlinNoise::d2"] [:: std :: mem :: offset_of ! (PerlinNoise , d2) - 304usize] ; ["Offset of field: PerlinNoise::t2"] [:: std :: mem :: offset_of ! (PerlinNoise , t2) - 312usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct OctaveNoise { pub octcnt : :: std :: os :: raw :: c_int , pub octaves : * mut PerlinNoise , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of OctaveNoise"] [:: std :: mem :: size_of :: < OctaveNoise > () - 16usize] ; ["Alignment of OctaveNoise"] [:: std :: mem :: align_of :: < OctaveNoise > () - 8usize] ; ["Offset of field: OctaveNoise::octcnt"] [:: std :: mem :: offset_of ! (OctaveNoise , octcnt) - 0usize] ; ["Offset of field: OctaveNoise::octaves"] [:: std :: mem :: offset_of ! (OctaveNoise , octaves) - 8usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct DoublePerlinNoise { pub amplitude : f64 , pub octA : OctaveNoise , pub octB : OctaveNoise , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of DoublePerlinNoise"] [:: std :: mem :: size_of :: < DoublePerlinNoise > () - 40usize] ; ["Alignment of DoublePerlinNoise"] [:: std :: mem :: align_of :: < DoublePerlinNoise > () - 8usize] ; ["Offset of field: DoublePerlinNoise::amplitude"] [:: std :: mem :: offset_of ! (DoublePerlinNoise , amplitude) - 0usize] ; ["Offset of field: DoublePerlinNoise::octA"] [:: std :: mem :: offset_of ! (DoublePerlinNoise , octA) - 8usize] ; ["Offset of field: DoublePerlinNoise::octB"] [:: std :: mem :: offset_of ! (DoublePerlinNoise , octB) - 24usize] ; } ; unsafe extern "C" { # [doc = " Perlin noise"] pub fn perlinInit (noise : * mut PerlinNoise , seed : * mut u64) ; } unsafe extern "C" { pub fn xPerlinInit (noise : * mut PerlinNoise , xr : * mut Xoroshiro) ; } unsafe extern "C" { pub fn samplePerlin (noise : * const PerlinNoise , x : f64 , y : f64 , z : f64 , yamp : f64 , ymin : f64) -> f64 ; } unsafe extern "C" { pub fn sampleSimplex2D (noise : * const PerlinNoise , x : f64 , y : f64) -> f64 ; } unsafe extern "C" { # [doc = " Perlin Octaves"] pub fn octaveInit (noise : * mut OctaveNoise , seed : * mut u64 , octaves : * mut PerlinNoise , omin : :: std :: os :: raw :: c_int , len : :: std :: os :: raw :: c_int) ; } unsafe extern "C" { pub fn octaveInitBeta (noise : * mut OctaveNoise , seed : * mut u64 , octaves : * mut PerlinNoise , octcnt : :: std :: os :: raw :: c_int , lac : f64 , lacMul : f64 , persist : f64 , persistMul : f64) ; } unsafe extern "C" { pub fn xOctaveInit (noise : * mut OctaveNoise , xr : * mut Xoroshiro , octaves : * mut PerlinNoise , amplitudes : * const f64 , omin : :: std :: os :: raw :: c_int , len : :: std :: os :: raw :: c_int , nmax : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn sampleOctave (noise : * const OctaveNoise , x : f64 , y : f64 , z : f64) -> f64 ; } unsafe extern "C" { pub fn sampleOctaveAmp (noise : * const OctaveNoise , x : f64 , y : f64 , z : f64 , yamp : f64 , ymin : f64 , ydefault : :: std :: os :: raw :: c_int) -> f64 ; } unsafe extern "C" { pub fn sampleOctave2D (noise : * const OctaveNoise , x : f64 , z : f64) -> f64 ; } unsafe extern "C" { pub fn sampleOctaveBeta17Biome (noise : * const OctaveNoise , x : f64 , z : f64) -> f64 ; } unsafe extern "C" { pub fn sampleOctaveBeta17Terrain (noise : * const OctaveNoise , v : * mut f64 , x : f64 , z : f64 , yLacFlag : :: std :: os :: raw :: c_int , lacmin : f64) ; } unsafe extern "C" { # [doc = " Double Perlin"] pub fn doublePerlinInit (noise : * mut DoublePerlinNoise , seed : * mut u64 , octavesA : * mut PerlinNoise , octavesB : * mut PerlinNoise , omin : :: std :: os :: raw :: c_int , len : :: std :: os :: raw :: c_int) ; } unsafe extern "C" { pub fn xDoublePerlinInit (noise : * mut DoublePerlinNoise , xr : * mut Xoroshiro , octaves : * mut PerlinNoise , amplitudes : * const f64 , omin : :: std :: os :: raw :: c_int , len : :: std :: os :: raw :: c_int , nmax : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn sampleDoublePerlin (noise : * const DoublePerlinNoise , x : f64 , y : f64 , z : f64) -> f64 ; } impl MCVersion { pub const MC_UNDEF : MCVersion = MCVersion (0) ; } impl MCVersion { pub const MC_B1_7 : MCVersion = MCVersion (1) ; } impl MCVersion { pub const MC_B1_8 : MCVersion = MCVersion (2) ; } impl MCVersion { pub const MC_1_0_0 : MCVersion = MCVersion (3) ; } impl MCVersion { pub const MC_1_0 : MCVersion = MCVersion (3) ; } impl MCVersion { pub const MC_1_1_0 : MCVersion = MCVersion (4) ; } impl MCVersion { pub const MC_1_1 : MCVersion = MCVersion (4) ; } impl MCVersion { pub const MC_1_2_5 : MCVersion = MCVersion (5) ; } impl MCVersion { pub const MC_1_2 : MCVersion = MCVersion (5) ; } impl MCVersion { pub const MC_1_3_2 : MCVersion = MCVersion (6) ; } impl MCVersion { pub const MC_1_3 : MCVersion = MCVersion (6) ; } impl MCVersion { pub const MC_1_4_7 : MCVersion = MCVersion (7) ; } impl MCVersion { pub const MC_1_4 : MCVersion = MCVersion (7) ; } impl MCVersion { pub const MC_1_5_2 : MCVersion = MCVersion (8) ; } impl MCVersion { pub const MC_1_5 : MCVersion = MCVersion (8) ; } impl MCVersion { pub const MC_1_6_4 : MCVersion = MCVersion (9) ; } impl MCVersion { pub const MC_1_6 : MCVersion = MCVersion (9) ; } impl MCVersion { pub const MC_1_7_10 : MCVersion = MCVersion (10) ; } impl MCVersion { pub const MC_1_7 : MCVersion = MCVersion (10) ; } impl MCVersion { pub const MC_1_8_9 : MCVersion = MCVersion (11) ; } impl MCVersion { pub const MC_1_8 : MCVersion = MCVersion (11) ; } impl MCVersion { pub const MC_1_9_4 : MCVersion = MCVersion (12) ; } impl MCVersion { pub const MC_1_9 : MCVersion = MCVersion (12) ; } impl MCVersion { pub const MC_1_10_2 : MCVersion = MCVersion (13) ; } impl MCVersion { pub const MC_1_10 : MCVersion = MCVersion (13) ; } impl MCVersion { pub const MC_1_11_2 : MCVersion = MCVersion (14) ; } impl MCVersion { pub const MC_1_11 : MCVersion = MCVersion (14) ; } impl MCVersion { pub const MC_1_12_2 : MCVersion = MCVersion (15) ; } impl MCVersion { pub const MC_1_12 : MCVersion = MCVersion (15) ; } impl MCVersion { pub const MC_1_13_2 : MCVersion = MCVersion (16) ; } impl MCVersion { pub const MC_1_13 : MCVersion = MCVersion (16) ; } impl MCVersion { pub const MC_1_14_4 : MCVersion = MCVersion (17) ; } impl MCVersion { pub const MC_1_14 : MCVersion = MCVersion (17) ; } impl MCVersion { pub const MC_1_15_2 : MCVersion = MCVersion (18) ; } impl MCVersion { pub const MC_1_15 : MCVersion = MCVersion (18) ; } impl MCVersion { pub const MC_1_16_1 : MCVersion = MCVersion (19) ; } impl MCVersion { pub const MC_1_16_5 : MCVersion = MCVersion (20) ; } impl MCVersion { pub const MC_1_16 : MCVersion = MCVersion (20) ; } impl MCVersion { pub const MC_1_17_1 : MCVersion = MCVersion (21) ; } impl MCVersion { pub const MC_1_17 : MCVersion = MCVersion (21) ; } impl MCVersion { pub const MC_1_18_2 : MCVersion = MCVersion (22) ; } impl MCVersion { pub const MC_1_18 : MCVersion = MCVersion (22) ; } impl MCVersion { pub const MC_1_19_2 : MCVersion = MCVersion (23) ; } impl MCVersion { pub const MC_1_19_4 : MCVersion = MCVersion (24) ; } impl MCVersion { pub const MC_1_19 : MCVersion = MCVersion (24) ; } impl MCVersion { pub const MC_1_20_6 : MCVersion = MCVersion (25) ; } impl MCVersion { pub const MC_1_20 : MCVersion = MCVersion (25) ; } impl MCVersion { pub const MC_1_21_1 : MCVersion = MCVersion (26) ; } impl MCVersion { pub const MC_1_21_3 : MCVersion = MCVersion (27) ; } impl MCVersion { pub const MC_1_21_WD : MCVersion = MCVersion (28) ; } impl MCVersion { pub const MC_1_21 : MCVersion = MCVersion (28) ; } impl MCVersion { pub const MC_NEWEST : MCVersion = MCVersion (28) ; } # [repr (transparent)] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct MCVersion (pub :: std :: os :: raw :: c_uint) ; impl Dimension { pub const DIM_NETHER : Dimension = Dimension (- 1) ; } impl Dimension { pub const DIM_OVERWORLD : Dimension = Dimension (0) ; } impl Dimension { pub const DIM_END : Dimension = Dimension (1) ; } impl Dimension { pub const DIM_UNDEF : Dimension = Dimension (1000) ; } # [repr (transparent)] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct Dimension (pub :: std :: os :: raw :: c_int) ; impl BiomeID { pub const none : BiomeID = BiomeID (- 1) ; } impl BiomeID { pub const ocean : BiomeID = BiomeID (0) ; } impl BiomeID { pub const plains : BiomeID = BiomeID (1) ; } impl BiomeID { pub const desert : BiomeID = BiomeID (2) ; } impl BiomeID { pub const mountains : BiomeID = BiomeID (3) ; } impl BiomeID { pub const extremeHills : BiomeID = BiomeID (3) ; } impl BiomeID { pub const forest : BiomeID = BiomeID (4) ; } impl BiomeID { pub const taiga : BiomeID = BiomeID (5) ; } impl BiomeID { pub const swamp : BiomeID = BiomeID (6) ; } impl BiomeID { pub const swampland : BiomeID = BiomeID (6) ; } impl BiomeID { pub const river : BiomeID = BiomeID (7) ; } impl BiomeID { pub const nether_wastes : BiomeID = BiomeID (8) ; } impl BiomeID { pub const hell : BiomeID = BiomeID (8) ; } impl BiomeID { pub const the_end : BiomeID = BiomeID (9) ; } impl BiomeID { pub const sky : BiomeID = BiomeID (9) ; } impl BiomeID { pub const frozen_ocean : BiomeID = BiomeID (10) ; } impl BiomeID { pub const frozenOcean : BiomeID = BiomeID (10) ; } impl BiomeID { pub const frozen_river : BiomeID = BiomeID (11) ; } impl BiomeID { pub const frozenRiver : BiomeID = BiomeID (11) ; } impl BiomeID { pub const snowy_tundra : BiomeID = BiomeID (12) ; } impl BiomeID { pub const icePlains : BiomeID = BiomeID (12) ; } impl BiomeID { pub const snowy_mountains : BiomeID = BiomeID (13) ; } impl BiomeID { pub const iceMountains : BiomeID = BiomeID (13) ; } impl BiomeID { pub const mushroom_fields : BiomeID = BiomeID (14) ; } impl BiomeID { pub const mushroomIsland : BiomeID = BiomeID (14) ; } impl BiomeID { pub const mushroom_field_shore : BiomeID = BiomeID (15) ; } impl BiomeID { pub const mushroomIslandShore : BiomeID = BiomeID (15) ; } impl BiomeID { pub const beach : BiomeID = BiomeID (16) ; } impl BiomeID { pub const desert_hills : BiomeID = BiomeID (17) ; } impl BiomeID { pub const desertHills : BiomeID = BiomeID (17) ; } impl BiomeID { pub const wooded_hills : BiomeID = BiomeID (18) ; } impl BiomeID { pub const forestHills : BiomeID = BiomeID (18) ; } impl BiomeID { pub const taiga_hills : BiomeID = BiomeID (19) ; } impl BiomeID { pub const taigaHills : BiomeID = BiomeID (19) ; } impl BiomeID { pub const mountain_edge : BiomeID = BiomeID (20) ; } impl BiomeID { pub const extremeHillsEdge : BiomeID = BiomeID (20) ; } impl BiomeID { pub const jungle : BiomeID = BiomeID (21) ; } impl BiomeID { pub const jungle_hills : BiomeID = BiomeID (22) ; } impl BiomeID { pub const jungleHills : BiomeID = BiomeID (22) ; } impl BiomeID { pub const jungle_edge : BiomeID = BiomeID (23) ; } impl BiomeID { pub const jungleEdge : BiomeID = BiomeID (23) ; } impl BiomeID { pub const deep_ocean : BiomeID = BiomeID (24) ; } impl BiomeID { pub const deepOcean : BiomeID = BiomeID (24) ; } impl BiomeID { pub const stone_shore : BiomeID = BiomeID (25) ; } impl BiomeID { pub const stoneBeach : BiomeID = BiomeID (25) ; } impl BiomeID { pub const snowy_beach : BiomeID = BiomeID (26) ; } impl BiomeID { pub const coldBeach : BiomeID = BiomeID (26) ; } impl BiomeID { pub const birch_forest : BiomeID = BiomeID (27) ; } impl BiomeID { pub const birchForest : BiomeID = BiomeID (27) ; } impl BiomeID { pub const birch_forest_hills : BiomeID = BiomeID (28) ; } impl BiomeID { pub const birchForestHills : BiomeID = BiomeID (28) ; } impl BiomeID { pub const dark_forest : BiomeID = BiomeID (29) ; } impl BiomeID { pub const roofedForest : BiomeID = BiomeID (29) ; } impl BiomeID { pub const snowy_taiga : BiomeID = BiomeID (30) ; } impl BiomeID { pub const coldTaiga : BiomeID = BiomeID (30) ; } impl BiomeID { pub const snowy_taiga_hills : BiomeID = BiomeID (31) ; } impl BiomeID { pub const coldTaigaHills : BiomeID = BiomeID (31) ; } impl BiomeID { pub const giant_tree_taiga : BiomeID = BiomeID (32) ; } impl BiomeID { pub const megaTaiga : BiomeID = BiomeID (32) ; } impl BiomeID { pub const giant_tree_taiga_hills : BiomeID = BiomeID (33) ; } impl BiomeID { pub const megaTaigaHills : BiomeID = BiomeID (33) ; } impl BiomeID { pub const wooded_mountains : BiomeID = BiomeID (34) ; } impl BiomeID { pub const extremeHillsPlus : BiomeID = BiomeID (34) ; } impl BiomeID { pub const savanna : BiomeID = BiomeID (35) ; } impl BiomeID { pub const savanna_plateau : BiomeID = BiomeID (36) ; } impl BiomeID { pub const savannaPlateau : BiomeID = BiomeID (36) ; } impl BiomeID { pub const badlands : BiomeID = BiomeID (37) ; } impl BiomeID { pub const mesa : BiomeID = BiomeID (37) ; } impl BiomeID { pub const wooded_badlands_plateau : BiomeID = BiomeID (38) ; } impl BiomeID { pub const mesaPlateau_F : BiomeID = BiomeID (38) ; } impl BiomeID { pub const badlands_plateau : BiomeID = BiomeID (39) ; } impl BiomeID { pub const mesaPlateau : BiomeID = BiomeID (39) ; } impl BiomeID { pub const small_end_islands : BiomeID = BiomeID (40) ; } impl BiomeID { pub const end_midlands : BiomeID = BiomeID (41) ; } impl BiomeID { pub const end_highlands : BiomeID = BiomeID (42) ; } impl BiomeID { pub const end_barrens : BiomeID = BiomeID (43) ; } impl BiomeID { pub const warm_ocean : BiomeID = BiomeID (44) ; } impl BiomeID { pub const warmOcean : BiomeID = BiomeID (44) ; } impl BiomeID { pub const lukewarm_ocean : BiomeID = BiomeID (45) ; } impl BiomeID { pub const lukewarmOcean : BiomeID = BiomeID (45) ; } impl BiomeID { pub const cold_ocean : BiomeID = BiomeID (46) ; } impl BiomeID { pub const coldOcean : BiomeID = BiomeID (46) ; } impl BiomeID { pub const deep_warm_ocean : BiomeID = BiomeID (47) ; } impl BiomeID { pub const warmDeepOcean : BiomeID = BiomeID (47) ; } impl BiomeID { pub const deep_lukewarm_ocean : BiomeID = BiomeID (48) ; } impl BiomeID { pub const lukewarmDeepOcean : BiomeID = BiomeID (48) ; } impl BiomeID { pub const deep_cold_ocean : BiomeID = BiomeID (49) ; } impl BiomeID { pub const coldDeepOcean : BiomeID = BiomeID (49) ; } impl BiomeID { pub const deep_frozen_ocean : BiomeID = BiomeID (50) ; } impl BiomeID { pub const frozenDeepOcean : BiomeID = BiomeID (50) ; } impl BiomeID { pub const seasonal_forest : BiomeID = BiomeID (51) ; } impl BiomeID { pub const rainforest : BiomeID = BiomeID (52) ; } impl BiomeID { pub const shrubland : BiomeID = BiomeID (53) ; } impl BiomeID { pub const the_void : BiomeID = BiomeID (127) ; } impl BiomeID { pub const sunflower_plains : BiomeID = BiomeID (129) ; } impl BiomeID { pub const desert_lakes : BiomeID = BiomeID (130) ; } impl BiomeID { pub const gravelly_mountains : BiomeID = BiomeID (131) ; } impl BiomeID { pub const flower_forest : BiomeID = BiomeID (132) ; } impl BiomeID { pub const taiga_mountains : BiomeID = BiomeID (133) ; } impl BiomeID { pub const swamp_hills : BiomeID = BiomeID (134) ; } impl BiomeID { pub const ice_spikes : BiomeID = BiomeID (140) ; } impl BiomeID { pub const modified_jungle : BiomeID = BiomeID (149) ; } impl BiomeID { pub const modified_jungle_edge : BiomeID = BiomeID (151) ; } impl BiomeID { pub const tall_birch_forest : BiomeID = BiomeID (155) ; } impl BiomeID { pub const tall_birch_hills : BiomeID = BiomeID (156) ; } impl BiomeID { pub const dark_forest_hills : BiomeID = BiomeID (157) ; } impl BiomeID { pub const snowy_taiga_mountains : BiomeID = BiomeID (158) ; } impl BiomeID { pub const giant_spruce_taiga : BiomeID = BiomeID (160) ; } impl BiomeID { pub const giant_spruce_taiga_hills : BiomeID = BiomeID (161) ; } impl BiomeID { pub const modified_gravelly_mountains : BiomeID = BiomeID (162) ; } impl BiomeID { pub const shattered_savanna : BiomeID = BiomeID (163) ; } impl BiomeID { pub const shattered_savanna_plateau : BiomeID = BiomeID (164) ; } impl BiomeID { pub const eroded_badlands : BiomeID = BiomeID (165) ; } impl BiomeID { pub const modified_wooded_badlands_plateau : BiomeID = BiomeID (166) ; } impl BiomeID { pub const modified_badlands_plateau : BiomeID = BiomeID (167) ; } impl BiomeID { pub const bamboo_jungle : BiomeID = BiomeID (168) ; } impl BiomeID { pub const bamboo_jungle_hills : BiomeID = BiomeID (169) ; } impl BiomeID { pub const soul_sand_valley : BiomeID = BiomeID (170) ; } impl BiomeID { pub const crimson_forest : BiomeID = BiomeID (171) ; } impl BiomeID { pub const warped_forest : BiomeID = BiomeID (172) ; } impl BiomeID { pub const basalt_deltas : BiomeID = BiomeID (173) ; } impl BiomeID { pub const dripstone_caves : BiomeID = BiomeID (174) ; } impl BiomeID { pub const lush_caves : BiomeID = BiomeID (175) ; } impl BiomeID { pub const meadow : BiomeID = BiomeID (177) ; } impl BiomeID { pub const grove : BiomeID = BiomeID (178) ; } impl BiomeID { pub const snowy_slopes : BiomeID = BiomeID (179) ; } impl BiomeID { pub const jagged_peaks : BiomeID = BiomeID (180) ; } impl BiomeID { pub const frozen_peaks : BiomeID = BiomeID (181) ; } impl BiomeID { pub const stony_peaks : BiomeID = BiomeID (182) ; } impl BiomeID { pub const old_growth_birch_forest : BiomeID = BiomeID (155) ; } impl BiomeID { pub const old_growth_pine_taiga : BiomeID = BiomeID (32) ; } impl BiomeID { pub const old_growth_spruce_taiga : BiomeID = BiomeID (160) ; } impl BiomeID { pub const snowy_plains : BiomeID = BiomeID (12) ; } impl BiomeID { pub const sparse_jungle : BiomeID = BiomeID (23) ; } impl BiomeID { pub const stony_shore : BiomeID = BiomeID (25) ; } impl BiomeID { pub const windswept_hills : BiomeID = BiomeID (3) ; } impl BiomeID { pub const windswept_forest : BiomeID = BiomeID (34) ; } impl BiomeID { pub const windswept_gravelly_hills : BiomeID = BiomeID (131) ; } impl BiomeID { pub const windswept_savanna : BiomeID = BiomeID (163) ; } impl BiomeID { pub const wooded_badlands : BiomeID = BiomeID (38) ; } impl BiomeID { pub const deep_dark : BiomeID = BiomeID (183) ; } impl BiomeID { pub const mangrove_swamp : BiomeID = BiomeID (184) ; } impl BiomeID { pub const cherry_grove : BiomeID = BiomeID (185) ; } impl BiomeID { pub const pale_garden : BiomeID = BiomeID (186) ; } # [repr (transparent)] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct BiomeID (pub :: std :: os :: raw :: c_int) ; unsafe extern "C" { pub fn biomeExists (mc : :: std :: os :: raw :: c_int , id : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn isOverworld (mc : :: std :: os :: raw :: c_int , id : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getDimension (id : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getMutated (mc : :: std :: os :: raw :: c_int , id : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getCategory (mc : :: std :: os :: raw :: c_int , id : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn areSimilar (mc : :: std :: os :: raw :: c_int , id1 : :: std :: os :: raw :: c_int , id2 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn isMesa (id : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn isShallowOcean (id : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn isDeepOcean (id : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn isOceanic (id : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn isSnowy (id : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } impl BiomeTempCategory { pub const Oceanic : BiomeTempCategory = BiomeTempCategory (0) ; } impl BiomeTempCategory { pub const Warm : BiomeTempCategory = BiomeTempCategory (1) ; } impl BiomeTempCategory { pub const Lush : BiomeTempCategory = BiomeTempCategory (2) ; } impl BiomeTempCategory { pub const Cold : BiomeTempCategory = BiomeTempCategory (3) ; } impl BiomeTempCategory { pub const Freezing : BiomeTempCategory = BiomeTempCategory (4) ; } impl BiomeTempCategory { pub const Special : BiomeTempCategory = BiomeTempCategory (5) ; } # [repr (transparent)] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct BiomeTempCategory (pub :: std :: os :: raw :: c_uint) ; impl LayerId { pub const L_CONTINENT_4096 : LayerId = LayerId (0) ; } impl LayerId { pub const L_ISLAND_4096 : LayerId = LayerId (0) ; } impl LayerId { pub const L_ZOOM_4096 : LayerId = LayerId (1) ; } impl LayerId { pub const L_LAND_4096 : LayerId = LayerId (2) ; } impl LayerId { pub const L_ZOOM_2048 : LayerId = LayerId (3) ; } impl LayerId { pub const L_LAND_2048 : LayerId = LayerId (4) ; } impl LayerId { pub const L_ADD_ISLAND_2048 : LayerId = LayerId (4) ; } impl LayerId { pub const L_ZOOM_1024 : LayerId = LayerId (5) ; } impl LayerId { pub const L_LAND_1024_A : LayerId = LayerId (6) ; } impl LayerId { pub const L_ADD_ISLAND_1024A : LayerId = LayerId (6) ; } impl LayerId { pub const L_LAND_1024_B : LayerId = LayerId (7) ; } impl LayerId { pub const L_ADD_ISLAND_1024B : LayerId = LayerId (7) ; } impl LayerId { pub const L_LAND_1024_C : LayerId = LayerId (8) ; } impl LayerId { pub const L_ADD_ISLAND_1024C : LayerId = LayerId (8) ; } impl LayerId { pub const L_ISLAND_1024 : LayerId = LayerId (9) ; } impl LayerId { pub const L_REMOVE_OCEAN_1024 : LayerId = LayerId (9) ; } impl LayerId { pub const L_SNOW_1024 : LayerId = LayerId (10) ; } impl LayerId { pub const L_ADD_SNOW_1024 : LayerId = LayerId (10) ; } impl LayerId { pub const L_LAND_1024_D : LayerId = LayerId (11) ; } impl LayerId { pub const L_ADD_ISLAND_1024D : LayerId = LayerId (11) ; } impl LayerId { pub const L_COOL_1024 : LayerId = LayerId (12) ; } impl LayerId { pub const L_COOL_WARM_1024 : LayerId = LayerId (12) ; } impl LayerId { pub const L_HEAT_1024 : LayerId = LayerId (13) ; } impl LayerId { pub const L_HEAT_ICE_1024 : LayerId = LayerId (13) ; } impl LayerId { pub const L_SPECIAL_1024 : LayerId = LayerId (14) ; } impl LayerId { pub const L_ZOOM_512 : LayerId = LayerId (15) ; } impl LayerId { pub const L_LAND_512 : LayerId = LayerId (16) ; } impl LayerId { pub const L_ZOOM_256 : LayerId = LayerId (17) ; } impl LayerId { pub const L_LAND_256 : LayerId = LayerId (18) ; } impl LayerId { pub const L_ADD_ISLAND_256 : LayerId = LayerId (18) ; } impl LayerId { pub const L_MUSHROOM_256 : LayerId = LayerId (19) ; } impl LayerId { pub const L_ADD_MUSHROOM_256 : LayerId = LayerId (19) ; } impl LayerId { pub const L_DEEP_OCEAN_256 : LayerId = LayerId (20) ; } impl LayerId { pub const L_BIOME_256 : LayerId = LayerId (21) ; } impl LayerId { pub const L_BAMBOO_256 : LayerId = LayerId (22) ; } impl LayerId { pub const L14_BAMBOO_256 : LayerId = LayerId (22) ; } impl LayerId { pub const L_ZOOM_128 : LayerId = LayerId (23) ; } impl LayerId { pub const L_ZOOM_64 : LayerId = LayerId (24) ; } impl LayerId { pub const L_BIOME_EDGE_64 : LayerId = LayerId (25) ; } impl LayerId { pub const L_NOISE_256 : LayerId = LayerId (26) ; } impl LayerId { pub const L_RIVER_INIT_256 : LayerId = LayerId (26) ; } impl LayerId { pub const L_ZOOM_128_HILLS : LayerId = LayerId (27) ; } impl LayerId { pub const L_ZOOM_64_HILLS : LayerId = LayerId (28) ; } impl LayerId { pub const L_HILLS_64 : LayerId = LayerId (29) ; } impl LayerId { pub const L_SUNFLOWER_64 : LayerId = LayerId (30) ; } impl LayerId { pub const L_RARE_BIOME_64 : LayerId = LayerId (30) ; } impl LayerId { pub const L_ZOOM_32 : LayerId = LayerId (31) ; } impl LayerId { pub const L_LAND_32 : LayerId = LayerId (32) ; } impl LayerId { pub const L_ADD_ISLAND_32 : LayerId = LayerId (32) ; } impl LayerId { pub const L_ZOOM_16 : LayerId = LayerId (33) ; } impl LayerId { pub const L_SHORE_16 : LayerId = LayerId (34) ; } impl LayerId { pub const L_SWAMP_RIVER_16 : LayerId = LayerId (35) ; } impl LayerId { pub const L_ZOOM_8 : LayerId = LayerId (36) ; } impl LayerId { pub const L_ZOOM_4 : LayerId = LayerId (37) ; } impl LayerId { pub const L_SMOOTH_4 : LayerId = LayerId (38) ; } impl LayerId { pub const L_ZOOM_128_RIVER : LayerId = LayerId (39) ; } impl LayerId { pub const L_ZOOM_64_RIVER : LayerId = LayerId (40) ; } impl LayerId { pub const L_ZOOM_32_RIVER : LayerId = LayerId (41) ; } impl LayerId { pub const L_ZOOM_16_RIVER : LayerId = LayerId (42) ; } impl LayerId { pub const L_ZOOM_8_RIVER : LayerId = LayerId (43) ; } impl LayerId { pub const L_ZOOM_4_RIVER : LayerId = LayerId (44) ; } impl LayerId { pub const L_RIVER_4 : LayerId = LayerId (45) ; } impl LayerId { pub const L_SMOOTH_4_RIVER : LayerId = LayerId (46) ; } impl LayerId { pub const L_RIVER_MIX_4 : LayerId = LayerId (47) ; } impl LayerId { pub const L_OCEAN_TEMP_256 : LayerId = LayerId (48) ; } impl LayerId { pub const L13_OCEAN_TEMP_256 : LayerId = LayerId (48) ; } impl LayerId { pub const L_ZOOM_128_OCEAN : LayerId = LayerId (49) ; } impl LayerId { pub const L13_ZOOM_128 : LayerId = LayerId (49) ; } impl LayerId { pub const L_ZOOM_64_OCEAN : LayerId = LayerId (50) ; } impl LayerId { pub const L13_ZOOM_64 : LayerId = LayerId (50) ; } impl LayerId { pub const L_ZOOM_32_OCEAN : LayerId = LayerId (51) ; } impl LayerId { pub const L13_ZOOM_32 : LayerId = LayerId (51) ; } impl LayerId { pub const L_ZOOM_16_OCEAN : LayerId = LayerId (52) ; } impl LayerId { pub const L13_ZOOM_16 : LayerId = LayerId (52) ; } impl LayerId { pub const L_ZOOM_8_OCEAN : LayerId = LayerId (53) ; } impl LayerId { pub const L13_ZOOM_8 : LayerId = LayerId (53) ; } impl LayerId { pub const L_ZOOM_4_OCEAN : LayerId = LayerId (54) ; } impl LayerId { pub const L13_ZOOM_4 : LayerId = LayerId (54) ; } impl LayerId { pub const L_OCEAN_MIX_4 : LayerId = LayerId (55) ; } impl LayerId { pub const L13_OCEAN_MIX_4 : LayerId = LayerId (55) ; } impl LayerId { pub const L_VORONOI_1 : LayerId = LayerId (56) ; } impl LayerId { pub const L_VORONOI_ZOOM_1 : LayerId = LayerId (56) ; } impl LayerId { pub const L_ZOOM_LARGE_A : LayerId = LayerId (57) ; } impl LayerId { pub const L_ZOOM_LARGE_B : LayerId = LayerId (58) ; } impl LayerId { pub const L_ZOOM_L_RIVER_A : LayerId = LayerId (59) ; } impl LayerId { pub const L_ZOOM_L_RIVER_B : LayerId = LayerId (60) ; } impl LayerId { pub const L_NUM : LayerId = LayerId (61) ; } # [repr (transparent)] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct LayerId (pub :: std :: os :: raw :: c_uint) ; pub type mapfunc_t = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Layer { pub getMap : mapfunc_t , pub mc : i8 , pub zoom : i8 , pub edge : i8 , pub scale : :: std :: os :: raw :: c_int , pub layerSalt : u64 , pub startSalt : u64 , pub startSeed : u64 , pub noise : * mut :: std :: os :: raw :: c_void , pub data : * mut :: std :: os :: raw :: c_void , pub p : * mut Layer , pub p2 : * mut Layer , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Layer"] [:: std :: mem :: size_of :: < Layer > () - 72usize] ; ["Alignment of Layer"] [:: std :: mem :: align_of :: < Layer > () - 8usize] ; ["Offset of field: Layer::getMap"] [:: std :: mem :: offset_of ! (Layer , getMap) - 0usize] ; ["Offset of field: Layer::mc"] [:: std :: mem :: offset_of ! (Layer , mc) - 8usize] ; ["Offset of field: Layer::zoom"] [:: std :: mem :: offset_of ! (Layer , zoom) - 9usize] ; ["Offset of field: Layer::edge"] [:: std :: mem :: offset_of ! (Layer , edge) - 10usize] ; ["Offset of field: Layer::scale"] [:: std :: mem :: offset_of ! (Layer , scale) - 12usize] ; ["Offset of field: Layer::layerSalt"] [:: std :: mem :: offset_of ! (Layer , layerSalt) - 16usize] ; ["Offset of field: Layer::startSalt"] [:: std :: mem :: offset_of ! (Layer , startSalt) - 24usize] ; ["Offset of field: Layer::startSeed"] [:: std :: mem :: offset_of ! (Layer , startSeed) - 32usize] ; ["Offset of field: Layer::noise"] [:: std :: mem :: offset_of ! (Layer , noise) - 40usize] ; ["Offset of field: Layer::data"] [:: std :: mem :: offset_of ! (Layer , data) - 48usize] ; ["Offset of field: Layer::p"] [:: std :: mem :: offset_of ! (Layer , p) - 56usize] ; ["Offset of field: Layer::p2"] [:: std :: mem :: offset_of ! (Layer , p2) - 64usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct LayerStack { pub layers : [Layer ; 61usize] , pub entry_1 : * mut Layer , pub entry_4 : * mut Layer , pub entry_16 : * mut Layer , pub entry_64 : * mut Layer , pub entry_256 : * mut Layer , pub oceanRnd : PerlinNoise , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of LayerStack"] [:: std :: mem :: size_of :: < LayerStack > () - 4752usize] ; ["Alignment of LayerStack"] [:: std :: mem :: align_of :: < LayerStack > () - 8usize] ; ["Offset of field: LayerStack::layers"] [:: std :: mem :: offset_of ! (LayerStack , layers) - 0usize] ; ["Offset of field: LayerStack::entry_1"] [:: std :: mem :: offset_of ! (LayerStack , entry_1) - 4392usize] ; ["Offset of field: LayerStack::entry_4"] [:: std :: mem :: offset_of ! (LayerStack , entry_4) - 4400usize] ; ["Offset of field: LayerStack::entry_16"] [:: std :: mem :: offset_of ! (LayerStack , entry_16) - 4408usize] ; ["Offset of field: LayerStack::entry_64"] [:: std :: mem :: offset_of ! (LayerStack , entry_64) - 4416usize] ; ["Offset of field: LayerStack::entry_256"] [:: std :: mem :: offset_of ! (LayerStack , entry_256) - 4424usize] ; ["Offset of field: LayerStack::oceanRnd"] [:: std :: mem :: offset_of ! (LayerStack , oceanRnd) - 4432usize] ; } ; unsafe extern "C" { pub fn setLayerSeed (layer : * mut Layer , worldSeed : u64) ; } unsafe extern "C" { pub fn mapContinent (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapZoomFuzzy (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapZoom (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapLand (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapLand16 (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapLandB18 (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapIsland (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapSnow (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapSnow16 (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapCool (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapHeat (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapSpecial (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapMushroom (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapDeepOcean (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapBiome (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapBamboo (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapNoise (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapBiomeEdge (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapHills (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapRiver (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapSmooth (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapSunflower (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapShore (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapSwampRiver (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapRiverMix (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapOceanTemp (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapOceanMix (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapVoronoi (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapVoronoi114 (arg1 : * const Layer , arg2 : * mut :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int , arg5 : :: std :: os :: raw :: c_int , arg6 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getVoronoiSHA (worldSeed : u64) -> u64 ; } unsafe extern "C" { pub fn voronoiAccess3D (sha : u64 , x : :: std :: os :: raw :: c_int , y : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , x4 : * mut :: std :: os :: raw :: c_int , y4 : * mut :: std :: os :: raw :: c_int , z4 : * mut :: std :: os :: raw :: c_int) ; } unsafe extern "C" { pub fn mapVoronoiPlane (sha : u64 , out : * mut :: std :: os :: raw :: c_int , src : * mut :: std :: os :: raw :: c_int , x : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , w : :: std :: os :: raw :: c_int , h : :: std :: os :: raw :: c_int , y : :: std :: os :: raw :: c_int , px : :: std :: os :: raw :: c_int , pz : :: std :: os :: raw :: c_int , pw : :: std :: os :: raw :: c_int , ph : :: std :: os :: raw :: c_int) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Range { pub scale : :: std :: os :: raw :: c_int , pub x : :: std :: os :: raw :: c_int , pub z : :: std :: os :: raw :: c_int , pub sx : :: std :: os :: raw :: c_int , pub sz : :: std :: os :: raw :: c_int , pub y : :: std :: os :: raw :: c_int , pub sy : :: std :: os :: raw :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Range"] [:: std :: mem :: size_of :: < Range > () - 28usize] ; ["Alignment of Range"] [:: std :: mem :: align_of :: < Range > () - 4usize] ; ["Offset of field: Range::scale"] [:: std :: mem :: offset_of ! (Range , scale) - 0usize] ; ["Offset of field: Range::x"] [:: std :: mem :: offset_of ! (Range , x) - 4usize] ; ["Offset of field: Range::z"] [:: std :: mem :: offset_of ! (Range , z) - 8usize] ; ["Offset of field: Range::sx"] [:: std :: mem :: offset_of ! (Range , sx) - 12usize] ; ["Offset of field: Range::sz"] [:: std :: mem :: offset_of ! (Range , sz) - 16usize] ; ["Offset of field: Range::y"] [:: std :: mem :: offset_of ! (Range , y) - 20usize] ; ["Offset of field: Range::sy"] [:: std :: mem :: offset_of ! (Range , sy) - 24usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct NetherNoise { pub temperature : DoublePerlinNoise , pub humidity : DoublePerlinNoise , pub oct : [PerlinNoise ; 8usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of NetherNoise"] [:: std :: mem :: size_of :: < NetherNoise > () - 2640usize] ; ["Alignment of NetherNoise"] [:: std :: mem :: align_of :: < NetherNoise > () - 8usize] ; ["Offset of field: NetherNoise::temperature"] [:: std :: mem :: offset_of ! (NetherNoise , temperature) - 0usize] ; ["Offset of field: NetherNoise::humidity"] [:: std :: mem :: offset_of ! (NetherNoise , humidity) - 40usize] ; ["Offset of field: NetherNoise::oct"] [:: std :: mem :: offset_of ! (NetherNoise , oct) - 80usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct EndNoise { pub perlin : PerlinNoise , pub mc : :: std :: os :: raw :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of EndNoise"] [:: std :: mem :: size_of :: < EndNoise > () - 328usize] ; ["Alignment of EndNoise"] [:: std :: mem :: align_of :: < EndNoise > () - 8usize] ; ["Offset of field: EndNoise::perlin"] [:: std :: mem :: offset_of ! (EndNoise , perlin) - 0usize] ; ["Offset of field: EndNoise::mc"] [:: std :: mem :: offset_of ! (EndNoise , mc) - 320usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct SurfaceNoise { pub xzScale : f64 , pub yScale : f64 , pub xzFactor : f64 , pub yFactor : f64 , pub octmin : OctaveNoise , pub octmax : OctaveNoise , pub octmain : OctaveNoise , pub octsurf : OctaveNoise , pub octdepth : OctaveNoise , pub oct : [PerlinNoise ; 60usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of SurfaceNoise"] [:: std :: mem :: size_of :: < SurfaceNoise > () - 19312usize] ; ["Alignment of SurfaceNoise"] [:: std :: mem :: align_of :: < SurfaceNoise > () - 8usize] ; ["Offset of field: SurfaceNoise::xzScale"] [:: std :: mem :: offset_of ! (SurfaceNoise , xzScale) - 0usize] ; ["Offset of field: SurfaceNoise::yScale"] [:: std :: mem :: offset_of ! (SurfaceNoise , yScale) - 8usize] ; ["Offset of field: SurfaceNoise::xzFactor"] [:: std :: mem :: offset_of ! (SurfaceNoise , xzFactor) - 16usize] ; ["Offset of field: SurfaceNoise::yFactor"] [:: std :: mem :: offset_of ! (SurfaceNoise , yFactor) - 24usize] ; ["Offset of field: SurfaceNoise::octmin"] [:: std :: mem :: offset_of ! (SurfaceNoise , octmin) - 32usize] ; ["Offset of field: SurfaceNoise::octmax"] [:: std :: mem :: offset_of ! (SurfaceNoise , octmax) - 48usize] ; ["Offset of field: SurfaceNoise::octmain"] [:: std :: mem :: offset_of ! (SurfaceNoise , octmain) - 64usize] ; ["Offset of field: SurfaceNoise::octsurf"] [:: std :: mem :: offset_of ! (SurfaceNoise , octsurf) - 80usize] ; ["Offset of field: SurfaceNoise::octdepth"] [:: std :: mem :: offset_of ! (SurfaceNoise , octdepth) - 96usize] ; ["Offset of field: SurfaceNoise::oct"] [:: std :: mem :: offset_of ! (SurfaceNoise , oct) - 112usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct SurfaceNoiseBeta { pub octmin : OctaveNoise , pub octmax : OctaveNoise , pub octmain : OctaveNoise , pub octcontA : OctaveNoise , pub octcontB : OctaveNoise , pub oct : [PerlinNoise ; 66usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of SurfaceNoiseBeta"] [:: std :: mem :: size_of :: < SurfaceNoiseBeta > () - 21200usize] ; ["Alignment of SurfaceNoiseBeta"] [:: std :: mem :: align_of :: < SurfaceNoiseBeta > () - 8usize] ; ["Offset of field: SurfaceNoiseBeta::octmin"] [:: std :: mem :: offset_of ! (SurfaceNoiseBeta , octmin) - 0usize] ; ["Offset of field: SurfaceNoiseBeta::octmax"] [:: std :: mem :: offset_of ! (SurfaceNoiseBeta , octmax) - 16usize] ; ["Offset of field: SurfaceNoiseBeta::octmain"] [:: std :: mem :: offset_of ! (SurfaceNoiseBeta , octmain) - 32usize] ; ["Offset of field: SurfaceNoiseBeta::octcontA"] [:: std :: mem :: offset_of ! (SurfaceNoiseBeta , octcontA) - 48usize] ; ["Offset of field: SurfaceNoiseBeta::octcontB"] [:: std :: mem :: offset_of ! (SurfaceNoiseBeta , octcontB) - 64usize] ; ["Offset of field: SurfaceNoiseBeta::oct"] [:: std :: mem :: offset_of ! (SurfaceNoiseBeta , oct) - 80usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct SeaLevelColumnNoiseBeta { pub contASample : f64 , pub contBSample : f64 , pub minSample : [f64 ; 2usize] , pub maxSample : [f64 ; 2usize] , pub mainSample : [f64 ; 2usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of SeaLevelColumnNoiseBeta"] [:: std :: mem :: size_of :: < SeaLevelColumnNoiseBeta > () - 64usize] ; ["Alignment of SeaLevelColumnNoiseBeta"] [:: std :: mem :: align_of :: < SeaLevelColumnNoiseBeta > () - 8usize] ; ["Offset of field: SeaLevelColumnNoiseBeta::contASample"] [:: std :: mem :: offset_of ! (SeaLevelColumnNoiseBeta , contASample) - 0usize] ; ["Offset of field: SeaLevelColumnNoiseBeta::contBSample"] [:: std :: mem :: offset_of ! (SeaLevelColumnNoiseBeta , contBSample) - 8usize] ; ["Offset of field: SeaLevelColumnNoiseBeta::minSample"] [:: std :: mem :: offset_of ! (SeaLevelColumnNoiseBeta , minSample) - 16usize] ; ["Offset of field: SeaLevelColumnNoiseBeta::maxSample"] [:: std :: mem :: offset_of ! (SeaLevelColumnNoiseBeta , maxSample) - 32usize] ; ["Offset of field: SeaLevelColumnNoiseBeta::mainSample"] [:: std :: mem :: offset_of ! (SeaLevelColumnNoiseBeta , mainSample) - 48usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Spline { pub len : :: std :: os :: raw :: c_int , pub typ : :: std :: os :: raw :: c_int , pub loc : [f32 ; 12usize] , pub der : [f32 ; 12usize] , pub val : [* mut Spline ; 12usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Spline"] [:: std :: mem :: size_of :: < Spline > () - 200usize] ; ["Alignment of Spline"] [:: std :: mem :: align_of :: < Spline > () - 8usize] ; ["Offset of field: Spline::len"] [:: std :: mem :: offset_of ! (Spline , len) - 0usize] ; ["Offset of field: Spline::typ"] [:: std :: mem :: offset_of ! (Spline , typ) - 4usize] ; ["Offset of field: Spline::loc"] [:: std :: mem :: offset_of ! (Spline , loc) - 8usize] ; ["Offset of field: Spline::der"] [:: std :: mem :: offset_of ! (Spline , der) - 56usize] ; ["Offset of field: Spline::val"] [:: std :: mem :: offset_of ! (Spline , val) - 104usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FixSpline { pub len : :: std :: os :: raw :: c_int , pub val : f32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of FixSpline"] [:: std :: mem :: size_of :: < FixSpline > () - 8usize] ; ["Alignment of FixSpline"] [:: std :: mem :: align_of :: < FixSpline > () - 4usize] ; ["Offset of field: FixSpline::len"] [:: std :: mem :: offset_of ! (FixSpline , len) - 0usize] ; ["Offset of field: FixSpline::val"] [:: std :: mem :: offset_of ! (FixSpline , val) - 4usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct SplineStack { pub stack : [Spline ; 42usize] , pub fstack : [FixSpline ; 151usize] , pub len : :: std :: os :: raw :: c_int , pub flen : :: std :: os :: raw :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of SplineStack"] [:: std :: mem :: size_of :: < SplineStack > () - 9616usize] ; ["Alignment of SplineStack"] [:: std :: mem :: align_of :: < SplineStack > () - 8usize] ; ["Offset of field: SplineStack::stack"] [:: std :: mem :: offset_of ! (SplineStack , stack) - 0usize] ; ["Offset of field: SplineStack::fstack"] [:: std :: mem :: offset_of ! (SplineStack , fstack) - 8400usize] ; ["Offset of field: SplineStack::len"] [:: std :: mem :: offset_of ! (SplineStack , len) - 9608usize] ; ["Offset of field: SplineStack::flen"] [:: std :: mem :: offset_of ! (SplineStack , flen) - 9612usize] ; } ; pub const NP_TEMPERATURE : _bindgen_ty_2 = _bindgen_ty_2 (0) ; pub const NP_HUMIDITY : _bindgen_ty_2 = _bindgen_ty_2 (1) ; pub const NP_CONTINENTALNESS : _bindgen_ty_2 = _bindgen_ty_2 (2) ; pub const NP_EROSION : _bindgen_ty_2 = _bindgen_ty_2 (3) ; pub const NP_SHIFT : _bindgen_ty_2 = _bindgen_ty_2 (4) ; pub const NP_DEPTH : _bindgen_ty_2 = _bindgen_ty_2 (4) ; pub const NP_WEIRDNESS : _bindgen_ty_2 = _bindgen_ty_2 (5) ; pub const NP_MAX : _bindgen_ty_2 = _bindgen_ty_2 (6) ; # [repr (transparent)] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct _bindgen_ty_2 (pub :: std :: os :: raw :: c_uint) ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct BiomeNoise { pub climate : [DoublePerlinNoise ; 6usize] , pub oct : [PerlinNoise ; 46usize] , pub sp : * mut Spline , pub ss : SplineStack , pub nptype : :: std :: os :: raw :: c_int , pub mc : :: std :: os :: raw :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of BiomeNoise"] [:: std :: mem :: size_of :: < BiomeNoise > () - 24592usize] ; ["Alignment of BiomeNoise"] [:: std :: mem :: align_of :: < BiomeNoise > () - 8usize] ; ["Offset of field: BiomeNoise::climate"] [:: std :: mem :: offset_of ! (BiomeNoise , climate) - 0usize] ; ["Offset of field: BiomeNoise::oct"] [:: std :: mem :: offset_of ! (BiomeNoise , oct) - 240usize] ; ["Offset of field: BiomeNoise::sp"] [:: std :: mem :: offset_of ! (BiomeNoise , sp) - 14960usize] ; ["Offset of field: BiomeNoise::ss"] [:: std :: mem :: offset_of ! (BiomeNoise , ss) - 14968usize] ; ["Offset of field: BiomeNoise::nptype"] [:: std :: mem :: offset_of ! (BiomeNoise , nptype) - 24584usize] ; ["Offset of field: BiomeNoise::mc"] [:: std :: mem :: offset_of ! (BiomeNoise , mc) - 24588usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct BiomeNoiseBeta { pub climate : [OctaveNoise ; 3usize] , pub oct : [PerlinNoise ; 10usize] , pub nptype : :: std :: os :: raw :: c_int , pub mc : :: std :: os :: raw :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of BiomeNoiseBeta"] [:: std :: mem :: size_of :: < BiomeNoiseBeta > () - 3256usize] ; ["Alignment of BiomeNoiseBeta"] [:: std :: mem :: align_of :: < BiomeNoiseBeta > () - 8usize] ; ["Offset of field: BiomeNoiseBeta::climate"] [:: std :: mem :: offset_of ! (BiomeNoiseBeta , climate) - 0usize] ; ["Offset of field: BiomeNoiseBeta::oct"] [:: std :: mem :: offset_of ! (BiomeNoiseBeta , oct) - 48usize] ; ["Offset of field: BiomeNoiseBeta::nptype"] [:: std :: mem :: offset_of ! (BiomeNoiseBeta , nptype) - 3248usize] ; ["Offset of field: BiomeNoiseBeta::mc"] [:: std :: mem :: offset_of ! (BiomeNoiseBeta , mc) - 3252usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct BiomeTree { pub steps : * const u32 , pub param : * const i32 , pub nodes : * const u64 , pub order : u32 , pub len : u32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of BiomeTree"] [:: std :: mem :: size_of :: < BiomeTree > () - 32usize] ; ["Alignment of BiomeTree"] [:: std :: mem :: align_of :: < BiomeTree > () - 8usize] ; ["Offset of field: BiomeTree::steps"] [:: std :: mem :: offset_of ! (BiomeTree , steps) - 0usize] ; ["Offset of field: BiomeTree::param"] [:: std :: mem :: offset_of ! (BiomeTree , param) - 8usize] ; ["Offset of field: BiomeTree::nodes"] [:: std :: mem :: offset_of ! (BiomeTree , nodes) - 16usize] ; ["Offset of field: BiomeTree::order"] [:: std :: mem :: offset_of ! (BiomeTree , order) - 24usize] ; ["Offset of field: BiomeTree::len"] [:: std :: mem :: offset_of ! (BiomeTree , len) - 28usize] ; } ; unsafe extern "C" { pub fn initSurfaceNoise (sn : * mut SurfaceNoise , dim : :: std :: os :: raw :: c_int , seed : u64) ; } unsafe extern "C" { pub fn initSurfaceNoiseBeta (snb : * mut SurfaceNoiseBeta , seed : u64) ; } unsafe extern "C" { pub fn sampleSurfaceNoise (sn : * const SurfaceNoise , x : :: std :: os :: raw :: c_int , y : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int) -> f64 ; } unsafe extern "C" { pub fn sampleSurfaceNoiseBetween (sn : * const SurfaceNoise , x : :: std :: os :: raw :: c_int , y : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , noiseMin : f64 , noiseMax : f64) -> f64 ; } unsafe extern "C" { # [doc = " Nether biomes are 3D, and generated at scale 1:4. Use voronoiAccess3D() to\n convert coordinates at 1:1 scale to their 1:4 access. Biome checks for\n structures are generally done at y=0.\n\n The function getNetherBiome() determines the nether biome at a given\n coordinate at scale 1:4. The parameter 'ndel' is an output noise delta for\n optimization purposes and can be ignored (nullable).\n\n Use mapNether2D() to get a 2D area of nether biomes at y=0, scale 1:4.\n\n The mapNether3D() function attempts to optimize the generation of a volume\n at scale 1:4. The output is indexed as:\n out[i_y*(r.sx*r.sz) + i_z*r.sx + i_x].\n If the optimization parameter 'confidence' has a value less than 1.0, the\n generation will generally be faster, but can yield incorrect results in some\n circumstances.\n\n The output buffer for the map-functions need only be of sufficient size to\n hold the generated area (i.e. w*h or r.sx*r.sy*r.sz)."] pub fn setNetherSeed (nn : * mut NetherNoise , seed : u64) ; } unsafe extern "C" { pub fn getNetherBiome (nn : * const NetherNoise , x : :: std :: os :: raw :: c_int , y : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , ndel : * mut f32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapNether2D (nn : * const NetherNoise , out : * mut :: std :: os :: raw :: c_int , x : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , w : :: std :: os :: raw :: c_int , h : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapNether3D (nn : * const NetherNoise , out : * mut :: std :: os :: raw :: c_int , r : Range , confidence : f32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " The scaled Nether generation supports scales 1, 4, 16, 64, and 256.\n It is similar to mapNether3D(), but applies voronoi zoom if necessary, and\n fills the output buffer with nether_wastes for versions older than 1.16."] pub fn genNetherScaled (nn : * const NetherNoise , out : * mut :: std :: os :: raw :: c_int , r : Range , mc : :: std :: os :: raw :: c_int , sha : u64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " End biome generation is based on simplex noise and varies only at a 1:16\n chunk scale which can be generated with mapEndBiome(). The function mapEnd()\n is a variation which also scales this up on a regular grid to 1:4. The final\n access at a 1:1 scale uses voronoi."] pub fn setEndSeed (en : * mut EndNoise , mc : :: std :: os :: raw :: c_int , seed : u64) ; } unsafe extern "C" { pub fn mapEndBiome (en : * const EndNoise , out : * mut :: std :: os :: raw :: c_int , x : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , w : :: std :: os :: raw :: c_int , h : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapEnd (en : * const EndNoise , out : * mut :: std :: os :: raw :: c_int , x : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , w : :: std :: os :: raw :: c_int , h : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getEndSurfaceHeight (mc : :: std :: os :: raw :: c_int , seed : u64 , x : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapEndSurfaceHeight (y : * mut f32 , en : * const EndNoise , sn : * const SurfaceNoise , x : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , w : :: std :: os :: raw :: c_int , h : :: std :: os :: raw :: c_int , scale : :: std :: os :: raw :: c_int , ymin : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " The scaled End generation supports scales 1, 4, 16, and 64.\n The End biomes are usually 2D, but in 1.15+ there is 3D voronoi noise, which\n is controlled by the 'sha' hash of the seed. For scales higher than 1:1, and\n versions up to 1.14, 'sha' is ignored."] pub fn genEndScaled (en : * const EndNoise , out : * mut :: std :: os :: raw :: c_int , r : Range , mc : :: std :: os :: raw :: c_int , sha : u64) -> :: std :: os :: raw :: c_int ; } pub const SAMPLE_NO_SHIFT : _bindgen_ty_3 = _bindgen_ty_3 (1) ; pub const SAMPLE_NO_DEPTH : _bindgen_ty_3 = _bindgen_ty_3 (2) ; pub const SAMPLE_NO_BIOME : _bindgen_ty_3 = _bindgen_ty_3 (4) ; # [repr (transparent)] # [doc = " In 1.18 the Overworld uses a new noise map system for the biome generation.\n The random number generation also has updated to a Xiroshiro128 algorithm.\n The scale is 1:4, and is sampled at each point individually as there is\n currently not much benefit from generating a volume as a whole.\n\n The 1.18 End generation remains similar to 1.17 and does NOT use the\n biome noise."] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct _bindgen_ty_3 (pub :: std :: os :: raw :: c_uint) ; unsafe extern "C" { pub fn initBiomeNoise (bn : * mut BiomeNoise , mc : :: std :: os :: raw :: c_int) ; } unsafe extern "C" { pub fn setBiomeSeed (bn : * mut BiomeNoise , seed : u64 , large : :: std :: os :: raw :: c_int) ; } unsafe extern "C" { pub fn setBetaBiomeSeed (bnb : * mut BiomeNoiseBeta , seed : u64) ; } unsafe extern "C" { pub fn sampleBiomeNoise (bn : * const BiomeNoise , np : * mut i64 , x : :: std :: os :: raw :: c_int , y : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , dat : * mut u64 , sample_flags : u32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn sampleBiomeNoiseBeta (bnb : * const BiomeNoiseBeta , np : * mut i64 , nv : * mut f64 , x : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn approxSurfaceBeta (bnb : * const BiomeNoiseBeta , snb : * const SurfaceNoiseBeta , x : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int) -> f64 ; } unsafe extern "C" { # [doc = " (Alpha 1.2 - Beta 1.7)\n Temperature and humidity values to biome."] pub fn getOldBetaBiome (t : f32 , h : f32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " Uses the global biome tree definitions (see tables/btreeXX.h)\n to map a noise point (i.e. climate) to the corresponding overworld biome."] pub fn climateToBiome (mc : :: std :: os :: raw :: c_int , np : * const u64 , dat : * mut u64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " Initialize BiomeNoise for only a single climate parameter.\n If nptype == NP_DEPTH, the value is sampled at y=0. Note that this value\n changes linearly with the height (i.e. -= y/128).\n A maximum of nmax octaves is set, initializing only the most contributing\n octaves up to that point. Use -1 for a full initialization."] pub fn setClimateParaSeed (bn : * mut BiomeNoise , seed : u64 , large : :: std :: os :: raw :: c_int , nptype : :: std :: os :: raw :: c_int , nmax : :: std :: os :: raw :: c_int) ; } unsafe extern "C" { pub fn sampleClimatePara (bn : * const BiomeNoise , np : * mut i64 , x : f64 , z : f64) -> f64 ; } unsafe extern "C" { # [doc = " Currently, in 1.18, we have to generate biomes one chunk at a time to get an\n accurate mapping of the biomes in the level storage, as there is no longer a\n unique mapping from noise points to biomes (MC-241546). Note that the results\n from this are not suitable for chunk population/structure generation.\n The output is in the form out[x][y][z] for the 64 biome points in the chunk\n section. The coordinates {cx,cy,cz} are all at scale 1:16 and the 'dat'\n argument should be the previous noise sampling and can be left NULL."] pub fn genBiomeNoiseChunkSection (bn : * const BiomeNoise , out : * mut [[:: std :: os :: raw :: c_int ; 4usize] ; 4usize] , cx : :: std :: os :: raw :: c_int , cy : :: std :: os :: raw :: c_int , cz : :: std :: os :: raw :: c_int , dat : * mut u64) ; } unsafe extern "C" { # [doc = " The scaled biome noise generation applies for the Overworld version 1.18+.\n The 'sha' hash of the seed is only required for voronoi at scale 1:1.\n A scale of zero is interpreted as the default 1:4 scale."] pub fn genBiomeNoiseScaled (bn : * const BiomeNoise , out : * mut :: std :: os :: raw :: c_int , r : Range , sha : u64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " Generates the biomes for Beta 1.7, the surface noise is optional and enables\n ocean mapping in areas that fall below the sea level."] pub fn genBiomeNoiseBetaScaled (bnb : * const BiomeNoiseBeta , snb : * const SurfaceNoiseBeta , out : * mut :: std :: os :: raw :: c_int , r : Range) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getBiomeDepthAndScale (id : :: std :: os :: raw :: c_int , depth : * mut f64 , scale : * mut f64 , grass : * mut :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getVoronoiSrcRange (r : Range) -> Range ; } pub const LARGE_BIOMES : _bindgen_ty_4 = _bindgen_ty_4 (1) ; pub const NO_BETA_OCEAN : _bindgen_ty_4 = _bindgen_ty_4 (2) ; pub const FORCE_OCEAN_VARIANTS : _bindgen_ty_4 = _bindgen_ty_4 (4) ; # [repr (transparent)] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct _bindgen_ty_4 (pub :: std :: os :: raw :: c_uint) ; # [repr (C)] # [derive (Copy , Clone)] pub struct Generator { pub mc : :: std :: os :: raw :: c_int , pub dim : :: std :: os :: raw :: c_int , pub flags : u32 , pub seed : u64 , pub sha : u64 , pub __bindgen_anon_1 : Generator__bindgen_ty_1 , pub nn : NetherNoise , pub en : EndNoise , } # [repr (C)] # [derive (Copy , Clone)] pub union Generator__bindgen_ty_1 { pub __bindgen_anon_1 : Generator__bindgen_ty_1__bindgen_ty_1 , pub __bindgen_anon_2 : Generator__bindgen_ty_1__bindgen_ty_2 , pub __bindgen_anon_3 : Generator__bindgen_ty_1__bindgen_ty_3 , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Generator__bindgen_ty_1__bindgen_ty_1 { pub ls : LayerStack , pub xlayer : [Layer ; 5usize] , pub entry : * mut Layer , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Generator__bindgen_ty_1__bindgen_ty_1"] [:: std :: mem :: size_of :: < Generator__bindgen_ty_1__bindgen_ty_1 > () - 5120usize] ; ["Alignment of Generator__bindgen_ty_1__bindgen_ty_1"] [:: std :: mem :: align_of :: < Generator__bindgen_ty_1__bindgen_ty_1 > () - 8usize] ; ["Offset of field: Generator__bindgen_ty_1__bindgen_ty_1::ls"] [:: std :: mem :: offset_of ! (Generator__bindgen_ty_1__bindgen_ty_1 , ls) - 0usize] ; ["Offset of field: Generator__bindgen_ty_1__bindgen_ty_1::xlayer"] [:: std :: mem :: offset_of ! (Generator__bindgen_ty_1__bindgen_ty_1 , xlayer) - 4752usize] ; ["Offset of field: Generator__bindgen_ty_1__bindgen_ty_1::entry"] [:: std :: mem :: offset_of ! (Generator__bindgen_ty_1__bindgen_ty_1 , entry) - 5112usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Generator__bindgen_ty_1__bindgen_ty_2 { pub bn : BiomeNoise , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Generator__bindgen_ty_1__bindgen_ty_2"] [:: std :: mem :: size_of :: < Generator__bindgen_ty_1__bindgen_ty_2 > () - 24592usize] ; ["Alignment of Generator__bindgen_ty_1__bindgen_ty_2"] [:: std :: mem :: align_of :: < Generator__bindgen_ty_1__bindgen_ty_2 > () - 8usize] ; ["Offset of field: Generator__bindgen_ty_1__bindgen_ty_2::bn"] [:: std :: mem :: offset_of ! (Generator__bindgen_ty_1__bindgen_ty_2 , bn) - 0usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Generator__bindgen_ty_1__bindgen_ty_3 { pub bnb : BiomeNoiseBeta , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Generator__bindgen_ty_1__bindgen_ty_3"] [:: std :: mem :: size_of :: < Generator__bindgen_ty_1__bindgen_ty_3 > () - 3256usize] ; ["Alignment of Generator__bindgen_ty_1__bindgen_ty_3"] [:: std :: mem :: align_of :: < Generator__bindgen_ty_1__bindgen_ty_3 > () - 8usize] ; ["Offset of field: Generator__bindgen_ty_1__bindgen_ty_3::bnb"] [:: std :: mem :: offset_of ! (Generator__bindgen_ty_1__bindgen_ty_3 , bnb) - 0usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Generator__bindgen_ty_1"] [:: std :: mem :: size_of :: < Generator__bindgen_ty_1 > () - 24592usize] ; ["Alignment of Generator__bindgen_ty_1"] [:: std :: mem :: align_of :: < Generator__bindgen_ty_1 > () - 8usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Generator"] [:: std :: mem :: size_of :: < Generator > () - 27592usize] ; ["Alignment of Generator"] [:: std :: mem :: align_of :: < Generator > () - 8usize] ; ["Offset of field: Generator::mc"] [:: std :: mem :: offset_of ! (Generator , mc) - 0usize] ; ["Offset of field: Generator::dim"] [:: std :: mem :: offset_of ! (Generator , dim) - 4usize] ; ["Offset of field: Generator::flags"] [:: std :: mem :: offset_of ! (Generator , flags) - 8usize] ; ["Offset of field: Generator::seed"] [:: std :: mem :: offset_of ! (Generator , seed) - 16usize] ; ["Offset of field: Generator::sha"] [:: std :: mem :: offset_of ! (Generator , sha) - 24usize] ; ["Offset of field: Generator::nn"] [:: std :: mem :: offset_of ! (Generator , nn) - 24624usize] ; ["Offset of field: Generator::en"] [:: std :: mem :: offset_of ! (Generator , en) - 27264usize] ; } ; unsafe extern "C" { # [doc = " Sets up a biome generator for a given MC version. The 'flags' can be used to\n control LARGE_BIOMES or to FORCE_OCEAN_VARIANTS to enable ocean variants at\n scales higher than normal."] pub fn setupGenerator (g : * mut Generator , mc : :: std :: os :: raw :: c_int , flags : u32) ; } unsafe extern "C" { # [doc = " Initializes the generator for a given dimension and seed.\n dim=0:   Overworld\n dim=-1:  Nether\n dim=+1:  End"] pub fn applySeed (g : * mut Generator , dim : :: std :: os :: raw :: c_int , seed : u64) ; } unsafe extern "C" { # [doc = " Calculates the buffer size (number of ints) required to generate a cuboidal\n volume of size (sx, sy, sz). If 'sy' is zero the buffer is calculated for a\n 2D plane (which is equivalent to sy=1 here).\n The function allocCache() can be used to allocate the corresponding int\n buffer using malloc()."] pub fn getMinCacheSize (g : * const Generator , scale : :: std :: os :: raw :: c_int , sx : :: std :: os :: raw :: c_int , sy : :: std :: os :: raw :: c_int , sz : :: std :: os :: raw :: c_int) -> usize ; } unsafe extern "C" { pub fn allocCache (g : * const Generator , r : Range) -> * mut :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " Generates the biomes for a cuboidal scaled range given by 'r'.\n (See description of Range for more detail.)\n\n The output is generated inside the cache. Upon success the biome ids can be\n accessed by indexing as:\n  cache[ y*r.sx*r.sz + z*r.sx + x ]\n where (x,y,z) is an relative position inside the range cuboid.\n\n The required length of the cache can be determined with getMinCacheSize().\n\n The return value is zero upon success."] pub fn genBiomes (g : * const Generator , cache : * mut :: std :: os :: raw :: c_int , r : Range) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " Gets the biome for a specified scaled position. Note that the scale should\n be either 1 or 4, for block or biome coordinates respectively.\n Returns none (-1) upon failure."] pub fn getBiomeAt (g : * const Generator , scale : :: std :: os :: raw :: c_int , x : :: std :: os :: raw :: c_int , y : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " Returns the default layer that corresponds to the given scale.\n Supported scales are {0, 1, 4, 16, 64, 256}. A scale of zero indicates the\n custom entry layer 'g->entry'.\n (Overworld, MC <= 1.17)"] pub fn getLayerForScale (g : * const Generator , scale : :: std :: os :: raw :: c_int) -> * const Layer ; } unsafe extern "C" { # [doc = "=============================================================================\n Layered Biome Generation (old interface up to 1.17)\n============================================================================="] pub fn setupLayerStack (g : * mut LayerStack , mc : :: std :: os :: raw :: c_int , largeBiomes : :: std :: os :: raw :: c_int) ; } unsafe extern "C" { pub fn getMinLayerCacheSize (layer : * const Layer , sizeX : :: std :: os :: raw :: c_int , sizeZ : :: std :: os :: raw :: c_int) -> usize ; } unsafe extern "C" { pub fn setupLayer (l : * mut Layer , map : mapfunc_t , mc : :: std :: os :: raw :: c_int , zoom : i8 , edge : i8 , saltbase : u64 , p : * mut Layer , p2 : * mut Layer) -> * mut Layer ; } unsafe extern "C" { pub fn genArea (layer : * const Layer , out : * mut :: std :: os :: raw :: c_int , areaX : :: std :: os :: raw :: c_int , areaZ : :: std :: os :: raw :: c_int , areaWidth : :: std :: os :: raw :: c_int , areaHeight : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " Map an approximation of the Overworld surface height.\n The horizontal scaling is 1:4. If non-null, the ids are filled with the\n biomes of the area. The height (written to y) is in blocks."] pub fn mapApproxHeight (y : * mut f32 , ids : * mut :: std :: os :: raw :: c_int , g : * const Generator , sn : * const SurfaceNoise , x : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , w : :: std :: os :: raw :: c_int , h : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } impl StructureType { pub const Feature : StructureType = StructureType (0) ; } impl StructureType { pub const Desert_Pyramid : StructureType = StructureType (1) ; } impl StructureType { pub const Jungle_Temple : StructureType = StructureType (2) ; } impl StructureType { pub const Jungle_Pyramid : StructureType = StructureType (2) ; } impl StructureType { pub const Swamp_Hut : StructureType = StructureType (3) ; } impl StructureType { pub const Igloo : StructureType = StructureType (4) ; } impl StructureType { pub const Village : StructureType = StructureType (5) ; } impl StructureType { pub const Ocean_Ruin : StructureType = StructureType (6) ; } impl StructureType { pub const Shipwreck : StructureType = StructureType (7) ; } impl StructureType { pub const Monument : StructureType = StructureType (8) ; } impl StructureType { pub const Mansion : StructureType = StructureType (9) ; } impl StructureType { pub const Outpost : StructureType = StructureType (10) ; } impl StructureType { pub const Ruined_Portal : StructureType = StructureType (11) ; } impl StructureType { pub const Ruined_Portal_N : StructureType = StructureType (12) ; } impl StructureType { pub const Ancient_City : StructureType = StructureType (13) ; } impl StructureType { pub const Treasure : StructureType = StructureType (14) ; } impl StructureType { pub const Mineshaft : StructureType = StructureType (15) ; } impl StructureType { pub const Desert_Well : StructureType = StructureType (16) ; } impl StructureType { pub const Geode : StructureType = StructureType (17) ; } impl StructureType { pub const Fortress : StructureType = StructureType (18) ; } impl StructureType { pub const Bastion : StructureType = StructureType (19) ; } impl StructureType { pub const End_City : StructureType = StructureType (20) ; } impl StructureType { pub const End_Gateway : StructureType = StructureType (21) ; } impl StructureType { pub const End_Island : StructureType = StructureType (22) ; } impl StructureType { pub const Trail_Ruins : StructureType = StructureType (23) ; } impl StructureType { pub const Trial_Chambers : StructureType = StructureType (24) ; } impl StructureType { pub const FEATURE_NUM : StructureType = StructureType (25) ; } # [repr (transparent)] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct StructureType (pub :: std :: os :: raw :: c_uint) ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct StructureConfig { pub salt : i32 , pub regionSize : i8 , pub chunkRange : i8 , pub structType : u8 , pub dim : i8 , pub rarity : f32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of StructureConfig"] [:: std :: mem :: size_of :: < StructureConfig > () - 12usize] ; ["Alignment of StructureConfig"] [:: std :: mem :: align_of :: < StructureConfig > () - 4usize] ; ["Offset of field: StructureConfig::salt"] [:: std :: mem :: offset_of ! (StructureConfig , salt) - 0usize] ; ["Offset of field: StructureConfig::regionSize"] [:: std :: mem :: offset_of ! (StructureConfig , regionSize) - 4usize] ; ["Offset of field: StructureConfig::chunkRange"] [:: std :: mem :: offset_of ! (StructureConfig , chunkRange) - 5usize] ; ["Offset of field: StructureConfig::structType"] [:: std :: mem :: offset_of ! (StructureConfig , structType) - 6usize] ; ["Offset of field: StructureConfig::dim"] [:: std :: mem :: offset_of ! (StructureConfig , dim) - 7usize] ; ["Offset of field: StructureConfig::rarity"] [:: std :: mem :: offset_of ! (StructureConfig , rarity) - 8usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Pos { pub x : :: std :: os :: raw :: c_int , pub z : :: std :: os :: raw :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Pos"] [:: std :: mem :: size_of :: < Pos > () - 8usize] ; ["Alignment of Pos"] [:: std :: mem :: align_of :: < Pos > () - 4usize] ; ["Offset of field: Pos::x"] [:: std :: mem :: offset_of ! (Pos , x) - 0usize] ; ["Offset of field: Pos::z"] [:: std :: mem :: offset_of ! (Pos , z) - 4usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Pos3 { pub x : :: std :: os :: raw :: c_int , pub y : :: std :: os :: raw :: c_int , pub z : :: std :: os :: raw :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Pos3"] [:: std :: mem :: size_of :: < Pos3 > () - 12usize] ; ["Alignment of Pos3"] [:: std :: mem :: align_of :: < Pos3 > () - 4usize] ; ["Offset of field: Pos3::x"] [:: std :: mem :: offset_of ! (Pos3 , x) - 0usize] ; ["Offset of field: Pos3::y"] [:: std :: mem :: offset_of ! (Pos3 , y) - 4usize] ; ["Offset of field: Pos3::z"] [:: std :: mem :: offset_of ! (Pos3 , z) - 8usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct StrongholdIter { pub pos : Pos , pub nextapprox : Pos , pub index : :: std :: os :: raw :: c_int , pub ringnum : :: std :: os :: raw :: c_int , pub ringmax : :: std :: os :: raw :: c_int , pub ringidx : :: std :: os :: raw :: c_int , pub angle : f64 , pub dist : f64 , pub rnds : u64 , pub mc : :: std :: os :: raw :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of StrongholdIter"] [:: std :: mem :: size_of :: < StrongholdIter > () - 64usize] ; ["Alignment of StrongholdIter"] [:: std :: mem :: align_of :: < StrongholdIter > () - 8usize] ; ["Offset of field: StrongholdIter::pos"] [:: std :: mem :: offset_of ! (StrongholdIter , pos) - 0usize] ; ["Offset of field: StrongholdIter::nextapprox"] [:: std :: mem :: offset_of ! (StrongholdIter , nextapprox) - 8usize] ; ["Offset of field: StrongholdIter::index"] [:: std :: mem :: offset_of ! (StrongholdIter , index) - 16usize] ; ["Offset of field: StrongholdIter::ringnum"] [:: std :: mem :: offset_of ! (StrongholdIter , ringnum) - 20usize] ; ["Offset of field: StrongholdIter::ringmax"] [:: std :: mem :: offset_of ! (StrongholdIter , ringmax) - 24usize] ; ["Offset of field: StrongholdIter::ringidx"] [:: std :: mem :: offset_of ! (StrongholdIter , ringidx) - 28usize] ; ["Offset of field: StrongholdIter::angle"] [:: std :: mem :: offset_of ! (StrongholdIter , angle) - 32usize] ; ["Offset of field: StrongholdIter::dist"] [:: std :: mem :: offset_of ! (StrongholdIter , dist) - 40usize] ; ["Offset of field: StrongholdIter::rnds"] [:: std :: mem :: offset_of ! (StrongholdIter , rnds) - 48usize] ; ["Offset of field: StrongholdIter::mc"] [:: std :: mem :: offset_of ! (StrongholdIter , mc) - 56usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct StructureVariant { pub _bitfield_align_1 : [u8 ; 0] , pub _bitfield_1 : __BindgenBitfieldUnit < [u8 ; 1usize] > , pub size : u8 , pub start : u8 , pub biome : :: std :: os :: raw :: c_short , pub rotation : u8 , pub mirror : u8 , pub x : i16 , pub y : i16 , pub z : i16 , pub sx : i16 , pub sy : i16 , pub sz : i16 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of StructureVariant"] [:: std :: mem :: size_of :: < StructureVariant > () - 20usize] ; ["Alignment of StructureVariant"] [:: std :: mem :: align_of :: < StructureVariant > () - 2usize] ; ["Offset of field: StructureVariant::size"] [:: std :: mem :: offset_of ! (StructureVariant , size) - 1usize] ; ["Offset of field: StructureVariant::start"] [:: std :: mem :: offset_of ! (StructureVariant , start) - 2usize] ; ["Offset of field: StructureVariant::biome"] [:: std :: mem :: offset_of ! (StructureVariant , biome) - 4usize] ; ["Offset of field: StructureVariant::rotation"] [:: std :: mem :: offset_of ! (StructureVariant , rotation) - 6usize] ; ["Offset of field: StructureVariant::mirror"] [:: std :: mem :: offset_of ! (StructureVariant , mirror) - 7usize] ; ["Offset of field: StructureVariant::x"] [:: std :: mem :: offset_of ! (StructureVariant , x) - 8usize] ; ["Offset of field: StructureVariant::y"] [:: std :: mem :: offset_of ! (StructureVariant , y) - 10usize] ; ["Offset of field: StructureVariant::z"] [:: std :: mem :: offset_of ! (StructureVariant , z) - 12usize] ; ["Offset of field: StructureVariant::sx"] [:: std :: mem :: offset_of ! (StructureVariant , sx) - 14usize] ; ["Offset of field: StructureVariant::sy"] [:: std :: mem :: offset_of ! (StructureVariant , sy) - 16usize] ; ["Offset of field: StructureVariant::sz"] [:: std :: mem :: offset_of ! (StructureVariant , sz) - 18usize] ; } ; impl StructureVariant { # [inline] pub fn abandoned (& self) -> u8 { unsafe { :: std :: mem :: transmute (self . _bitfield_1 . get (0usize , 1u8) as u8) } } # [inline] pub fn set_abandoned (& mut self , val : u8) { unsafe { let val : u8 = :: std :: mem :: transmute (val) ; self . _bitfield_1 . set (0usize , 1u8 , val as u64) } } # [inline] pub unsafe fn abandoned_raw (this : * const Self) -> u8 { unsafe { :: std :: mem :: transmute (< __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_get (:: std :: ptr :: addr_of ! ((* this) . _bitfield_1) , 0usize , 1u8 ,) as u8) } } # [inline] pub unsafe fn set_abandoned_raw (this : * mut Self , val : u8) { unsafe { let val : u8 = :: std :: mem :: transmute (val) ; < __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_set (:: std :: ptr :: addr_of_mut ! ((* this) . _bitfield_1) , 0usize , 1u8 , val as u64 ,) } } # [inline] pub fn giant (& self) -> u8 { unsafe { :: std :: mem :: transmute (self . _bitfield_1 . get (1usize , 1u8) as u8) } } # [inline] pub fn set_giant (& mut self , val : u8) { unsafe { let val : u8 = :: std :: mem :: transmute (val) ; self . _bitfield_1 . set (1usize , 1u8 , val as u64) } } # [inline] pub unsafe fn giant_raw (this : * const Self) -> u8 { unsafe { :: std :: mem :: transmute (< __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_get (:: std :: ptr :: addr_of ! ((* this) . _bitfield_1) , 1usize , 1u8 ,) as u8) } } # [inline] pub unsafe fn set_giant_raw (this : * mut Self , val : u8) { unsafe { let val : u8 = :: std :: mem :: transmute (val) ; < __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_set (:: std :: ptr :: addr_of_mut ! ((* this) . _bitfield_1) , 1usize , 1u8 , val as u64 ,) } } # [inline] pub fn underground (& self) -> u8 { unsafe { :: std :: mem :: transmute (self . _bitfield_1 . get (2usize , 1u8) as u8) } } # [inline] pub fn set_underground (& mut self , val : u8) { unsafe { let val : u8 = :: std :: mem :: transmute (val) ; self . _bitfield_1 . set (2usize , 1u8 , val as u64) } } # [inline] pub unsafe fn underground_raw (this : * const Self) -> u8 { unsafe { :: std :: mem :: transmute (< __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_get (:: std :: ptr :: addr_of ! ((* this) . _bitfield_1) , 2usize , 1u8 ,) as u8) } } # [inline] pub unsafe fn set_underground_raw (this : * mut Self , val : u8) { unsafe { let val : u8 = :: std :: mem :: transmute (val) ; < __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_set (:: std :: ptr :: addr_of_mut ! ((* this) . _bitfield_1) , 2usize , 1u8 , val as u64 ,) } } # [inline] pub fn airpocket (& self) -> u8 { unsafe { :: std :: mem :: transmute (self . _bitfield_1 . get (3usize , 1u8) as u8) } } # [inline] pub fn set_airpocket (& mut self , val : u8) { unsafe { let val : u8 = :: std :: mem :: transmute (val) ; self . _bitfield_1 . set (3usize , 1u8 , val as u64) } } # [inline] pub unsafe fn airpocket_raw (this : * const Self) -> u8 { unsafe { :: std :: mem :: transmute (< __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_get (:: std :: ptr :: addr_of ! ((* this) . _bitfield_1) , 3usize , 1u8 ,) as u8) } } # [inline] pub unsafe fn set_airpocket_raw (this : * mut Self , val : u8) { unsafe { let val : u8 = :: std :: mem :: transmute (val) ; < __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_set (:: std :: ptr :: addr_of_mut ! ((* this) . _bitfield_1) , 3usize , 1u8 , val as u64 ,) } } # [inline] pub fn basement (& self) -> u8 { unsafe { :: std :: mem :: transmute (self . _bitfield_1 . get (4usize , 1u8) as u8) } } # [inline] pub fn set_basement (& mut self , val : u8) { unsafe { let val : u8 = :: std :: mem :: transmute (val) ; self . _bitfield_1 . set (4usize , 1u8 , val as u64) } } # [inline] pub unsafe fn basement_raw (this : * const Self) -> u8 { unsafe { :: std :: mem :: transmute (< __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_get (:: std :: ptr :: addr_of ! ((* this) . _bitfield_1) , 4usize , 1u8 ,) as u8) } } # [inline] pub unsafe fn set_basement_raw (this : * mut Self , val : u8) { unsafe { let val : u8 = :: std :: mem :: transmute (val) ; < __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_set (:: std :: ptr :: addr_of_mut ! ((* this) . _bitfield_1) , 4usize , 1u8 , val as u64 ,) } } # [inline] pub fn cracked (& self) -> u8 { unsafe { :: std :: mem :: transmute (self . _bitfield_1 . get (5usize , 1u8) as u8) } } # [inline] pub fn set_cracked (& mut self , val : u8) { unsafe { let val : u8 = :: std :: mem :: transmute (val) ; self . _bitfield_1 . set (5usize , 1u8 , val as u64) } } # [inline] pub unsafe fn cracked_raw (this : * const Self) -> u8 { unsafe { :: std :: mem :: transmute (< __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_get (:: std :: ptr :: addr_of ! ((* this) . _bitfield_1) , 5usize , 1u8 ,) as u8) } } # [inline] pub unsafe fn set_cracked_raw (this : * mut Self , val : u8) { unsafe { let val : u8 = :: std :: mem :: transmute (val) ; < __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_set (:: std :: ptr :: addr_of_mut ! ((* this) . _bitfield_1) , 5usize , 1u8 , val as u64 ,) } } # [inline] pub fn new_bitfield_1 (abandoned : u8 , giant : u8 , underground : u8 , airpocket : u8 , basement : u8 , cracked : u8) -> __BindgenBitfieldUnit < [u8 ; 1usize] > { let mut __bindgen_bitfield_unit : __BindgenBitfieldUnit < [u8 ; 1usize] > = Default :: default () ; __bindgen_bitfield_unit . set (0usize , 1u8 , { let abandoned : u8 = unsafe { :: std :: mem :: transmute (abandoned) } ; abandoned as u64 }) ; __bindgen_bitfield_unit . set (1usize , 1u8 , { let giant : u8 = unsafe { :: std :: mem :: transmute (giant) } ; giant as u64 }) ; __bindgen_bitfield_unit . set (2usize , 1u8 , { let underground : u8 = unsafe { :: std :: mem :: transmute (underground) } ; underground as u64 }) ; __bindgen_bitfield_unit . set (3usize , 1u8 , { let airpocket : u8 = unsafe { :: std :: mem :: transmute (airpocket) } ; airpocket as u64 }) ; __bindgen_bitfield_unit . set (4usize , 1u8 , { let basement : u8 = unsafe { :: std :: mem :: transmute (basement) } ; basement as u64 }) ; __bindgen_bitfield_unit . set (5usize , 1u8 , { let cracked : u8 = unsafe { :: std :: mem :: transmute (cracked) } ; cracked as u64 }) ; __bindgen_bitfield_unit } } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Piece { pub name : * const :: std :: os :: raw :: c_char , pub pos : Pos3 , pub bb0 : Pos3 , pub bb1 : Pos3 , pub rot : u8 , pub depth : i8 , pub type_ : i8 , pub next : * mut Piece , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Piece"] [:: std :: mem :: size_of :: < Piece > () - 56usize] ; ["Alignment of Piece"] [:: std :: mem :: align_of :: < Piece > () - 8usize] ; ["Offset of field: Piece::name"] [:: std :: mem :: offset_of ! (Piece , name) - 0usize] ; ["Offset of field: Piece::pos"] [:: std :: mem :: offset_of ! (Piece , pos) - 8usize] ; ["Offset of field: Piece::bb0"] [:: std :: mem :: offset_of ! (Piece , bb0) - 20usize] ; ["Offset of field: Piece::bb1"] [:: std :: mem :: offset_of ! (Piece , bb1) - 32usize] ; ["Offset of field: Piece::rot"] [:: std :: mem :: offset_of ! (Piece , rot) - 44usize] ; ["Offset of field: Piece::depth"] [:: std :: mem :: offset_of ! (Piece , depth) - 45usize] ; ["Offset of field: Piece::type_"] [:: std :: mem :: offset_of ! (Piece , type_) - 46usize] ; ["Offset of field: Piece::next"] [:: std :: mem :: offset_of ! (Piece , next) - 48usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct EndIsland { pub x : :: std :: os :: raw :: c_int , pub y : :: std :: os :: raw :: c_int , pub z : :: std :: os :: raw :: c_int , pub r : :: std :: os :: raw :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of EndIsland"] [:: std :: mem :: size_of :: < EndIsland > () - 16usize] ; ["Alignment of EndIsland"] [:: std :: mem :: align_of :: < EndIsland > () - 4usize] ; ["Offset of field: EndIsland::x"] [:: std :: mem :: offset_of ! (EndIsland , x) - 0usize] ; ["Offset of field: EndIsland::y"] [:: std :: mem :: offset_of ! (EndIsland , y) - 4usize] ; ["Offset of field: EndIsland::z"] [:: std :: mem :: offset_of ! (EndIsland , z) - 8usize] ; ["Offset of field: EndIsland::r"] [:: std :: mem :: offset_of ! (EndIsland , r) - 12usize] ; } ; pub const BF_APPROX : _bindgen_ty_5 = _bindgen_ty_5 (1) ; pub const BF_FORCED_OCEAN : _bindgen_ty_5 = _bindgen_ty_5 (4) ; # [repr (transparent)] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct _bindgen_ty_5 (pub :: std :: os :: raw :: c_uint) ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct BiomeFilter { pub tempsToFind : u64 , pub otempToFind : u64 , pub majorToFind : u64 , pub edgesToFind : u64 , pub raresToFind : u64 , pub raresToFindM : u64 , pub shoreToFind : u64 , pub shoreToFindM : u64 , pub riverToFind : u64 , pub riverToFindM : u64 , pub oceanToFind : u64 , pub specialCnt : :: std :: os :: raw :: c_int , pub flags : u32 , pub tempsToExcl : u64 , pub majorToExcl : u64 , pub edgesToExcl : u64 , pub raresToExcl : u64 , pub raresToExclM : u64 , pub shoreToExcl : u64 , pub shoreToExclM : u64 , pub riverToExcl : u64 , pub riverToExclM : u64 , pub biomeToExcl : u64 , pub biomeToExclM : u64 , pub biomeToFind : u64 , pub biomeToFindM : u64 , pub biomeToPick : u64 , pub biomeToPickM : u64 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of BiomeFilter"] [:: std :: mem :: size_of :: < BiomeFilter > () - 216usize] ; ["Alignment of BiomeFilter"] [:: std :: mem :: align_of :: < BiomeFilter > () - 8usize] ; ["Offset of field: BiomeFilter::tempsToFind"] [:: std :: mem :: offset_of ! (BiomeFilter , tempsToFind) - 0usize] ; ["Offset of field: BiomeFilter::otempToFind"] [:: std :: mem :: offset_of ! (BiomeFilter , otempToFind) - 8usize] ; ["Offset of field: BiomeFilter::majorToFind"] [:: std :: mem :: offset_of ! (BiomeFilter , majorToFind) - 16usize] ; ["Offset of field: BiomeFilter::edgesToFind"] [:: std :: mem :: offset_of ! (BiomeFilter , edgesToFind) - 24usize] ; ["Offset of field: BiomeFilter::raresToFind"] [:: std :: mem :: offset_of ! (BiomeFilter , raresToFind) - 32usize] ; ["Offset of field: BiomeFilter::raresToFindM"] [:: std :: mem :: offset_of ! (BiomeFilter , raresToFindM) - 40usize] ; ["Offset of field: BiomeFilter::shoreToFind"] [:: std :: mem :: offset_of ! (BiomeFilter , shoreToFind) - 48usize] ; ["Offset of field: BiomeFilter::shoreToFindM"] [:: std :: mem :: offset_of ! (BiomeFilter , shoreToFindM) - 56usize] ; ["Offset of field: BiomeFilter::riverToFind"] [:: std :: mem :: offset_of ! (BiomeFilter , riverToFind) - 64usize] ; ["Offset of field: BiomeFilter::riverToFindM"] [:: std :: mem :: offset_of ! (BiomeFilter , riverToFindM) - 72usize] ; ["Offset of field: BiomeFilter::oceanToFind"] [:: std :: mem :: offset_of ! (BiomeFilter , oceanToFind) - 80usize] ; ["Offset of field: BiomeFilter::specialCnt"] [:: std :: mem :: offset_of ! (BiomeFilter , specialCnt) - 88usize] ; ["Offset of field: BiomeFilter::flags"] [:: std :: mem :: offset_of ! (BiomeFilter , flags) - 92usize] ; ["Offset of field: BiomeFilter::tempsToExcl"] [:: std :: mem :: offset_of ! (BiomeFilter , tempsToExcl) - 96usize] ; ["Offset of field: BiomeFilter::majorToExcl"] [:: std :: mem :: offset_of ! (BiomeFilter , majorToExcl) - 104usize] ; ["Offset of field: BiomeFilter::edgesToExcl"] [:: std :: mem :: offset_of ! (BiomeFilter , edgesToExcl) - 112usize] ; ["Offset of field: BiomeFilter::raresToExcl"] [:: std :: mem :: offset_of ! (BiomeFilter , raresToExcl) - 120usize] ; ["Offset of field: BiomeFilter::raresToExclM"] [:: std :: mem :: offset_of ! (BiomeFilter , raresToExclM) - 128usize] ; ["Offset of field: BiomeFilter::shoreToExcl"] [:: std :: mem :: offset_of ! (BiomeFilter , shoreToExcl) - 136usize] ; ["Offset of field: BiomeFilter::shoreToExclM"] [:: std :: mem :: offset_of ! (BiomeFilter , shoreToExclM) - 144usize] ; ["Offset of field: BiomeFilter::riverToExcl"] [:: std :: mem :: offset_of ! (BiomeFilter , riverToExcl) - 152usize] ; ["Offset of field: BiomeFilter::riverToExclM"] [:: std :: mem :: offset_of ! (BiomeFilter , riverToExclM) - 160usize] ; ["Offset of field: BiomeFilter::biomeToExcl"] [:: std :: mem :: offset_of ! (BiomeFilter , biomeToExcl) - 168usize] ; ["Offset of field: BiomeFilter::biomeToExclM"] [:: std :: mem :: offset_of ! (BiomeFilter , biomeToExclM) - 176usize] ; ["Offset of field: BiomeFilter::biomeToFind"] [:: std :: mem :: offset_of ! (BiomeFilter , biomeToFind) - 184usize] ; ["Offset of field: BiomeFilter::biomeToFindM"] [:: std :: mem :: offset_of ! (BiomeFilter , biomeToFindM) - 192usize] ; ["Offset of field: BiomeFilter::biomeToPick"] [:: std :: mem :: offset_of ! (BiomeFilter , biomeToPick) - 200usize] ; ["Offset of field: BiomeFilter::biomeToPickM"] [:: std :: mem :: offset_of ! (BiomeFilter , biomeToPickM) - 208usize] ; } ; unsafe extern "C" { pub fn getStructureConfig (structureType : :: std :: os :: raw :: c_int , mc : :: std :: os :: raw :: c_int , sconf : * mut StructureConfig) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getStructurePos (structureType : :: std :: os :: raw :: c_int , mc : :: std :: os :: raw :: c_int , seed : u64 , regX : :: std :: os :: raw :: c_int , regZ : :: std :: os :: raw :: c_int , pos : * mut Pos) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getMineshafts (mc : :: std :: os :: raw :: c_int , seed : u64 , chunkX : :: std :: os :: raw :: c_int , chunkZ : :: std :: os :: raw :: c_int , chunkW : :: std :: os :: raw :: c_int , chunkH : :: std :: os :: raw :: c_int , out : * mut Pos , nout : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getEndIslands (islands : * mut EndIsland , mc : :: std :: os :: raw :: c_int , seed : u64 , chunkX : :: std :: os :: raw :: c_int , chunkZ : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mapEndIslandHeight (y : * mut f32 , en : * const EndNoise , seed : u64 , x : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , w : :: std :: os :: raw :: c_int , h : :: std :: os :: raw :: c_int , scale : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn isEndChunkEmpty (en : * const EndNoise , sn : * const SurfaceNoise , seed : u64 , chunkX : :: std :: os :: raw :: c_int , chunkZ : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn initFirstStronghold (sh : * mut StrongholdIter , mc : :: std :: os :: raw :: c_int , s48 : u64) -> Pos ; } unsafe extern "C" { pub fn nextStronghold (sh : * mut StrongholdIter , g : * const Generator) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn estimateSpawn (g : * const Generator , rng : * mut u64) -> Pos ; } unsafe extern "C" { pub fn getSpawn (g : * const Generator) -> Pos ; } unsafe extern "C" { pub fn locateBiome (g : * const Generator , x : :: std :: os :: raw :: c_int , y : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , radius : :: std :: os :: raw :: c_int , validB : u64 , validM : u64 , rng : * mut u64 , passes : * mut :: std :: os :: raw :: c_int) -> Pos ; } unsafe extern "C" { pub fn isViableStructurePos (structType : :: std :: os :: raw :: c_int , g : * mut Generator , blockX : :: std :: os :: raw :: c_int , blockZ : :: std :: os :: raw :: c_int , flags : u32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn isViableFeatureBiome (mc : :: std :: os :: raw :: c_int , structureType : :: std :: os :: raw :: c_int , biomeID : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn isViableStructureTerrain (structType : :: std :: os :: raw :: c_int , g : * mut Generator , blockX : :: std :: os :: raw :: c_int , blockZ : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn isViableEndCityTerrain (g : * const Generator , sn : * const SurfaceNoise , blockX : :: std :: os :: raw :: c_int , blockZ : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getVariant (sv : * mut StructureVariant , structType : :: std :: os :: raw :: c_int , mc : :: std :: os :: raw :: c_int , seed : u64 , blockX : :: std :: os :: raw :: c_int , blockZ : :: std :: os :: raw :: c_int , biomeID : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getEndCityPieces (pieces : * mut Piece , seed : u64 , chunkX : :: std :: os :: raw :: c_int , chunkZ : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } pub const BASE_FLOOR : _bindgen_ty_6 = _bindgen_ty_6 (0) ; pub const BASE_ROOF : _bindgen_ty_6 = _bindgen_ty_6 (1) ; pub const BRIDGE_END : _bindgen_ty_6 = _bindgen_ty_6 (2) ; pub const BRIDGE_GENTLE_STAIRS : _bindgen_ty_6 = _bindgen_ty_6 (3) ; pub const BRIDGE_PIECE : _bindgen_ty_6 = _bindgen_ty_6 (4) ; pub const BRIDGE_STEEP_STAIRS : _bindgen_ty_6 = _bindgen_ty_6 (5) ; pub const FAT_TOWER_BASE : _bindgen_ty_6 = _bindgen_ty_6 (6) ; pub const FAT_TOWER_MIDDLE : _bindgen_ty_6 = _bindgen_ty_6 (7) ; pub const FAT_TOWER_TOP : _bindgen_ty_6 = _bindgen_ty_6 (8) ; pub const SECOND_FLOOR_1 : _bindgen_ty_6 = _bindgen_ty_6 (9) ; pub const SECOND_FLOOR_2 : _bindgen_ty_6 = _bindgen_ty_6 (10) ; pub const SECOND_ROOF : _bindgen_ty_6 = _bindgen_ty_6 (11) ; pub const END_SHIP : _bindgen_ty_6 = _bindgen_ty_6 (12) ; pub const THIRD_FLOOR_1 : _bindgen_ty_6 = _bindgen_ty_6 (13) ; pub const THIRD_FLOOR_2 : _bindgen_ty_6 = _bindgen_ty_6 (14) ; pub const THIRD_ROOF : _bindgen_ty_6 = _bindgen_ty_6 (15) ; pub const TOWER_BASE : _bindgen_ty_6 = _bindgen_ty_6 (16) ; pub const TOWER_FLOOR : _bindgen_ty_6 = _bindgen_ty_6 (17) ; pub const TOWER_PIECE : _bindgen_ty_6 = _bindgen_ty_6 (18) ; pub const TOWER_TOP : _bindgen_ty_6 = _bindgen_ty_6 (19) ; pub const END_CITY_PIECES_MAX : _bindgen_ty_6 = _bindgen_ty_6 (421) ; # [repr (transparent)] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct _bindgen_ty_6 (pub :: std :: os :: raw :: c_uint) ; unsafe extern "C" { pub fn getFortressPieces (list : * mut Piece , n : :: std :: os :: raw :: c_int , mc : :: std :: os :: raw :: c_int , seed : u64 , chunkX : :: std :: os :: raw :: c_int , chunkZ : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } pub const FORTRESS_START : _bindgen_ty_7 = _bindgen_ty_7 (0) ; pub const BRIDGE_STRAIGHT : _bindgen_ty_7 = _bindgen_ty_7 (1) ; pub const BRIDGE_CROSSING : _bindgen_ty_7 = _bindgen_ty_7 (2) ; pub const BRIDGE_FORTIFIED_CROSSING : _bindgen_ty_7 = _bindgen_ty_7 (3) ; pub const BRIDGE_STAIRS : _bindgen_ty_7 = _bindgen_ty_7 (4) ; pub const BRIDGE_SPAWNER : _bindgen_ty_7 = _bindgen_ty_7 (5) ; pub const BRIDGE_CORRIDOR_ENTRANCE : _bindgen_ty_7 = _bindgen_ty_7 (6) ; pub const CORRIDOR_STRAIGHT : _bindgen_ty_7 = _bindgen_ty_7 (7) ; pub const CORRIDOR_CROSSING : _bindgen_ty_7 = _bindgen_ty_7 (8) ; pub const CORRIDOR_TURN_RIGHT : _bindgen_ty_7 = _bindgen_ty_7 (9) ; pub const CORRIDOR_TURN_LEFT : _bindgen_ty_7 = _bindgen_ty_7 (10) ; pub const CORRIDOR_STAIRS : _bindgen_ty_7 = _bindgen_ty_7 (11) ; pub const CORRIDOR_T_CROSSING : _bindgen_ty_7 = _bindgen_ty_7 (12) ; pub const CORRIDOR_NETHER_WART : _bindgen_ty_7 = _bindgen_ty_7 (13) ; pub const FORTRESS_END : _bindgen_ty_7 = _bindgen_ty_7 (14) ; pub const PIECE_COUNT : _bindgen_ty_7 = _bindgen_ty_7 (15) ; # [repr (transparent)] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct _bindgen_ty_7 (pub :: std :: os :: raw :: c_uint) ; unsafe extern "C" { pub fn getFixedEndGateways (mc : :: std :: os :: raw :: c_int , seed : u64 , src : * mut Pos) ; } unsafe extern "C" { pub fn getLinkedGatewayChunk (en : * const EndNoise , sn : * const SurfaceNoise , seed : u64 , src : Pos , dst : * mut Pos) -> Pos ; } unsafe extern "C" { pub fn getLinkedGatewayPos (en : * const EndNoise , sn : * const SurfaceNoise , seed : u64 , src : Pos) -> Pos ; } pub const HouseSmall : _bindgen_ty_8 = _bindgen_ty_8 (0) ; pub const Church : _bindgen_ty_8 = _bindgen_ty_8 (1) ; pub const Library : _bindgen_ty_8 = _bindgen_ty_8 (2) ; pub const WoodHut : _bindgen_ty_8 = _bindgen_ty_8 (3) ; pub const Butcher : _bindgen_ty_8 = _bindgen_ty_8 (4) ; pub const FarmLarge : _bindgen_ty_8 = _bindgen_ty_8 (5) ; pub const FarmSmall : _bindgen_ty_8 = _bindgen_ty_8 (6) ; pub const Blacksmith : _bindgen_ty_8 = _bindgen_ty_8 (7) ; pub const HouseLarge : _bindgen_ty_8 = _bindgen_ty_8 (8) ; pub const HOUSE_NUM : _bindgen_ty_8 = _bindgen_ty_8 (9) ; # [repr (transparent)] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct _bindgen_ty_8 (pub :: std :: os :: raw :: c_uint) ; unsafe extern "C" { pub fn getHouseList (houses : * mut :: std :: os :: raw :: c_int , seed : u64 , chunkX : :: std :: os :: raw :: c_int , chunkZ : :: std :: os :: raw :: c_int) -> u64 ; } unsafe extern "C" { pub fn monteCarloBiomes (g : * mut Generator , r : Range , rng : * mut u64 , coverage : f64 , confidence : f64 , eval : :: std :: option :: Option < unsafe extern "C" fn (g : * mut Generator , scale : :: std :: os :: raw :: c_int , x : :: std :: os :: raw :: c_int , y : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , data : * mut :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int > , data : * mut :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn setupBiomeFilter (bf : * mut BiomeFilter , mc : :: std :: os :: raw :: c_int , flags : u32 , required : * const :: std :: os :: raw :: c_int , requiredLen : :: std :: os :: raw :: c_int , excluded : * const :: std :: os :: raw :: c_int , excludedLen : :: std :: os :: raw :: c_int , matchany : * const :: std :: os :: raw :: c_int , matchanyLen : :: std :: os :: raw :: c_int) ; } unsafe extern "C" { pub fn checkForBiomes (g : * mut Generator , cache : * mut :: std :: os :: raw :: c_int , r : Range , dim : :: std :: os :: raw :: c_int , seed : u64 , filter : * const BiomeFilter , stop : * mut :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn checkForBiomesAtLayer (ls : * mut LayerStack , entry : * mut Layer , cache : * mut :: std :: os :: raw :: c_int , seed : u64 , x : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , w : :: std :: os :: raw :: c_uint , h : :: std :: os :: raw :: c_uint , filter : * const BiomeFilter) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn checkForTemps (g : * mut LayerStack , seed : u64 , x : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , w : :: std :: os :: raw :: c_int , h : :: std :: os :: raw :: c_int , tc : * const :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getBiomeCenters (pos : * mut Pos , siz : * mut :: std :: os :: raw :: c_int , nmax : :: std :: os :: raw :: c_int , g : * mut Generator , r : Range , match_ : :: std :: os :: raw :: c_int , minsiz : :: std :: os :: raw :: c_int , tol : :: std :: os :: raw :: c_int , stop : * mut :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn canBiomeGenerate (layerId : :: std :: os :: raw :: c_int , mc : :: std :: os :: raw :: c_int , flags : u32 , biomeID : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn genPotential (mL : * mut u64 , mM : * mut u64 , layerId : :: std :: os :: raw :: c_int , mc : :: std :: os :: raw :: c_int , flags : u32 , biomeID : :: std :: os :: raw :: c_int) ; } unsafe extern "C" { pub fn getAvailableBiomes (mL : * mut u64 , mM : * mut u64 , layerId : :: std :: os :: raw :: c_int , mc : :: std :: os :: raw :: c_int , flags : u32) ; } unsafe extern "C" { # [doc = " Runs a gradient descent towards the minimum of the noise parameter times a\n given factor. The algorithm is restricted to the area (x,z,w,h) and starts\n at (i0,j0) relative to (x,z). The iteration is terminated when either\n 1) a fix point has been reached,\n 2) maxiter iterations have been completed,\n 3) or the sampling position has moved more than maxrad away from (i0,j0).\n\n Alpha is an optimization argument that is used to determine the length of\n large steps based on the current gradient.\n\n Optionally, the iteration can also call the custom function:\n  func(data, x, z, factor*para_noise(x,z));\n\n The return value is the minimum value reached."] pub fn getParaDescent (para : * const DoublePerlinNoise , factor : f64 , x : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , w : :: std :: os :: raw :: c_int , h : :: std :: os :: raw :: c_int , i0 : :: std :: os :: raw :: c_int , j0 : :: std :: os :: raw :: c_int , maxrad : :: std :: os :: raw :: c_int , maxiter : :: std :: os :: raw :: c_int , alpha : f64 , data : * mut :: std :: os :: raw :: c_void , func : :: std :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: std :: os :: raw :: c_void , arg2 : :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : f64) -> :: std :: os :: raw :: c_int >) -> f64 ; } unsafe extern "C" { # [doc = " Determines the value range of a climate noise parameter over the given area.\n The sampling has scale 1:4 and sampling shift is not considered, so biomes\n could potentially *leak* in at the boarders.\n An optional function:\n  func(data, x, z, climate_noise(x,z))\n is called in each gradient descent iteration. If this function returns\n non-zero the search is aborted, the results are undefined and a non-zero\n error is returned.\n\n The results are written to pmin and pmax (which would be cast to an integer\n during boime mapping). Nullable, to look for minima and maxima separately."] pub fn getParaRange (para : * const DoublePerlinNoise , pmin : * mut f64 , pmax : * mut f64 , x : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , w : :: std :: os :: raw :: c_int , h : :: std :: os :: raw :: c_int , data : * mut :: std :: os :: raw :: c_void , func : :: std :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: std :: os :: raw :: c_void , arg2 : :: std :: os :: raw :: c_int , arg3 : :: std :: os :: raw :: c_int , arg4 : f64) -> :: std :: os :: raw :: c_int >) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " Gets the min/max parameter values within which a biome change can occur."] pub fn getBiomeParaExtremes (mc : :: std :: os :: raw :: c_int) -> * const :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " Gets the min/max possible noise parameter values at which the given biome\n can generate. The values are in min/max pairs in order of:\n temperature, humidity, continentalness, erosion, depth, weirdness."] pub fn getBiomeParaLimits (mc : :: std :: os :: raw :: c_int , id : :: std :: os :: raw :: c_int) -> * const :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " Determines which biomes are able to generate given a set of climate\n parameter limits. Possible biomes are marked non-zero in the 'ids'."] pub fn getPossibleBiomesForLimits (ids : * mut :: std :: os :: raw :: c_char , mc : :: std :: os :: raw :: c_int , limits : * mut [:: std :: os :: raw :: c_int ; 2usize]) ; } unsafe extern "C" { # [doc = " Find the largest rectangle in ids[sx][sz] which consists only of 'match'.\n The limit corners are written to p0 and p1. Returned is the rectangle's area."] pub fn getLargestRec (match_ : :: std :: os :: raw :: c_int , ids : * const :: std :: os :: raw :: c_int , sx : :: std :: os :: raw :: c_int , sz : :: std :: os :: raw :: c_int , p0 : * mut Pos , p1 : * mut Pos) -> :: std :: os :: raw :: c_int ; } pub type __gnuc_va_list = __builtin_va_list ; # [repr (C)] # [derive (Copy , Clone)] pub struct __mbstate_t { pub __count : :: std :: os :: raw :: c_int , pub __value : __mbstate_t__bindgen_ty_1 , } # [repr (C)] # [derive (Copy , Clone)] pub union __mbstate_t__bindgen_ty_1 { pub __wch : :: std :: os :: raw :: c_uint , pub __wchb : [:: std :: os :: raw :: c_char ; 4usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __mbstate_t__bindgen_ty_1"] [:: std :: mem :: size_of :: < __mbstate_t__bindgen_ty_1 > () - 4usize] ; ["Alignment of __mbstate_t__bindgen_ty_1"] [:: std :: mem :: align_of :: < __mbstate_t__bindgen_ty_1 > () - 4usize] ; ["Offset of field: __mbstate_t__bindgen_ty_1::__wch"] [:: std :: mem :: offset_of ! (__mbstate_t__bindgen_ty_1 , __wch) - 0usize] ; ["Offset of field: __mbstate_t__bindgen_ty_1::__wchb"] [:: std :: mem :: offset_of ! (__mbstate_t__bindgen_ty_1 , __wchb) - 0usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __mbstate_t"] [:: std :: mem :: size_of :: < __mbstate_t > () - 8usize] ; ["Alignment of __mbstate_t"] [:: std :: mem :: align_of :: < __mbstate_t > () - 4usize] ; ["Offset of field: __mbstate_t::__count"] [:: std :: mem :: offset_of ! (__mbstate_t , __count) - 0usize] ; ["Offset of field: __mbstate_t::__value"] [:: std :: mem :: offset_of ! (__mbstate_t , __value) - 4usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub struct _G_fpos_t { pub __pos : __off_t , pub __state : __mbstate_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of _G_fpos_t"] [:: std :: mem :: size_of :: < _G_fpos_t > () - 16usize] ; ["Alignment of _G_fpos_t"] [:: std :: mem :: align_of :: < _G_fpos_t > () - 8usize] ; ["Offset of field: _G_fpos_t::__pos"] [:: std :: mem :: offset_of ! (_G_fpos_t , __pos) - 0usize] ; ["Offset of field: _G_fpos_t::__state"] [:: std :: mem :: offset_of ! (_G_fpos_t , __state) - 8usize] ; } ; pub type __fpos_t = _G_fpos_t ; # [repr (C)] # [derive (Copy , Clone)] pub struct _G_fpos64_t { pub __pos : __off64_t , pub __state : __mbstate_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of _G_fpos64_t"] [:: std :: mem :: size_of :: < _G_fpos64_t > () - 16usize] ; ["Alignment of _G_fpos64_t"] [:: std :: mem :: align_of :: < _G_fpos64_t > () - 8usize] ; ["Offset of field: _G_fpos64_t::__pos"] [:: std :: mem :: offset_of ! (_G_fpos64_t , __pos) - 0usize] ; ["Offset of field: _G_fpos64_t::__state"] [:: std :: mem :: offset_of ! (_G_fpos64_t , __state) - 8usize] ; } ; pub type __fpos64_t = _G_fpos64_t ; pub type __FILE = _IO_FILE ; pub type FILE = _IO_FILE ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_marker { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_codecvt { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_wide_data { _unused : [u8 ; 0] , } pub type _IO_lock_t = :: std :: os :: raw :: c_void ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_FILE { pub _flags : :: std :: os :: raw :: c_int , pub _IO_read_ptr : * mut :: std :: os :: raw :: c_char , pub _IO_read_end : * mut :: std :: os :: raw :: c_char , pub _IO_read_base : * mut :: std :: os :: raw :: c_char , pub _IO_write_base : * mut :: std :: os :: raw :: c_char , pub _IO_write_ptr : * mut :: std :: os :: raw :: c_char , pub _IO_write_end : * mut :: std :: os :: raw :: c_char , pub _IO_buf_base : * mut :: std :: os :: raw :: c_char , pub _IO_buf_end : * mut :: std :: os :: raw :: c_char , pub _IO_save_base : * mut :: std :: os :: raw :: c_char , pub _IO_backup_base : * mut :: std :: os :: raw :: c_char , pub _IO_save_end : * mut :: std :: os :: raw :: c_char , pub _markers : * mut _IO_marker , pub _chain : * mut _IO_FILE , pub _fileno : :: std :: os :: raw :: c_int , pub _bitfield_align_1 : [u32 ; 0] , pub _bitfield_1 : __BindgenBitfieldUnit < [u8 ; 3usize] > , pub _short_backupbuf : [:: std :: os :: raw :: c_char ; 1usize] , pub _old_offset : __off_t , pub _cur_column : :: std :: os :: raw :: c_ushort , pub _vtable_offset : :: std :: os :: raw :: c_schar , pub _shortbuf : [:: std :: os :: raw :: c_char ; 1usize] , pub _lock : * mut _IO_lock_t , pub _offset : __off64_t , pub _codecvt : * mut _IO_codecvt , pub _wide_data : * mut _IO_wide_data , pub _freeres_list : * mut _IO_FILE , pub _freeres_buf : * mut :: std :: os :: raw :: c_void , pub _prevchain : * mut * mut _IO_FILE , pub _mode : :: std :: os :: raw :: c_int , pub _unused3 : :: std :: os :: raw :: c_int , pub _total_written : __uint64_t , pub _unused2 : [:: std :: os :: raw :: c_char ; 8usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of _IO_FILE"] [:: std :: mem :: size_of :: < _IO_FILE > () - 216usize] ; ["Alignment of _IO_FILE"] [:: std :: mem :: align_of :: < _IO_FILE > () - 8usize] ; ["Offset of field: _IO_FILE::_flags"] [:: std :: mem :: offset_of ! (_IO_FILE , _flags) - 0usize] ; ["Offset of field: _IO_FILE::_IO_read_ptr"] [:: std :: mem :: offset_of ! (_IO_FILE , _IO_read_ptr) - 8usize] ; ["Offset of field: _IO_FILE::_IO_read_end"] [:: std :: mem :: offset_of ! (_IO_FILE , _IO_read_end) - 16usize] ; ["Offset of field: _IO_FILE::_IO_read_base"] [:: std :: mem :: offset_of ! (_IO_FILE , _IO_read_base) - 24usize] ; ["Offset of field: _IO_FILE::_IO_write_base"] [:: std :: mem :: offset_of ! (_IO_FILE , _IO_write_base) - 32usize] ; ["Offset of field: _IO_FILE::_IO_write_ptr"] [:: std :: mem :: offset_of ! (_IO_FILE , _IO_write_ptr) - 40usize] ; ["Offset of field: _IO_FILE::_IO_write_end"] [:: std :: mem :: offset_of ! (_IO_FILE , _IO_write_end) - 48usize] ; ["Offset of field: _IO_FILE::_IO_buf_base"] [:: std :: mem :: offset_of ! (_IO_FILE , _IO_buf_base) - 56usize] ; ["Offset of field: _IO_FILE::_IO_buf_end"] [:: std :: mem :: offset_of ! (_IO_FILE , _IO_buf_end) - 64usize] ; ["Offset of field: _IO_FILE::_IO_save_base"] [:: std :: mem :: offset_of ! (_IO_FILE , _IO_save_base) - 72usize] ; ["Offset of field: _IO_FILE::_IO_backup_base"] [:: std :: mem :: offset_of ! (_IO_FILE , _IO_backup_base) - 80usize] ; ["Offset of field: _IO_FILE::_IO_save_end"] [:: std :: mem :: offset_of ! (_IO_FILE , _IO_save_end) - 88usize] ; ["Offset of field: _IO_FILE::_markers"] [:: std :: mem :: offset_of ! (_IO_FILE , _markers) - 96usize] ; ["Offset of field: _IO_FILE::_chain"] [:: std :: mem :: offset_of ! (_IO_FILE , _chain) - 104usize] ; ["Offset of field: _IO_FILE::_fileno"] [:: std :: mem :: offset_of ! (_IO_FILE , _fileno) - 112usize] ; ["Offset of field: _IO_FILE::_short_backupbuf"] [:: std :: mem :: offset_of ! (_IO_FILE , _short_backupbuf) - 119usize] ; ["Offset of field: _IO_FILE::_old_offset"] [:: std :: mem :: offset_of ! (_IO_FILE , _old_offset) - 120usize] ; ["Offset of field: _IO_FILE::_cur_column"] [:: std :: mem :: offset_of ! (_IO_FILE , _cur_column) - 128usize] ; ["Offset of field: _IO_FILE::_vtable_offset"] [:: std :: mem :: offset_of ! (_IO_FILE , _vtable_offset) - 130usize] ; ["Offset of field: _IO_FILE::_shortbuf"] [:: std :: mem :: offset_of ! (_IO_FILE , _shortbuf) - 131usize] ; ["Offset of field: _IO_FILE::_lock"] [:: std :: mem :: offset_of ! (_IO_FILE , _lock) - 136usize] ; ["Offset of field: _IO_FILE::_offset"] [:: std :: mem :: offset_of ! (_IO_FILE , _offset) - 144usize] ; ["Offset of field: _IO_FILE::_codecvt"] [:: std :: mem :: offset_of ! (_IO_FILE , _codecvt) - 152usize] ; ["Offset of field: _IO_FILE::_wide_data"] [:: std :: mem :: offset_of ! (_IO_FILE , _wide_data) - 160usize] ; ["Offset of field: _IO_FILE::_freeres_list"] [:: std :: mem :: offset_of ! (_IO_FILE , _freeres_list) - 168usize] ; ["Offset of field: _IO_FILE::_freeres_buf"] [:: std :: mem :: offset_of ! (_IO_FILE , _freeres_buf) - 176usize] ; ["Offset of field: _IO_FILE::_prevchain"] [:: std :: mem :: offset_of ! (_IO_FILE , _prevchain) - 184usize] ; ["Offset of field: _IO_FILE::_mode"] [:: std :: mem :: offset_of ! (_IO_FILE , _mode) - 192usize] ; ["Offset of field: _IO_FILE::_unused3"] [:: std :: mem :: offset_of ! (_IO_FILE , _unused3) - 196usize] ; ["Offset of field: _IO_FILE::_total_written"] [:: std :: mem :: offset_of ! (_IO_FILE , _total_written) - 200usize] ; ["Offset of field: _IO_FILE::_unused2"] [:: std :: mem :: offset_of ! (_IO_FILE , _unused2) - 208usize] ; } ; impl _IO_FILE { # [inline] pub fn _flags2 (& self) -> :: std :: os :: raw :: c_int { unsafe { :: std :: mem :: transmute (self . _bitfield_1 . get (0usize , 24u8) as u32) } } # [inline] pub fn set__flags2 (& mut self , val : :: std :: os :: raw :: c_int) { unsafe { let val : u32 = :: std :: mem :: transmute (val) ; self . _bitfield_1 . set (0usize , 24u8 , val as u64) } } # [inline] pub unsafe fn _flags2_raw (this : * const Self) -> :: std :: os :: raw :: c_int { unsafe { :: std :: mem :: transmute (< __BindgenBitfieldUnit < [u8 ; 3usize] > > :: raw_get (:: std :: ptr :: addr_of ! ((* this) . _bitfield_1) , 0usize , 24u8 ,) as u32) } } # [inline] pub unsafe fn set__flags2_raw (this : * mut Self , val : :: std :: os :: raw :: c_int) { unsafe { let val : u32 = :: std :: mem :: transmute (val) ; < __BindgenBitfieldUnit < [u8 ; 3usize] > > :: raw_set (:: std :: ptr :: addr_of_mut ! ((* this) . _bitfield_1) , 0usize , 24u8 , val as u64 ,) } } # [inline] pub fn new_bitfield_1 (_flags2 : :: std :: os :: raw :: c_int) -> __BindgenBitfieldUnit < [u8 ; 3usize] > { let mut __bindgen_bitfield_unit : __BindgenBitfieldUnit < [u8 ; 3usize] > = Default :: default () ; __bindgen_bitfield_unit . set (0usize , 24u8 , { let _flags2 : u32 = unsafe { i32::cast_unsigned (_flags2) } ; _flags2 as u64 }) ; __bindgen_bitfield_unit } } pub type cookie_read_function_t = :: std :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: std :: os :: raw :: c_void , __buf : * mut :: std :: os :: raw :: c_char , __nbytes : usize) -> __ssize_t > ; pub type cookie_write_function_t = :: std :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: std :: os :: raw :: c_void , __buf : * const :: std :: os :: raw :: c_char , __nbytes : usize) -> __ssize_t > ; pub type cookie_seek_function_t = :: std :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: std :: os :: raw :: c_void , __pos : * mut __off64_t , __w : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int > ; pub type cookie_close_function_t = :: std :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_cookie_io_functions_t { pub read : cookie_read_function_t , pub write : cookie_write_function_t , pub seek : cookie_seek_function_t , pub close : cookie_close_function_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of _IO_cookie_io_functions_t"] [:: std :: mem :: size_of :: < _IO_cookie_io_functions_t > () - 32usize] ; ["Alignment of _IO_cookie_io_functions_t"] [:: std :: mem :: align_of :: < _IO_cookie_io_functions_t > () - 8usize] ; ["Offset of field: _IO_cookie_io_functions_t::read"] [:: std :: mem :: offset_of ! (_IO_cookie_io_functions_t , read) - 0usize] ; ["Offset of field: _IO_cookie_io_functions_t::write"] [:: std :: mem :: offset_of ! (_IO_cookie_io_functions_t , write) - 8usize] ; ["Offset of field: _IO_cookie_io_functions_t::seek"] [:: std :: mem :: offset_of ! (_IO_cookie_io_functions_t , seek) - 16usize] ; ["Offset of field: _IO_cookie_io_functions_t::close"] [:: std :: mem :: offset_of ! (_IO_cookie_io_functions_t , close) - 24usize] ; } ; pub type cookie_io_functions_t = _IO_cookie_io_functions_t ; pub type va_list = __gnuc_va_list ; pub type fpos_t = __fpos_t ; unsafe extern "C" { pub static mut stdin : * mut FILE ; } unsafe extern "C" { pub static mut stdout : * mut FILE ; } unsafe extern "C" { pub static mut stderr : * mut FILE ; } unsafe extern "C" { pub fn remove (__filename : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn rename (__old : * const :: std :: os :: raw :: c_char , __new : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn renameat (__oldfd : :: std :: os :: raw :: c_int , __old : * const :: std :: os :: raw :: c_char , __newfd : :: std :: os :: raw :: c_int , __new : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn fclose (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn tmpfile () -> * mut FILE ; } unsafe extern "C" { pub fn tmpnam (arg1 : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn tmpnam_r (__s : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn tempnam (__dir : * const :: std :: os :: raw :: c_char , __pfx : * const :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn fflush (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn fflush_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn fopen (__filename : * const :: std :: os :: raw :: c_char , __modes : * const :: std :: os :: raw :: c_char) -> * mut FILE ; } unsafe extern "C" { pub fn freopen (__filename : * const :: std :: os :: raw :: c_char , __modes : * const :: std :: os :: raw :: c_char , __stream : * mut FILE) -> * mut FILE ; } unsafe extern "C" { pub fn fdopen (__fd : :: std :: os :: raw :: c_int , __modes : * const :: std :: os :: raw :: c_char) -> * mut FILE ; } unsafe extern "C" { pub fn fopencookie (__magic_cookie : * mut :: std :: os :: raw :: c_void , __modes : * const :: std :: os :: raw :: c_char , __io_funcs : cookie_io_functions_t) -> * mut FILE ; } unsafe extern "C" { pub fn fmemopen (__s : * mut :: std :: os :: raw :: c_void , __len : usize , __modes : * const :: std :: os :: raw :: c_char) -> * mut FILE ; } unsafe extern "C" { pub fn open_memstream (__bufloc : * mut * mut :: std :: os :: raw :: c_char , __sizeloc : * mut usize) -> * mut FILE ; } unsafe extern "C" { pub fn setbuf (__stream : * mut FILE , __buf : * mut :: std :: os :: raw :: c_char) ; } unsafe extern "C" { pub fn setvbuf (__stream : * mut FILE , __buf : * mut :: std :: os :: raw :: c_char , __modes : :: std :: os :: raw :: c_int , __n : usize) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn setbuffer (__stream : * mut FILE , __buf : * mut :: std :: os :: raw :: c_char , __size : usize) ; } unsafe extern "C" { pub fn setlinebuf (__stream : * mut FILE) ; } unsafe extern "C" { pub fn fprintf (__stream : * mut FILE , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn printf (__format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn sprintf (__s : * mut :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn vfprintf (__s : * mut FILE , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn vprintf (__format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn vsprintf (__s : * mut :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn snprintf (__s : * mut :: std :: os :: raw :: c_char , __maxlen : :: std :: os :: raw :: c_ulong , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn vsnprintf (__s : * mut :: std :: os :: raw :: c_char , __maxlen : :: std :: os :: raw :: c_ulong , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn vasprintf (__ptr : * mut * mut :: std :: os :: raw :: c_char , __f : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __asprintf (__ptr : * mut * mut :: std :: os :: raw :: c_char , __fmt : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn asprintf (__ptr : * mut * mut :: std :: os :: raw :: c_char , __fmt : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn vdprintf (__fd : :: std :: os :: raw :: c_int , __fmt : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn dprintf (__fd : :: std :: os :: raw :: c_int , __fmt : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn fscanf (__stream : * mut FILE , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn scanf (__format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn sscanf (__s : * const :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [link_name = "\u{1}__isoc99_fscanf"] pub fn fscanf1 (__stream : * mut FILE , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [link_name = "\u{1}__isoc99_scanf"] pub fn scanf1 (__format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [link_name = "\u{1}__isoc99_sscanf"] pub fn sscanf1 (__s : * const :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn vfscanf (__s : * mut FILE , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn vscanf (__format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn vsscanf (__s : * const :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [link_name = "\u{1}__isoc99_vfscanf"] pub fn vfscanf1 (__s : * mut FILE , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [link_name = "\u{1}__isoc99_vscanf"] pub fn vscanf1 (__format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [link_name = "\u{1}__isoc99_vsscanf"] pub fn vsscanf1 (__s : * const :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn fgetc (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getc (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getchar () -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getc_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getchar_unlocked () -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn fgetc_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn fputc (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn putc (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn putchar (__c : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn fputc_unlocked (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn putc_unlocked (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn putchar_unlocked (__c : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getw (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn putw (__w : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn fgets (__s : * mut :: std :: os :: raw :: c_char , __n : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn __getdelim (__lineptr : * mut * mut :: std :: os :: raw :: c_char , __n : * mut usize , __delimiter : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> __ssize_t ; } unsafe extern "C" { pub fn getdelim (__lineptr : * mut * mut :: std :: os :: raw :: c_char , __n : * mut usize , __delimiter : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> __ssize_t ; } unsafe extern "C" { pub fn getline (__lineptr : * mut * mut :: std :: os :: raw :: c_char , __n : * mut usize , __stream : * mut FILE) -> __ssize_t ; } unsafe extern "C" { pub fn fputs (__s : * const :: std :: os :: raw :: c_char , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn puts (__s : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn ungetc (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn fread (__ptr : * mut :: std :: os :: raw :: c_void , __size : :: std :: os :: raw :: c_ulong , __n : :: std :: os :: raw :: c_ulong , __stream : * mut FILE) -> :: std :: os :: raw :: c_ulong ; } unsafe extern "C" { pub fn fwrite (__ptr : * const :: std :: os :: raw :: c_void , __size : :: std :: os :: raw :: c_ulong , __n : :: std :: os :: raw :: c_ulong , __s : * mut FILE) -> :: std :: os :: raw :: c_ulong ; } unsafe extern "C" { pub fn fread_unlocked (__ptr : * mut :: std :: os :: raw :: c_void , __size : usize , __n : usize , __stream : * mut FILE) -> usize ; } unsafe extern "C" { pub fn fwrite_unlocked (__ptr : * const :: std :: os :: raw :: c_void , __size : usize , __n : usize , __stream : * mut FILE) -> usize ; } unsafe extern "C" { pub fn fseek (__stream : * mut FILE , __off : :: std :: os :: raw :: c_long , __whence : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn ftell (__stream : * mut FILE) -> :: std :: os :: raw :: c_long ; } unsafe extern "C" { pub fn rewind (__stream : * mut FILE) ; } unsafe extern "C" { pub fn fseeko (__stream : * mut FILE , __off : __off_t , __whence : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn ftello (__stream : * mut FILE) -> __off_t ; } unsafe extern "C" { pub fn fgetpos (__stream : * mut FILE , __pos : * mut fpos_t) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn fsetpos (__stream : * mut FILE , __pos : * const fpos_t) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn clearerr (__stream : * mut FILE) ; } unsafe extern "C" { pub fn feof (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn ferror (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn clearerr_unlocked (__stream : * mut FILE) ; } unsafe extern "C" { pub fn feof_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn ferror_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn perror (__s : * const :: std :: os :: raw :: c_char) ; } unsafe extern "C" { pub fn fileno (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn fileno_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn pclose (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn popen (__command : * const :: std :: os :: raw :: c_char , __modes : * const :: std :: os :: raw :: c_char) -> * mut FILE ; } unsafe extern "C" { pub fn ctermid (__s : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn flockfile (__stream : * mut FILE) ; } unsafe extern "C" { pub fn ftrylockfile (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn funlockfile (__stream : * mut FILE) ; } unsafe extern "C" { pub fn __uflow (arg1 : * mut FILE) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn __overflow (arg1 : * mut FILE , arg2 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " Quad-Witch-Huts\n\n  For a quad-structure, we mainly care about relative positioning, so we can\n  get away with just checking the regions near the origin: (0,0),(0,1),(1,0)\n  and (1,1) and then move the structures to the desired position.\n\n  Futhermore, the PRNG that determines the chunk positions inside each region,\n  performs some modular arithmatic on the 48-bit numbers which causes some\n  restrictions on the lower bits when looking for near perfect structure\n  positions. This is difficult to prove, but can be used to reduce the number\n  of free bits to 28 which can be comfortably brute-forced to get the entire\n  set of quad-structure candidates. Each of the seeds found this way\n  describes entire set of possible quad-witch-huts (with degrees of freedom\n  for region-transposition, as well as the top 16-bit bits)."] pub static low20QuadIdeal : [u64 ; 4usize] ; } unsafe extern "C" { pub static low20QuadClassic : [u64 ; 5usize] ; } unsafe extern "C" { pub static low20QuadHutNormal : [u64 ; 11usize] ; } unsafe extern "C" { pub static low20QuadHutBarely : [u64 ; 29usize] ; } pub const CST_NONE : _bindgen_ty_9 = _bindgen_ty_9 (0) ; pub const CST_IDEAL : _bindgen_ty_9 = _bindgen_ty_9 (1) ; pub const CST_CLASSIC : _bindgen_ty_9 = _bindgen_ty_9 (2) ; pub const CST_NORMAL : _bindgen_ty_9 = _bindgen_ty_9 (3) ; pub const CST_BARELY : _bindgen_ty_9 = _bindgen_ty_9 (4) ; # [repr (transparent)] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct _bindgen_ty_9 (pub :: std :: os :: raw :: c_uint) ; unsafe extern "C" { pub fn getQuadHutCst (low20 : u64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn searchAll48 (seedbuf : * mut * mut u64 , buflen : * mut u64 , path : * const :: std :: os :: raw :: c_char , threads : :: std :: os :: raw :: c_int , lowBits : * const u64 , lowBitN : :: std :: os :: raw :: c_int , check : :: std :: option :: Option < unsafe extern "C" fn (s48 : u64 , data : * mut :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int > , data : * mut :: std :: os :: raw :: c_void , stop : * mut :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn getOptimalAfk (p : * mut Pos , ax : :: std :: os :: raw :: c_int , ay : :: std :: os :: raw :: c_int , az : :: std :: os :: raw :: c_int , spcnt : * mut :: std :: os :: raw :: c_int) -> Pos ; } unsafe extern "C" { pub fn scanForQuads (sconf : StructureConfig , radius : :: std :: os :: raw :: c_int , s48 : u64 , lowBits : * const u64 , lowBitN : :: std :: os :: raw :: c_int , salt : u64 , x : :: std :: os :: raw :: c_int , z : :: std :: os :: raw :: c_int , w : :: std :: os :: raw :: c_int , h : :: std :: os :: raw :: c_int , qplist : * mut Pos , n : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn loadSavedSeeds (fnam : * const :: std :: os :: raw :: c_char , scnt : * mut u64) -> * mut u64 ; } unsafe extern "C" { # [doc = " convert between version enum and text"] pub fn mc2str (mc : :: std :: os :: raw :: c_int) -> * const :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn str2mc (s : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " get the resource id name for a biome (for versions 1.13+)"] pub fn biome2str (mc : :: std :: os :: raw :: c_int , id : :: std :: os :: raw :: c_int) -> * const :: std :: os :: raw :: c_char ; } unsafe extern "C" { # [doc = " get the resource id name for a structure"] pub fn struct2str (stype : :: std :: os :: raw :: c_int) -> * const :: std :: os :: raw :: c_char ; } unsafe extern "C" { # [doc = " initialize a biome colormap with some defaults"] pub fn initBiomeColors (biomeColors : * mut [:: std :: os :: raw :: c_uchar ; 3usize]) ; } unsafe extern "C" { pub fn initBiomeTypeColors (biomeColors : * mut [:: std :: os :: raw :: c_uchar ; 3usize]) ; } unsafe extern "C" { pub fn parseBiomeColors (biomeColors : * mut [:: std :: os :: raw :: c_uchar ; 3usize] , buf : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn biomesToImage (pixels : * mut :: std :: os :: raw :: c_uchar , biomeColors : * mut [:: std :: os :: raw :: c_uchar ; 3usize] , biomes : * const :: std :: os :: raw :: c_int , sx : :: std :: os :: raw :: c_uint , sy : :: std :: os :: raw :: c_uint , pixscale : :: std :: os :: raw :: c_uint , flip : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn savePPM (path : * const :: std :: os :: raw :: c_char , pixels : * const :: std :: os :: raw :: c_uchar , sx : :: std :: os :: raw :: c_uint , sy : :: std :: os :: raw :: c_uint) -> :: std :: os :: raw :: c_int ; } pub type __builtin_va_list = [__va_list_tag ; 1usize] ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __va_list_tag { pub gp_offset : :: std :: os :: raw :: c_uint , pub fp_offset : :: std :: os :: raw :: c_uint , pub overflow_arg_area : * mut :: std :: os :: raw :: c_void , pub reg_save_area : * mut :: std :: os :: raw :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __va_list_tag"] [:: std :: mem :: size_of :: < __va_list_tag > () - 24usize] ; ["Alignment of __va_list_tag"] [:: std :: mem :: align_of :: < __va_list_tag > () - 8usize] ; ["Offset of field: __va_list_tag::gp_offset"] [:: std :: mem :: offset_of ! (__va_list_tag , gp_offset) - 0usize] ; ["Offset of field: __va_list_tag::fp_offset"] [:: std :: mem :: offset_of ! (__va_list_tag , fp_offset) - 4usize] ; ["Offset of field: __va_list_tag::overflow_arg_area"] [:: std :: mem :: offset_of ! (__va_list_tag , overflow_arg_area) - 8usize] ; ["Offset of field: __va_list_tag::reg_save_area"] [:: std :: mem :: offset_of ! (__va_list_tag , reg_save_area) - 16usize] ; } ;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Checking cubiomes v0.3.3
[INFO] [stderr]     Checking accesskit_winit v0.29.2
[INFO] [stderr]     Checking egui-winit v0.33.3
[INFO] [stderr]     Checking eframe v0.33.3
[INFO] [stderr]     Checking seed-finder v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: falling back to `f32` as the trait bound `f32: From<f64>` is not satisfied
[INFO] [stdout]    --> src/ui.rs:562:37
[INFO] [stdout]     |
[INFO] [stdout] 562 |                 .stroke(Stroke::new(1.0, colors.border))
[INFO] [stdout]     |                                     ^^^ help: explicitly specify the type as `f32`: `1.0_f32`
[INFO] [stdout]     |
[INFO] [stdout]     = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
[INFO] [stdout]     = note: for more information, see issue #154024 <https://github.com/rust-lang/rust/issues/154024>
[INFO] [stdout]     = note: `#[warn(float_literal_f32_fallback)]` (part of `#[warn(future_incompatible)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: falling back to `f32` as the trait bound `f32: From<f64>` is not satisfied
[INFO] [stdout]    --> src/ui.rs:587:37
[INFO] [stdout]     |
[INFO] [stdout] 587 |                 .stroke(Stroke::new(1.0, colors.border))
[INFO] [stdout]     |                                     ^^^ help: explicitly specify the type as `f32`: `1.0_f32`
[INFO] [stdout]     |
[INFO] [stdout]     = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
[INFO] [stdout]     = note: for more information, see issue #154024 <https://github.com/rust-lang/rust/issues/154024>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: falling back to `f32` as the trait bound `f32: From<f64>` is not satisfied
[INFO] [stdout]    --> src/ui.rs:562:37
[INFO] [stdout]     |
[INFO] [stdout] 562 |                 .stroke(Stroke::new(1.0, colors.border))
[INFO] [stdout]     |                                     ^^^ help: explicitly specify the type as `f32`: `1.0_f32`
[INFO] [stdout]     |
[INFO] [stdout]     = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
[INFO] [stdout]     = note: for more information, see issue #154024 <https://github.com/rust-lang/rust/issues/154024>
[INFO] [stdout]     = note: `#[warn(float_literal_f32_fallback)]` (part of `#[warn(future_incompatible)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: falling back to `f32` as the trait bound `f32: From<f64>` is not satisfied
[INFO] [stdout]    --> src/ui.rs:587:37
[INFO] [stdout]     |
[INFO] [stdout] 587 |                 .stroke(Stroke::new(1.0, colors.border))
[INFO] [stdout]     |                                     ^^^ help: explicitly specify the type as `f32`: `1.0_f32`
[INFO] [stdout]     |
[INFO] [stdout]     = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
[INFO] [stdout]     = note: for more information, see issue #154024 <https://github.com/rust-lang/rust/issues/154024>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: falling back to `f32` as the trait bound `f32: From<f64>` is not satisfied
[INFO] [stdout]    --> src/ui.rs:671:45
[INFO] [stdout]     |
[INFO] [stdout] 671 |                         .stroke(Stroke::new(1.0, stroke_color))
[INFO] [stdout]     |                                             ^^^ help: explicitly specify the type as `f32`: `1.0_f32`
[INFO] [stdout]     |
[INFO] [stdout]     = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
[INFO] [stdout]     = note: for more information, see issue #154024 <https://github.com/rust-lang/rust/issues/154024>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: falling back to `f32` as the trait bound `f32: From<f64>` is not satisfied
[INFO] [stdout]    --> src/ui.rs:671:45
[INFO] [stdout]     |
[INFO] [stdout] 671 |                         .stroke(Stroke::new(1.0, stroke_color))
[INFO] [stdout]     |                                             ^^^ help: explicitly specify the type as `f32`: `1.0_f32`
[INFO] [stdout]     |
[INFO] [stdout]     = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
[INFO] [stdout]     = note: for more information, see issue #154024 <https://github.com/rust-lang/rust/issues/154024>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: falling back to `f32` as the trait bound `f32: From<f64>` is not satisfied
[INFO] [stdout]    --> src/ui.rs:938:25
[INFO] [stdout]     |
[INFO] [stdout] 938 |                         1.0,
[INFO] [stdout]     |                         ^^^ help: explicitly specify the type as `f32`: `1.0_f32`
[INFO] [stdout]     |
[INFO] [stdout]     = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
[INFO] [stdout]     = note: for more information, see issue #154024 <https://github.com/rust-lang/rust/issues/154024>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: falling back to `f32` as the trait bound `f32: From<f64>` is not satisfied
[INFO] [stdout]     --> src/ui.rs:1092:37
[INFO] [stdout]      |
[INFO] [stdout] 1092 |                 .stroke(Stroke::new(1.0, colors.border))
[INFO] [stdout]      |                                     ^^^ help: explicitly specify the type as `f32`: `1.0_f32`
[INFO] [stdout]      |
[INFO] [stdout]      = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
[INFO] [stdout]      = note: for more information, see issue #154024 <https://github.com/rust-lang/rust/issues/154024>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: falling back to `f32` as the trait bound `f32: From<f64>` is not satisfied
[INFO] [stdout]    --> src/ui.rs:938:25
[INFO] [stdout]     |
[INFO] [stdout] 938 |                         1.0,
[INFO] [stdout]     |                         ^^^ help: explicitly specify the type as `f32`: `1.0_f32`
[INFO] [stdout]     |
[INFO] [stdout]     = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
[INFO] [stdout]     = note: for more information, see issue #154024 <https://github.com/rust-lang/rust/issues/154024>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: falling back to `f32` as the trait bound `f32: From<f64>` is not satisfied
[INFO] [stdout]     --> src/ui.rs:1092:37
[INFO] [stdout]      |
[INFO] [stdout] 1092 |                 .stroke(Stroke::new(1.0, colors.border))
[INFO] [stdout]      |                                     ^^^ help: explicitly specify the type as `f32`: `1.0_f32`
[INFO] [stdout]      |
[INFO] [stdout]      = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
[INFO] [stdout]      = note: for more information, see issue #154024 <https://github.com/rust-lang/rust/issues/154024>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: falling back to `f32` as the trait bound `f32: From<f64>` is not satisfied
[INFO] [stdout]     --> src/ui.rs:1146:45
[INFO] [stdout]      |
[INFO] [stdout] 1146 |                         .stroke(Stroke::new(1.0, color))
[INFO] [stdout]      |                                             ^^^ help: explicitly specify the type as `f32`: `1.0_f32`
[INFO] [stdout]      |
[INFO] [stdout]      = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
[INFO] [stdout]      = note: for more information, see issue #154024 <https://github.com/rust-lang/rust/issues/154024>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: falling back to `f32` as the trait bound `f32: From<f64>` is not satisfied
[INFO] [stdout]     --> src/ui.rs:1206:37
[INFO] [stdout]      |
[INFO] [stdout] 1206 |                 .stroke(Stroke::new(1.0, colors.border))
[INFO] [stdout]      |                                     ^^^ help: explicitly specify the type as `f32`: `1.0_f32`
[INFO] [stdout]      |
[INFO] [stdout]      = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
[INFO] [stdout]      = note: for more information, see issue #154024 <https://github.com/rust-lang/rust/issues/154024>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: falling back to `f32` as the trait bound `f32: From<f64>` is not satisfied
[INFO] [stdout]     --> src/ui.rs:1279:33
[INFO] [stdout]      |
[INFO] [stdout] 1279 |             .stroke(Stroke::new(1.0, colors.border))
[INFO] [stdout]      |                                 ^^^ help: explicitly specify the type as `f32`: `1.0_f32`
[INFO] [stdout]      |
[INFO] [stdout]      = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
[INFO] [stdout]      = note: for more information, see issue #154024 <https://github.com/rust-lang/rust/issues/154024>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: falling back to `f32` as the trait bound `f32: From<f64>` is not satisfied
[INFO] [stdout]     --> src/ui.rs:1338:29
[INFO] [stdout]      |
[INFO] [stdout] 1338 |         .stroke(Stroke::new(1.0, colors.border))
[INFO] [stdout]      |                             ^^^ help: explicitly specify the type as `f32`: `1.0_f32`
[INFO] [stdout]      |
[INFO] [stdout]      = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
[INFO] [stdout]      = note: for more information, see issue #154024 <https://github.com/rust-lang/rust/issues/154024>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: falling back to `f32` as the trait bound `f32: From<f64>` is not satisfied
[INFO] [stdout]     --> src/ui.rs:1362:29
[INFO] [stdout]      |
[INFO] [stdout] 1362 |         .stroke(Stroke::new(1.0, color))
[INFO] [stdout]      |                             ^^^ help: explicitly specify the type as `f32`: `1.0_f32`
[INFO] [stdout]      |
[INFO] [stdout]      = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
[INFO] [stdout]      = note: for more information, see issue #154024 <https://github.com/rust-lang/rust/issues/154024>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: falling back to `f32` as the trait bound `f32: From<f64>` is not satisfied
[INFO] [stdout]     --> src/ui.rs:1146:45
[INFO] [stdout]      |
[INFO] [stdout] 1146 |                         .stroke(Stroke::new(1.0, color))
[INFO] [stdout]      |                                             ^^^ help: explicitly specify the type as `f32`: `1.0_f32`
[INFO] [stdout]      |
[INFO] [stdout]      = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
[INFO] [stdout]      = note: for more information, see issue #154024 <https://github.com/rust-lang/rust/issues/154024>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: falling back to `f32` as the trait bound `f32: From<f64>` is not satisfied
[INFO] [stdout]     --> src/ui.rs:1206:37
[INFO] [stdout]      |
[INFO] [stdout] 1206 |                 .stroke(Stroke::new(1.0, colors.border))
[INFO] [stdout]      |                                     ^^^ help: explicitly specify the type as `f32`: `1.0_f32`
[INFO] [stdout]      |
[INFO] [stdout]      = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
[INFO] [stdout]      = note: for more information, see issue #154024 <https://github.com/rust-lang/rust/issues/154024>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: falling back to `f32` as the trait bound `f32: From<f64>` is not satisfied
[INFO] [stdout]     --> src/ui.rs:1279:33
[INFO] [stdout]      |
[INFO] [stdout] 1279 |             .stroke(Stroke::new(1.0, colors.border))
[INFO] [stdout]      |                                 ^^^ help: explicitly specify the type as `f32`: `1.0_f32`
[INFO] [stdout]      |
[INFO] [stdout]      = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
[INFO] [stdout]      = note: for more information, see issue #154024 <https://github.com/rust-lang/rust/issues/154024>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: falling back to `f32` as the trait bound `f32: From<f64>` is not satisfied
[INFO] [stdout]     --> src/ui.rs:1338:29
[INFO] [stdout]      |
[INFO] [stdout] 1338 |         .stroke(Stroke::new(1.0, colors.border))
[INFO] [stdout]      |                             ^^^ help: explicitly specify the type as `f32`: `1.0_f32`
[INFO] [stdout]      |
[INFO] [stdout]      = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
[INFO] [stdout]      = note: for more information, see issue #154024 <https://github.com/rust-lang/rust/issues/154024>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: falling back to `f32` as the trait bound `f32: From<f64>` is not satisfied
[INFO] [stdout]     --> src/ui.rs:1362:29
[INFO] [stdout]      |
[INFO] [stdout] 1362 |         .stroke(Stroke::new(1.0, color))
[INFO] [stdout]      |                             ^^^ help: explicitly specify the type as `f32`: `1.0_f32`
[INFO] [stdout]      |
[INFO] [stdout]      = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
[INFO] [stdout]      = note: for more information, see issue #154024 <https://github.com/rust-lang/rust/issues/154024>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: falling back to `f32` as the trait bound `f32: From<f64>` is not satisfied
[INFO] [stdout]     --> src/ui.rs:1529:44
[INFO] [stdout]      |
[INFO] [stdout] 1529 |     visuals.selection.stroke = Stroke::new(1.0, colors.accent);
[INFO] [stdout]      |                                            ^^^ help: explicitly specify the type as `f32`: `1.0_f32`
[INFO] [stdout]      |
[INFO] [stdout]      = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
[INFO] [stdout]      = note: for more information, see issue #154024 <https://github.com/rust-lang/rust/issues/154024>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: falling back to `f32` as the trait bound `f32: From<f64>` is not satisfied
[INFO] [stdout]     --> src/ui.rs:1529:44
[INFO] [stdout]      |
[INFO] [stdout] 1529 |     visuals.selection.stroke = Stroke::new(1.0, colors.accent);
[INFO] [stdout]      |                                            ^^^ help: explicitly specify the type as `f32`: `1.0_f32`
[INFO] [stdout]      |
[INFO] [stdout]      = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
[INFO] [stdout]      = note: for more information, see issue #154024 <https://github.com/rust-lang/rust/issues/154024>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 14s
[INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: glutin v0.32.3, glutin-winit v0.5.0, winit v0.30.13
[INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 5`
[INFO] running `Command { std: "docker" "inspect" "681db6919db744c68899f0fcf7f6dc08bfd504983ae687a7de59b98bb786b396", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "681db6919db744c68899f0fcf7f6dc08bfd504983ae687a7de59b98bb786b396", kill_on_drop: false }`
[INFO] [stdout] 681db6919db744c68899f0fcf7f6dc08bfd504983ae687a7de59b98bb786b396
