Skip to main content

flint_sys/
arb_types.rs

1/* automatically generated by rust-bindgen 0.70.1 */
2
3use crate::deps::*;
4use crate::arf_types::*;
5use crate::flint::*;
6
7
8#[repr(C)]
9pub struct mag_struct {
10    pub exp: fmpz,
11    pub man: ulong,
12}
13#[allow(clippy::unnecessary_operation, clippy::identity_op)]
14const _: () = {
15    ["Size of mag_struct"][::std::mem::size_of::<mag_struct>() - 16usize];
16    ["Alignment of mag_struct"][::std::mem::align_of::<mag_struct>() - 8usize];
17    ["Offset of field: mag_struct::exp"][::std::mem::offset_of!(mag_struct, exp) - 0usize];
18    ["Offset of field: mag_struct::man"][::std::mem::offset_of!(mag_struct, man) - 8usize];
19};
20impl Default for mag_struct {
21    fn default() -> Self {
22        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
23        unsafe {
24            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
25            s.assume_init()
26        }
27    }
28}
29pub type mag_t = [mag_struct; 1usize];
30pub type mag_ptr = *mut mag_struct;
31pub type mag_srcptr = *const mag_struct;
32#[repr(C)]
33pub struct arb_struct {
34    pub mid: arf_struct,
35    pub rad: mag_struct,
36}
37#[allow(clippy::unnecessary_operation, clippy::identity_op)]
38const _: () = {
39    ["Size of arb_struct"][::std::mem::size_of::<arb_struct>() - 48usize];
40    ["Alignment of arb_struct"][::std::mem::align_of::<arb_struct>() - 8usize];
41    ["Offset of field: arb_struct::mid"][::std::mem::offset_of!(arb_struct, mid) - 0usize];
42    ["Offset of field: arb_struct::rad"][::std::mem::offset_of!(arb_struct, rad) - 32usize];
43};
44impl Default for arb_struct {
45    fn default() -> Self {
46        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
47        unsafe {
48            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
49            s.assume_init()
50        }
51    }
52}
53pub type arb_t = [arb_struct; 1usize];
54pub type arb_ptr = *mut arb_struct;
55pub type arb_srcptr = *const arb_struct;
56#[repr(C)]
57pub struct arb_mat_struct {
58    pub entries: arb_ptr,
59    pub r: slong,
60    pub c: slong,
61    pub stride: slong,
62}
63#[allow(clippy::unnecessary_operation, clippy::identity_op)]
64const _: () = {
65    ["Size of arb_mat_struct"][::std::mem::size_of::<arb_mat_struct>() - 32usize];
66    ["Alignment of arb_mat_struct"][::std::mem::align_of::<arb_mat_struct>() - 8usize];
67    ["Offset of field: arb_mat_struct::entries"]
68        [::std::mem::offset_of!(arb_mat_struct, entries) - 0usize];
69    ["Offset of field: arb_mat_struct::r"][::std::mem::offset_of!(arb_mat_struct, r) - 8usize];
70    ["Offset of field: arb_mat_struct::c"][::std::mem::offset_of!(arb_mat_struct, c) - 16usize];
71    ["Offset of field: arb_mat_struct::stride"]
72        [::std::mem::offset_of!(arb_mat_struct, stride) - 24usize];
73};
74impl Default for arb_mat_struct {
75    fn default() -> Self {
76        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
77        unsafe {
78            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
79            s.assume_init()
80        }
81    }
82}
83pub type arb_mat_t = [arb_mat_struct; 1usize];
84#[repr(C)]
85pub struct arb_poly_struct {
86    pub coeffs: arb_ptr,
87    pub alloc: slong,
88    pub length: slong,
89}
90#[allow(clippy::unnecessary_operation, clippy::identity_op)]
91const _: () = {
92    ["Size of arb_poly_struct"][::std::mem::size_of::<arb_poly_struct>() - 24usize];
93    ["Alignment of arb_poly_struct"][::std::mem::align_of::<arb_poly_struct>() - 8usize];
94    ["Offset of field: arb_poly_struct::coeffs"]
95        [::std::mem::offset_of!(arb_poly_struct, coeffs) - 0usize];
96    ["Offset of field: arb_poly_struct::alloc"]
97        [::std::mem::offset_of!(arb_poly_struct, alloc) - 8usize];
98    ["Offset of field: arb_poly_struct::length"]
99        [::std::mem::offset_of!(arb_poly_struct, length) - 16usize];
100};
101impl Default for arb_poly_struct {
102    fn default() -> Self {
103        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
104        unsafe {
105            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
106            s.assume_init()
107        }
108    }
109}
110pub type arb_poly_t = [arb_poly_struct; 1usize];