1use crate::deps::*;
4use crate::arb_types::*;
5
6
7#[repr(C)]
8pub struct acb_struct {
9 pub real: arb_struct,
10 pub imag: arb_struct,
11}
12#[allow(clippy::unnecessary_operation, clippy::identity_op)]
13const _: () = {
14 ["Size of acb_struct"][::std::mem::size_of::<acb_struct>() - 96usize];
15 ["Alignment of acb_struct"][::std::mem::align_of::<acb_struct>() - 8usize];
16 ["Offset of field: acb_struct::real"][::std::mem::offset_of!(acb_struct, real) - 0usize];
17 ["Offset of field: acb_struct::imag"][::std::mem::offset_of!(acb_struct, imag) - 48usize];
18};
19impl Default for acb_struct {
20 fn default() -> Self {
21 let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
22 unsafe {
23 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
24 s.assume_init()
25 }
26 }
27}
28pub type acb_t = [acb_struct; 1usize];
29pub type acb_ptr = *mut acb_struct;
30pub type acb_srcptr = *const acb_struct;
31#[repr(C)]
32pub struct acb_mat_struct {
33 pub entries: acb_ptr,
34 pub r: slong,
35 pub c: slong,
36 pub stride: slong,
37}
38#[allow(clippy::unnecessary_operation, clippy::identity_op)]
39const _: () = {
40 ["Size of acb_mat_struct"][::std::mem::size_of::<acb_mat_struct>() - 32usize];
41 ["Alignment of acb_mat_struct"][::std::mem::align_of::<acb_mat_struct>() - 8usize];
42 ["Offset of field: acb_mat_struct::entries"]
43 [::std::mem::offset_of!(acb_mat_struct, entries) - 0usize];
44 ["Offset of field: acb_mat_struct::r"][::std::mem::offset_of!(acb_mat_struct, r) - 8usize];
45 ["Offset of field: acb_mat_struct::c"][::std::mem::offset_of!(acb_mat_struct, c) - 16usize];
46 ["Offset of field: acb_mat_struct::stride"]
47 [::std::mem::offset_of!(acb_mat_struct, stride) - 24usize];
48};
49impl Default for acb_mat_struct {
50 fn default() -> Self {
51 let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
52 unsafe {
53 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
54 s.assume_init()
55 }
56 }
57}
58pub type acb_mat_t = [acb_mat_struct; 1usize];
59#[repr(C)]
60pub struct acb_poly_struct {
61 pub coeffs: acb_ptr,
62 pub alloc: slong,
63 pub length: slong,
64}
65#[allow(clippy::unnecessary_operation, clippy::identity_op)]
66const _: () = {
67 ["Size of acb_poly_struct"][::std::mem::size_of::<acb_poly_struct>() - 24usize];
68 ["Alignment of acb_poly_struct"][::std::mem::align_of::<acb_poly_struct>() - 8usize];
69 ["Offset of field: acb_poly_struct::coeffs"]
70 [::std::mem::offset_of!(acb_poly_struct, coeffs) - 0usize];
71 ["Offset of field: acb_poly_struct::alloc"]
72 [::std::mem::offset_of!(acb_poly_struct, alloc) - 8usize];
73 ["Offset of field: acb_poly_struct::length"]
74 [::std::mem::offset_of!(acb_poly_struct, length) - 16usize];
75};
76impl Default for acb_poly_struct {
77 fn default() -> Self {
78 let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
79 unsafe {
80 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
81 s.assume_init()
82 }
83 }
84}
85pub type acb_poly_t = [acb_poly_struct; 1usize];