1use crate::deps::*;
4
5
6#[repr(C)]
7pub struct n_poly_struct {
8 pub coeffs: *mut ulong,
9 pub alloc: slong,
10 pub length: slong,
11}
12#[allow(clippy::unnecessary_operation, clippy::identity_op)]
13const _: () = {
14 ["Size of n_poly_struct"][::std::mem::size_of::<n_poly_struct>() - 24usize];
15 ["Alignment of n_poly_struct"][::std::mem::align_of::<n_poly_struct>() - 8usize];
16 ["Offset of field: n_poly_struct::coeffs"]
17 [::std::mem::offset_of!(n_poly_struct, coeffs) - 0usize];
18 ["Offset of field: n_poly_struct::alloc"]
19 [::std::mem::offset_of!(n_poly_struct, alloc) - 8usize];
20 ["Offset of field: n_poly_struct::length"]
21 [::std::mem::offset_of!(n_poly_struct, length) - 16usize];
22};
23impl Default for n_poly_struct {
24 fn default() -> Self {
25 let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
26 unsafe {
27 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
28 s.assume_init()
29 }
30 }
31}
32pub type n_poly_t = [n_poly_struct; 1usize];
33pub type n_fq_poly_struct = n_poly_struct;
34pub type n_fq_poly_t = n_poly_t;
35#[repr(C)]
36pub struct n_bpoly_struct {
37 pub coeffs: *mut n_poly_struct,
38 pub alloc: slong,
39 pub length: slong,
40}
41#[allow(clippy::unnecessary_operation, clippy::identity_op)]
42const _: () = {
43 ["Size of n_bpoly_struct"][::std::mem::size_of::<n_bpoly_struct>() - 24usize];
44 ["Alignment of n_bpoly_struct"][::std::mem::align_of::<n_bpoly_struct>() - 8usize];
45 ["Offset of field: n_bpoly_struct::coeffs"]
46 [::std::mem::offset_of!(n_bpoly_struct, coeffs) - 0usize];
47 ["Offset of field: n_bpoly_struct::alloc"]
48 [::std::mem::offset_of!(n_bpoly_struct, alloc) - 8usize];
49 ["Offset of field: n_bpoly_struct::length"]
50 [::std::mem::offset_of!(n_bpoly_struct, length) - 16usize];
51};
52impl Default for n_bpoly_struct {
53 fn default() -> Self {
54 let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
55 unsafe {
56 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
57 s.assume_init()
58 }
59 }
60}
61pub type n_bpoly_t = [n_bpoly_struct; 1usize];
62pub type n_fq_bpoly_struct = n_bpoly_struct;
63pub type n_fq_bpoly_t = n_bpoly_t;
64#[repr(C)]
65pub struct n_tpoly_struct {
66 pub coeffs: *mut n_bpoly_struct,
67 pub alloc: slong,
68 pub length: slong,
69}
70#[allow(clippy::unnecessary_operation, clippy::identity_op)]
71const _: () = {
72 ["Size of n_tpoly_struct"][::std::mem::size_of::<n_tpoly_struct>() - 24usize];
73 ["Alignment of n_tpoly_struct"][::std::mem::align_of::<n_tpoly_struct>() - 8usize];
74 ["Offset of field: n_tpoly_struct::coeffs"]
75 [::std::mem::offset_of!(n_tpoly_struct, coeffs) - 0usize];
76 ["Offset of field: n_tpoly_struct::alloc"]
77 [::std::mem::offset_of!(n_tpoly_struct, alloc) - 8usize];
78 ["Offset of field: n_tpoly_struct::length"]
79 [::std::mem::offset_of!(n_tpoly_struct, length) - 16usize];
80};
81impl Default for n_tpoly_struct {
82 fn default() -> Self {
83 let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
84 unsafe {
85 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
86 s.assume_init()
87 }
88 }
89}
90pub type n_tpoly_t = [n_tpoly_struct; 1usize];
91pub type n_fq_tpoly_struct = n_tpoly_struct;
92pub type n_fq_tpoly_t = n_tpoly_t;
93#[repr(C)]
94pub struct n_polyu_struct {
95 pub exps: *mut ulong,
96 pub coeffs: *mut ulong,
97 pub length: slong,
98 pub alloc: slong,
99}
100#[allow(clippy::unnecessary_operation, clippy::identity_op)]
101const _: () = {
102 ["Size of n_polyu_struct"][::std::mem::size_of::<n_polyu_struct>() - 32usize];
103 ["Alignment of n_polyu_struct"][::std::mem::align_of::<n_polyu_struct>() - 8usize];
104 ["Offset of field: n_polyu_struct::exps"]
105 [::std::mem::offset_of!(n_polyu_struct, exps) - 0usize];
106 ["Offset of field: n_polyu_struct::coeffs"]
107 [::std::mem::offset_of!(n_polyu_struct, coeffs) - 8usize];
108 ["Offset of field: n_polyu_struct::length"]
109 [::std::mem::offset_of!(n_polyu_struct, length) - 16usize];
110 ["Offset of field: n_polyu_struct::alloc"]
111 [::std::mem::offset_of!(n_polyu_struct, alloc) - 24usize];
112};
113impl Default for n_polyu_struct {
114 fn default() -> Self {
115 let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
116 unsafe {
117 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
118 s.assume_init()
119 }
120 }
121}
122pub type n_polyu_t = [n_polyu_struct; 1usize];
123pub type n_fq_polyu_struct = n_polyu_struct;
124pub type n_fq_polyu_t = n_polyu_t;
125#[repr(C)]
126pub struct n_polyun_struct {
127 pub coeffs: *mut n_poly_struct,
128 pub exps: *mut ulong,
129 pub length: slong,
130 pub alloc: slong,
131}
132#[allow(clippy::unnecessary_operation, clippy::identity_op)]
133const _: () = {
134 ["Size of n_polyun_struct"][::std::mem::size_of::<n_polyun_struct>() - 32usize];
135 ["Alignment of n_polyun_struct"][::std::mem::align_of::<n_polyun_struct>() - 8usize];
136 ["Offset of field: n_polyun_struct::coeffs"]
137 [::std::mem::offset_of!(n_polyun_struct, coeffs) - 0usize];
138 ["Offset of field: n_polyun_struct::exps"]
139 [::std::mem::offset_of!(n_polyun_struct, exps) - 8usize];
140 ["Offset of field: n_polyun_struct::length"]
141 [::std::mem::offset_of!(n_polyun_struct, length) - 16usize];
142 ["Offset of field: n_polyun_struct::alloc"]
143 [::std::mem::offset_of!(n_polyun_struct, alloc) - 24usize];
144};
145impl Default for n_polyun_struct {
146 fn default() -> Self {
147 let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
148 unsafe {
149 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
150 s.assume_init()
151 }
152 }
153}
154pub type n_polyun_t = [n_polyun_struct; 1usize];
155pub type n_fq_polyun_struct = n_polyun_struct;
156pub type n_fq_polyun_t = n_polyun_t;
157#[repr(C)]
158pub struct n_poly_stack_struct {
159 pub array: *mut *mut n_poly_struct,
160 pub alloc: slong,
161 pub top: slong,
162}
163#[allow(clippy::unnecessary_operation, clippy::identity_op)]
164const _: () = {
165 ["Size of n_poly_stack_struct"][::std::mem::size_of::<n_poly_stack_struct>() - 24usize];
166 ["Alignment of n_poly_stack_struct"][::std::mem::align_of::<n_poly_stack_struct>() - 8usize];
167 ["Offset of field: n_poly_stack_struct::array"]
168 [::std::mem::offset_of!(n_poly_stack_struct, array) - 0usize];
169 ["Offset of field: n_poly_stack_struct::alloc"]
170 [::std::mem::offset_of!(n_poly_stack_struct, alloc) - 8usize];
171 ["Offset of field: n_poly_stack_struct::top"]
172 [::std::mem::offset_of!(n_poly_stack_struct, top) - 16usize];
173};
174impl Default for n_poly_stack_struct {
175 fn default() -> Self {
176 let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
177 unsafe {
178 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
179 s.assume_init()
180 }
181 }
182}
183pub type n_poly_stack_t = [n_poly_stack_struct; 1usize];
184#[repr(C)]
185pub struct n_bpoly_stack_struct {
186 pub array: *mut *mut n_bpoly_struct,
187 pub alloc: slong,
188 pub top: slong,
189}
190#[allow(clippy::unnecessary_operation, clippy::identity_op)]
191const _: () = {
192 ["Size of n_bpoly_stack_struct"][::std::mem::size_of::<n_bpoly_stack_struct>() - 24usize];
193 ["Alignment of n_bpoly_stack_struct"][::std::mem::align_of::<n_bpoly_stack_struct>() - 8usize];
194 ["Offset of field: n_bpoly_stack_struct::array"]
195 [::std::mem::offset_of!(n_bpoly_stack_struct, array) - 0usize];
196 ["Offset of field: n_bpoly_stack_struct::alloc"]
197 [::std::mem::offset_of!(n_bpoly_stack_struct, alloc) - 8usize];
198 ["Offset of field: n_bpoly_stack_struct::top"]
199 [::std::mem::offset_of!(n_bpoly_stack_struct, top) - 16usize];
200};
201impl Default for n_bpoly_stack_struct {
202 fn default() -> Self {
203 let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
204 unsafe {
205 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
206 s.assume_init()
207 }
208 }
209}
210pub type n_bpoly_stack_t = [n_bpoly_stack_struct; 1usize];
211#[repr(C)]
212pub struct n_poly_bpoly_stack_struct {
213 pub poly_stack: n_poly_stack_t,
214 pub bpoly_stack: n_bpoly_stack_t,
215}
216#[allow(clippy::unnecessary_operation, clippy::identity_op)]
217const _: () = {
218 ["Size of n_poly_bpoly_stack_struct"]
219 [::std::mem::size_of::<n_poly_bpoly_stack_struct>() - 48usize];
220 ["Alignment of n_poly_bpoly_stack_struct"]
221 [::std::mem::align_of::<n_poly_bpoly_stack_struct>() - 8usize];
222 ["Offset of field: n_poly_bpoly_stack_struct::poly_stack"]
223 [::std::mem::offset_of!(n_poly_bpoly_stack_struct, poly_stack) - 0usize];
224 ["Offset of field: n_poly_bpoly_stack_struct::bpoly_stack"]
225 [::std::mem::offset_of!(n_poly_bpoly_stack_struct, bpoly_stack) - 24usize];
226};
227impl Default for n_poly_bpoly_stack_struct {
228 fn default() -> Self {
229 let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
230 unsafe {
231 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
232 s.assume_init()
233 }
234 }
235}
236pub type n_poly_bpoly_stack_t = [n_poly_bpoly_stack_struct; 1usize];
237#[repr(C)]
238pub struct nmod_eval_interp_struct {
239 pub M: *mut ulong,
240 pub T: *mut ulong,
241 pub Q: *mut ulong,
242 pub array: *mut ulong,
243 pub alloc: slong,
244 pub d: slong,
245 pub radix: slong,
246 pub w: ulong,
247}
248#[allow(clippy::unnecessary_operation, clippy::identity_op)]
249const _: () = {
250 ["Size of nmod_eval_interp_struct"][::std::mem::size_of::<nmod_eval_interp_struct>() - 64usize];
251 ["Alignment of nmod_eval_interp_struct"]
252 [::std::mem::align_of::<nmod_eval_interp_struct>() - 8usize];
253 ["Offset of field: nmod_eval_interp_struct::M"]
254 [::std::mem::offset_of!(nmod_eval_interp_struct, M) - 0usize];
255 ["Offset of field: nmod_eval_interp_struct::T"]
256 [::std::mem::offset_of!(nmod_eval_interp_struct, T) - 8usize];
257 ["Offset of field: nmod_eval_interp_struct::Q"]
258 [::std::mem::offset_of!(nmod_eval_interp_struct, Q) - 16usize];
259 ["Offset of field: nmod_eval_interp_struct::array"]
260 [::std::mem::offset_of!(nmod_eval_interp_struct, array) - 24usize];
261 ["Offset of field: nmod_eval_interp_struct::alloc"]
262 [::std::mem::offset_of!(nmod_eval_interp_struct, alloc) - 32usize];
263 ["Offset of field: nmod_eval_interp_struct::d"]
264 [::std::mem::offset_of!(nmod_eval_interp_struct, d) - 40usize];
265 ["Offset of field: nmod_eval_interp_struct::radix"]
266 [::std::mem::offset_of!(nmod_eval_interp_struct, radix) - 48usize];
267 ["Offset of field: nmod_eval_interp_struct::w"]
268 [::std::mem::offset_of!(nmod_eval_interp_struct, w) - 56usize];
269};
270impl Default for nmod_eval_interp_struct {
271 fn default() -> Self {
272 let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
273 unsafe {
274 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
275 s.assume_init()
276 }
277 }
278}
279pub type nmod_eval_interp_t = [nmod_eval_interp_struct; 1usize];