1use crate::deps::*;
4use crate::flint::*;
5
6
7#[repr(C)]
8pub struct nmod_mat_struct {
9 pub entries: *mut ulong,
10 pub r: slong,
11 pub c: slong,
12 pub stride: slong,
13 pub mod_: nmod_t,
14}
15#[allow(clippy::unnecessary_operation, clippy::identity_op)]
16const _: () = {
17 ["Size of nmod_mat_struct"][::std::mem::size_of::<nmod_mat_struct>() - 56usize];
18 ["Alignment of nmod_mat_struct"][::std::mem::align_of::<nmod_mat_struct>() - 8usize];
19 ["Offset of field: nmod_mat_struct::entries"]
20 [::std::mem::offset_of!(nmod_mat_struct, entries) - 0usize];
21 ["Offset of field: nmod_mat_struct::r"][::std::mem::offset_of!(nmod_mat_struct, r) - 8usize];
22 ["Offset of field: nmod_mat_struct::c"][::std::mem::offset_of!(nmod_mat_struct, c) - 16usize];
23 ["Offset of field: nmod_mat_struct::stride"]
24 [::std::mem::offset_of!(nmod_mat_struct, stride) - 24usize];
25 ["Offset of field: nmod_mat_struct::mod_"]
26 [::std::mem::offset_of!(nmod_mat_struct, mod_) - 32usize];
27};
28impl Default for nmod_mat_struct {
29 fn default() -> Self {
30 let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
31 unsafe {
32 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
33 s.assume_init()
34 }
35 }
36}
37pub type nmod_mat_t = [nmod_mat_struct; 1usize];
38#[repr(C)]
39pub struct nmod_poly_struct {
40 pub coeffs: nn_ptr,
41 pub alloc: slong,
42 pub length: slong,
43 pub mod_: nmod_t,
44}
45#[allow(clippy::unnecessary_operation, clippy::identity_op)]
46const _: () = {
47 ["Size of nmod_poly_struct"][::std::mem::size_of::<nmod_poly_struct>() - 48usize];
48 ["Alignment of nmod_poly_struct"][::std::mem::align_of::<nmod_poly_struct>() - 8usize];
49 ["Offset of field: nmod_poly_struct::coeffs"]
50 [::std::mem::offset_of!(nmod_poly_struct, coeffs) - 0usize];
51 ["Offset of field: nmod_poly_struct::alloc"]
52 [::std::mem::offset_of!(nmod_poly_struct, alloc) - 8usize];
53 ["Offset of field: nmod_poly_struct::length"]
54 [::std::mem::offset_of!(nmod_poly_struct, length) - 16usize];
55 ["Offset of field: nmod_poly_struct::mod_"]
56 [::std::mem::offset_of!(nmod_poly_struct, mod_) - 24usize];
57};
58impl Default for nmod_poly_struct {
59 fn default() -> Self {
60 let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
61 unsafe {
62 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
63 s.assume_init()
64 }
65 }
66}
67pub type nmod_poly_t = [nmod_poly_struct; 1usize];
68#[repr(C)]
69pub struct nmod_poly_factor_struct {
70 pub p: *mut nmod_poly_struct,
71 pub exp: *mut slong,
72 pub num: slong,
73 pub alloc: slong,
74}
75#[allow(clippy::unnecessary_operation, clippy::identity_op)]
76const _: () = {
77 ["Size of nmod_poly_factor_struct"][::std::mem::size_of::<nmod_poly_factor_struct>() - 32usize];
78 ["Alignment of nmod_poly_factor_struct"]
79 [::std::mem::align_of::<nmod_poly_factor_struct>() - 8usize];
80 ["Offset of field: nmod_poly_factor_struct::p"]
81 [::std::mem::offset_of!(nmod_poly_factor_struct, p) - 0usize];
82 ["Offset of field: nmod_poly_factor_struct::exp"]
83 [::std::mem::offset_of!(nmod_poly_factor_struct, exp) - 8usize];
84 ["Offset of field: nmod_poly_factor_struct::num"]
85 [::std::mem::offset_of!(nmod_poly_factor_struct, num) - 16usize];
86 ["Offset of field: nmod_poly_factor_struct::alloc"]
87 [::std::mem::offset_of!(nmod_poly_factor_struct, alloc) - 24usize];
88};
89impl Default for nmod_poly_factor_struct {
90 fn default() -> Self {
91 let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
92 unsafe {
93 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
94 s.assume_init()
95 }
96 }
97}
98pub type nmod_poly_factor_t = [nmod_poly_factor_struct; 1usize];
99#[repr(C)]
100pub struct nmod_poly_mat_struct {
101 pub entries: *mut nmod_poly_struct,
102 pub r: slong,
103 pub c: slong,
104 pub stride: slong,
105 pub modulus: ulong,
106}
107#[allow(clippy::unnecessary_operation, clippy::identity_op)]
108const _: () = {
109 ["Size of nmod_poly_mat_struct"][::std::mem::size_of::<nmod_poly_mat_struct>() - 40usize];
110 ["Alignment of nmod_poly_mat_struct"][::std::mem::align_of::<nmod_poly_mat_struct>() - 8usize];
111 ["Offset of field: nmod_poly_mat_struct::entries"]
112 [::std::mem::offset_of!(nmod_poly_mat_struct, entries) - 0usize];
113 ["Offset of field: nmod_poly_mat_struct::r"]
114 [::std::mem::offset_of!(nmod_poly_mat_struct, r) - 8usize];
115 ["Offset of field: nmod_poly_mat_struct::c"]
116 [::std::mem::offset_of!(nmod_poly_mat_struct, c) - 16usize];
117 ["Offset of field: nmod_poly_mat_struct::stride"]
118 [::std::mem::offset_of!(nmod_poly_mat_struct, stride) - 24usize];
119 ["Offset of field: nmod_poly_mat_struct::modulus"]
120 [::std::mem::offset_of!(nmod_poly_mat_struct, modulus) - 32usize];
121};
122impl Default for nmod_poly_mat_struct {
123 fn default() -> Self {
124 let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
125 unsafe {
126 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
127 s.assume_init()
128 }
129 }
130}
131pub type nmod_poly_mat_t = [nmod_poly_mat_struct; 1usize];
132#[repr(C)]
133pub struct nmod_mpoly_struct {
134 pub coeffs: *mut ulong,
135 pub exps: *mut ulong,
136 pub length: slong,
137 pub bits: flint_bitcnt_t,
138 pub coeffs_alloc: slong,
139 pub exps_alloc: slong,
140}
141#[allow(clippy::unnecessary_operation, clippy::identity_op)]
142const _: () = {
143 ["Size of nmod_mpoly_struct"][::std::mem::size_of::<nmod_mpoly_struct>() - 48usize];
144 ["Alignment of nmod_mpoly_struct"][::std::mem::align_of::<nmod_mpoly_struct>() - 8usize];
145 ["Offset of field: nmod_mpoly_struct::coeffs"]
146 [::std::mem::offset_of!(nmod_mpoly_struct, coeffs) - 0usize];
147 ["Offset of field: nmod_mpoly_struct::exps"]
148 [::std::mem::offset_of!(nmod_mpoly_struct, exps) - 8usize];
149 ["Offset of field: nmod_mpoly_struct::length"]
150 [::std::mem::offset_of!(nmod_mpoly_struct, length) - 16usize];
151 ["Offset of field: nmod_mpoly_struct::bits"]
152 [::std::mem::offset_of!(nmod_mpoly_struct, bits) - 24usize];
153 ["Offset of field: nmod_mpoly_struct::coeffs_alloc"]
154 [::std::mem::offset_of!(nmod_mpoly_struct, coeffs_alloc) - 32usize];
155 ["Offset of field: nmod_mpoly_struct::exps_alloc"]
156 [::std::mem::offset_of!(nmod_mpoly_struct, exps_alloc) - 40usize];
157};
158impl Default for nmod_mpoly_struct {
159 fn default() -> Self {
160 let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
161 unsafe {
162 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
163 s.assume_init()
164 }
165 }
166}
167pub type nmod_mpoly_t = [nmod_mpoly_struct; 1usize];
168#[repr(C)]
169pub struct nmod_mpoly_factor_struct {
170 pub constant: ulong,
171 pub poly: *mut nmod_mpoly_struct,
172 pub exp: *mut fmpz,
173 pub num: slong,
174 pub alloc: slong,
175}
176#[allow(clippy::unnecessary_operation, clippy::identity_op)]
177const _: () = {
178 ["Size of nmod_mpoly_factor_struct"]
179 [::std::mem::size_of::<nmod_mpoly_factor_struct>() - 40usize];
180 ["Alignment of nmod_mpoly_factor_struct"]
181 [::std::mem::align_of::<nmod_mpoly_factor_struct>() - 8usize];
182 ["Offset of field: nmod_mpoly_factor_struct::constant"]
183 [::std::mem::offset_of!(nmod_mpoly_factor_struct, constant) - 0usize];
184 ["Offset of field: nmod_mpoly_factor_struct::poly"]
185 [::std::mem::offset_of!(nmod_mpoly_factor_struct, poly) - 8usize];
186 ["Offset of field: nmod_mpoly_factor_struct::exp"]
187 [::std::mem::offset_of!(nmod_mpoly_factor_struct, exp) - 16usize];
188 ["Offset of field: nmod_mpoly_factor_struct::num"]
189 [::std::mem::offset_of!(nmod_mpoly_factor_struct, num) - 24usize];
190 ["Offset of field: nmod_mpoly_factor_struct::alloc"]
191 [::std::mem::offset_of!(nmod_mpoly_factor_struct, alloc) - 32usize];
192};
193impl Default for nmod_mpoly_factor_struct {
194 fn default() -> Self {
195 let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
196 unsafe {
197 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
198 s.assume_init()
199 }
200 }
201}
202pub type nmod_mpoly_factor_t = [nmod_mpoly_factor_struct; 1usize];
203pub const dot_method_t__DOT0: dot_method_t = 0;
204pub const dot_method_t__DOT1: dot_method_t = 1;
205pub const dot_method_t__DOT2_SPLIT: dot_method_t = 2;
206pub const dot_method_t__DOT2_HALF: dot_method_t = 3;
207pub const dot_method_t__DOT2: dot_method_t = 4;
208pub const dot_method_t__DOT3_ACC: dot_method_t = 5;
209pub const dot_method_t__DOT3: dot_method_t = 6;
210pub const dot_method_t__DOT_POW2: dot_method_t = 7;
211pub type dot_method_t = libc::c_uint;
212#[repr(C)]
213pub struct dot_params_t {
214 pub method: dot_method_t,
215 pub pow2_precomp: ulong,
216}
217#[allow(clippy::unnecessary_operation, clippy::identity_op)]
218const _: () = {
219 ["Size of dot_params_t"][::std::mem::size_of::<dot_params_t>() - 16usize];
220 ["Alignment of dot_params_t"][::std::mem::align_of::<dot_params_t>() - 8usize];
221 ["Offset of field: dot_params_t::method"]
222 [::std::mem::offset_of!(dot_params_t, method) - 0usize];
223 ["Offset of field: dot_params_t::pow2_precomp"]
224 [::std::mem::offset_of!(dot_params_t, pow2_precomp) - 8usize];
225};
226impl Default for dot_params_t {
227 fn default() -> Self {
228 let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
229 unsafe {
230 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
231 s.assume_init()
232 }
233 }
234}