pydae 0.57.1__py3-none-any.whl → 0.57.3__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,3044 @@
1
+ #define _CFFI_
2
+
3
+ /* We try to define Py_LIMITED_API before including Python.h.
4
+
5
+ Mess: we can only define it if Py_DEBUG, Py_TRACE_REFS and
6
+ Py_REF_DEBUG are not defined. This is a best-effort approximation:
7
+ we can learn about Py_DEBUG from pyconfig.h, but it is unclear if
8
+ the same works for the other two macros. Py_DEBUG implies them,
9
+ but not the other way around.
10
+
11
+ The implementation is messy (issue #350): on Windows, with _MSC_VER,
12
+ we have to define Py_LIMITED_API even before including pyconfig.h.
13
+ In that case, we guess what pyconfig.h will do to the macros above,
14
+ and check our guess after the #include.
15
+
16
+ Note that on Windows, with CPython 3.x, you need >= 3.5 and virtualenv
17
+ version >= 16.0.0. With older versions of either, you don't get a
18
+ copy of PYTHON3.DLL in the virtualenv. We can't check the version of
19
+ CPython *before* we even include pyconfig.h. ffi.set_source() puts
20
+ a ``#define _CFFI_NO_LIMITED_API'' at the start of this file if it is
21
+ running on Windows < 3.5, as an attempt at fixing it, but that's
22
+ arguably wrong because it may not be the target version of Python.
23
+ Still better than nothing I guess. As another workaround, you can
24
+ remove the definition of Py_LIMITED_API here.
25
+
26
+ See also 'py_limited_api' in cffi/setuptools_ext.py.
27
+ */
28
+ #if !defined(_CFFI_USE_EMBEDDING) && !defined(Py_LIMITED_API)
29
+ # ifdef _MSC_VER
30
+ # if !defined(_DEBUG) && !defined(Py_DEBUG) && !defined(Py_TRACE_REFS) && !defined(Py_REF_DEBUG) && !defined(_CFFI_NO_LIMITED_API)
31
+ # define Py_LIMITED_API
32
+ # endif
33
+ # include <pyconfig.h>
34
+ /* sanity-check: Py_LIMITED_API will cause crashes if any of these
35
+ are also defined. Normally, the Python file PC/pyconfig.h does not
36
+ cause any of these to be defined, with the exception that _DEBUG
37
+ causes Py_DEBUG. Double-check that. */
38
+ # ifdef Py_LIMITED_API
39
+ # if defined(Py_DEBUG)
40
+ # error "pyconfig.h unexpectedly defines Py_DEBUG, but Py_LIMITED_API is set"
41
+ # endif
42
+ # if defined(Py_TRACE_REFS)
43
+ # error "pyconfig.h unexpectedly defines Py_TRACE_REFS, but Py_LIMITED_API is set"
44
+ # endif
45
+ # if defined(Py_REF_DEBUG)
46
+ # error "pyconfig.h unexpectedly defines Py_REF_DEBUG, but Py_LIMITED_API is set"
47
+ # endif
48
+ # endif
49
+ # else
50
+ # include <pyconfig.h>
51
+ # if !defined(Py_DEBUG) && !defined(Py_TRACE_REFS) && !defined(Py_REF_DEBUG) && !defined(_CFFI_NO_LIMITED_API)
52
+ # define Py_LIMITED_API
53
+ # endif
54
+ # endif
55
+ #endif
56
+
57
+ #include <Python.h>
58
+ #ifdef __cplusplus
59
+ extern "C" {
60
+ #endif
61
+ #include <stddef.h>
62
+
63
+ /* This part is from file 'cffi/parse_c_type.h'. It is copied at the
64
+ beginning of C sources generated by CFFI's ffi.set_source(). */
65
+
66
+ typedef void *_cffi_opcode_t;
67
+
68
+ #define _CFFI_OP(opcode, arg) (_cffi_opcode_t)(opcode | (((uintptr_t)(arg)) << 8))
69
+ #define _CFFI_GETOP(cffi_opcode) ((unsigned char)(uintptr_t)cffi_opcode)
70
+ #define _CFFI_GETARG(cffi_opcode) (((intptr_t)cffi_opcode) >> 8)
71
+
72
+ #define _CFFI_OP_PRIMITIVE 1
73
+ #define _CFFI_OP_POINTER 3
74
+ #define _CFFI_OP_ARRAY 5
75
+ #define _CFFI_OP_OPEN_ARRAY 7
76
+ #define _CFFI_OP_STRUCT_UNION 9
77
+ #define _CFFI_OP_ENUM 11
78
+ #define _CFFI_OP_FUNCTION 13
79
+ #define _CFFI_OP_FUNCTION_END 15
80
+ #define _CFFI_OP_NOOP 17
81
+ #define _CFFI_OP_BITFIELD 19
82
+ #define _CFFI_OP_TYPENAME 21
83
+ #define _CFFI_OP_CPYTHON_BLTN_V 23 // varargs
84
+ #define _CFFI_OP_CPYTHON_BLTN_N 25 // noargs
85
+ #define _CFFI_OP_CPYTHON_BLTN_O 27 // O (i.e. a single arg)
86
+ #define _CFFI_OP_CONSTANT 29
87
+ #define _CFFI_OP_CONSTANT_INT 31
88
+ #define _CFFI_OP_GLOBAL_VAR 33
89
+ #define _CFFI_OP_DLOPEN_FUNC 35
90
+ #define _CFFI_OP_DLOPEN_CONST 37
91
+ #define _CFFI_OP_GLOBAL_VAR_F 39
92
+ #define _CFFI_OP_EXTERN_PYTHON 41
93
+
94
+ #define _CFFI_PRIM_VOID 0
95
+ #define _CFFI_PRIM_BOOL 1
96
+ #define _CFFI_PRIM_CHAR 2
97
+ #define _CFFI_PRIM_SCHAR 3
98
+ #define _CFFI_PRIM_UCHAR 4
99
+ #define _CFFI_PRIM_SHORT 5
100
+ #define _CFFI_PRIM_USHORT 6
101
+ #define _CFFI_PRIM_INT 7
102
+ #define _CFFI_PRIM_UINT 8
103
+ #define _CFFI_PRIM_LONG 9
104
+ #define _CFFI_PRIM_ULONG 10
105
+ #define _CFFI_PRIM_LONGLONG 11
106
+ #define _CFFI_PRIM_ULONGLONG 12
107
+ #define _CFFI_PRIM_FLOAT 13
108
+ #define _CFFI_PRIM_DOUBLE 14
109
+ #define _CFFI_PRIM_LONGDOUBLE 15
110
+
111
+ #define _CFFI_PRIM_WCHAR 16
112
+ #define _CFFI_PRIM_INT8 17
113
+ #define _CFFI_PRIM_UINT8 18
114
+ #define _CFFI_PRIM_INT16 19
115
+ #define _CFFI_PRIM_UINT16 20
116
+ #define _CFFI_PRIM_INT32 21
117
+ #define _CFFI_PRIM_UINT32 22
118
+ #define _CFFI_PRIM_INT64 23
119
+ #define _CFFI_PRIM_UINT64 24
120
+ #define _CFFI_PRIM_INTPTR 25
121
+ #define _CFFI_PRIM_UINTPTR 26
122
+ #define _CFFI_PRIM_PTRDIFF 27
123
+ #define _CFFI_PRIM_SIZE 28
124
+ #define _CFFI_PRIM_SSIZE 29
125
+ #define _CFFI_PRIM_INT_LEAST8 30
126
+ #define _CFFI_PRIM_UINT_LEAST8 31
127
+ #define _CFFI_PRIM_INT_LEAST16 32
128
+ #define _CFFI_PRIM_UINT_LEAST16 33
129
+ #define _CFFI_PRIM_INT_LEAST32 34
130
+ #define _CFFI_PRIM_UINT_LEAST32 35
131
+ #define _CFFI_PRIM_INT_LEAST64 36
132
+ #define _CFFI_PRIM_UINT_LEAST64 37
133
+ #define _CFFI_PRIM_INT_FAST8 38
134
+ #define _CFFI_PRIM_UINT_FAST8 39
135
+ #define _CFFI_PRIM_INT_FAST16 40
136
+ #define _CFFI_PRIM_UINT_FAST16 41
137
+ #define _CFFI_PRIM_INT_FAST32 42
138
+ #define _CFFI_PRIM_UINT_FAST32 43
139
+ #define _CFFI_PRIM_INT_FAST64 44
140
+ #define _CFFI_PRIM_UINT_FAST64 45
141
+ #define _CFFI_PRIM_INTMAX 46
142
+ #define _CFFI_PRIM_UINTMAX 47
143
+ #define _CFFI_PRIM_FLOATCOMPLEX 48
144
+ #define _CFFI_PRIM_DOUBLECOMPLEX 49
145
+ #define _CFFI_PRIM_CHAR16 50
146
+ #define _CFFI_PRIM_CHAR32 51
147
+
148
+ #define _CFFI__NUM_PRIM 52
149
+ #define _CFFI__UNKNOWN_PRIM (-1)
150
+ #define _CFFI__UNKNOWN_FLOAT_PRIM (-2)
151
+ #define _CFFI__UNKNOWN_LONG_DOUBLE (-3)
152
+
153
+ #define _CFFI__IO_FILE_STRUCT (-1)
154
+
155
+
156
+ struct _cffi_global_s {
157
+ const char *name;
158
+ void *address;
159
+ _cffi_opcode_t type_op;
160
+ void *size_or_direct_fn; // OP_GLOBAL_VAR: size, or 0 if unknown
161
+ // OP_CPYTHON_BLTN_*: addr of direct function
162
+ };
163
+
164
+ struct _cffi_getconst_s {
165
+ unsigned long long value;
166
+ const struct _cffi_type_context_s *ctx;
167
+ int gindex;
168
+ };
169
+
170
+ struct _cffi_struct_union_s {
171
+ const char *name;
172
+ int type_index; // -> _cffi_types, on a OP_STRUCT_UNION
173
+ int flags; // _CFFI_F_* flags below
174
+ size_t size;
175
+ int alignment;
176
+ int first_field_index; // -> _cffi_fields array
177
+ int num_fields;
178
+ };
179
+ #define _CFFI_F_UNION 0x01 // is a union, not a struct
180
+ #define _CFFI_F_CHECK_FIELDS 0x02 // complain if fields are not in the
181
+ // "standard layout" or if some are missing
182
+ #define _CFFI_F_PACKED 0x04 // for CHECK_FIELDS, assume a packed struct
183
+ #define _CFFI_F_EXTERNAL 0x08 // in some other ffi.include()
184
+ #define _CFFI_F_OPAQUE 0x10 // opaque
185
+
186
+ struct _cffi_field_s {
187
+ const char *name;
188
+ size_t field_offset;
189
+ size_t field_size;
190
+ _cffi_opcode_t field_type_op;
191
+ };
192
+
193
+ struct _cffi_enum_s {
194
+ const char *name;
195
+ int type_index; // -> _cffi_types, on a OP_ENUM
196
+ int type_prim; // _CFFI_PRIM_xxx
197
+ const char *enumerators; // comma-delimited string
198
+ };
199
+
200
+ struct _cffi_typename_s {
201
+ const char *name;
202
+ int type_index; /* if opaque, points to a possibly artificial
203
+ OP_STRUCT which is itself opaque */
204
+ };
205
+
206
+ struct _cffi_type_context_s {
207
+ _cffi_opcode_t *types;
208
+ const struct _cffi_global_s *globals;
209
+ const struct _cffi_field_s *fields;
210
+ const struct _cffi_struct_union_s *struct_unions;
211
+ const struct _cffi_enum_s *enums;
212
+ const struct _cffi_typename_s *typenames;
213
+ int num_globals;
214
+ int num_struct_unions;
215
+ int num_enums;
216
+ int num_typenames;
217
+ const char *const *includes;
218
+ int num_types;
219
+ int flags; /* future extension */
220
+ };
221
+
222
+ struct _cffi_parse_info_s {
223
+ const struct _cffi_type_context_s *ctx;
224
+ _cffi_opcode_t *output;
225
+ unsigned int output_size;
226
+ size_t error_location;
227
+ const char *error_message;
228
+ };
229
+
230
+ struct _cffi_externpy_s {
231
+ const char *name;
232
+ size_t size_of_result;
233
+ void *reserved1, *reserved2;
234
+ };
235
+
236
+ #ifdef _CFFI_INTERNAL
237
+ static int parse_c_type(struct _cffi_parse_info_s *info, const char *input);
238
+ static int search_in_globals(const struct _cffi_type_context_s *ctx,
239
+ const char *search, size_t search_len);
240
+ static int search_in_struct_unions(const struct _cffi_type_context_s *ctx,
241
+ const char *search, size_t search_len);
242
+ #endif
243
+
244
+ /* this block of #ifs should be kept exactly identical between
245
+ c/_cffi_backend.c, cffi/vengine_cpy.py, cffi/vengine_gen.py
246
+ and cffi/_cffi_include.h */
247
+ #if defined(_MSC_VER)
248
+ # include <malloc.h> /* for alloca() */
249
+ # if _MSC_VER < 1600 /* MSVC < 2010 */
250
+ typedef __int8 int8_t;
251
+ typedef __int16 int16_t;
252
+ typedef __int32 int32_t;
253
+ typedef __int64 int64_t;
254
+ typedef unsigned __int8 uint8_t;
255
+ typedef unsigned __int16 uint16_t;
256
+ typedef unsigned __int32 uint32_t;
257
+ typedef unsigned __int64 uint64_t;
258
+ typedef __int8 int_least8_t;
259
+ typedef __int16 int_least16_t;
260
+ typedef __int32 int_least32_t;
261
+ typedef __int64 int_least64_t;
262
+ typedef unsigned __int8 uint_least8_t;
263
+ typedef unsigned __int16 uint_least16_t;
264
+ typedef unsigned __int32 uint_least32_t;
265
+ typedef unsigned __int64 uint_least64_t;
266
+ typedef __int8 int_fast8_t;
267
+ typedef __int16 int_fast16_t;
268
+ typedef __int32 int_fast32_t;
269
+ typedef __int64 int_fast64_t;
270
+ typedef unsigned __int8 uint_fast8_t;
271
+ typedef unsigned __int16 uint_fast16_t;
272
+ typedef unsigned __int32 uint_fast32_t;
273
+ typedef unsigned __int64 uint_fast64_t;
274
+ typedef __int64 intmax_t;
275
+ typedef unsigned __int64 uintmax_t;
276
+ # else
277
+ # include <stdint.h>
278
+ # endif
279
+ # if _MSC_VER < 1800 /* MSVC < 2013 */
280
+ # ifndef __cplusplus
281
+ typedef unsigned char _Bool;
282
+ # endif
283
+ # endif
284
+ # define _cffi_float_complex_t _Fcomplex /* include <complex.h> for it */
285
+ # define _cffi_double_complex_t _Dcomplex /* include <complex.h> for it */
286
+ #else
287
+ # include <stdint.h>
288
+ # if (defined (__SVR4) && defined (__sun)) || defined(_AIX) || defined(__hpux)
289
+ # include <alloca.h>
290
+ # endif
291
+ # define _cffi_float_complex_t float _Complex
292
+ # define _cffi_double_complex_t double _Complex
293
+ #endif
294
+
295
+ #ifdef __GNUC__
296
+ # define _CFFI_UNUSED_FN __attribute__((unused))
297
+ #else
298
+ # define _CFFI_UNUSED_FN /* nothing */
299
+ #endif
300
+
301
+ #ifdef __cplusplus
302
+ # ifndef _Bool
303
+ typedef bool _Bool; /* semi-hackish: C++ has no _Bool; bool is builtin */
304
+ # endif
305
+ #endif
306
+
307
+ /********** CPython-specific section **********/
308
+ #ifndef PYPY_VERSION
309
+
310
+
311
+ #if PY_MAJOR_VERSION >= 3
312
+ # define PyInt_FromLong PyLong_FromLong
313
+ #endif
314
+
315
+ #define _cffi_from_c_double PyFloat_FromDouble
316
+ #define _cffi_from_c_float PyFloat_FromDouble
317
+ #define _cffi_from_c_long PyInt_FromLong
318
+ #define _cffi_from_c_ulong PyLong_FromUnsignedLong
319
+ #define _cffi_from_c_longlong PyLong_FromLongLong
320
+ #define _cffi_from_c_ulonglong PyLong_FromUnsignedLongLong
321
+ #define _cffi_from_c__Bool PyBool_FromLong
322
+
323
+ #define _cffi_to_c_double PyFloat_AsDouble
324
+ #define _cffi_to_c_float PyFloat_AsDouble
325
+
326
+ #define _cffi_from_c_int(x, type) \
327
+ (((type)-1) > 0 ? /* unsigned */ \
328
+ (sizeof(type) < sizeof(long) ? \
329
+ PyInt_FromLong((long)x) : \
330
+ sizeof(type) == sizeof(long) ? \
331
+ PyLong_FromUnsignedLong((unsigned long)x) : \
332
+ PyLong_FromUnsignedLongLong((unsigned long long)x)) : \
333
+ (sizeof(type) <= sizeof(long) ? \
334
+ PyInt_FromLong((long)x) : \
335
+ PyLong_FromLongLong((long long)x)))
336
+
337
+ #define _cffi_to_c_int(o, type) \
338
+ ((type)( \
339
+ sizeof(type) == 1 ? (((type)-1) > 0 ? (type)_cffi_to_c_u8(o) \
340
+ : (type)_cffi_to_c_i8(o)) : \
341
+ sizeof(type) == 2 ? (((type)-1) > 0 ? (type)_cffi_to_c_u16(o) \
342
+ : (type)_cffi_to_c_i16(o)) : \
343
+ sizeof(type) == 4 ? (((type)-1) > 0 ? (type)_cffi_to_c_u32(o) \
344
+ : (type)_cffi_to_c_i32(o)) : \
345
+ sizeof(type) == 8 ? (((type)-1) > 0 ? (type)_cffi_to_c_u64(o) \
346
+ : (type)_cffi_to_c_i64(o)) : \
347
+ (Py_FatalError("unsupported size for type " #type), (type)0)))
348
+
349
+ #define _cffi_to_c_i8 \
350
+ ((int(*)(PyObject *))_cffi_exports[1])
351
+ #define _cffi_to_c_u8 \
352
+ ((int(*)(PyObject *))_cffi_exports[2])
353
+ #define _cffi_to_c_i16 \
354
+ ((int(*)(PyObject *))_cffi_exports[3])
355
+ #define _cffi_to_c_u16 \
356
+ ((int(*)(PyObject *))_cffi_exports[4])
357
+ #define _cffi_to_c_i32 \
358
+ ((int(*)(PyObject *))_cffi_exports[5])
359
+ #define _cffi_to_c_u32 \
360
+ ((unsigned int(*)(PyObject *))_cffi_exports[6])
361
+ #define _cffi_to_c_i64 \
362
+ ((long long(*)(PyObject *))_cffi_exports[7])
363
+ #define _cffi_to_c_u64 \
364
+ ((unsigned long long(*)(PyObject *))_cffi_exports[8])
365
+ #define _cffi_to_c_char \
366
+ ((int(*)(PyObject *))_cffi_exports[9])
367
+ #define _cffi_from_c_pointer \
368
+ ((PyObject *(*)(char *, struct _cffi_ctypedescr *))_cffi_exports[10])
369
+ #define _cffi_to_c_pointer \
370
+ ((char *(*)(PyObject *, struct _cffi_ctypedescr *))_cffi_exports[11])
371
+ #define _cffi_get_struct_layout \
372
+ not used any more
373
+ #define _cffi_restore_errno \
374
+ ((void(*)(void))_cffi_exports[13])
375
+ #define _cffi_save_errno \
376
+ ((void(*)(void))_cffi_exports[14])
377
+ #define _cffi_from_c_char \
378
+ ((PyObject *(*)(char))_cffi_exports[15])
379
+ #define _cffi_from_c_deref \
380
+ ((PyObject *(*)(char *, struct _cffi_ctypedescr *))_cffi_exports[16])
381
+ #define _cffi_to_c \
382
+ ((int(*)(char *, struct _cffi_ctypedescr *, PyObject *))_cffi_exports[17])
383
+ #define _cffi_from_c_struct \
384
+ ((PyObject *(*)(char *, struct _cffi_ctypedescr *))_cffi_exports[18])
385
+ #define _cffi_to_c_wchar_t \
386
+ ((_cffi_wchar_t(*)(PyObject *))_cffi_exports[19])
387
+ #define _cffi_from_c_wchar_t \
388
+ ((PyObject *(*)(_cffi_wchar_t))_cffi_exports[20])
389
+ #define _cffi_to_c_long_double \
390
+ ((long double(*)(PyObject *))_cffi_exports[21])
391
+ #define _cffi_to_c__Bool \
392
+ ((_Bool(*)(PyObject *))_cffi_exports[22])
393
+ #define _cffi_prepare_pointer_call_argument \
394
+ ((Py_ssize_t(*)(struct _cffi_ctypedescr *, \
395
+ PyObject *, char **))_cffi_exports[23])
396
+ #define _cffi_convert_array_from_object \
397
+ ((int(*)(char *, struct _cffi_ctypedescr *, PyObject *))_cffi_exports[24])
398
+ #define _CFFI_CPIDX 25
399
+ #define _cffi_call_python \
400
+ ((void(*)(struct _cffi_externpy_s *, char *))_cffi_exports[_CFFI_CPIDX])
401
+ #define _cffi_to_c_wchar3216_t \
402
+ ((int(*)(PyObject *))_cffi_exports[26])
403
+ #define _cffi_from_c_wchar3216_t \
404
+ ((PyObject *(*)(int))_cffi_exports[27])
405
+ #define _CFFI_NUM_EXPORTS 28
406
+
407
+ struct _cffi_ctypedescr;
408
+
409
+ static void *_cffi_exports[_CFFI_NUM_EXPORTS];
410
+
411
+ #define _cffi_type(index) ( \
412
+ assert((((uintptr_t)_cffi_types[index]) & 1) == 0), \
413
+ (struct _cffi_ctypedescr *)_cffi_types[index])
414
+
415
+ static PyObject *_cffi_init(const char *module_name, Py_ssize_t version,
416
+ const struct _cffi_type_context_s *ctx)
417
+ {
418
+ PyObject *module, *o_arg, *new_module;
419
+ void *raw[] = {
420
+ (void *)module_name,
421
+ (void *)version,
422
+ (void *)_cffi_exports,
423
+ (void *)ctx,
424
+ };
425
+
426
+ module = PyImport_ImportModule("_cffi_backend");
427
+ if (module == NULL)
428
+ goto failure;
429
+
430
+ o_arg = PyLong_FromVoidPtr((void *)raw);
431
+ if (o_arg == NULL)
432
+ goto failure;
433
+
434
+ new_module = PyObject_CallMethod(
435
+ module, (char *)"_init_cffi_1_0_external_module", (char *)"O", o_arg);
436
+
437
+ Py_DECREF(o_arg);
438
+ Py_DECREF(module);
439
+ return new_module;
440
+
441
+ failure:
442
+ Py_XDECREF(module);
443
+ return NULL;
444
+ }
445
+
446
+
447
+ #ifdef HAVE_WCHAR_H
448
+ typedef wchar_t _cffi_wchar_t;
449
+ #else
450
+ typedef uint16_t _cffi_wchar_t; /* same random pick as _cffi_backend.c */
451
+ #endif
452
+
453
+ _CFFI_UNUSED_FN static uint16_t _cffi_to_c_char16_t(PyObject *o)
454
+ {
455
+ if (sizeof(_cffi_wchar_t) == 2)
456
+ return (uint16_t)_cffi_to_c_wchar_t(o);
457
+ else
458
+ return (uint16_t)_cffi_to_c_wchar3216_t(o);
459
+ }
460
+
461
+ _CFFI_UNUSED_FN static PyObject *_cffi_from_c_char16_t(uint16_t x)
462
+ {
463
+ if (sizeof(_cffi_wchar_t) == 2)
464
+ return _cffi_from_c_wchar_t((_cffi_wchar_t)x);
465
+ else
466
+ return _cffi_from_c_wchar3216_t((int)x);
467
+ }
468
+
469
+ _CFFI_UNUSED_FN static int _cffi_to_c_char32_t(PyObject *o)
470
+ {
471
+ if (sizeof(_cffi_wchar_t) == 4)
472
+ return (int)_cffi_to_c_wchar_t(o);
473
+ else
474
+ return (int)_cffi_to_c_wchar3216_t(o);
475
+ }
476
+
477
+ _CFFI_UNUSED_FN static PyObject *_cffi_from_c_char32_t(unsigned int x)
478
+ {
479
+ if (sizeof(_cffi_wchar_t) == 4)
480
+ return _cffi_from_c_wchar_t((_cffi_wchar_t)x);
481
+ else
482
+ return _cffi_from_c_wchar3216_t((int)x);
483
+ }
484
+
485
+ union _cffi_union_alignment_u {
486
+ unsigned char m_char;
487
+ unsigned short m_short;
488
+ unsigned int m_int;
489
+ unsigned long m_long;
490
+ unsigned long long m_longlong;
491
+ float m_float;
492
+ double m_double;
493
+ long double m_longdouble;
494
+ };
495
+
496
+ struct _cffi_freeme_s {
497
+ struct _cffi_freeme_s *next;
498
+ union _cffi_union_alignment_u alignment;
499
+ };
500
+
501
+ _CFFI_UNUSED_FN static int
502
+ _cffi_convert_array_argument(struct _cffi_ctypedescr *ctptr, PyObject *arg,
503
+ char **output_data, Py_ssize_t datasize,
504
+ struct _cffi_freeme_s **freeme)
505
+ {
506
+ char *p;
507
+ if (datasize < 0)
508
+ return -1;
509
+
510
+ p = *output_data;
511
+ if (p == NULL) {
512
+ struct _cffi_freeme_s *fp = (struct _cffi_freeme_s *)PyObject_Malloc(
513
+ offsetof(struct _cffi_freeme_s, alignment) + (size_t)datasize);
514
+ if (fp == NULL)
515
+ return -1;
516
+ fp->next = *freeme;
517
+ *freeme = fp;
518
+ p = *output_data = (char *)&fp->alignment;
519
+ }
520
+ memset((void *)p, 0, (size_t)datasize);
521
+ return _cffi_convert_array_from_object(p, ctptr, arg);
522
+ }
523
+
524
+ _CFFI_UNUSED_FN static void
525
+ _cffi_free_array_arguments(struct _cffi_freeme_s *freeme)
526
+ {
527
+ do {
528
+ void *p = (void *)freeme;
529
+ freeme = freeme->next;
530
+ PyObject_Free(p);
531
+ } while (freeme != NULL);
532
+ }
533
+
534
+ /********** end CPython-specific section **********/
535
+ #else
536
+ _CFFI_UNUSED_FN
537
+ static void (*_cffi_call_python_org)(struct _cffi_externpy_s *, char *);
538
+ # define _cffi_call_python _cffi_call_python_org
539
+ #endif
540
+
541
+
542
+ #define _cffi_array_len(array) (sizeof(array) / sizeof((array)[0]))
543
+
544
+ #define _cffi_prim_int(size, sign) \
545
+ ((size) == 1 ? ((sign) ? _CFFI_PRIM_INT8 : _CFFI_PRIM_UINT8) : \
546
+ (size) == 2 ? ((sign) ? _CFFI_PRIM_INT16 : _CFFI_PRIM_UINT16) : \
547
+ (size) == 4 ? ((sign) ? _CFFI_PRIM_INT32 : _CFFI_PRIM_UINT32) : \
548
+ (size) == 8 ? ((sign) ? _CFFI_PRIM_INT64 : _CFFI_PRIM_UINT64) : \
549
+ _CFFI__UNKNOWN_PRIM)
550
+
551
+ #define _cffi_prim_float(size) \
552
+ ((size) == sizeof(float) ? _CFFI_PRIM_FLOAT : \
553
+ (size) == sizeof(double) ? _CFFI_PRIM_DOUBLE : \
554
+ (size) == sizeof(long double) ? _CFFI__UNKNOWN_LONG_DOUBLE : \
555
+ _CFFI__UNKNOWN_FLOAT_PRIM)
556
+
557
+ #define _cffi_check_int(got, got_nonpos, expected) \
558
+ ((got_nonpos) == (expected <= 0) && \
559
+ (got) == (unsigned long long)expected)
560
+
561
+ #ifdef MS_WIN32
562
+ # define _cffi_stdcall __stdcall
563
+ #else
564
+ # define _cffi_stdcall /* nothing */
565
+ #endif
566
+
567
+ #ifdef __cplusplus
568
+ }
569
+ #endif
570
+
571
+ /************************************************************/
572
+
573
+ #include <stdio.h>
574
+ #include <math.h>
575
+
576
+ double PWM(double t, double eta, double freq, double T_l){
577
+ double carrier;
578
+ double s;
579
+ double pi = 3.1415926;
580
+ double T_s = 0.5e-6;
581
+ double s_avg;
582
+ int N_s;
583
+ double t_s;
584
+
585
+
586
+ N_s = (int)(T_l/T_s);
587
+ s_avg = 0.0;
588
+
589
+ for (int k = 1; k<= N_s; k++) {
590
+
591
+ t_s = t - T_l/2 + T_s*k;
592
+ carrier = 2.0*(asin(cos(2*pi*freq*t_s))/pi);
593
+
594
+ s=-1.0;
595
+ if(eta>carrier){
596
+ s = 1.0;
597
+ }
598
+
599
+ s_avg += s*T_s/T_l;
600
+
601
+ }
602
+
603
+ return s_avg;
604
+ }
605
+
606
+ void f_ini_eval(double *out,double *x,double *y,double *u,double *p,double Dt){
607
+
608
+ out[0] = x[2];
609
+ out[1] = x[3];
610
+ out[2] = (-p[3]*x[2] + y[1] - 2*y[0]*x[0])/p[2];
611
+ out[3] = (-p[1]*p[2] - p[3]*x[3] - 2*y[0]*x[1])/p[2];
612
+
613
+ }
614
+ void g_ini_eval(double *out,double *x,double *y,double *u,double *p,double Dt){
615
+
616
+ out[0] = -pow(p[0], 2) - 9.9999999999999995e-7*y[0] + pow(x[0], 2) + pow(x[1], 2);
617
+ out[1] = -u[0] + atan2(x[0], -x[1]);
618
+
619
+ }
620
+ void f_run_eval(double *out,double *x,double *y,double *u,double *p,double Dt){
621
+
622
+ out[0] = x[2];
623
+ out[1] = x[3];
624
+ out[2] = (-p[3]*x[2] + u[0] - 2*y[0]*x[0])/p[2];
625
+ out[3] = (-p[1]*p[2] - p[3]*x[3] - 2*y[0]*x[1])/p[2];
626
+
627
+ }
628
+ void g_run_eval(double *out,double *x,double *y,double *u,double *p,double Dt){
629
+
630
+ out[0] = -pow(p[0], 2) - 9.9999999999999995e-7*y[0] + pow(x[0], 2) + pow(x[1], 2);
631
+ out[1] = -y[1] + atan2(x[0], -x[1]);
632
+
633
+ }
634
+ void h_eval(double *out,double *x,double *y,double *u,double *p,double Dt){
635
+
636
+ out[0] = p[1]*p[2]*(p[0] + x[1]);
637
+ out[1] = 0.5*p[2]*(pow(x[2], 2) + pow(x[3], 2));
638
+ out[2] = u[0];
639
+
640
+ }
641
+ void de_jac_ini_xy_eval(double *out,double *x,double *y,double *u,double *p,double Dt){
642
+
643
+ out[12] = -2.0*y[0]/p[2];
644
+ out[16] = -2.0*x[0]/p[2];
645
+ out[19] = -2.0*y[0]/p[2];
646
+ out[22] = -2.0*x[1]/p[2];
647
+ out[24] = 2.0*x[0];
648
+ out[25] = 2.0*x[1];
649
+ out[30] = -x[1]/(pow(x[0], 2) + pow(x[1], 2));
650
+ out[31] = x[0]/(pow(x[0], 2) + pow(x[1], 2));
651
+
652
+ }
653
+
654
+ void de_jac_ini_up_eval(double *out,double *x,double *y,double *u,double *p,double Dt){
655
+
656
+ out[14] = -p[3]/p[2];
657
+ out[17] = 1.0/p[2];
658
+ out[21] = -p[3]/p[2];
659
+
660
+ }
661
+
662
+ void de_jac_ini_num_eval(double *out,double *x,double *y,double *u,double *p,double Dt){
663
+
664
+ out[2] = 1.0;
665
+ out[9] = 1.0;
666
+ out[28] = -9.9999999999999995e-7;
667
+
668
+ }
669
+
670
+ void sp_jac_ini_xy_eval(double *out,double *x,double *y,double *u,double *p,double Dt){
671
+
672
+ out[2] = -2.0*y[0]/p[2];
673
+ out[4] = -2.0*x[0]/p[2];
674
+ out[6] = -2.0*y[0]/p[2];
675
+ out[8] = -2.0*x[1]/p[2];
676
+ out[9] = 2.0*x[0];
677
+ out[10] = 2.0*x[1];
678
+ out[12] = -x[1]/(pow(x[0], 2) + pow(x[1], 2));
679
+ out[13] = x[0]/(pow(x[0], 2) + pow(x[1], 2));
680
+
681
+ }
682
+
683
+ void sp_jac_ini_up_eval(double *out,double *x,double *y,double *u,double *p,double Dt){
684
+
685
+ out[3] = -p[3]/p[2];
686
+ out[5] = 1.0/p[2];
687
+ out[7] = -p[3]/p[2];
688
+
689
+ }
690
+
691
+ void sp_jac_ini_num_eval(double *out,double *x,double *y,double *u,double *p,double Dt){
692
+
693
+ out[0] = 1.0;
694
+ out[1] = 1.0;
695
+ out[11] = -9.9999999999999995e-7;
696
+
697
+ }
698
+
699
+ void de_jac_run_xy_eval(double *out,double *x,double *y,double *u,double *p,double Dt){
700
+
701
+ out[12] = -2.0*y[0]/p[2];
702
+ out[16] = -2.0*x[0]/p[2];
703
+ out[19] = -2.0*y[0]/p[2];
704
+ out[22] = -2.0*x[1]/p[2];
705
+ out[24] = 2.0*x[0];
706
+ out[25] = 2.0*x[1];
707
+ out[30] = -x[1]/(pow(x[0], 2) + pow(x[1], 2));
708
+ out[31] = x[0]/(pow(x[0], 2) + pow(x[1], 2));
709
+
710
+ }
711
+
712
+ void de_jac_run_up_eval(double *out,double *x,double *y,double *u,double *p,double Dt){
713
+
714
+ out[14] = -p[3]/p[2];
715
+ out[21] = -p[3]/p[2];
716
+
717
+ }
718
+
719
+ void de_jac_run_num_eval(double *out,double *x,double *y,double *u,double *p,double Dt){
720
+
721
+ out[2] = 1.0;
722
+ out[9] = 1.0;
723
+ out[28] = -9.9999999999999995e-7;
724
+ out[35] = -1.0;
725
+
726
+ }
727
+
728
+ void sp_jac_run_xy_eval(double *out,double *x,double *y,double *u,double *p,double Dt){
729
+
730
+ out[2] = -2.0*y[0]/p[2];
731
+ out[4] = -2.0*x[0]/p[2];
732
+ out[5] = -2.0*y[0]/p[2];
733
+ out[7] = -2.0*x[1]/p[2];
734
+ out[8] = 2.0*x[0];
735
+ out[9] = 2.0*x[1];
736
+ out[11] = -x[1]/(pow(x[0], 2) + pow(x[1], 2));
737
+ out[12] = x[0]/(pow(x[0], 2) + pow(x[1], 2));
738
+
739
+ }
740
+
741
+ void sp_jac_run_up_eval(double *out,double *x,double *y,double *u,double *p,double Dt){
742
+
743
+ out[3] = -p[3]/p[2];
744
+ out[6] = -p[3]/p[2];
745
+
746
+ }
747
+
748
+ void sp_jac_run_num_eval(double *out,double *x,double *y,double *u,double *p,double Dt){
749
+
750
+ out[0] = 1.0;
751
+ out[1] = 1.0;
752
+ out[10] = -9.9999999999999995e-7;
753
+ out[13] = -1.0;
754
+
755
+ }
756
+
757
+ void de_jac_trap_xy_eval(double *out,double *x,double *y,double *u,double *p,double Dt){
758
+
759
+ out[12] = 1.0*Dt*y[0]/p[2];
760
+ out[16] = 1.0*Dt*x[0]/p[2];
761
+ out[19] = 1.0*Dt*y[0]/p[2];
762
+ out[22] = 1.0*Dt*x[1]/p[2];
763
+ out[24] = 2.0*x[0];
764
+ out[25] = 2.0*x[1];
765
+ out[30] = -x[1]/(pow(x[0], 2) + pow(x[1], 2));
766
+ out[31] = x[0]/(pow(x[0], 2) + pow(x[1], 2));
767
+
768
+ }
769
+
770
+ void de_jac_trap_up_eval(double *out,double *x,double *y,double *u,double *p,double Dt){
771
+
772
+ out[2] = -0.5*Dt;
773
+ out[9] = -0.5*Dt;
774
+ out[14] = 0.5*Dt*p[3]/p[2] + 1.0;
775
+ out[21] = 0.5*Dt*p[3]/p[2] + 1.0;
776
+
777
+ }
778
+
779
+ void de_jac_trap_num_eval(double *out,double *x,double *y,double *u,double *p,double Dt){
780
+
781
+ out[0] = 1.0;
782
+ out[7] = 1.0;
783
+ out[28] = -9.9999999999999995e-7;
784
+ out[35] = -1.0;
785
+
786
+ }
787
+
788
+ void sp_jac_trap_xy_eval(double *out,double *x,double *y,double *u,double *p,double Dt){
789
+
790
+ out[4] = 1.0*Dt*y[0]/p[2];
791
+ out[6] = 1.0*Dt*x[0]/p[2];
792
+ out[7] = 1.0*Dt*y[0]/p[2];
793
+ out[9] = 1.0*Dt*x[1]/p[2];
794
+ out[10] = 2.0*x[0];
795
+ out[11] = 2.0*x[1];
796
+ out[13] = -x[1]/(pow(x[0], 2) + pow(x[1], 2));
797
+ out[14] = x[0]/(pow(x[0], 2) + pow(x[1], 2));
798
+
799
+ }
800
+
801
+ void sp_jac_trap_up_eval(double *out,double *x,double *y,double *u,double *p,double Dt){
802
+
803
+ out[1] = -0.5*Dt;
804
+ out[3] = -0.5*Dt;
805
+ out[5] = 0.5*Dt*p[3]/p[2] + 1.0;
806
+ out[8] = 0.5*Dt*p[3]/p[2] + 1.0;
807
+
808
+ }
809
+
810
+ void sp_jac_trap_num_eval(double *out,double *x,double *y,double *u,double *p,double Dt){
811
+
812
+ out[0] = 1.0;
813
+ out[2] = 1.0;
814
+ out[12] = -9.9999999999999995e-7;
815
+ out[15] = -1.0;
816
+
817
+ }
818
+
819
+
820
+
821
+ /************************************************************/
822
+
823
+ static void *_cffi_types[] = {
824
+ /* 0 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // double()(double, double, double, double)
825
+ /* 1 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 14), // double
826
+ /* 2 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 14),
827
+ /* 3 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 14),
828
+ /* 4 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 14),
829
+ /* 5 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
830
+ /* 6 */ _CFFI_OP(_CFFI_OP_FUNCTION, 14), // void()(double *, double *, double *, double *, double *, double)
831
+ /* 7 */ _CFFI_OP(_CFFI_OP_POINTER, 1), // double *
832
+ /* 8 */ _CFFI_OP(_CFFI_OP_NOOP, 7),
833
+ /* 9 */ _CFFI_OP(_CFFI_OP_NOOP, 7),
834
+ /* 10 */ _CFFI_OP(_CFFI_OP_NOOP, 7),
835
+ /* 11 */ _CFFI_OP(_CFFI_OP_NOOP, 7),
836
+ /* 12 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 14),
837
+ /* 13 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
838
+ /* 14 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 0), // void
839
+ };
840
+
841
+ static double _cffi_d_PWM(double x0, double x1, double x2, double x3)
842
+ {
843
+ return PWM(x0, x1, x2, x3);
844
+ }
845
+ #ifndef PYPY_VERSION
846
+ static PyObject *
847
+ _cffi_f_PWM(PyObject *self, PyObject *args)
848
+ {
849
+ double x0;
850
+ double x1;
851
+ double x2;
852
+ double x3;
853
+ double result;
854
+ PyObject *pyresult;
855
+ PyObject *arg0;
856
+ PyObject *arg1;
857
+ PyObject *arg2;
858
+ PyObject *arg3;
859
+
860
+ if (!PyArg_UnpackTuple(args, "PWM", 4, 4, &arg0, &arg1, &arg2, &arg3))
861
+ return NULL;
862
+
863
+ x0 = (double)_cffi_to_c_double(arg0);
864
+ if (x0 == (double)-1 && PyErr_Occurred())
865
+ return NULL;
866
+
867
+ x1 = (double)_cffi_to_c_double(arg1);
868
+ if (x1 == (double)-1 && PyErr_Occurred())
869
+ return NULL;
870
+
871
+ x2 = (double)_cffi_to_c_double(arg2);
872
+ if (x2 == (double)-1 && PyErr_Occurred())
873
+ return NULL;
874
+
875
+ x3 = (double)_cffi_to_c_double(arg3);
876
+ if (x3 == (double)-1 && PyErr_Occurred())
877
+ return NULL;
878
+
879
+ Py_BEGIN_ALLOW_THREADS
880
+ _cffi_restore_errno();
881
+ { result = PWM(x0, x1, x2, x3); }
882
+ _cffi_save_errno();
883
+ Py_END_ALLOW_THREADS
884
+
885
+ (void)self; /* unused */
886
+ pyresult = _cffi_from_c_double(result);
887
+ return pyresult;
888
+ }
889
+ #else
890
+ # define _cffi_f_PWM _cffi_d_PWM
891
+ #endif
892
+
893
+ static void _cffi_d_de_jac_ini_num_eval(double * x0, double * x1, double * x2, double * x3, double * x4, double x5)
894
+ {
895
+ de_jac_ini_num_eval(x0, x1, x2, x3, x4, x5);
896
+ }
897
+ #ifndef PYPY_VERSION
898
+ static PyObject *
899
+ _cffi_f_de_jac_ini_num_eval(PyObject *self, PyObject *args)
900
+ {
901
+ double * x0;
902
+ double * x1;
903
+ double * x2;
904
+ double * x3;
905
+ double * x4;
906
+ double x5;
907
+ Py_ssize_t datasize;
908
+ struct _cffi_freeme_s *large_args_free = NULL;
909
+ PyObject *arg0;
910
+ PyObject *arg1;
911
+ PyObject *arg2;
912
+ PyObject *arg3;
913
+ PyObject *arg4;
914
+ PyObject *arg5;
915
+
916
+ if (!PyArg_UnpackTuple(args, "de_jac_ini_num_eval", 6, 6, &arg0, &arg1, &arg2, &arg3, &arg4, &arg5))
917
+ return NULL;
918
+
919
+ datasize = _cffi_prepare_pointer_call_argument(
920
+ _cffi_type(7), arg0, (char **)&x0);
921
+ if (datasize != 0) {
922
+ x0 = ((size_t)datasize) <= 640 ? (double *)alloca((size_t)datasize) : NULL;
923
+ if (_cffi_convert_array_argument(_cffi_type(7), arg0, (char **)&x0,
924
+ datasize, &large_args_free) < 0)
925
+ return NULL;
926
+ }
927
+
928
+ datasize = _cffi_prepare_pointer_call_argument(
929
+ _cffi_type(7), arg1, (char **)&x1);
930
+ if (datasize != 0) {
931
+ x1 = ((size_t)datasize) <= 640 ? (double *)alloca((size_t)datasize) : NULL;
932
+ if (_cffi_convert_array_argument(_cffi_type(7), arg1, (char **)&x1,
933
+ datasize, &large_args_free) < 0)
934
+ return NULL;
935
+ }
936
+
937
+ datasize = _cffi_prepare_pointer_call_argument(
938
+ _cffi_type(7), arg2, (char **)&x2);
939
+ if (datasize != 0) {
940
+ x2 = ((size_t)datasize) <= 640 ? (double *)alloca((size_t)datasize) : NULL;
941
+ if (_cffi_convert_array_argument(_cffi_type(7), arg2, (char **)&x2,
942
+ datasize, &large_args_free) < 0)
943
+ return NULL;
944
+ }
945
+
946
+ datasize = _cffi_prepare_pointer_call_argument(
947
+ _cffi_type(7), arg3, (char **)&x3);
948
+ if (datasize != 0) {
949
+ x3 = ((size_t)datasize) <= 640 ? (double *)alloca((size_t)datasize) : NULL;
950
+ if (_cffi_convert_array_argument(_cffi_type(7), arg3, (char **)&x3,
951
+ datasize, &large_args_free) < 0)
952
+ return NULL;
953
+ }
954
+
955
+ datasize = _cffi_prepare_pointer_call_argument(
956
+ _cffi_type(7), arg4, (char **)&x4);
957
+ if (datasize != 0) {
958
+ x4 = ((size_t)datasize) <= 640 ? (double *)alloca((size_t)datasize) : NULL;
959
+ if (_cffi_convert_array_argument(_cffi_type(7), arg4, (char **)&x4,
960
+ datasize, &large_args_free) < 0)
961
+ return NULL;
962
+ }
963
+
964
+ x5 = (double)_cffi_to_c_double(arg5);
965
+ if (x5 == (double)-1 && PyErr_Occurred())
966
+ return NULL;
967
+
968
+ Py_BEGIN_ALLOW_THREADS
969
+ _cffi_restore_errno();
970
+ { de_jac_ini_num_eval(x0, x1, x2, x3, x4, x5); }
971
+ _cffi_save_errno();
972
+ Py_END_ALLOW_THREADS
973
+
974
+ (void)self; /* unused */
975
+ if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
976
+ Py_INCREF(Py_None);
977
+ return Py_None;
978
+ }
979
+ #else
980
+ # define _cffi_f_de_jac_ini_num_eval _cffi_d_de_jac_ini_num_eval
981
+ #endif
982
+
983
+ static void _cffi_d_de_jac_ini_up_eval(double * x0, double * x1, double * x2, double * x3, double * x4, double x5)
984
+ {
985
+ de_jac_ini_up_eval(x0, x1, x2, x3, x4, x5);
986
+ }
987
+ #ifndef PYPY_VERSION
988
+ static PyObject *
989
+ _cffi_f_de_jac_ini_up_eval(PyObject *self, PyObject *args)
990
+ {
991
+ double * x0;
992
+ double * x1;
993
+ double * x2;
994
+ double * x3;
995
+ double * x4;
996
+ double x5;
997
+ Py_ssize_t datasize;
998
+ struct _cffi_freeme_s *large_args_free = NULL;
999
+ PyObject *arg0;
1000
+ PyObject *arg1;
1001
+ PyObject *arg2;
1002
+ PyObject *arg3;
1003
+ PyObject *arg4;
1004
+ PyObject *arg5;
1005
+
1006
+ if (!PyArg_UnpackTuple(args, "de_jac_ini_up_eval", 6, 6, &arg0, &arg1, &arg2, &arg3, &arg4, &arg5))
1007
+ return NULL;
1008
+
1009
+ datasize = _cffi_prepare_pointer_call_argument(
1010
+ _cffi_type(7), arg0, (char **)&x0);
1011
+ if (datasize != 0) {
1012
+ x0 = ((size_t)datasize) <= 640 ? (double *)alloca((size_t)datasize) : NULL;
1013
+ if (_cffi_convert_array_argument(_cffi_type(7), arg0, (char **)&x0,
1014
+ datasize, &large_args_free) < 0)
1015
+ return NULL;
1016
+ }
1017
+
1018
+ datasize = _cffi_prepare_pointer_call_argument(
1019
+ _cffi_type(7), arg1, (char **)&x1);
1020
+ if (datasize != 0) {
1021
+ x1 = ((size_t)datasize) <= 640 ? (double *)alloca((size_t)datasize) : NULL;
1022
+ if (_cffi_convert_array_argument(_cffi_type(7), arg1, (char **)&x1,
1023
+ datasize, &large_args_free) < 0)
1024
+ return NULL;
1025
+ }
1026
+
1027
+ datasize = _cffi_prepare_pointer_call_argument(
1028
+ _cffi_type(7), arg2, (char **)&x2);
1029
+ if (datasize != 0) {
1030
+ x2 = ((size_t)datasize) <= 640 ? (double *)alloca((size_t)datasize) : NULL;
1031
+ if (_cffi_convert_array_argument(_cffi_type(7), arg2, (char **)&x2,
1032
+ datasize, &large_args_free) < 0)
1033
+ return NULL;
1034
+ }
1035
+
1036
+ datasize = _cffi_prepare_pointer_call_argument(
1037
+ _cffi_type(7), arg3, (char **)&x3);
1038
+ if (datasize != 0) {
1039
+ x3 = ((size_t)datasize) <= 640 ? (double *)alloca((size_t)datasize) : NULL;
1040
+ if (_cffi_convert_array_argument(_cffi_type(7), arg3, (char **)&x3,
1041
+ datasize, &large_args_free) < 0)
1042
+ return NULL;
1043
+ }
1044
+
1045
+ datasize = _cffi_prepare_pointer_call_argument(
1046
+ _cffi_type(7), arg4, (char **)&x4);
1047
+ if (datasize != 0) {
1048
+ x4 = ((size_t)datasize) <= 640 ? (double *)alloca((size_t)datasize) : NULL;
1049
+ if (_cffi_convert_array_argument(_cffi_type(7), arg4, (char **)&x4,
1050
+ datasize, &large_args_free) < 0)
1051
+ return NULL;
1052
+ }
1053
+
1054
+ x5 = (double)_cffi_to_c_double(arg5);
1055
+ if (x5 == (double)-1 && PyErr_Occurred())
1056
+ return NULL;
1057
+
1058
+ Py_BEGIN_ALLOW_THREADS
1059
+ _cffi_restore_errno();
1060
+ { de_jac_ini_up_eval(x0, x1, x2, x3, x4, x5); }
1061
+ _cffi_save_errno();
1062
+ Py_END_ALLOW_THREADS
1063
+
1064
+ (void)self; /* unused */
1065
+ if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
1066
+ Py_INCREF(Py_None);
1067
+ return Py_None;
1068
+ }
1069
+ #else
1070
+ # define _cffi_f_de_jac_ini_up_eval _cffi_d_de_jac_ini_up_eval
1071
+ #endif
1072
+
1073
+ static void _cffi_d_de_jac_ini_xy_eval(double * x0, double * x1, double * x2, double * x3, double * x4, double x5)
1074
+ {
1075
+ de_jac_ini_xy_eval(x0, x1, x2, x3, x4, x5);
1076
+ }
1077
+ #ifndef PYPY_VERSION
1078
+ static PyObject *
1079
+ _cffi_f_de_jac_ini_xy_eval(PyObject *self, PyObject *args)
1080
+ {
1081
+ double * x0;
1082
+ double * x1;
1083
+ double * x2;
1084
+ double * x3;
1085
+ double * x4;
1086
+ double x5;
1087
+ Py_ssize_t datasize;
1088
+ struct _cffi_freeme_s *large_args_free = NULL;
1089
+ PyObject *arg0;
1090
+ PyObject *arg1;
1091
+ PyObject *arg2;
1092
+ PyObject *arg3;
1093
+ PyObject *arg4;
1094
+ PyObject *arg5;
1095
+
1096
+ if (!PyArg_UnpackTuple(args, "de_jac_ini_xy_eval", 6, 6, &arg0, &arg1, &arg2, &arg3, &arg4, &arg5))
1097
+ return NULL;
1098
+
1099
+ datasize = _cffi_prepare_pointer_call_argument(
1100
+ _cffi_type(7), arg0, (char **)&x0);
1101
+ if (datasize != 0) {
1102
+ x0 = ((size_t)datasize) <= 640 ? (double *)alloca((size_t)datasize) : NULL;
1103
+ if (_cffi_convert_array_argument(_cffi_type(7), arg0, (char **)&x0,
1104
+ datasize, &large_args_free) < 0)
1105
+ return NULL;
1106
+ }
1107
+
1108
+ datasize = _cffi_prepare_pointer_call_argument(
1109
+ _cffi_type(7), arg1, (char **)&x1);
1110
+ if (datasize != 0) {
1111
+ x1 = ((size_t)datasize) <= 640 ? (double *)alloca((size_t)datasize) : NULL;
1112
+ if (_cffi_convert_array_argument(_cffi_type(7), arg1, (char **)&x1,
1113
+ datasize, &large_args_free) < 0)
1114
+ return NULL;
1115
+ }
1116
+
1117
+ datasize = _cffi_prepare_pointer_call_argument(
1118
+ _cffi_type(7), arg2, (char **)&x2);
1119
+ if (datasize != 0) {
1120
+ x2 = ((size_t)datasize) <= 640 ? (double *)alloca((size_t)datasize) : NULL;
1121
+ if (_cffi_convert_array_argument(_cffi_type(7), arg2, (char **)&x2,
1122
+ datasize, &large_args_free) < 0)
1123
+ return NULL;
1124
+ }
1125
+
1126
+ datasize = _cffi_prepare_pointer_call_argument(
1127
+ _cffi_type(7), arg3, (char **)&x3);
1128
+ if (datasize != 0) {
1129
+ x3 = ((size_t)datasize) <= 640 ? (double *)alloca((size_t)datasize) : NULL;
1130
+ if (_cffi_convert_array_argument(_cffi_type(7), arg3, (char **)&x3,
1131
+ datasize, &large_args_free) < 0)
1132
+ return NULL;
1133
+ }
1134
+
1135
+ datasize = _cffi_prepare_pointer_call_argument(
1136
+ _cffi_type(7), arg4, (char **)&x4);
1137
+ if (datasize != 0) {
1138
+ x4 = ((size_t)datasize) <= 640 ? (double *)alloca((size_t)datasize) : NULL;
1139
+ if (_cffi_convert_array_argument(_cffi_type(7), arg4, (char **)&x4,
1140
+ datasize, &large_args_free) < 0)
1141
+ return NULL;
1142
+ }
1143
+
1144
+ x5 = (double)_cffi_to_c_double(arg5);
1145
+ if (x5 == (double)-1 && PyErr_Occurred())
1146
+ return NULL;
1147
+
1148
+ Py_BEGIN_ALLOW_THREADS
1149
+ _cffi_restore_errno();
1150
+ { de_jac_ini_xy_eval(x0, x1, x2, x3, x4, x5); }
1151
+ _cffi_save_errno();
1152
+ Py_END_ALLOW_THREADS
1153
+
1154
+ (void)self; /* unused */
1155
+ if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
1156
+ Py_INCREF(Py_None);
1157
+ return Py_None;
1158
+ }
1159
+ #else
1160
+ # define _cffi_f_de_jac_ini_xy_eval _cffi_d_de_jac_ini_xy_eval
1161
+ #endif
1162
+
1163
+ static void _cffi_d_de_jac_run_num_eval(double * x0, double * x1, double * x2, double * x3, double * x4, double x5)
1164
+ {
1165
+ de_jac_run_num_eval(x0, x1, x2, x3, x4, x5);
1166
+ }
1167
+ #ifndef PYPY_VERSION
1168
+ static PyObject *
1169
+ _cffi_f_de_jac_run_num_eval(PyObject *self, PyObject *args)
1170
+ {
1171
+ double * x0;
1172
+ double * x1;
1173
+ double * x2;
1174
+ double * x3;
1175
+ double * x4;
1176
+ double x5;
1177
+ Py_ssize_t datasize;
1178
+ struct _cffi_freeme_s *large_args_free = NULL;
1179
+ PyObject *arg0;
1180
+ PyObject *arg1;
1181
+ PyObject *arg2;
1182
+ PyObject *arg3;
1183
+ PyObject *arg4;
1184
+ PyObject *arg5;
1185
+
1186
+ if (!PyArg_UnpackTuple(args, "de_jac_run_num_eval", 6, 6, &arg0, &arg1, &arg2, &arg3, &arg4, &arg5))
1187
+ return NULL;
1188
+
1189
+ datasize = _cffi_prepare_pointer_call_argument(
1190
+ _cffi_type(7), arg0, (char **)&x0);
1191
+ if (datasize != 0) {
1192
+ x0 = ((size_t)datasize) <= 640 ? (double *)alloca((size_t)datasize) : NULL;
1193
+ if (_cffi_convert_array_argument(_cffi_type(7), arg0, (char **)&x0,
1194
+ datasize, &large_args_free) < 0)
1195
+ return NULL;
1196
+ }
1197
+
1198
+ datasize = _cffi_prepare_pointer_call_argument(
1199
+ _cffi_type(7), arg1, (char **)&x1);
1200
+ if (datasize != 0) {
1201
+ x1 = ((size_t)datasize) <= 640 ? (double *)alloca((size_t)datasize) : NULL;
1202
+ if (_cffi_convert_array_argument(_cffi_type(7), arg1, (char **)&x1,
1203
+ datasize, &large_args_free) < 0)
1204
+ return NULL;
1205
+ }
1206
+
1207
+ datasize = _cffi_prepare_pointer_call_argument(
1208
+ _cffi_type(7), arg2, (char **)&x2);
1209
+ if (datasize != 0) {
1210
+ x2 = ((size_t)datasize) <= 640 ? (double *)alloca((size_t)datasize) : NULL;
1211
+ if (_cffi_convert_array_argument(_cffi_type(7), arg2, (char **)&x2,
1212
+ datasize, &large_args_free) < 0)
1213
+ return NULL;
1214
+ }
1215
+
1216
+ datasize = _cffi_prepare_pointer_call_argument(
1217
+ _cffi_type(7), arg3, (char **)&x3);
1218
+ if (datasize != 0) {
1219
+ x3 = ((size_t)datasize) <= 640 ? (double *)alloca((size_t)datasize) : NULL;
1220
+ if (_cffi_convert_array_argument(_cffi_type(7), arg3, (char **)&x3,
1221
+ datasize, &large_args_free) < 0)
1222
+ return NULL;
1223
+ }
1224
+
1225
+ datasize = _cffi_prepare_pointer_call_argument(
1226
+ _cffi_type(7), arg4, (char **)&x4);
1227
+ if (datasize != 0) {
1228
+ x4 = ((size_t)datasize) <= 640 ? (double *)alloca((size_t)datasize) : NULL;
1229
+ if (_cffi_convert_array_argument(_cffi_type(7), arg4, (char **)&x4,
1230
+ datasize, &large_args_free) < 0)
1231
+ return NULL;
1232
+ }
1233
+
1234
+ x5 = (double)_cffi_to_c_double(arg5);
1235
+ if (x5 == (double)-1 && PyErr_Occurred())
1236
+ return NULL;
1237
+
1238
+ Py_BEGIN_ALLOW_THREADS
1239
+ _cffi_restore_errno();
1240
+ { de_jac_run_num_eval(x0, x1, x2, x3, x4, x5); }
1241
+ _cffi_save_errno();
1242
+ Py_END_ALLOW_THREADS
1243
+
1244
+ (void)self; /* unused */
1245
+ if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
1246
+ Py_INCREF(Py_None);
1247
+ return Py_None;
1248
+ }
1249
+ #else
1250
+ # define _cffi_f_de_jac_run_num_eval _cffi_d_de_jac_run_num_eval
1251
+ #endif
1252
+
1253
+ static void _cffi_d_de_jac_run_up_eval(double * x0, double * x1, double * x2, double * x3, double * x4, double x5)
1254
+ {
1255
+ de_jac_run_up_eval(x0, x1, x2, x3, x4, x5);
1256
+ }
1257
+ #ifndef PYPY_VERSION
1258
+ static PyObject *
1259
+ _cffi_f_de_jac_run_up_eval(PyObject *self, PyObject *args)
1260
+ {
1261
+ double * x0;
1262
+ double * x1;
1263
+ double * x2;
1264
+ double * x3;
1265
+ double * x4;
1266
+ double x5;
1267
+ Py_ssize_t datasize;
1268
+ struct _cffi_freeme_s *large_args_free = NULL;
1269
+ PyObject *arg0;
1270
+ PyObject *arg1;
1271
+ PyObject *arg2;
1272
+ PyObject *arg3;
1273
+ PyObject *arg4;
1274
+ PyObject *arg5;
1275
+
1276
+ if (!PyArg_UnpackTuple(args, "de_jac_run_up_eval", 6, 6, &arg0, &arg1, &arg2, &arg3, &arg4, &arg5))
1277
+ return NULL;
1278
+
1279
+ datasize = _cffi_prepare_pointer_call_argument(
1280
+ _cffi_type(7), arg0, (char **)&x0);
1281
+ if (datasize != 0) {
1282
+ x0 = ((size_t)datasize) <= 640 ? (double *)alloca((size_t)datasize) : NULL;
1283
+ if (_cffi_convert_array_argument(_cffi_type(7), arg0, (char **)&x0,
1284
+ datasize, &large_args_free) < 0)
1285
+ return NULL;
1286
+ }
1287
+
1288
+ datasize = _cffi_prepare_pointer_call_argument(
1289
+ _cffi_type(7), arg1, (char **)&x1);
1290
+ if (datasize != 0) {
1291
+ x1 = ((size_t)datasize) <= 640 ? (double *)alloca((size_t)datasize) : NULL;
1292
+ if (_cffi_convert_array_argument(_cffi_type(7), arg1, (char **)&x1,
1293
+ datasize, &large_args_free) < 0)
1294
+ return NULL;
1295
+ }
1296
+
1297
+ datasize = _cffi_prepare_pointer_call_argument(
1298
+ _cffi_type(7), arg2, (char **)&x2);
1299
+ if (datasize != 0) {
1300
+ x2 = ((size_t)datasize) <= 640 ? (double *)alloca((size_t)datasize) : NULL;
1301
+ if (_cffi_convert_array_argument(_cffi_type(7), arg2, (char **)&x2,
1302
+ datasize, &large_args_free) < 0)
1303
+ return NULL;
1304
+ }
1305
+
1306
+ datasize = _cffi_prepare_pointer_call_argument(
1307
+ _cffi_type(7), arg3, (char **)&x3);
1308
+ if (datasize != 0) {
1309
+ x3 = ((size_t)datasize) <= 640 ? (double *)alloca((size_t)datasize) : NULL;
1310
+ if (_cffi_convert_array_argument(_cffi_type(7), arg3, (char **)&x3,
1311
+ datasize, &large_args_free) < 0)
1312
+ return NULL;
1313
+ }
1314
+
1315
+ datasize = _cffi_prepare_pointer_call_argument(
1316
+ _cffi_type(7), arg4, (char **)&x4);
1317
+ if (datasize != 0) {
1318
+ x4 = ((size_t)datasize) <= 640 ? (double *)alloca((size_t)datasize) : NULL;
1319
+ if (_cffi_convert_array_argument(_cffi_type(7), arg4, (char **)&x4,
1320
+ datasize, &large_args_free) < 0)
1321
+ return NULL;
1322
+ }
1323
+
1324
+ x5 = (double)_cffi_to_c_double(arg5);
1325
+ if (x5 == (double)-1 && PyErr_Occurred())
1326
+ return NULL;
1327
+
1328
+ Py_BEGIN_ALLOW_THREADS
1329
+ _cffi_restore_errno();
1330
+ { de_jac_run_up_eval(x0, x1, x2, x3, x4, x5); }
1331
+ _cffi_save_errno();
1332
+ Py_END_ALLOW_THREADS
1333
+
1334
+ (void)self; /* unused */
1335
+ if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
1336
+ Py_INCREF(Py_None);
1337
+ return Py_None;
1338
+ }
1339
+ #else
1340
+ # define _cffi_f_de_jac_run_up_eval _cffi_d_de_jac_run_up_eval
1341
+ #endif
1342
+
1343
+ static void _cffi_d_de_jac_run_xy_eval(double * x0, double * x1, double * x2, double * x3, double * x4, double x5)
1344
+ {
1345
+ de_jac_run_xy_eval(x0, x1, x2, x3, x4, x5);
1346
+ }
1347
+ #ifndef PYPY_VERSION
1348
+ static PyObject *
1349
+ _cffi_f_de_jac_run_xy_eval(PyObject *self, PyObject *args)
1350
+ {
1351
+ double * x0;
1352
+ double * x1;
1353
+ double * x2;
1354
+ double * x3;
1355
+ double * x4;
1356
+ double x5;
1357
+ Py_ssize_t datasize;
1358
+ struct _cffi_freeme_s *large_args_free = NULL;
1359
+ PyObject *arg0;
1360
+ PyObject *arg1;
1361
+ PyObject *arg2;
1362
+ PyObject *arg3;
1363
+ PyObject *arg4;
1364
+ PyObject *arg5;
1365
+
1366
+ if (!PyArg_UnpackTuple(args, "de_jac_run_xy_eval", 6, 6, &arg0, &arg1, &arg2, &arg3, &arg4, &arg5))
1367
+ return NULL;
1368
+
1369
+ datasize = _cffi_prepare_pointer_call_argument(
1370
+ _cffi_type(7), arg0, (char **)&x0);
1371
+ if (datasize != 0) {
1372
+ x0 = ((size_t)datasize) <= 640 ? (double *)alloca((size_t)datasize) : NULL;
1373
+ if (_cffi_convert_array_argument(_cffi_type(7), arg0, (char **)&x0,
1374
+ datasize, &large_args_free) < 0)
1375
+ return NULL;
1376
+ }
1377
+
1378
+ datasize = _cffi_prepare_pointer_call_argument(
1379
+ _cffi_type(7), arg1, (char **)&x1);
1380
+ if (datasize != 0) {
1381
+ x1 = ((size_t)datasize) <= 640 ? (double *)alloca((size_t)datasize) : NULL;
1382
+ if (_cffi_convert_array_argument(_cffi_type(7), arg1, (char **)&x1,
1383
+ datasize, &large_args_free) < 0)
1384
+ return NULL;
1385
+ }
1386
+
1387
+ datasize = _cffi_prepare_pointer_call_argument(
1388
+ _cffi_type(7), arg2, (char **)&x2);
1389
+ if (datasize != 0) {
1390
+ x2 = ((size_t)datasize) <= 640 ? (double *)alloca((size_t)datasize) : NULL;
1391
+ if (_cffi_convert_array_argument(_cffi_type(7), arg2, (char **)&x2,
1392
+ datasize, &large_args_free) < 0)
1393
+ return NULL;
1394
+ }
1395
+
1396
+ datasize = _cffi_prepare_pointer_call_argument(
1397
+ _cffi_type(7), arg3, (char **)&x3);
1398
+ if (datasize != 0) {
1399
+ x3 = ((size_t)datasize) <= 640 ? (double *)alloca((size_t)datasize) : NULL;
1400
+ if (_cffi_convert_array_argument(_cffi_type(7), arg3, (char **)&x3,
1401
+ datasize, &large_args_free) < 0)
1402
+ return NULL;
1403
+ }
1404
+
1405
+ datasize = _cffi_prepare_pointer_call_argument(
1406
+ _cffi_type(7), arg4, (char **)&x4);
1407
+ if (datasize != 0) {
1408
+ x4 = ((size_t)datasize) <= 640 ? (double *)alloca((size_t)datasize) : NULL;
1409
+ if (_cffi_convert_array_argument(_cffi_type(7), arg4, (char **)&x4,
1410
+ datasize, &large_args_free) < 0)
1411
+ return NULL;
1412
+ }
1413
+
1414
+ x5 = (double)_cffi_to_c_double(arg5);
1415
+ if (x5 == (double)-1 && PyErr_Occurred())
1416
+ return NULL;
1417
+
1418
+ Py_BEGIN_ALLOW_THREADS
1419
+ _cffi_restore_errno();
1420
+ { de_jac_run_xy_eval(x0, x1, x2, x3, x4, x5); }
1421
+ _cffi_save_errno();
1422
+ Py_END_ALLOW_THREADS
1423
+
1424
+ (void)self; /* unused */
1425
+ if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
1426
+ Py_INCREF(Py_None);
1427
+ return Py_None;
1428
+ }
1429
+ #else
1430
+ # define _cffi_f_de_jac_run_xy_eval _cffi_d_de_jac_run_xy_eval
1431
+ #endif
1432
+
1433
+ static void _cffi_d_de_jac_trap_num_eval(double * x0, double * x1, double * x2, double * x3, double * x4, double x5)
1434
+ {
1435
+ de_jac_trap_num_eval(x0, x1, x2, x3, x4, x5);
1436
+ }
1437
+ #ifndef PYPY_VERSION
1438
+ static PyObject *
1439
+ _cffi_f_de_jac_trap_num_eval(PyObject *self, PyObject *args)
1440
+ {
1441
+ double * x0;
1442
+ double * x1;
1443
+ double * x2;
1444
+ double * x3;
1445
+ double * x4;
1446
+ double x5;
1447
+ Py_ssize_t datasize;
1448
+ struct _cffi_freeme_s *large_args_free = NULL;
1449
+ PyObject *arg0;
1450
+ PyObject *arg1;
1451
+ PyObject *arg2;
1452
+ PyObject *arg3;
1453
+ PyObject *arg4;
1454
+ PyObject *arg5;
1455
+
1456
+ if (!PyArg_UnpackTuple(args, "de_jac_trap_num_eval", 6, 6, &arg0, &arg1, &arg2, &arg3, &arg4, &arg5))
1457
+ return NULL;
1458
+
1459
+ datasize = _cffi_prepare_pointer_call_argument(
1460
+ _cffi_type(7), arg0, (char **)&x0);
1461
+ if (datasize != 0) {
1462
+ x0 = ((size_t)datasize) <= 640 ? (double *)alloca((size_t)datasize) : NULL;
1463
+ if (_cffi_convert_array_argument(_cffi_type(7), arg0, (char **)&x0,
1464
+ datasize, &large_args_free) < 0)
1465
+ return NULL;
1466
+ }
1467
+
1468
+ datasize = _cffi_prepare_pointer_call_argument(
1469
+ _cffi_type(7), arg1, (char **)&x1);
1470
+ if (datasize != 0) {
1471
+ x1 = ((size_t)datasize) <= 640 ? (double *)alloca((size_t)datasize) : NULL;
1472
+ if (_cffi_convert_array_argument(_cffi_type(7), arg1, (char **)&x1,
1473
+ datasize, &large_args_free) < 0)
1474
+ return NULL;
1475
+ }
1476
+
1477
+ datasize = _cffi_prepare_pointer_call_argument(
1478
+ _cffi_type(7), arg2, (char **)&x2);
1479
+ if (datasize != 0) {
1480
+ x2 = ((size_t)datasize) <= 640 ? (double *)alloca((size_t)datasize) : NULL;
1481
+ if (_cffi_convert_array_argument(_cffi_type(7), arg2, (char **)&x2,
1482
+ datasize, &large_args_free) < 0)
1483
+ return NULL;
1484
+ }
1485
+
1486
+ datasize = _cffi_prepare_pointer_call_argument(
1487
+ _cffi_type(7), arg3, (char **)&x3);
1488
+ if (datasize != 0) {
1489
+ x3 = ((size_t)datasize) <= 640 ? (double *)alloca((size_t)datasize) : NULL;
1490
+ if (_cffi_convert_array_argument(_cffi_type(7), arg3, (char **)&x3,
1491
+ datasize, &large_args_free) < 0)
1492
+ return NULL;
1493
+ }
1494
+
1495
+ datasize = _cffi_prepare_pointer_call_argument(
1496
+ _cffi_type(7), arg4, (char **)&x4);
1497
+ if (datasize != 0) {
1498
+ x4 = ((size_t)datasize) <= 640 ? (double *)alloca((size_t)datasize) : NULL;
1499
+ if (_cffi_convert_array_argument(_cffi_type(7), arg4, (char **)&x4,
1500
+ datasize, &large_args_free) < 0)
1501
+ return NULL;
1502
+ }
1503
+
1504
+ x5 = (double)_cffi_to_c_double(arg5);
1505
+ if (x5 == (double)-1 && PyErr_Occurred())
1506
+ return NULL;
1507
+
1508
+ Py_BEGIN_ALLOW_THREADS
1509
+ _cffi_restore_errno();
1510
+ { de_jac_trap_num_eval(x0, x1, x2, x3, x4, x5); }
1511
+ _cffi_save_errno();
1512
+ Py_END_ALLOW_THREADS
1513
+
1514
+ (void)self; /* unused */
1515
+ if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
1516
+ Py_INCREF(Py_None);
1517
+ return Py_None;
1518
+ }
1519
+ #else
1520
+ # define _cffi_f_de_jac_trap_num_eval _cffi_d_de_jac_trap_num_eval
1521
+ #endif
1522
+
1523
+ static void _cffi_d_de_jac_trap_up_eval(double * x0, double * x1, double * x2, double * x3, double * x4, double x5)
1524
+ {
1525
+ de_jac_trap_up_eval(x0, x1, x2, x3, x4, x5);
1526
+ }
1527
+ #ifndef PYPY_VERSION
1528
+ static PyObject *
1529
+ _cffi_f_de_jac_trap_up_eval(PyObject *self, PyObject *args)
1530
+ {
1531
+ double * x0;
1532
+ double * x1;
1533
+ double * x2;
1534
+ double * x3;
1535
+ double * x4;
1536
+ double x5;
1537
+ Py_ssize_t datasize;
1538
+ struct _cffi_freeme_s *large_args_free = NULL;
1539
+ PyObject *arg0;
1540
+ PyObject *arg1;
1541
+ PyObject *arg2;
1542
+ PyObject *arg3;
1543
+ PyObject *arg4;
1544
+ PyObject *arg5;
1545
+
1546
+ if (!PyArg_UnpackTuple(args, "de_jac_trap_up_eval", 6, 6, &arg0, &arg1, &arg2, &arg3, &arg4, &arg5))
1547
+ return NULL;
1548
+
1549
+ datasize = _cffi_prepare_pointer_call_argument(
1550
+ _cffi_type(7), arg0, (char **)&x0);
1551
+ if (datasize != 0) {
1552
+ x0 = ((size_t)datasize) <= 640 ? (double *)alloca((size_t)datasize) : NULL;
1553
+ if (_cffi_convert_array_argument(_cffi_type(7), arg0, (char **)&x0,
1554
+ datasize, &large_args_free) < 0)
1555
+ return NULL;
1556
+ }
1557
+
1558
+ datasize = _cffi_prepare_pointer_call_argument(
1559
+ _cffi_type(7), arg1, (char **)&x1);
1560
+ if (datasize != 0) {
1561
+ x1 = ((size_t)datasize) <= 640 ? (double *)alloca((size_t)datasize) : NULL;
1562
+ if (_cffi_convert_array_argument(_cffi_type(7), arg1, (char **)&x1,
1563
+ datasize, &large_args_free) < 0)
1564
+ return NULL;
1565
+ }
1566
+
1567
+ datasize = _cffi_prepare_pointer_call_argument(
1568
+ _cffi_type(7), arg2, (char **)&x2);
1569
+ if (datasize != 0) {
1570
+ x2 = ((size_t)datasize) <= 640 ? (double *)alloca((size_t)datasize) : NULL;
1571
+ if (_cffi_convert_array_argument(_cffi_type(7), arg2, (char **)&x2,
1572
+ datasize, &large_args_free) < 0)
1573
+ return NULL;
1574
+ }
1575
+
1576
+ datasize = _cffi_prepare_pointer_call_argument(
1577
+ _cffi_type(7), arg3, (char **)&x3);
1578
+ if (datasize != 0) {
1579
+ x3 = ((size_t)datasize) <= 640 ? (double *)alloca((size_t)datasize) : NULL;
1580
+ if (_cffi_convert_array_argument(_cffi_type(7), arg3, (char **)&x3,
1581
+ datasize, &large_args_free) < 0)
1582
+ return NULL;
1583
+ }
1584
+
1585
+ datasize = _cffi_prepare_pointer_call_argument(
1586
+ _cffi_type(7), arg4, (char **)&x4);
1587
+ if (datasize != 0) {
1588
+ x4 = ((size_t)datasize) <= 640 ? (double *)alloca((size_t)datasize) : NULL;
1589
+ if (_cffi_convert_array_argument(_cffi_type(7), arg4, (char **)&x4,
1590
+ datasize, &large_args_free) < 0)
1591
+ return NULL;
1592
+ }
1593
+
1594
+ x5 = (double)_cffi_to_c_double(arg5);
1595
+ if (x5 == (double)-1 && PyErr_Occurred())
1596
+ return NULL;
1597
+
1598
+ Py_BEGIN_ALLOW_THREADS
1599
+ _cffi_restore_errno();
1600
+ { de_jac_trap_up_eval(x0, x1, x2, x3, x4, x5); }
1601
+ _cffi_save_errno();
1602
+ Py_END_ALLOW_THREADS
1603
+
1604
+ (void)self; /* unused */
1605
+ if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
1606
+ Py_INCREF(Py_None);
1607
+ return Py_None;
1608
+ }
1609
+ #else
1610
+ # define _cffi_f_de_jac_trap_up_eval _cffi_d_de_jac_trap_up_eval
1611
+ #endif
1612
+
1613
+ static void _cffi_d_de_jac_trap_xy_eval(double * x0, double * x1, double * x2, double * x3, double * x4, double x5)
1614
+ {
1615
+ de_jac_trap_xy_eval(x0, x1, x2, x3, x4, x5);
1616
+ }
1617
+ #ifndef PYPY_VERSION
1618
+ static PyObject *
1619
+ _cffi_f_de_jac_trap_xy_eval(PyObject *self, PyObject *args)
1620
+ {
1621
+ double * x0;
1622
+ double * x1;
1623
+ double * x2;
1624
+ double * x3;
1625
+ double * x4;
1626
+ double x5;
1627
+ Py_ssize_t datasize;
1628
+ struct _cffi_freeme_s *large_args_free = NULL;
1629
+ PyObject *arg0;
1630
+ PyObject *arg1;
1631
+ PyObject *arg2;
1632
+ PyObject *arg3;
1633
+ PyObject *arg4;
1634
+ PyObject *arg5;
1635
+
1636
+ if (!PyArg_UnpackTuple(args, "de_jac_trap_xy_eval", 6, 6, &arg0, &arg1, &arg2, &arg3, &arg4, &arg5))
1637
+ return NULL;
1638
+
1639
+ datasize = _cffi_prepare_pointer_call_argument(
1640
+ _cffi_type(7), arg0, (char **)&x0);
1641
+ if (datasize != 0) {
1642
+ x0 = ((size_t)datasize) <= 640 ? (double *)alloca((size_t)datasize) : NULL;
1643
+ if (_cffi_convert_array_argument(_cffi_type(7), arg0, (char **)&x0,
1644
+ datasize, &large_args_free) < 0)
1645
+ return NULL;
1646
+ }
1647
+
1648
+ datasize = _cffi_prepare_pointer_call_argument(
1649
+ _cffi_type(7), arg1, (char **)&x1);
1650
+ if (datasize != 0) {
1651
+ x1 = ((size_t)datasize) <= 640 ? (double *)alloca((size_t)datasize) : NULL;
1652
+ if (_cffi_convert_array_argument(_cffi_type(7), arg1, (char **)&x1,
1653
+ datasize, &large_args_free) < 0)
1654
+ return NULL;
1655
+ }
1656
+
1657
+ datasize = _cffi_prepare_pointer_call_argument(
1658
+ _cffi_type(7), arg2, (char **)&x2);
1659
+ if (datasize != 0) {
1660
+ x2 = ((size_t)datasize) <= 640 ? (double *)alloca((size_t)datasize) : NULL;
1661
+ if (_cffi_convert_array_argument(_cffi_type(7), arg2, (char **)&x2,
1662
+ datasize, &large_args_free) < 0)
1663
+ return NULL;
1664
+ }
1665
+
1666
+ datasize = _cffi_prepare_pointer_call_argument(
1667
+ _cffi_type(7), arg3, (char **)&x3);
1668
+ if (datasize != 0) {
1669
+ x3 = ((size_t)datasize) <= 640 ? (double *)alloca((size_t)datasize) : NULL;
1670
+ if (_cffi_convert_array_argument(_cffi_type(7), arg3, (char **)&x3,
1671
+ datasize, &large_args_free) < 0)
1672
+ return NULL;
1673
+ }
1674
+
1675
+ datasize = _cffi_prepare_pointer_call_argument(
1676
+ _cffi_type(7), arg4, (char **)&x4);
1677
+ if (datasize != 0) {
1678
+ x4 = ((size_t)datasize) <= 640 ? (double *)alloca((size_t)datasize) : NULL;
1679
+ if (_cffi_convert_array_argument(_cffi_type(7), arg4, (char **)&x4,
1680
+ datasize, &large_args_free) < 0)
1681
+ return NULL;
1682
+ }
1683
+
1684
+ x5 = (double)_cffi_to_c_double(arg5);
1685
+ if (x5 == (double)-1 && PyErr_Occurred())
1686
+ return NULL;
1687
+
1688
+ Py_BEGIN_ALLOW_THREADS
1689
+ _cffi_restore_errno();
1690
+ { de_jac_trap_xy_eval(x0, x1, x2, x3, x4, x5); }
1691
+ _cffi_save_errno();
1692
+ Py_END_ALLOW_THREADS
1693
+
1694
+ (void)self; /* unused */
1695
+ if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
1696
+ Py_INCREF(Py_None);
1697
+ return Py_None;
1698
+ }
1699
+ #else
1700
+ # define _cffi_f_de_jac_trap_xy_eval _cffi_d_de_jac_trap_xy_eval
1701
+ #endif
1702
+
1703
+ static void _cffi_d_f_ini_eval(double * x0, double * x1, double * x2, double * x3, double * x4, double x5)
1704
+ {
1705
+ f_ini_eval(x0, x1, x2, x3, x4, x5);
1706
+ }
1707
+ #ifndef PYPY_VERSION
1708
+ static PyObject *
1709
+ _cffi_f_f_ini_eval(PyObject *self, PyObject *args)
1710
+ {
1711
+ double * x0;
1712
+ double * x1;
1713
+ double * x2;
1714
+ double * x3;
1715
+ double * x4;
1716
+ double x5;
1717
+ Py_ssize_t datasize;
1718
+ struct _cffi_freeme_s *large_args_free = NULL;
1719
+ PyObject *arg0;
1720
+ PyObject *arg1;
1721
+ PyObject *arg2;
1722
+ PyObject *arg3;
1723
+ PyObject *arg4;
1724
+ PyObject *arg5;
1725
+
1726
+ if (!PyArg_UnpackTuple(args, "f_ini_eval", 6, 6, &arg0, &arg1, &arg2, &arg3, &arg4, &arg5))
1727
+ return NULL;
1728
+
1729
+ datasize = _cffi_prepare_pointer_call_argument(
1730
+ _cffi_type(7), arg0, (char **)&x0);
1731
+ if (datasize != 0) {
1732
+ x0 = ((size_t)datasize) <= 640 ? (double *)alloca((size_t)datasize) : NULL;
1733
+ if (_cffi_convert_array_argument(_cffi_type(7), arg0, (char **)&x0,
1734
+ datasize, &large_args_free) < 0)
1735
+ return NULL;
1736
+ }
1737
+
1738
+ datasize = _cffi_prepare_pointer_call_argument(
1739
+ _cffi_type(7), arg1, (char **)&x1);
1740
+ if (datasize != 0) {
1741
+ x1 = ((size_t)datasize) <= 640 ? (double *)alloca((size_t)datasize) : NULL;
1742
+ if (_cffi_convert_array_argument(_cffi_type(7), arg1, (char **)&x1,
1743
+ datasize, &large_args_free) < 0)
1744
+ return NULL;
1745
+ }
1746
+
1747
+ datasize = _cffi_prepare_pointer_call_argument(
1748
+ _cffi_type(7), arg2, (char **)&x2);
1749
+ if (datasize != 0) {
1750
+ x2 = ((size_t)datasize) <= 640 ? (double *)alloca((size_t)datasize) : NULL;
1751
+ if (_cffi_convert_array_argument(_cffi_type(7), arg2, (char **)&x2,
1752
+ datasize, &large_args_free) < 0)
1753
+ return NULL;
1754
+ }
1755
+
1756
+ datasize = _cffi_prepare_pointer_call_argument(
1757
+ _cffi_type(7), arg3, (char **)&x3);
1758
+ if (datasize != 0) {
1759
+ x3 = ((size_t)datasize) <= 640 ? (double *)alloca((size_t)datasize) : NULL;
1760
+ if (_cffi_convert_array_argument(_cffi_type(7), arg3, (char **)&x3,
1761
+ datasize, &large_args_free) < 0)
1762
+ return NULL;
1763
+ }
1764
+
1765
+ datasize = _cffi_prepare_pointer_call_argument(
1766
+ _cffi_type(7), arg4, (char **)&x4);
1767
+ if (datasize != 0) {
1768
+ x4 = ((size_t)datasize) <= 640 ? (double *)alloca((size_t)datasize) : NULL;
1769
+ if (_cffi_convert_array_argument(_cffi_type(7), arg4, (char **)&x4,
1770
+ datasize, &large_args_free) < 0)
1771
+ return NULL;
1772
+ }
1773
+
1774
+ x5 = (double)_cffi_to_c_double(arg5);
1775
+ if (x5 == (double)-1 && PyErr_Occurred())
1776
+ return NULL;
1777
+
1778
+ Py_BEGIN_ALLOW_THREADS
1779
+ _cffi_restore_errno();
1780
+ { f_ini_eval(x0, x1, x2, x3, x4, x5); }
1781
+ _cffi_save_errno();
1782
+ Py_END_ALLOW_THREADS
1783
+
1784
+ (void)self; /* unused */
1785
+ if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
1786
+ Py_INCREF(Py_None);
1787
+ return Py_None;
1788
+ }
1789
+ #else
1790
+ # define _cffi_f_f_ini_eval _cffi_d_f_ini_eval
1791
+ #endif
1792
+
1793
+ static void _cffi_d_f_run_eval(double * x0, double * x1, double * x2, double * x3, double * x4, double x5)
1794
+ {
1795
+ f_run_eval(x0, x1, x2, x3, x4, x5);
1796
+ }
1797
+ #ifndef PYPY_VERSION
1798
+ static PyObject *
1799
+ _cffi_f_f_run_eval(PyObject *self, PyObject *args)
1800
+ {
1801
+ double * x0;
1802
+ double * x1;
1803
+ double * x2;
1804
+ double * x3;
1805
+ double * x4;
1806
+ double x5;
1807
+ Py_ssize_t datasize;
1808
+ struct _cffi_freeme_s *large_args_free = NULL;
1809
+ PyObject *arg0;
1810
+ PyObject *arg1;
1811
+ PyObject *arg2;
1812
+ PyObject *arg3;
1813
+ PyObject *arg4;
1814
+ PyObject *arg5;
1815
+
1816
+ if (!PyArg_UnpackTuple(args, "f_run_eval", 6, 6, &arg0, &arg1, &arg2, &arg3, &arg4, &arg5))
1817
+ return NULL;
1818
+
1819
+ datasize = _cffi_prepare_pointer_call_argument(
1820
+ _cffi_type(7), arg0, (char **)&x0);
1821
+ if (datasize != 0) {
1822
+ x0 = ((size_t)datasize) <= 640 ? (double *)alloca((size_t)datasize) : NULL;
1823
+ if (_cffi_convert_array_argument(_cffi_type(7), arg0, (char **)&x0,
1824
+ datasize, &large_args_free) < 0)
1825
+ return NULL;
1826
+ }
1827
+
1828
+ datasize = _cffi_prepare_pointer_call_argument(
1829
+ _cffi_type(7), arg1, (char **)&x1);
1830
+ if (datasize != 0) {
1831
+ x1 = ((size_t)datasize) <= 640 ? (double *)alloca((size_t)datasize) : NULL;
1832
+ if (_cffi_convert_array_argument(_cffi_type(7), arg1, (char **)&x1,
1833
+ datasize, &large_args_free) < 0)
1834
+ return NULL;
1835
+ }
1836
+
1837
+ datasize = _cffi_prepare_pointer_call_argument(
1838
+ _cffi_type(7), arg2, (char **)&x2);
1839
+ if (datasize != 0) {
1840
+ x2 = ((size_t)datasize) <= 640 ? (double *)alloca((size_t)datasize) : NULL;
1841
+ if (_cffi_convert_array_argument(_cffi_type(7), arg2, (char **)&x2,
1842
+ datasize, &large_args_free) < 0)
1843
+ return NULL;
1844
+ }
1845
+
1846
+ datasize = _cffi_prepare_pointer_call_argument(
1847
+ _cffi_type(7), arg3, (char **)&x3);
1848
+ if (datasize != 0) {
1849
+ x3 = ((size_t)datasize) <= 640 ? (double *)alloca((size_t)datasize) : NULL;
1850
+ if (_cffi_convert_array_argument(_cffi_type(7), arg3, (char **)&x3,
1851
+ datasize, &large_args_free) < 0)
1852
+ return NULL;
1853
+ }
1854
+
1855
+ datasize = _cffi_prepare_pointer_call_argument(
1856
+ _cffi_type(7), arg4, (char **)&x4);
1857
+ if (datasize != 0) {
1858
+ x4 = ((size_t)datasize) <= 640 ? (double *)alloca((size_t)datasize) : NULL;
1859
+ if (_cffi_convert_array_argument(_cffi_type(7), arg4, (char **)&x4,
1860
+ datasize, &large_args_free) < 0)
1861
+ return NULL;
1862
+ }
1863
+
1864
+ x5 = (double)_cffi_to_c_double(arg5);
1865
+ if (x5 == (double)-1 && PyErr_Occurred())
1866
+ return NULL;
1867
+
1868
+ Py_BEGIN_ALLOW_THREADS
1869
+ _cffi_restore_errno();
1870
+ { f_run_eval(x0, x1, x2, x3, x4, x5); }
1871
+ _cffi_save_errno();
1872
+ Py_END_ALLOW_THREADS
1873
+
1874
+ (void)self; /* unused */
1875
+ if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
1876
+ Py_INCREF(Py_None);
1877
+ return Py_None;
1878
+ }
1879
+ #else
1880
+ # define _cffi_f_f_run_eval _cffi_d_f_run_eval
1881
+ #endif
1882
+
1883
+ static void _cffi_d_g_ini_eval(double * x0, double * x1, double * x2, double * x3, double * x4, double x5)
1884
+ {
1885
+ g_ini_eval(x0, x1, x2, x3, x4, x5);
1886
+ }
1887
+ #ifndef PYPY_VERSION
1888
+ static PyObject *
1889
+ _cffi_f_g_ini_eval(PyObject *self, PyObject *args)
1890
+ {
1891
+ double * x0;
1892
+ double * x1;
1893
+ double * x2;
1894
+ double * x3;
1895
+ double * x4;
1896
+ double x5;
1897
+ Py_ssize_t datasize;
1898
+ struct _cffi_freeme_s *large_args_free = NULL;
1899
+ PyObject *arg0;
1900
+ PyObject *arg1;
1901
+ PyObject *arg2;
1902
+ PyObject *arg3;
1903
+ PyObject *arg4;
1904
+ PyObject *arg5;
1905
+
1906
+ if (!PyArg_UnpackTuple(args, "g_ini_eval", 6, 6, &arg0, &arg1, &arg2, &arg3, &arg4, &arg5))
1907
+ return NULL;
1908
+
1909
+ datasize = _cffi_prepare_pointer_call_argument(
1910
+ _cffi_type(7), arg0, (char **)&x0);
1911
+ if (datasize != 0) {
1912
+ x0 = ((size_t)datasize) <= 640 ? (double *)alloca((size_t)datasize) : NULL;
1913
+ if (_cffi_convert_array_argument(_cffi_type(7), arg0, (char **)&x0,
1914
+ datasize, &large_args_free) < 0)
1915
+ return NULL;
1916
+ }
1917
+
1918
+ datasize = _cffi_prepare_pointer_call_argument(
1919
+ _cffi_type(7), arg1, (char **)&x1);
1920
+ if (datasize != 0) {
1921
+ x1 = ((size_t)datasize) <= 640 ? (double *)alloca((size_t)datasize) : NULL;
1922
+ if (_cffi_convert_array_argument(_cffi_type(7), arg1, (char **)&x1,
1923
+ datasize, &large_args_free) < 0)
1924
+ return NULL;
1925
+ }
1926
+
1927
+ datasize = _cffi_prepare_pointer_call_argument(
1928
+ _cffi_type(7), arg2, (char **)&x2);
1929
+ if (datasize != 0) {
1930
+ x2 = ((size_t)datasize) <= 640 ? (double *)alloca((size_t)datasize) : NULL;
1931
+ if (_cffi_convert_array_argument(_cffi_type(7), arg2, (char **)&x2,
1932
+ datasize, &large_args_free) < 0)
1933
+ return NULL;
1934
+ }
1935
+
1936
+ datasize = _cffi_prepare_pointer_call_argument(
1937
+ _cffi_type(7), arg3, (char **)&x3);
1938
+ if (datasize != 0) {
1939
+ x3 = ((size_t)datasize) <= 640 ? (double *)alloca((size_t)datasize) : NULL;
1940
+ if (_cffi_convert_array_argument(_cffi_type(7), arg3, (char **)&x3,
1941
+ datasize, &large_args_free) < 0)
1942
+ return NULL;
1943
+ }
1944
+
1945
+ datasize = _cffi_prepare_pointer_call_argument(
1946
+ _cffi_type(7), arg4, (char **)&x4);
1947
+ if (datasize != 0) {
1948
+ x4 = ((size_t)datasize) <= 640 ? (double *)alloca((size_t)datasize) : NULL;
1949
+ if (_cffi_convert_array_argument(_cffi_type(7), arg4, (char **)&x4,
1950
+ datasize, &large_args_free) < 0)
1951
+ return NULL;
1952
+ }
1953
+
1954
+ x5 = (double)_cffi_to_c_double(arg5);
1955
+ if (x5 == (double)-1 && PyErr_Occurred())
1956
+ return NULL;
1957
+
1958
+ Py_BEGIN_ALLOW_THREADS
1959
+ _cffi_restore_errno();
1960
+ { g_ini_eval(x0, x1, x2, x3, x4, x5); }
1961
+ _cffi_save_errno();
1962
+ Py_END_ALLOW_THREADS
1963
+
1964
+ (void)self; /* unused */
1965
+ if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
1966
+ Py_INCREF(Py_None);
1967
+ return Py_None;
1968
+ }
1969
+ #else
1970
+ # define _cffi_f_g_ini_eval _cffi_d_g_ini_eval
1971
+ #endif
1972
+
1973
+ static void _cffi_d_g_run_eval(double * x0, double * x1, double * x2, double * x3, double * x4, double x5)
1974
+ {
1975
+ g_run_eval(x0, x1, x2, x3, x4, x5);
1976
+ }
1977
+ #ifndef PYPY_VERSION
1978
+ static PyObject *
1979
+ _cffi_f_g_run_eval(PyObject *self, PyObject *args)
1980
+ {
1981
+ double * x0;
1982
+ double * x1;
1983
+ double * x2;
1984
+ double * x3;
1985
+ double * x4;
1986
+ double x5;
1987
+ Py_ssize_t datasize;
1988
+ struct _cffi_freeme_s *large_args_free = NULL;
1989
+ PyObject *arg0;
1990
+ PyObject *arg1;
1991
+ PyObject *arg2;
1992
+ PyObject *arg3;
1993
+ PyObject *arg4;
1994
+ PyObject *arg5;
1995
+
1996
+ if (!PyArg_UnpackTuple(args, "g_run_eval", 6, 6, &arg0, &arg1, &arg2, &arg3, &arg4, &arg5))
1997
+ return NULL;
1998
+
1999
+ datasize = _cffi_prepare_pointer_call_argument(
2000
+ _cffi_type(7), arg0, (char **)&x0);
2001
+ if (datasize != 0) {
2002
+ x0 = ((size_t)datasize) <= 640 ? (double *)alloca((size_t)datasize) : NULL;
2003
+ if (_cffi_convert_array_argument(_cffi_type(7), arg0, (char **)&x0,
2004
+ datasize, &large_args_free) < 0)
2005
+ return NULL;
2006
+ }
2007
+
2008
+ datasize = _cffi_prepare_pointer_call_argument(
2009
+ _cffi_type(7), arg1, (char **)&x1);
2010
+ if (datasize != 0) {
2011
+ x1 = ((size_t)datasize) <= 640 ? (double *)alloca((size_t)datasize) : NULL;
2012
+ if (_cffi_convert_array_argument(_cffi_type(7), arg1, (char **)&x1,
2013
+ datasize, &large_args_free) < 0)
2014
+ return NULL;
2015
+ }
2016
+
2017
+ datasize = _cffi_prepare_pointer_call_argument(
2018
+ _cffi_type(7), arg2, (char **)&x2);
2019
+ if (datasize != 0) {
2020
+ x2 = ((size_t)datasize) <= 640 ? (double *)alloca((size_t)datasize) : NULL;
2021
+ if (_cffi_convert_array_argument(_cffi_type(7), arg2, (char **)&x2,
2022
+ datasize, &large_args_free) < 0)
2023
+ return NULL;
2024
+ }
2025
+
2026
+ datasize = _cffi_prepare_pointer_call_argument(
2027
+ _cffi_type(7), arg3, (char **)&x3);
2028
+ if (datasize != 0) {
2029
+ x3 = ((size_t)datasize) <= 640 ? (double *)alloca((size_t)datasize) : NULL;
2030
+ if (_cffi_convert_array_argument(_cffi_type(7), arg3, (char **)&x3,
2031
+ datasize, &large_args_free) < 0)
2032
+ return NULL;
2033
+ }
2034
+
2035
+ datasize = _cffi_prepare_pointer_call_argument(
2036
+ _cffi_type(7), arg4, (char **)&x4);
2037
+ if (datasize != 0) {
2038
+ x4 = ((size_t)datasize) <= 640 ? (double *)alloca((size_t)datasize) : NULL;
2039
+ if (_cffi_convert_array_argument(_cffi_type(7), arg4, (char **)&x4,
2040
+ datasize, &large_args_free) < 0)
2041
+ return NULL;
2042
+ }
2043
+
2044
+ x5 = (double)_cffi_to_c_double(arg5);
2045
+ if (x5 == (double)-1 && PyErr_Occurred())
2046
+ return NULL;
2047
+
2048
+ Py_BEGIN_ALLOW_THREADS
2049
+ _cffi_restore_errno();
2050
+ { g_run_eval(x0, x1, x2, x3, x4, x5); }
2051
+ _cffi_save_errno();
2052
+ Py_END_ALLOW_THREADS
2053
+
2054
+ (void)self; /* unused */
2055
+ if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
2056
+ Py_INCREF(Py_None);
2057
+ return Py_None;
2058
+ }
2059
+ #else
2060
+ # define _cffi_f_g_run_eval _cffi_d_g_run_eval
2061
+ #endif
2062
+
2063
+ static void _cffi_d_h_eval(double * x0, double * x1, double * x2, double * x3, double * x4, double x5)
2064
+ {
2065
+ h_eval(x0, x1, x2, x3, x4, x5);
2066
+ }
2067
+ #ifndef PYPY_VERSION
2068
+ static PyObject *
2069
+ _cffi_f_h_eval(PyObject *self, PyObject *args)
2070
+ {
2071
+ double * x0;
2072
+ double * x1;
2073
+ double * x2;
2074
+ double * x3;
2075
+ double * x4;
2076
+ double x5;
2077
+ Py_ssize_t datasize;
2078
+ struct _cffi_freeme_s *large_args_free = NULL;
2079
+ PyObject *arg0;
2080
+ PyObject *arg1;
2081
+ PyObject *arg2;
2082
+ PyObject *arg3;
2083
+ PyObject *arg4;
2084
+ PyObject *arg5;
2085
+
2086
+ if (!PyArg_UnpackTuple(args, "h_eval", 6, 6, &arg0, &arg1, &arg2, &arg3, &arg4, &arg5))
2087
+ return NULL;
2088
+
2089
+ datasize = _cffi_prepare_pointer_call_argument(
2090
+ _cffi_type(7), arg0, (char **)&x0);
2091
+ if (datasize != 0) {
2092
+ x0 = ((size_t)datasize) <= 640 ? (double *)alloca((size_t)datasize) : NULL;
2093
+ if (_cffi_convert_array_argument(_cffi_type(7), arg0, (char **)&x0,
2094
+ datasize, &large_args_free) < 0)
2095
+ return NULL;
2096
+ }
2097
+
2098
+ datasize = _cffi_prepare_pointer_call_argument(
2099
+ _cffi_type(7), arg1, (char **)&x1);
2100
+ if (datasize != 0) {
2101
+ x1 = ((size_t)datasize) <= 640 ? (double *)alloca((size_t)datasize) : NULL;
2102
+ if (_cffi_convert_array_argument(_cffi_type(7), arg1, (char **)&x1,
2103
+ datasize, &large_args_free) < 0)
2104
+ return NULL;
2105
+ }
2106
+
2107
+ datasize = _cffi_prepare_pointer_call_argument(
2108
+ _cffi_type(7), arg2, (char **)&x2);
2109
+ if (datasize != 0) {
2110
+ x2 = ((size_t)datasize) <= 640 ? (double *)alloca((size_t)datasize) : NULL;
2111
+ if (_cffi_convert_array_argument(_cffi_type(7), arg2, (char **)&x2,
2112
+ datasize, &large_args_free) < 0)
2113
+ return NULL;
2114
+ }
2115
+
2116
+ datasize = _cffi_prepare_pointer_call_argument(
2117
+ _cffi_type(7), arg3, (char **)&x3);
2118
+ if (datasize != 0) {
2119
+ x3 = ((size_t)datasize) <= 640 ? (double *)alloca((size_t)datasize) : NULL;
2120
+ if (_cffi_convert_array_argument(_cffi_type(7), arg3, (char **)&x3,
2121
+ datasize, &large_args_free) < 0)
2122
+ return NULL;
2123
+ }
2124
+
2125
+ datasize = _cffi_prepare_pointer_call_argument(
2126
+ _cffi_type(7), arg4, (char **)&x4);
2127
+ if (datasize != 0) {
2128
+ x4 = ((size_t)datasize) <= 640 ? (double *)alloca((size_t)datasize) : NULL;
2129
+ if (_cffi_convert_array_argument(_cffi_type(7), arg4, (char **)&x4,
2130
+ datasize, &large_args_free) < 0)
2131
+ return NULL;
2132
+ }
2133
+
2134
+ x5 = (double)_cffi_to_c_double(arg5);
2135
+ if (x5 == (double)-1 && PyErr_Occurred())
2136
+ return NULL;
2137
+
2138
+ Py_BEGIN_ALLOW_THREADS
2139
+ _cffi_restore_errno();
2140
+ { h_eval(x0, x1, x2, x3, x4, x5); }
2141
+ _cffi_save_errno();
2142
+ Py_END_ALLOW_THREADS
2143
+
2144
+ (void)self; /* unused */
2145
+ if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
2146
+ Py_INCREF(Py_None);
2147
+ return Py_None;
2148
+ }
2149
+ #else
2150
+ # define _cffi_f_h_eval _cffi_d_h_eval
2151
+ #endif
2152
+
2153
+ static void _cffi_d_sp_jac_ini_num_eval(double * x0, double * x1, double * x2, double * x3, double * x4, double x5)
2154
+ {
2155
+ sp_jac_ini_num_eval(x0, x1, x2, x3, x4, x5);
2156
+ }
2157
+ #ifndef PYPY_VERSION
2158
+ static PyObject *
2159
+ _cffi_f_sp_jac_ini_num_eval(PyObject *self, PyObject *args)
2160
+ {
2161
+ double * x0;
2162
+ double * x1;
2163
+ double * x2;
2164
+ double * x3;
2165
+ double * x4;
2166
+ double x5;
2167
+ Py_ssize_t datasize;
2168
+ struct _cffi_freeme_s *large_args_free = NULL;
2169
+ PyObject *arg0;
2170
+ PyObject *arg1;
2171
+ PyObject *arg2;
2172
+ PyObject *arg3;
2173
+ PyObject *arg4;
2174
+ PyObject *arg5;
2175
+
2176
+ if (!PyArg_UnpackTuple(args, "sp_jac_ini_num_eval", 6, 6, &arg0, &arg1, &arg2, &arg3, &arg4, &arg5))
2177
+ return NULL;
2178
+
2179
+ datasize = _cffi_prepare_pointer_call_argument(
2180
+ _cffi_type(7), arg0, (char **)&x0);
2181
+ if (datasize != 0) {
2182
+ x0 = ((size_t)datasize) <= 640 ? (double *)alloca((size_t)datasize) : NULL;
2183
+ if (_cffi_convert_array_argument(_cffi_type(7), arg0, (char **)&x0,
2184
+ datasize, &large_args_free) < 0)
2185
+ return NULL;
2186
+ }
2187
+
2188
+ datasize = _cffi_prepare_pointer_call_argument(
2189
+ _cffi_type(7), arg1, (char **)&x1);
2190
+ if (datasize != 0) {
2191
+ x1 = ((size_t)datasize) <= 640 ? (double *)alloca((size_t)datasize) : NULL;
2192
+ if (_cffi_convert_array_argument(_cffi_type(7), arg1, (char **)&x1,
2193
+ datasize, &large_args_free) < 0)
2194
+ return NULL;
2195
+ }
2196
+
2197
+ datasize = _cffi_prepare_pointer_call_argument(
2198
+ _cffi_type(7), arg2, (char **)&x2);
2199
+ if (datasize != 0) {
2200
+ x2 = ((size_t)datasize) <= 640 ? (double *)alloca((size_t)datasize) : NULL;
2201
+ if (_cffi_convert_array_argument(_cffi_type(7), arg2, (char **)&x2,
2202
+ datasize, &large_args_free) < 0)
2203
+ return NULL;
2204
+ }
2205
+
2206
+ datasize = _cffi_prepare_pointer_call_argument(
2207
+ _cffi_type(7), arg3, (char **)&x3);
2208
+ if (datasize != 0) {
2209
+ x3 = ((size_t)datasize) <= 640 ? (double *)alloca((size_t)datasize) : NULL;
2210
+ if (_cffi_convert_array_argument(_cffi_type(7), arg3, (char **)&x3,
2211
+ datasize, &large_args_free) < 0)
2212
+ return NULL;
2213
+ }
2214
+
2215
+ datasize = _cffi_prepare_pointer_call_argument(
2216
+ _cffi_type(7), arg4, (char **)&x4);
2217
+ if (datasize != 0) {
2218
+ x4 = ((size_t)datasize) <= 640 ? (double *)alloca((size_t)datasize) : NULL;
2219
+ if (_cffi_convert_array_argument(_cffi_type(7), arg4, (char **)&x4,
2220
+ datasize, &large_args_free) < 0)
2221
+ return NULL;
2222
+ }
2223
+
2224
+ x5 = (double)_cffi_to_c_double(arg5);
2225
+ if (x5 == (double)-1 && PyErr_Occurred())
2226
+ return NULL;
2227
+
2228
+ Py_BEGIN_ALLOW_THREADS
2229
+ _cffi_restore_errno();
2230
+ { sp_jac_ini_num_eval(x0, x1, x2, x3, x4, x5); }
2231
+ _cffi_save_errno();
2232
+ Py_END_ALLOW_THREADS
2233
+
2234
+ (void)self; /* unused */
2235
+ if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
2236
+ Py_INCREF(Py_None);
2237
+ return Py_None;
2238
+ }
2239
+ #else
2240
+ # define _cffi_f_sp_jac_ini_num_eval _cffi_d_sp_jac_ini_num_eval
2241
+ #endif
2242
+
2243
+ static void _cffi_d_sp_jac_ini_up_eval(double * x0, double * x1, double * x2, double * x3, double * x4, double x5)
2244
+ {
2245
+ sp_jac_ini_up_eval(x0, x1, x2, x3, x4, x5);
2246
+ }
2247
+ #ifndef PYPY_VERSION
2248
+ static PyObject *
2249
+ _cffi_f_sp_jac_ini_up_eval(PyObject *self, PyObject *args)
2250
+ {
2251
+ double * x0;
2252
+ double * x1;
2253
+ double * x2;
2254
+ double * x3;
2255
+ double * x4;
2256
+ double x5;
2257
+ Py_ssize_t datasize;
2258
+ struct _cffi_freeme_s *large_args_free = NULL;
2259
+ PyObject *arg0;
2260
+ PyObject *arg1;
2261
+ PyObject *arg2;
2262
+ PyObject *arg3;
2263
+ PyObject *arg4;
2264
+ PyObject *arg5;
2265
+
2266
+ if (!PyArg_UnpackTuple(args, "sp_jac_ini_up_eval", 6, 6, &arg0, &arg1, &arg2, &arg3, &arg4, &arg5))
2267
+ return NULL;
2268
+
2269
+ datasize = _cffi_prepare_pointer_call_argument(
2270
+ _cffi_type(7), arg0, (char **)&x0);
2271
+ if (datasize != 0) {
2272
+ x0 = ((size_t)datasize) <= 640 ? (double *)alloca((size_t)datasize) : NULL;
2273
+ if (_cffi_convert_array_argument(_cffi_type(7), arg0, (char **)&x0,
2274
+ datasize, &large_args_free) < 0)
2275
+ return NULL;
2276
+ }
2277
+
2278
+ datasize = _cffi_prepare_pointer_call_argument(
2279
+ _cffi_type(7), arg1, (char **)&x1);
2280
+ if (datasize != 0) {
2281
+ x1 = ((size_t)datasize) <= 640 ? (double *)alloca((size_t)datasize) : NULL;
2282
+ if (_cffi_convert_array_argument(_cffi_type(7), arg1, (char **)&x1,
2283
+ datasize, &large_args_free) < 0)
2284
+ return NULL;
2285
+ }
2286
+
2287
+ datasize = _cffi_prepare_pointer_call_argument(
2288
+ _cffi_type(7), arg2, (char **)&x2);
2289
+ if (datasize != 0) {
2290
+ x2 = ((size_t)datasize) <= 640 ? (double *)alloca((size_t)datasize) : NULL;
2291
+ if (_cffi_convert_array_argument(_cffi_type(7), arg2, (char **)&x2,
2292
+ datasize, &large_args_free) < 0)
2293
+ return NULL;
2294
+ }
2295
+
2296
+ datasize = _cffi_prepare_pointer_call_argument(
2297
+ _cffi_type(7), arg3, (char **)&x3);
2298
+ if (datasize != 0) {
2299
+ x3 = ((size_t)datasize) <= 640 ? (double *)alloca((size_t)datasize) : NULL;
2300
+ if (_cffi_convert_array_argument(_cffi_type(7), arg3, (char **)&x3,
2301
+ datasize, &large_args_free) < 0)
2302
+ return NULL;
2303
+ }
2304
+
2305
+ datasize = _cffi_prepare_pointer_call_argument(
2306
+ _cffi_type(7), arg4, (char **)&x4);
2307
+ if (datasize != 0) {
2308
+ x4 = ((size_t)datasize) <= 640 ? (double *)alloca((size_t)datasize) : NULL;
2309
+ if (_cffi_convert_array_argument(_cffi_type(7), arg4, (char **)&x4,
2310
+ datasize, &large_args_free) < 0)
2311
+ return NULL;
2312
+ }
2313
+
2314
+ x5 = (double)_cffi_to_c_double(arg5);
2315
+ if (x5 == (double)-1 && PyErr_Occurred())
2316
+ return NULL;
2317
+
2318
+ Py_BEGIN_ALLOW_THREADS
2319
+ _cffi_restore_errno();
2320
+ { sp_jac_ini_up_eval(x0, x1, x2, x3, x4, x5); }
2321
+ _cffi_save_errno();
2322
+ Py_END_ALLOW_THREADS
2323
+
2324
+ (void)self; /* unused */
2325
+ if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
2326
+ Py_INCREF(Py_None);
2327
+ return Py_None;
2328
+ }
2329
+ #else
2330
+ # define _cffi_f_sp_jac_ini_up_eval _cffi_d_sp_jac_ini_up_eval
2331
+ #endif
2332
+
2333
+ static void _cffi_d_sp_jac_ini_xy_eval(double * x0, double * x1, double * x2, double * x3, double * x4, double x5)
2334
+ {
2335
+ sp_jac_ini_xy_eval(x0, x1, x2, x3, x4, x5);
2336
+ }
2337
+ #ifndef PYPY_VERSION
2338
+ static PyObject *
2339
+ _cffi_f_sp_jac_ini_xy_eval(PyObject *self, PyObject *args)
2340
+ {
2341
+ double * x0;
2342
+ double * x1;
2343
+ double * x2;
2344
+ double * x3;
2345
+ double * x4;
2346
+ double x5;
2347
+ Py_ssize_t datasize;
2348
+ struct _cffi_freeme_s *large_args_free = NULL;
2349
+ PyObject *arg0;
2350
+ PyObject *arg1;
2351
+ PyObject *arg2;
2352
+ PyObject *arg3;
2353
+ PyObject *arg4;
2354
+ PyObject *arg5;
2355
+
2356
+ if (!PyArg_UnpackTuple(args, "sp_jac_ini_xy_eval", 6, 6, &arg0, &arg1, &arg2, &arg3, &arg4, &arg5))
2357
+ return NULL;
2358
+
2359
+ datasize = _cffi_prepare_pointer_call_argument(
2360
+ _cffi_type(7), arg0, (char **)&x0);
2361
+ if (datasize != 0) {
2362
+ x0 = ((size_t)datasize) <= 640 ? (double *)alloca((size_t)datasize) : NULL;
2363
+ if (_cffi_convert_array_argument(_cffi_type(7), arg0, (char **)&x0,
2364
+ datasize, &large_args_free) < 0)
2365
+ return NULL;
2366
+ }
2367
+
2368
+ datasize = _cffi_prepare_pointer_call_argument(
2369
+ _cffi_type(7), arg1, (char **)&x1);
2370
+ if (datasize != 0) {
2371
+ x1 = ((size_t)datasize) <= 640 ? (double *)alloca((size_t)datasize) : NULL;
2372
+ if (_cffi_convert_array_argument(_cffi_type(7), arg1, (char **)&x1,
2373
+ datasize, &large_args_free) < 0)
2374
+ return NULL;
2375
+ }
2376
+
2377
+ datasize = _cffi_prepare_pointer_call_argument(
2378
+ _cffi_type(7), arg2, (char **)&x2);
2379
+ if (datasize != 0) {
2380
+ x2 = ((size_t)datasize) <= 640 ? (double *)alloca((size_t)datasize) : NULL;
2381
+ if (_cffi_convert_array_argument(_cffi_type(7), arg2, (char **)&x2,
2382
+ datasize, &large_args_free) < 0)
2383
+ return NULL;
2384
+ }
2385
+
2386
+ datasize = _cffi_prepare_pointer_call_argument(
2387
+ _cffi_type(7), arg3, (char **)&x3);
2388
+ if (datasize != 0) {
2389
+ x3 = ((size_t)datasize) <= 640 ? (double *)alloca((size_t)datasize) : NULL;
2390
+ if (_cffi_convert_array_argument(_cffi_type(7), arg3, (char **)&x3,
2391
+ datasize, &large_args_free) < 0)
2392
+ return NULL;
2393
+ }
2394
+
2395
+ datasize = _cffi_prepare_pointer_call_argument(
2396
+ _cffi_type(7), arg4, (char **)&x4);
2397
+ if (datasize != 0) {
2398
+ x4 = ((size_t)datasize) <= 640 ? (double *)alloca((size_t)datasize) : NULL;
2399
+ if (_cffi_convert_array_argument(_cffi_type(7), arg4, (char **)&x4,
2400
+ datasize, &large_args_free) < 0)
2401
+ return NULL;
2402
+ }
2403
+
2404
+ x5 = (double)_cffi_to_c_double(arg5);
2405
+ if (x5 == (double)-1 && PyErr_Occurred())
2406
+ return NULL;
2407
+
2408
+ Py_BEGIN_ALLOW_THREADS
2409
+ _cffi_restore_errno();
2410
+ { sp_jac_ini_xy_eval(x0, x1, x2, x3, x4, x5); }
2411
+ _cffi_save_errno();
2412
+ Py_END_ALLOW_THREADS
2413
+
2414
+ (void)self; /* unused */
2415
+ if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
2416
+ Py_INCREF(Py_None);
2417
+ return Py_None;
2418
+ }
2419
+ #else
2420
+ # define _cffi_f_sp_jac_ini_xy_eval _cffi_d_sp_jac_ini_xy_eval
2421
+ #endif
2422
+
2423
+ static void _cffi_d_sp_jac_run_num_eval(double * x0, double * x1, double * x2, double * x3, double * x4, double x5)
2424
+ {
2425
+ sp_jac_run_num_eval(x0, x1, x2, x3, x4, x5);
2426
+ }
2427
+ #ifndef PYPY_VERSION
2428
+ static PyObject *
2429
+ _cffi_f_sp_jac_run_num_eval(PyObject *self, PyObject *args)
2430
+ {
2431
+ double * x0;
2432
+ double * x1;
2433
+ double * x2;
2434
+ double * x3;
2435
+ double * x4;
2436
+ double x5;
2437
+ Py_ssize_t datasize;
2438
+ struct _cffi_freeme_s *large_args_free = NULL;
2439
+ PyObject *arg0;
2440
+ PyObject *arg1;
2441
+ PyObject *arg2;
2442
+ PyObject *arg3;
2443
+ PyObject *arg4;
2444
+ PyObject *arg5;
2445
+
2446
+ if (!PyArg_UnpackTuple(args, "sp_jac_run_num_eval", 6, 6, &arg0, &arg1, &arg2, &arg3, &arg4, &arg5))
2447
+ return NULL;
2448
+
2449
+ datasize = _cffi_prepare_pointer_call_argument(
2450
+ _cffi_type(7), arg0, (char **)&x0);
2451
+ if (datasize != 0) {
2452
+ x0 = ((size_t)datasize) <= 640 ? (double *)alloca((size_t)datasize) : NULL;
2453
+ if (_cffi_convert_array_argument(_cffi_type(7), arg0, (char **)&x0,
2454
+ datasize, &large_args_free) < 0)
2455
+ return NULL;
2456
+ }
2457
+
2458
+ datasize = _cffi_prepare_pointer_call_argument(
2459
+ _cffi_type(7), arg1, (char **)&x1);
2460
+ if (datasize != 0) {
2461
+ x1 = ((size_t)datasize) <= 640 ? (double *)alloca((size_t)datasize) : NULL;
2462
+ if (_cffi_convert_array_argument(_cffi_type(7), arg1, (char **)&x1,
2463
+ datasize, &large_args_free) < 0)
2464
+ return NULL;
2465
+ }
2466
+
2467
+ datasize = _cffi_prepare_pointer_call_argument(
2468
+ _cffi_type(7), arg2, (char **)&x2);
2469
+ if (datasize != 0) {
2470
+ x2 = ((size_t)datasize) <= 640 ? (double *)alloca((size_t)datasize) : NULL;
2471
+ if (_cffi_convert_array_argument(_cffi_type(7), arg2, (char **)&x2,
2472
+ datasize, &large_args_free) < 0)
2473
+ return NULL;
2474
+ }
2475
+
2476
+ datasize = _cffi_prepare_pointer_call_argument(
2477
+ _cffi_type(7), arg3, (char **)&x3);
2478
+ if (datasize != 0) {
2479
+ x3 = ((size_t)datasize) <= 640 ? (double *)alloca((size_t)datasize) : NULL;
2480
+ if (_cffi_convert_array_argument(_cffi_type(7), arg3, (char **)&x3,
2481
+ datasize, &large_args_free) < 0)
2482
+ return NULL;
2483
+ }
2484
+
2485
+ datasize = _cffi_prepare_pointer_call_argument(
2486
+ _cffi_type(7), arg4, (char **)&x4);
2487
+ if (datasize != 0) {
2488
+ x4 = ((size_t)datasize) <= 640 ? (double *)alloca((size_t)datasize) : NULL;
2489
+ if (_cffi_convert_array_argument(_cffi_type(7), arg4, (char **)&x4,
2490
+ datasize, &large_args_free) < 0)
2491
+ return NULL;
2492
+ }
2493
+
2494
+ x5 = (double)_cffi_to_c_double(arg5);
2495
+ if (x5 == (double)-1 && PyErr_Occurred())
2496
+ return NULL;
2497
+
2498
+ Py_BEGIN_ALLOW_THREADS
2499
+ _cffi_restore_errno();
2500
+ { sp_jac_run_num_eval(x0, x1, x2, x3, x4, x5); }
2501
+ _cffi_save_errno();
2502
+ Py_END_ALLOW_THREADS
2503
+
2504
+ (void)self; /* unused */
2505
+ if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
2506
+ Py_INCREF(Py_None);
2507
+ return Py_None;
2508
+ }
2509
+ #else
2510
+ # define _cffi_f_sp_jac_run_num_eval _cffi_d_sp_jac_run_num_eval
2511
+ #endif
2512
+
2513
+ static void _cffi_d_sp_jac_run_up_eval(double * x0, double * x1, double * x2, double * x3, double * x4, double x5)
2514
+ {
2515
+ sp_jac_run_up_eval(x0, x1, x2, x3, x4, x5);
2516
+ }
2517
+ #ifndef PYPY_VERSION
2518
+ static PyObject *
2519
+ _cffi_f_sp_jac_run_up_eval(PyObject *self, PyObject *args)
2520
+ {
2521
+ double * x0;
2522
+ double * x1;
2523
+ double * x2;
2524
+ double * x3;
2525
+ double * x4;
2526
+ double x5;
2527
+ Py_ssize_t datasize;
2528
+ struct _cffi_freeme_s *large_args_free = NULL;
2529
+ PyObject *arg0;
2530
+ PyObject *arg1;
2531
+ PyObject *arg2;
2532
+ PyObject *arg3;
2533
+ PyObject *arg4;
2534
+ PyObject *arg5;
2535
+
2536
+ if (!PyArg_UnpackTuple(args, "sp_jac_run_up_eval", 6, 6, &arg0, &arg1, &arg2, &arg3, &arg4, &arg5))
2537
+ return NULL;
2538
+
2539
+ datasize = _cffi_prepare_pointer_call_argument(
2540
+ _cffi_type(7), arg0, (char **)&x0);
2541
+ if (datasize != 0) {
2542
+ x0 = ((size_t)datasize) <= 640 ? (double *)alloca((size_t)datasize) : NULL;
2543
+ if (_cffi_convert_array_argument(_cffi_type(7), arg0, (char **)&x0,
2544
+ datasize, &large_args_free) < 0)
2545
+ return NULL;
2546
+ }
2547
+
2548
+ datasize = _cffi_prepare_pointer_call_argument(
2549
+ _cffi_type(7), arg1, (char **)&x1);
2550
+ if (datasize != 0) {
2551
+ x1 = ((size_t)datasize) <= 640 ? (double *)alloca((size_t)datasize) : NULL;
2552
+ if (_cffi_convert_array_argument(_cffi_type(7), arg1, (char **)&x1,
2553
+ datasize, &large_args_free) < 0)
2554
+ return NULL;
2555
+ }
2556
+
2557
+ datasize = _cffi_prepare_pointer_call_argument(
2558
+ _cffi_type(7), arg2, (char **)&x2);
2559
+ if (datasize != 0) {
2560
+ x2 = ((size_t)datasize) <= 640 ? (double *)alloca((size_t)datasize) : NULL;
2561
+ if (_cffi_convert_array_argument(_cffi_type(7), arg2, (char **)&x2,
2562
+ datasize, &large_args_free) < 0)
2563
+ return NULL;
2564
+ }
2565
+
2566
+ datasize = _cffi_prepare_pointer_call_argument(
2567
+ _cffi_type(7), arg3, (char **)&x3);
2568
+ if (datasize != 0) {
2569
+ x3 = ((size_t)datasize) <= 640 ? (double *)alloca((size_t)datasize) : NULL;
2570
+ if (_cffi_convert_array_argument(_cffi_type(7), arg3, (char **)&x3,
2571
+ datasize, &large_args_free) < 0)
2572
+ return NULL;
2573
+ }
2574
+
2575
+ datasize = _cffi_prepare_pointer_call_argument(
2576
+ _cffi_type(7), arg4, (char **)&x4);
2577
+ if (datasize != 0) {
2578
+ x4 = ((size_t)datasize) <= 640 ? (double *)alloca((size_t)datasize) : NULL;
2579
+ if (_cffi_convert_array_argument(_cffi_type(7), arg4, (char **)&x4,
2580
+ datasize, &large_args_free) < 0)
2581
+ return NULL;
2582
+ }
2583
+
2584
+ x5 = (double)_cffi_to_c_double(arg5);
2585
+ if (x5 == (double)-1 && PyErr_Occurred())
2586
+ return NULL;
2587
+
2588
+ Py_BEGIN_ALLOW_THREADS
2589
+ _cffi_restore_errno();
2590
+ { sp_jac_run_up_eval(x0, x1, x2, x3, x4, x5); }
2591
+ _cffi_save_errno();
2592
+ Py_END_ALLOW_THREADS
2593
+
2594
+ (void)self; /* unused */
2595
+ if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
2596
+ Py_INCREF(Py_None);
2597
+ return Py_None;
2598
+ }
2599
+ #else
2600
+ # define _cffi_f_sp_jac_run_up_eval _cffi_d_sp_jac_run_up_eval
2601
+ #endif
2602
+
2603
+ static void _cffi_d_sp_jac_run_xy_eval(double * x0, double * x1, double * x2, double * x3, double * x4, double x5)
2604
+ {
2605
+ sp_jac_run_xy_eval(x0, x1, x2, x3, x4, x5);
2606
+ }
2607
+ #ifndef PYPY_VERSION
2608
+ static PyObject *
2609
+ _cffi_f_sp_jac_run_xy_eval(PyObject *self, PyObject *args)
2610
+ {
2611
+ double * x0;
2612
+ double * x1;
2613
+ double * x2;
2614
+ double * x3;
2615
+ double * x4;
2616
+ double x5;
2617
+ Py_ssize_t datasize;
2618
+ struct _cffi_freeme_s *large_args_free = NULL;
2619
+ PyObject *arg0;
2620
+ PyObject *arg1;
2621
+ PyObject *arg2;
2622
+ PyObject *arg3;
2623
+ PyObject *arg4;
2624
+ PyObject *arg5;
2625
+
2626
+ if (!PyArg_UnpackTuple(args, "sp_jac_run_xy_eval", 6, 6, &arg0, &arg1, &arg2, &arg3, &arg4, &arg5))
2627
+ return NULL;
2628
+
2629
+ datasize = _cffi_prepare_pointer_call_argument(
2630
+ _cffi_type(7), arg0, (char **)&x0);
2631
+ if (datasize != 0) {
2632
+ x0 = ((size_t)datasize) <= 640 ? (double *)alloca((size_t)datasize) : NULL;
2633
+ if (_cffi_convert_array_argument(_cffi_type(7), arg0, (char **)&x0,
2634
+ datasize, &large_args_free) < 0)
2635
+ return NULL;
2636
+ }
2637
+
2638
+ datasize = _cffi_prepare_pointer_call_argument(
2639
+ _cffi_type(7), arg1, (char **)&x1);
2640
+ if (datasize != 0) {
2641
+ x1 = ((size_t)datasize) <= 640 ? (double *)alloca((size_t)datasize) : NULL;
2642
+ if (_cffi_convert_array_argument(_cffi_type(7), arg1, (char **)&x1,
2643
+ datasize, &large_args_free) < 0)
2644
+ return NULL;
2645
+ }
2646
+
2647
+ datasize = _cffi_prepare_pointer_call_argument(
2648
+ _cffi_type(7), arg2, (char **)&x2);
2649
+ if (datasize != 0) {
2650
+ x2 = ((size_t)datasize) <= 640 ? (double *)alloca((size_t)datasize) : NULL;
2651
+ if (_cffi_convert_array_argument(_cffi_type(7), arg2, (char **)&x2,
2652
+ datasize, &large_args_free) < 0)
2653
+ return NULL;
2654
+ }
2655
+
2656
+ datasize = _cffi_prepare_pointer_call_argument(
2657
+ _cffi_type(7), arg3, (char **)&x3);
2658
+ if (datasize != 0) {
2659
+ x3 = ((size_t)datasize) <= 640 ? (double *)alloca((size_t)datasize) : NULL;
2660
+ if (_cffi_convert_array_argument(_cffi_type(7), arg3, (char **)&x3,
2661
+ datasize, &large_args_free) < 0)
2662
+ return NULL;
2663
+ }
2664
+
2665
+ datasize = _cffi_prepare_pointer_call_argument(
2666
+ _cffi_type(7), arg4, (char **)&x4);
2667
+ if (datasize != 0) {
2668
+ x4 = ((size_t)datasize) <= 640 ? (double *)alloca((size_t)datasize) : NULL;
2669
+ if (_cffi_convert_array_argument(_cffi_type(7), arg4, (char **)&x4,
2670
+ datasize, &large_args_free) < 0)
2671
+ return NULL;
2672
+ }
2673
+
2674
+ x5 = (double)_cffi_to_c_double(arg5);
2675
+ if (x5 == (double)-1 && PyErr_Occurred())
2676
+ return NULL;
2677
+
2678
+ Py_BEGIN_ALLOW_THREADS
2679
+ _cffi_restore_errno();
2680
+ { sp_jac_run_xy_eval(x0, x1, x2, x3, x4, x5); }
2681
+ _cffi_save_errno();
2682
+ Py_END_ALLOW_THREADS
2683
+
2684
+ (void)self; /* unused */
2685
+ if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
2686
+ Py_INCREF(Py_None);
2687
+ return Py_None;
2688
+ }
2689
+ #else
2690
+ # define _cffi_f_sp_jac_run_xy_eval _cffi_d_sp_jac_run_xy_eval
2691
+ #endif
2692
+
2693
+ static void _cffi_d_sp_jac_trap_num_eval(double * x0, double * x1, double * x2, double * x3, double * x4, double x5)
2694
+ {
2695
+ sp_jac_trap_num_eval(x0, x1, x2, x3, x4, x5);
2696
+ }
2697
+ #ifndef PYPY_VERSION
2698
+ static PyObject *
2699
+ _cffi_f_sp_jac_trap_num_eval(PyObject *self, PyObject *args)
2700
+ {
2701
+ double * x0;
2702
+ double * x1;
2703
+ double * x2;
2704
+ double * x3;
2705
+ double * x4;
2706
+ double x5;
2707
+ Py_ssize_t datasize;
2708
+ struct _cffi_freeme_s *large_args_free = NULL;
2709
+ PyObject *arg0;
2710
+ PyObject *arg1;
2711
+ PyObject *arg2;
2712
+ PyObject *arg3;
2713
+ PyObject *arg4;
2714
+ PyObject *arg5;
2715
+
2716
+ if (!PyArg_UnpackTuple(args, "sp_jac_trap_num_eval", 6, 6, &arg0, &arg1, &arg2, &arg3, &arg4, &arg5))
2717
+ return NULL;
2718
+
2719
+ datasize = _cffi_prepare_pointer_call_argument(
2720
+ _cffi_type(7), arg0, (char **)&x0);
2721
+ if (datasize != 0) {
2722
+ x0 = ((size_t)datasize) <= 640 ? (double *)alloca((size_t)datasize) : NULL;
2723
+ if (_cffi_convert_array_argument(_cffi_type(7), arg0, (char **)&x0,
2724
+ datasize, &large_args_free) < 0)
2725
+ return NULL;
2726
+ }
2727
+
2728
+ datasize = _cffi_prepare_pointer_call_argument(
2729
+ _cffi_type(7), arg1, (char **)&x1);
2730
+ if (datasize != 0) {
2731
+ x1 = ((size_t)datasize) <= 640 ? (double *)alloca((size_t)datasize) : NULL;
2732
+ if (_cffi_convert_array_argument(_cffi_type(7), arg1, (char **)&x1,
2733
+ datasize, &large_args_free) < 0)
2734
+ return NULL;
2735
+ }
2736
+
2737
+ datasize = _cffi_prepare_pointer_call_argument(
2738
+ _cffi_type(7), arg2, (char **)&x2);
2739
+ if (datasize != 0) {
2740
+ x2 = ((size_t)datasize) <= 640 ? (double *)alloca((size_t)datasize) : NULL;
2741
+ if (_cffi_convert_array_argument(_cffi_type(7), arg2, (char **)&x2,
2742
+ datasize, &large_args_free) < 0)
2743
+ return NULL;
2744
+ }
2745
+
2746
+ datasize = _cffi_prepare_pointer_call_argument(
2747
+ _cffi_type(7), arg3, (char **)&x3);
2748
+ if (datasize != 0) {
2749
+ x3 = ((size_t)datasize) <= 640 ? (double *)alloca((size_t)datasize) : NULL;
2750
+ if (_cffi_convert_array_argument(_cffi_type(7), arg3, (char **)&x3,
2751
+ datasize, &large_args_free) < 0)
2752
+ return NULL;
2753
+ }
2754
+
2755
+ datasize = _cffi_prepare_pointer_call_argument(
2756
+ _cffi_type(7), arg4, (char **)&x4);
2757
+ if (datasize != 0) {
2758
+ x4 = ((size_t)datasize) <= 640 ? (double *)alloca((size_t)datasize) : NULL;
2759
+ if (_cffi_convert_array_argument(_cffi_type(7), arg4, (char **)&x4,
2760
+ datasize, &large_args_free) < 0)
2761
+ return NULL;
2762
+ }
2763
+
2764
+ x5 = (double)_cffi_to_c_double(arg5);
2765
+ if (x5 == (double)-1 && PyErr_Occurred())
2766
+ return NULL;
2767
+
2768
+ Py_BEGIN_ALLOW_THREADS
2769
+ _cffi_restore_errno();
2770
+ { sp_jac_trap_num_eval(x0, x1, x2, x3, x4, x5); }
2771
+ _cffi_save_errno();
2772
+ Py_END_ALLOW_THREADS
2773
+
2774
+ (void)self; /* unused */
2775
+ if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
2776
+ Py_INCREF(Py_None);
2777
+ return Py_None;
2778
+ }
2779
+ #else
2780
+ # define _cffi_f_sp_jac_trap_num_eval _cffi_d_sp_jac_trap_num_eval
2781
+ #endif
2782
+
2783
+ static void _cffi_d_sp_jac_trap_up_eval(double * x0, double * x1, double * x2, double * x3, double * x4, double x5)
2784
+ {
2785
+ sp_jac_trap_up_eval(x0, x1, x2, x3, x4, x5);
2786
+ }
2787
+ #ifndef PYPY_VERSION
2788
+ static PyObject *
2789
+ _cffi_f_sp_jac_trap_up_eval(PyObject *self, PyObject *args)
2790
+ {
2791
+ double * x0;
2792
+ double * x1;
2793
+ double * x2;
2794
+ double * x3;
2795
+ double * x4;
2796
+ double x5;
2797
+ Py_ssize_t datasize;
2798
+ struct _cffi_freeme_s *large_args_free = NULL;
2799
+ PyObject *arg0;
2800
+ PyObject *arg1;
2801
+ PyObject *arg2;
2802
+ PyObject *arg3;
2803
+ PyObject *arg4;
2804
+ PyObject *arg5;
2805
+
2806
+ if (!PyArg_UnpackTuple(args, "sp_jac_trap_up_eval", 6, 6, &arg0, &arg1, &arg2, &arg3, &arg4, &arg5))
2807
+ return NULL;
2808
+
2809
+ datasize = _cffi_prepare_pointer_call_argument(
2810
+ _cffi_type(7), arg0, (char **)&x0);
2811
+ if (datasize != 0) {
2812
+ x0 = ((size_t)datasize) <= 640 ? (double *)alloca((size_t)datasize) : NULL;
2813
+ if (_cffi_convert_array_argument(_cffi_type(7), arg0, (char **)&x0,
2814
+ datasize, &large_args_free) < 0)
2815
+ return NULL;
2816
+ }
2817
+
2818
+ datasize = _cffi_prepare_pointer_call_argument(
2819
+ _cffi_type(7), arg1, (char **)&x1);
2820
+ if (datasize != 0) {
2821
+ x1 = ((size_t)datasize) <= 640 ? (double *)alloca((size_t)datasize) : NULL;
2822
+ if (_cffi_convert_array_argument(_cffi_type(7), arg1, (char **)&x1,
2823
+ datasize, &large_args_free) < 0)
2824
+ return NULL;
2825
+ }
2826
+
2827
+ datasize = _cffi_prepare_pointer_call_argument(
2828
+ _cffi_type(7), arg2, (char **)&x2);
2829
+ if (datasize != 0) {
2830
+ x2 = ((size_t)datasize) <= 640 ? (double *)alloca((size_t)datasize) : NULL;
2831
+ if (_cffi_convert_array_argument(_cffi_type(7), arg2, (char **)&x2,
2832
+ datasize, &large_args_free) < 0)
2833
+ return NULL;
2834
+ }
2835
+
2836
+ datasize = _cffi_prepare_pointer_call_argument(
2837
+ _cffi_type(7), arg3, (char **)&x3);
2838
+ if (datasize != 0) {
2839
+ x3 = ((size_t)datasize) <= 640 ? (double *)alloca((size_t)datasize) : NULL;
2840
+ if (_cffi_convert_array_argument(_cffi_type(7), arg3, (char **)&x3,
2841
+ datasize, &large_args_free) < 0)
2842
+ return NULL;
2843
+ }
2844
+
2845
+ datasize = _cffi_prepare_pointer_call_argument(
2846
+ _cffi_type(7), arg4, (char **)&x4);
2847
+ if (datasize != 0) {
2848
+ x4 = ((size_t)datasize) <= 640 ? (double *)alloca((size_t)datasize) : NULL;
2849
+ if (_cffi_convert_array_argument(_cffi_type(7), arg4, (char **)&x4,
2850
+ datasize, &large_args_free) < 0)
2851
+ return NULL;
2852
+ }
2853
+
2854
+ x5 = (double)_cffi_to_c_double(arg5);
2855
+ if (x5 == (double)-1 && PyErr_Occurred())
2856
+ return NULL;
2857
+
2858
+ Py_BEGIN_ALLOW_THREADS
2859
+ _cffi_restore_errno();
2860
+ { sp_jac_trap_up_eval(x0, x1, x2, x3, x4, x5); }
2861
+ _cffi_save_errno();
2862
+ Py_END_ALLOW_THREADS
2863
+
2864
+ (void)self; /* unused */
2865
+ if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
2866
+ Py_INCREF(Py_None);
2867
+ return Py_None;
2868
+ }
2869
+ #else
2870
+ # define _cffi_f_sp_jac_trap_up_eval _cffi_d_sp_jac_trap_up_eval
2871
+ #endif
2872
+
2873
+ static void _cffi_d_sp_jac_trap_xy_eval(double * x0, double * x1, double * x2, double * x3, double * x4, double x5)
2874
+ {
2875
+ sp_jac_trap_xy_eval(x0, x1, x2, x3, x4, x5);
2876
+ }
2877
+ #ifndef PYPY_VERSION
2878
+ static PyObject *
2879
+ _cffi_f_sp_jac_trap_xy_eval(PyObject *self, PyObject *args)
2880
+ {
2881
+ double * x0;
2882
+ double * x1;
2883
+ double * x2;
2884
+ double * x3;
2885
+ double * x4;
2886
+ double x5;
2887
+ Py_ssize_t datasize;
2888
+ struct _cffi_freeme_s *large_args_free = NULL;
2889
+ PyObject *arg0;
2890
+ PyObject *arg1;
2891
+ PyObject *arg2;
2892
+ PyObject *arg3;
2893
+ PyObject *arg4;
2894
+ PyObject *arg5;
2895
+
2896
+ if (!PyArg_UnpackTuple(args, "sp_jac_trap_xy_eval", 6, 6, &arg0, &arg1, &arg2, &arg3, &arg4, &arg5))
2897
+ return NULL;
2898
+
2899
+ datasize = _cffi_prepare_pointer_call_argument(
2900
+ _cffi_type(7), arg0, (char **)&x0);
2901
+ if (datasize != 0) {
2902
+ x0 = ((size_t)datasize) <= 640 ? (double *)alloca((size_t)datasize) : NULL;
2903
+ if (_cffi_convert_array_argument(_cffi_type(7), arg0, (char **)&x0,
2904
+ datasize, &large_args_free) < 0)
2905
+ return NULL;
2906
+ }
2907
+
2908
+ datasize = _cffi_prepare_pointer_call_argument(
2909
+ _cffi_type(7), arg1, (char **)&x1);
2910
+ if (datasize != 0) {
2911
+ x1 = ((size_t)datasize) <= 640 ? (double *)alloca((size_t)datasize) : NULL;
2912
+ if (_cffi_convert_array_argument(_cffi_type(7), arg1, (char **)&x1,
2913
+ datasize, &large_args_free) < 0)
2914
+ return NULL;
2915
+ }
2916
+
2917
+ datasize = _cffi_prepare_pointer_call_argument(
2918
+ _cffi_type(7), arg2, (char **)&x2);
2919
+ if (datasize != 0) {
2920
+ x2 = ((size_t)datasize) <= 640 ? (double *)alloca((size_t)datasize) : NULL;
2921
+ if (_cffi_convert_array_argument(_cffi_type(7), arg2, (char **)&x2,
2922
+ datasize, &large_args_free) < 0)
2923
+ return NULL;
2924
+ }
2925
+
2926
+ datasize = _cffi_prepare_pointer_call_argument(
2927
+ _cffi_type(7), arg3, (char **)&x3);
2928
+ if (datasize != 0) {
2929
+ x3 = ((size_t)datasize) <= 640 ? (double *)alloca((size_t)datasize) : NULL;
2930
+ if (_cffi_convert_array_argument(_cffi_type(7), arg3, (char **)&x3,
2931
+ datasize, &large_args_free) < 0)
2932
+ return NULL;
2933
+ }
2934
+
2935
+ datasize = _cffi_prepare_pointer_call_argument(
2936
+ _cffi_type(7), arg4, (char **)&x4);
2937
+ if (datasize != 0) {
2938
+ x4 = ((size_t)datasize) <= 640 ? (double *)alloca((size_t)datasize) : NULL;
2939
+ if (_cffi_convert_array_argument(_cffi_type(7), arg4, (char **)&x4,
2940
+ datasize, &large_args_free) < 0)
2941
+ return NULL;
2942
+ }
2943
+
2944
+ x5 = (double)_cffi_to_c_double(arg5);
2945
+ if (x5 == (double)-1 && PyErr_Occurred())
2946
+ return NULL;
2947
+
2948
+ Py_BEGIN_ALLOW_THREADS
2949
+ _cffi_restore_errno();
2950
+ { sp_jac_trap_xy_eval(x0, x1, x2, x3, x4, x5); }
2951
+ _cffi_save_errno();
2952
+ Py_END_ALLOW_THREADS
2953
+
2954
+ (void)self; /* unused */
2955
+ if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
2956
+ Py_INCREF(Py_None);
2957
+ return Py_None;
2958
+ }
2959
+ #else
2960
+ # define _cffi_f_sp_jac_trap_xy_eval _cffi_d_sp_jac_trap_xy_eval
2961
+ #endif
2962
+
2963
+ static const struct _cffi_global_s _cffi_globals[] = {
2964
+ { "PWM", (void *)_cffi_f_PWM, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 0), (void *)_cffi_d_PWM },
2965
+ { "de_jac_ini_num_eval", (void *)_cffi_f_de_jac_ini_num_eval, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 6), (void *)_cffi_d_de_jac_ini_num_eval },
2966
+ { "de_jac_ini_up_eval", (void *)_cffi_f_de_jac_ini_up_eval, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 6), (void *)_cffi_d_de_jac_ini_up_eval },
2967
+ { "de_jac_ini_xy_eval", (void *)_cffi_f_de_jac_ini_xy_eval, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 6), (void *)_cffi_d_de_jac_ini_xy_eval },
2968
+ { "de_jac_run_num_eval", (void *)_cffi_f_de_jac_run_num_eval, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 6), (void *)_cffi_d_de_jac_run_num_eval },
2969
+ { "de_jac_run_up_eval", (void *)_cffi_f_de_jac_run_up_eval, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 6), (void *)_cffi_d_de_jac_run_up_eval },
2970
+ { "de_jac_run_xy_eval", (void *)_cffi_f_de_jac_run_xy_eval, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 6), (void *)_cffi_d_de_jac_run_xy_eval },
2971
+ { "de_jac_trap_num_eval", (void *)_cffi_f_de_jac_trap_num_eval, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 6), (void *)_cffi_d_de_jac_trap_num_eval },
2972
+ { "de_jac_trap_up_eval", (void *)_cffi_f_de_jac_trap_up_eval, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 6), (void *)_cffi_d_de_jac_trap_up_eval },
2973
+ { "de_jac_trap_xy_eval", (void *)_cffi_f_de_jac_trap_xy_eval, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 6), (void *)_cffi_d_de_jac_trap_xy_eval },
2974
+ { "f_ini_eval", (void *)_cffi_f_f_ini_eval, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 6), (void *)_cffi_d_f_ini_eval },
2975
+ { "f_run_eval", (void *)_cffi_f_f_run_eval, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 6), (void *)_cffi_d_f_run_eval },
2976
+ { "g_ini_eval", (void *)_cffi_f_g_ini_eval, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 6), (void *)_cffi_d_g_ini_eval },
2977
+ { "g_run_eval", (void *)_cffi_f_g_run_eval, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 6), (void *)_cffi_d_g_run_eval },
2978
+ { "h_eval", (void *)_cffi_f_h_eval, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 6), (void *)_cffi_d_h_eval },
2979
+ { "sp_jac_ini_num_eval", (void *)_cffi_f_sp_jac_ini_num_eval, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 6), (void *)_cffi_d_sp_jac_ini_num_eval },
2980
+ { "sp_jac_ini_up_eval", (void *)_cffi_f_sp_jac_ini_up_eval, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 6), (void *)_cffi_d_sp_jac_ini_up_eval },
2981
+ { "sp_jac_ini_xy_eval", (void *)_cffi_f_sp_jac_ini_xy_eval, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 6), (void *)_cffi_d_sp_jac_ini_xy_eval },
2982
+ { "sp_jac_run_num_eval", (void *)_cffi_f_sp_jac_run_num_eval, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 6), (void *)_cffi_d_sp_jac_run_num_eval },
2983
+ { "sp_jac_run_up_eval", (void *)_cffi_f_sp_jac_run_up_eval, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 6), (void *)_cffi_d_sp_jac_run_up_eval },
2984
+ { "sp_jac_run_xy_eval", (void *)_cffi_f_sp_jac_run_xy_eval, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 6), (void *)_cffi_d_sp_jac_run_xy_eval },
2985
+ { "sp_jac_trap_num_eval", (void *)_cffi_f_sp_jac_trap_num_eval, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 6), (void *)_cffi_d_sp_jac_trap_num_eval },
2986
+ { "sp_jac_trap_up_eval", (void *)_cffi_f_sp_jac_trap_up_eval, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 6), (void *)_cffi_d_sp_jac_trap_up_eval },
2987
+ { "sp_jac_trap_xy_eval", (void *)_cffi_f_sp_jac_trap_xy_eval, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 6), (void *)_cffi_d_sp_jac_trap_xy_eval },
2988
+ };
2989
+
2990
+ static const struct _cffi_type_context_s _cffi_type_context = {
2991
+ _cffi_types,
2992
+ _cffi_globals,
2993
+ NULL, /* no fields */
2994
+ NULL, /* no struct_unions */
2995
+ NULL, /* no enums */
2996
+ NULL, /* no typenames */
2997
+ 24, /* num_globals */
2998
+ 0, /* num_struct_unions */
2999
+ 0, /* num_enums */
3000
+ 0, /* num_typenames */
3001
+ NULL, /* no includes */
3002
+ 15, /* num_types */
3003
+ 0, /* flags */
3004
+ };
3005
+
3006
+ #ifdef __GNUC__
3007
+ # pragma GCC visibility push(default) /* for -fvisibility= */
3008
+ #endif
3009
+
3010
+ #ifdef PYPY_VERSION
3011
+ PyMODINIT_FUNC
3012
+ _cffi_pypyinit_pendulum_cffi(const void *p[])
3013
+ {
3014
+ p[0] = (const void *)0x2601;
3015
+ p[1] = &_cffi_type_context;
3016
+ #if PY_MAJOR_VERSION >= 3
3017
+ return NULL;
3018
+ #endif
3019
+ }
3020
+ # ifdef _MSC_VER
3021
+ PyMODINIT_FUNC
3022
+ # if PY_MAJOR_VERSION >= 3
3023
+ PyInit_pendulum_cffi(void) { return NULL; }
3024
+ # else
3025
+ initpendulum_cffi(void) { }
3026
+ # endif
3027
+ # endif
3028
+ #elif PY_MAJOR_VERSION >= 3
3029
+ PyMODINIT_FUNC
3030
+ PyInit_pendulum_cffi(void)
3031
+ {
3032
+ return _cffi_init("pendulum_cffi", 0x2601, &_cffi_type_context);
3033
+ }
3034
+ #else
3035
+ PyMODINIT_FUNC
3036
+ initpendulum_cffi(void)
3037
+ {
3038
+ _cffi_init("pendulum_cffi", 0x2601, &_cffi_type_context);
3039
+ }
3040
+ #endif
3041
+
3042
+ #ifdef __GNUC__
3043
+ # pragma GCC visibility pop
3044
+ #endif