0 1 0
default
Jean-Francois Pieronne - 3 years ago 2016-12-17 10:49:42
jf.pieronne@laposte.net
_vmsptd.c generated by Cython 0.25.1
1 file changed with 549 insertions and 40 deletions:
↑ Collapse Diff ↑
1
 
/* Generated by Cython 0.24 */
1
 
/* Generated by Cython 0.25.1 */
2 2
 

	
3 3
 
#define PY_SSIZE_T_CLEAN
4 4
 
#include "Python.h"
...
 
@@ -7,7 +7,7 @@
7 7
 
#elif PY_VERSION_HEX < 0x02060000 || (0x03000000 <= PY_VERSION_HEX && PY_VERSION_HEX < 0x03020000)
8 8
 
    #error Cython requires Python 2.6+ or Python 3.2+.
9 9
 
#else
10
 
#define CYTHON_ABI "0_24"
10
 
#define CYTHON_ABI "0_25_1"
11 11
 
#include <stddef.h>
12 12
 
#ifndef offsetof
13 13
 
  #define offsetof(type, member) ( (size_t) & ((type*)0) -> member )
...
 
@@ -29,6 +29,11 @@
29 29
 
#ifndef DL_EXPORT
30 30
 
  #define DL_EXPORT(t) t
31 31
 
#endif
32
 
#ifndef HAVE_LONG_LONG
33
 
  #if PY_VERSION_HEX >= 0x03030000 || (PY_MAJOR_VERSION == 2 && PY_VERSION_HEX >= 0x02070000)
34
 
    #define HAVE_LONG_LONG
35
 
  #endif
36
 
#endif
32 37
 
#ifndef PY_LONG_LONG
33 38
 
  #define PY_LONG_LONG LONG_LONG
34 39
 
#endif
...
 
@@ -37,13 +42,110 @@
37 42
 
#endif
38 43
 
#ifdef PYPY_VERSION
39 44
 
  #define CYTHON_COMPILING_IN_PYPY 1
45
 
  #define CYTHON_COMPILING_IN_PYSTON 0
40 46
 
  #define CYTHON_COMPILING_IN_CPYTHON 0
47
 
  #undef CYTHON_USE_TYPE_SLOTS
48
 
  #define CYTHON_USE_TYPE_SLOTS 0
49
 
  #undef CYTHON_USE_ASYNC_SLOTS
50
 
  #define CYTHON_USE_ASYNC_SLOTS 0
51
 
  #undef CYTHON_USE_PYLIST_INTERNALS
52
 
  #define CYTHON_USE_PYLIST_INTERNALS 0
53
 
  #undef CYTHON_USE_UNICODE_INTERNALS
54
 
  #define CYTHON_USE_UNICODE_INTERNALS 0
55
 
  #undef CYTHON_USE_UNICODE_WRITER
56
 
  #define CYTHON_USE_UNICODE_WRITER 0
57
 
  #undef CYTHON_USE_PYLONG_INTERNALS
58
 
  #define CYTHON_USE_PYLONG_INTERNALS 0
59
 
  #undef CYTHON_AVOID_BORROWED_REFS
60
 
  #define CYTHON_AVOID_BORROWED_REFS 1
61
 
  #undef CYTHON_ASSUME_SAFE_MACROS
62
 
  #define CYTHON_ASSUME_SAFE_MACROS 0
63
 
  #undef CYTHON_UNPACK_METHODS
64
 
  #define CYTHON_UNPACK_METHODS 0
65
 
  #undef CYTHON_FAST_THREAD_STATE
66
 
  #define CYTHON_FAST_THREAD_STATE 0
67
 
  #undef CYTHON_FAST_PYCALL
68
 
  #define CYTHON_FAST_PYCALL 0
69
 
#elif defined(PYSTON_VERSION)
70
 
  #define CYTHON_COMPILING_IN_PYPY 0
71
 
  #define CYTHON_COMPILING_IN_PYSTON 1
72
 
  #define CYTHON_COMPILING_IN_CPYTHON 0
73
 
  #ifndef CYTHON_USE_TYPE_SLOTS
74
 
    #define CYTHON_USE_TYPE_SLOTS 1
75
 
  #endif
76
 
  #undef CYTHON_USE_ASYNC_SLOTS
77
 
  #define CYTHON_USE_ASYNC_SLOTS 0
78
 
  #undef CYTHON_USE_PYLIST_INTERNALS
79
 
  #define CYTHON_USE_PYLIST_INTERNALS 0
80
 
  #ifndef CYTHON_USE_UNICODE_INTERNALS
81
 
    #define CYTHON_USE_UNICODE_INTERNALS 1
82
 
  #endif
83
 
  #undef CYTHON_USE_UNICODE_WRITER
84
 
  #define CYTHON_USE_UNICODE_WRITER 0
85
 
  #undef CYTHON_USE_PYLONG_INTERNALS
86
 
  #define CYTHON_USE_PYLONG_INTERNALS 0
87
 
  #ifndef CYTHON_AVOID_BORROWED_REFS
88
 
    #define CYTHON_AVOID_BORROWED_REFS 0
89
 
  #endif
90
 
  #ifndef CYTHON_ASSUME_SAFE_MACROS
91
 
    #define CYTHON_ASSUME_SAFE_MACROS 1
92
 
  #endif
93
 
  #ifndef CYTHON_UNPACK_METHODS
94
 
    #define CYTHON_UNPACK_METHODS 1
95
 
  #endif
96
 
  #undef CYTHON_FAST_THREAD_STATE
97
 
  #define CYTHON_FAST_THREAD_STATE 0
98
 
  #undef CYTHON_FAST_PYCALL
99
 
  #define CYTHON_FAST_PYCALL 0
41 100
 
#else
42 101
 
  #define CYTHON_COMPILING_IN_PYPY 0
102
 
  #define CYTHON_COMPILING_IN_PYSTON 0
43 103
 
  #define CYTHON_COMPILING_IN_CPYTHON 1
44
 
#endif
45
 
#if !defined(CYTHON_USE_PYLONG_INTERNALS) && CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x02070000
46
 
  #define CYTHON_USE_PYLONG_INTERNALS 1
104
 
  #ifndef CYTHON_USE_TYPE_SLOTS
105
 
    #define CYTHON_USE_TYPE_SLOTS 1
106
 
  #endif
107
 
  #if PY_MAJOR_VERSION < 3
108
 
    #undef CYTHON_USE_ASYNC_SLOTS
109
 
    #define CYTHON_USE_ASYNC_SLOTS 0
110
 
  #elif !defined(CYTHON_USE_ASYNC_SLOTS)
111
 
    #define CYTHON_USE_ASYNC_SLOTS 1
112
 
  #endif
113
 
  #if PY_VERSION_HEX < 0x02070000
114
 
    #undef CYTHON_USE_PYLONG_INTERNALS
115
 
    #define CYTHON_USE_PYLONG_INTERNALS 0
116
 
  #elif !defined(CYTHON_USE_PYLONG_INTERNALS)
117
 
    #define CYTHON_USE_PYLONG_INTERNALS 1
118
 
  #endif
119
 
  #ifndef CYTHON_USE_PYLIST_INTERNALS
120
 
    #define CYTHON_USE_PYLIST_INTERNALS 1
121
 
  #endif
122
 
  #ifndef CYTHON_USE_UNICODE_INTERNALS
123
 
    #define CYTHON_USE_UNICODE_INTERNALS 1
124
 
  #endif
125
 
  #if PY_VERSION_HEX < 0x030300F0
126
 
    #undef CYTHON_USE_UNICODE_WRITER
127
 
    #define CYTHON_USE_UNICODE_WRITER 0
128
 
  #elif !defined(CYTHON_USE_UNICODE_WRITER)
129
 
    #define CYTHON_USE_UNICODE_WRITER 1
130
 
  #endif
131
 
  #ifndef CYTHON_AVOID_BORROWED_REFS
132
 
    #define CYTHON_AVOID_BORROWED_REFS 0
133
 
  #endif
134
 
  #ifndef CYTHON_ASSUME_SAFE_MACROS
135
 
    #define CYTHON_ASSUME_SAFE_MACROS 1
136
 
  #endif
137
 
  #ifndef CYTHON_UNPACK_METHODS
138
 
    #define CYTHON_UNPACK_METHODS 1
139
 
  #endif
140
 
  #ifndef CYTHON_FAST_THREAD_STATE
141
 
    #define CYTHON_FAST_THREAD_STATE 1
142
 
  #endif
143
 
  #ifndef CYTHON_FAST_PYCALL
144
 
    #define CYTHON_FAST_PYCALL 1
145
 
  #endif
146
 
#endif
147
 
#if !defined(CYTHON_FAST_PYCCALL)
148
 
#define CYTHON_FAST_PYCCALL  (CYTHON_FAST_PYCALL && PY_VERSION_HEX >= 0x030600B1)
47 149
 
#endif
48 150
 
#if CYTHON_USE_PYLONG_INTERNALS
49 151
 
  #include "longintrepr.h"
...
 
@@ -79,24 +181,44 @@
79 181
 
#ifndef Py_TPFLAGS_HAVE_FINALIZE
80 182
 
  #define Py_TPFLAGS_HAVE_FINALIZE 0
81 183
 
#endif
184
 
#ifndef METH_FASTCALL
185
 
  #define METH_FASTCALL 0x80
186
 
  typedef PyObject *(*__Pyx_PyCFunctionFast) (PyObject *self, PyObject **args,
187
 
                                              Py_ssize_t nargs, PyObject *kwnames);
188
 
#else
189
 
  #define __Pyx_PyCFunctionFast _PyCFunctionFast
190
 
#endif
191
 
#if CYTHON_FAST_PYCCALL
192
 
#define __Pyx_PyFastCFunction_Check(func)\
193
 
    ((PyCFunction_Check(func) && METH_FASTCALL == PyCFunction_GET_FLAGS(func) & ~(METH_CLASS | METH_STATIC | METH_COEXIST)))
194
 
#else
195
 
#define __Pyx_PyFastCFunction_Check(func) 0
196
 
#endif
82 197
 
#if PY_VERSION_HEX > 0x03030000 && defined(PyUnicode_KIND)
83 198
 
  #define CYTHON_PEP393_ENABLED 1
84 199
 
  #define __Pyx_PyUnicode_READY(op)       (likely(PyUnicode_IS_READY(op)) ?\
85 200
 
                                              0 : _PyUnicode_Ready((PyObject *)(op)))
86 201
 
  #define __Pyx_PyUnicode_GET_LENGTH(u)   PyUnicode_GET_LENGTH(u)
87 202
 
  #define __Pyx_PyUnicode_READ_CHAR(u, i) PyUnicode_READ_CHAR(u, i)
203
 
  #define __Pyx_PyUnicode_MAX_CHAR_VALUE(u)   PyUnicode_MAX_CHAR_VALUE(u)
88 204
 
  #define __Pyx_PyUnicode_KIND(u)         PyUnicode_KIND(u)
89 205
 
  #define __Pyx_PyUnicode_DATA(u)         PyUnicode_DATA(u)
90 206
 
  #define __Pyx_PyUnicode_READ(k, d, i)   PyUnicode_READ(k, d, i)
207
 
  #define __Pyx_PyUnicode_WRITE(k, d, i, ch)  PyUnicode_WRITE(k, d, i, ch)
91 208
 
  #define __Pyx_PyUnicode_IS_TRUE(u)      (0 != (likely(PyUnicode_IS_READY(u)) ? PyUnicode_GET_LENGTH(u) : PyUnicode_GET_SIZE(u)))
92 209
 
#else
93 210
 
  #define CYTHON_PEP393_ENABLED 0
211
 
  #define PyUnicode_1BYTE_KIND  1
212
 
  #define PyUnicode_2BYTE_KIND  2
213
 
  #define PyUnicode_4BYTE_KIND  4
94 214
 
  #define __Pyx_PyUnicode_READY(op)       (0)
95 215
 
  #define __Pyx_PyUnicode_GET_LENGTH(u)   PyUnicode_GET_SIZE(u)
96 216
 
  #define __Pyx_PyUnicode_READ_CHAR(u, i) ((Py_UCS4)(PyUnicode_AS_UNICODE(u)[i]))
217
 
  #define __Pyx_PyUnicode_MAX_CHAR_VALUE(u)   ((sizeof(Py_UNICODE) == 2) ? 65535 : 1114111)
97 218
 
  #define __Pyx_PyUnicode_KIND(u)         (sizeof(Py_UNICODE))
98 219
 
  #define __Pyx_PyUnicode_DATA(u)         ((void*)PyUnicode_AS_UNICODE(u))
99 220
 
  #define __Pyx_PyUnicode_READ(k, d, i)   ((void)(k), (Py_UCS4)(((Py_UNICODE*)d)[i]))
221
 
  #define __Pyx_PyUnicode_WRITE(k, d, i, ch)  (((void)(k)), ((Py_UNICODE*)d)[i] = ch)
100 222
 
  #define __Pyx_PyUnicode_IS_TRUE(u)      (0 != PyUnicode_GET_SIZE(u))
101 223
 
#endif
102 224
 
#if CYTHON_COMPILING_IN_PYPY
...
 
@@ -110,6 +232,9 @@
110 232
 
#if CYTHON_COMPILING_IN_PYPY && !defined(PyUnicode_Contains)
111 233
 
  #define PyUnicode_Contains(u, s)  PySequence_Contains(u, s)
112 234
 
#endif
235
 
#if CYTHON_COMPILING_IN_PYPY && !defined(PyByteArray_Check)
236
 
  #define PyByteArray_Check(obj)  PyObject_TypeCheck(obj, &PyByteArray_Type)
237
 
#endif
113 238
 
#if CYTHON_COMPILING_IN_PYPY && !defined(PyObject_Format)
114 239
 
  #define PyObject_Format(obj, fmt)  PyObject_CallMethod(obj, "__format__", "O", fmt)
115 240
 
#endif
...
 
@@ -118,6 +243,13 @@
118 243
 
  #define PyObject_Free(p)     PyMem_Free(p)
119 244
 
  #define PyObject_Realloc(p)  PyMem_Realloc(p)
120 245
 
#endif
246
 
#if CYTHON_COMPILING_IN_PYSTON
247
 
  #define __Pyx_PyCode_HasFreeVars(co)  PyCode_HasFreeVars(co)
248
 
  #define __Pyx_PyFrame_SetLineNumber(frame, lineno) PyFrame_SetLineNumber(frame, lineno)
249
 
#else
250
 
  #define __Pyx_PyCode_HasFreeVars(co)  (PyCode_GetNumFree(co) > 0)
251
 
  #define __Pyx_PyFrame_SetLineNumber(frame, lineno)  (frame)->f_lineno = (lineno)
252
 
#endif
121 253
 
#define __Pyx_PyString_FormatSafe(a, b)   ((unlikely((a) == Py_None)) ? PyNumber_Remainder(a, b) : __Pyx_PyString_Format(a, b))
122 254
 
#define __Pyx_PyUnicode_FormatSafe(a, b)  ((unlikely((a) == Py_None)) ? PyNumber_Remainder(a, b) : PyUnicode_Format(a, b))
123 255
 
#if PY_MAJOR_VERSION >= 3
...
 
@@ -146,6 +278,7 @@
146 278
 
  #define PySet_CheckExact(obj)        (Py_TYPE(obj) == &PySet_Type)
147 279
 
#endif
148 280
 
#define __Pyx_TypeCheck(obj, type) PyObject_TypeCheck(obj, (PyTypeObject *)type)
281
 
#define __Pyx_PyException_Check(obj) __Pyx_TypeCheck(obj, PyExc_Exception)
149 282
 
#if PY_MAJOR_VERSION >= 3
150 283
 
  #define PyIntObject                  PyLongObject
151 284
 
  #define PyInt_Type                   PyLong_Type
...
 
@@ -184,18 +317,20 @@
184 317
 
#else
185 318
 
  #define __Pyx_PyMethod_New(func, self, klass) PyMethod_New(func, self, klass)
186 319
 
#endif
187
 
#if PY_VERSION_HEX >= 0x030500B1
188
 
#define __Pyx_PyAsyncMethodsStruct PyAsyncMethods
189
 
#define __Pyx_PyType_AsAsync(obj) (Py_TYPE(obj)->tp_as_async)
190
 
#elif CYTHON_COMPILING_IN_CPYTHON && PY_MAJOR_VERSION >= 3
191
 
typedef struct {
192
 
    unaryfunc am_await;
193
 
    unaryfunc am_aiter;
194
 
    unaryfunc am_anext;
195
 
} __Pyx_PyAsyncMethodsStruct;
196
 
#define __Pyx_PyType_AsAsync(obj) ((__Pyx_PyAsyncMethodsStruct*) (Py_TYPE(obj)->tp_reserved))
320
 
#if CYTHON_USE_ASYNC_SLOTS
321
 
  #if PY_VERSION_HEX >= 0x030500B1
322
 
    #define __Pyx_PyAsyncMethodsStruct PyAsyncMethods
323
 
    #define __Pyx_PyType_AsAsync(obj) (Py_TYPE(obj)->tp_as_async)
324
 
  #else
325
 
    typedef struct {
326
 
        unaryfunc am_await;
327
 
        unaryfunc am_aiter;
328
 
        unaryfunc am_anext;
329
 
    } __Pyx_PyAsyncMethodsStruct;
330
 
    #define __Pyx_PyType_AsAsync(obj) ((__Pyx_PyAsyncMethodsStruct*) (Py_TYPE(obj)->tp_reserved))
331
 
  #endif
197 332
 
#else
198
 
#define __Pyx_PyType_AsAsync(obj) NULL
333
 
  #define __Pyx_PyType_AsAsync(obj) NULL
199 334
 
#endif
200 335
 
#ifndef CYTHON_RESTRICT
201 336
 
  #if defined(__GNUC__)
...
 
@@ -235,6 +370,11 @@ static CYTHON_INLINE float __PYX_NAN() {
235 370
 
  return value;
236 371
 
}
237 372
 
#endif
373
 
#if defined(__CYGWIN__) && defined(_LDBL_EQ_DBL)
374
 
#define __Pyx_truncl trunc
375
 
#else
376
 
#define __Pyx_truncl truncl
377
 
#endif
238 378
 

	
239 379
 

	
240 380
 
#define __PYX_ERR(f_index, lineno, Ln_error) \
...
 
@@ -263,9 +403,9 @@ static CYTHON_INLINE float __PYX_NAN() {
263 403
 
#include "iledef.h"
264 404
 
#include "lkidef.h"
265 405
 
#include "ovptd.h"
266
 
#include "string.h"
267
 
#include "stdio.h"
268
 
#include "stdlib.h"
406
 
#include <string.h>
407
 
#include <stdio.h>
408
 
#include <stdlib.h>
269 409
 
#include "pythread.h"
270 410
 
#ifdef _OPENMP
271 411
 
#include <omp.h>
...
 
@@ -372,7 +512,7 @@ static CYTHON_INLINE int __Pyx_PyObject_
372 512
 
static CYTHON_INLINE PyObject* __Pyx_PyNumber_IntOrLong(PyObject* x);
373 513
 
static CYTHON_INLINE Py_ssize_t __Pyx_PyIndex_AsSsize_t(PyObject*);
374 514
 
static CYTHON_INLINE PyObject * __Pyx_PyInt_FromSize_t(size_t);
375
 
#if CYTHON_COMPILING_IN_CPYTHON
515
 
#if CYTHON_ASSUME_SAFE_MACROS
376 516
 
#define __pyx_PyFloat_AsDouble(x) (PyFloat_CheckExact(x) ? PyFloat_AS_DOUBLE(x) : PyFloat_AsDouble(x))
377 517
 
#else
378 518
 
#define __pyx_PyFloat_AsDouble(x) PyFloat_AsDouble(x)
...
 
@@ -654,7 +794,7 @@ struct __pyx_obj_3vms_3ptd_7_vmsptd_Devi
654 794
 
#define __Pyx_XCLEAR(r)   do { if((r) != NULL) {PyObject* tmp = ((PyObject*)(r)); r = NULL; __Pyx_DECREF(tmp);}} while(0)
655 795
 

	
656 796
 
/* PyObjectGetAttrStr.proto */
657
 
#if CYTHON_COMPILING_IN_CPYTHON
797
 
#if CYTHON_USE_TYPE_SLOTS
658 798
 
static CYTHON_INLINE PyObject* __Pyx_PyObject_GetAttrStr(PyObject* obj, PyObject* attr_name) {
659 799
 
    PyTypeObject* tp = Py_TYPE(obj);
660 800
 
    if (likely(tp->tp_getattro))
...
 
@@ -688,7 +828,7 @@ static int __Pyx_ParseOptionalKeywords(P
688 828
 
    const char* function_name);
689 829
 

	
690 830
 
/* PyObjectSetAttrStr.proto */
691
 
#if CYTHON_COMPILING_IN_CPYTHON
831
 
#if CYTHON_USE_TYPE_SLOTS
692 832
 
#define __Pyx_PyObject_DelAttrStr(o,n) __Pyx_PyObject_SetAttrStr(o,n,NULL)
693 833
 
static CYTHON_INLINE int __Pyx_PyObject_SetAttrStr(PyObject* obj, PyObject* attr_name, PyObject* value) {
694 834
 
    PyTypeObject* tp = Py_TYPE(obj);
...
 
@@ -713,7 +853,7 @@ static CYTHON_INLINE PyObject* __Pyx_PyO
713 853
 
#endif
714 854
 

	
715 855
 
/* PyThreadStateGet.proto */
716
 
#if CYTHON_COMPILING_IN_CPYTHON
856
 
#if CYTHON_FAST_THREAD_STATE
717 857
 
#define __Pyx_PyThreadState_declare  PyThreadState *__pyx_tstate;
718 858
 
#define __Pyx_PyThreadState_assign  __pyx_tstate = PyThreadState_GET();
719 859
 
#else
...
 
@@ -722,7 +862,7 @@ static CYTHON_INLINE PyObject* __Pyx_PyO
722 862
 
#endif
723 863
 

	
724 864
 
/* PyErrFetchRestore.proto */
725
 
#if CYTHON_COMPILING_IN_CPYTHON
865
 
#if CYTHON_FAST_THREAD_STATE
726 866
 
#define __Pyx_ErrRestoreWithState(type, value, tb)  __Pyx_ErrRestoreInState(PyThreadState_GET(), type, value, tb)
727 867
 
#define __Pyx_ErrFetchWithState(type, value, tb)    __Pyx_ErrFetchInState(PyThreadState_GET(), type, value, tb)
728 868
 
#define __Pyx_ErrRestore(type, value, tb)  __Pyx_ErrRestoreInState(__pyx_tstate, type, value, tb)
...
 
@@ -739,6 +879,14 @@ static CYTHON_INLINE void __Pyx_ErrFetch
739 879
 
/* RaiseException.proto */
740 880
 
static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb, PyObject *cause);
741 881
 

	
882
 
/* PyIntBinop.proto */
883
 
#if !CYTHON_COMPILING_IN_PYPY
884
 
static PyObject* __Pyx_PyInt_LshiftObjC(PyObject *op1, PyObject *op2, long intval, int inplace);
885
 
#else
886
 
#define __Pyx_PyInt_LshiftObjC(op1, op2, intval, inplace)\
887
 
    (inplace ? PyNumber_InPlaceLshift(op1, op2) : PyNumber_Lshift(op1, op2))
888
 
#endif
889
 

	
742 890
 
/* WriteUnraisableException.proto */
743 891
 
static void __Pyx_WriteUnraisable(const char *name, int clineno,
744 892
 
                                  int lineno, const char *filename,
...
 
@@ -757,6 +905,24 @@ static CYTHON_INLINE long __Pyx_mod_long
757 905
 
/* GetModuleGlobalName.proto */
758 906
 
static CYTHON_INLINE PyObject *__Pyx_GetModuleGlobalName(PyObject *name);
759 907
 

	
908
 
/* PyCFunctionFastCall.proto */
909
 
#if CYTHON_FAST_PYCCALL
910
 
static CYTHON_INLINE PyObject *__Pyx_PyCFunction_FastCall(PyObject *func, PyObject **args, Py_ssize_t nargs);
911
 
#else
912
 
#define __Pyx_PyCFunction_FastCall(func, args, nargs)  (assert(0), NULL)
913
 
#endif
914
 

	
915
 
/* PyFunctionFastCall.proto */
916
 
#if CYTHON_FAST_PYCALL
917
 
#define __Pyx_PyFunction_FastCall(func, args, nargs)\
918
 
    __Pyx_PyFunction_FastCallDict((func), (args), (nargs), NULL)
919
 
#if 1 || PY_VERSION_HEX < 0x030600B1
920
 
static PyObject *__Pyx_PyFunction_FastCallDict(PyObject *func, PyObject **args, int nargs, PyObject *kwargs);
921
 
#else
922
 
#define __Pyx_PyFunction_FastCallDict(func, args, nargs, kwargs) _PyFunction_FastCallDict(func, args, nargs, kwargs)
923
 
#endif
924
 
#endif
925
 

	
760 926
 
/* PyObjectCallMethO.proto */
761 927
 
#if CYTHON_COMPILING_IN_CPYTHON
762 928
 
static CYTHON_INLINE PyObject* __Pyx_PyObject_CallMethO(PyObject *func, PyObject *arg);
...
 
@@ -3035,7 +3201,7 @@ static CYTHON_INLINE unsigned PY_LONG_LO
3035 3201
 
 *     lid += iid[0]
3036 3202
 
 *     return lid
3037 3203
 
 */
3038
 
  __pyx_t_1 = PyNumber_Lshift(__pyx_v_lid, __pyx_int_32); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 208, __pyx_L1_error)
3204
 
  __pyx_t_1 = __Pyx_PyInt_LshiftObjC(__pyx_v_lid, __pyx_int_32, 32, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 208, __pyx_L1_error)
3039 3205
 
  __Pyx_GOTREF(__pyx_t_1);
3040 3206
 
  __Pyx_DECREF_SET(__pyx_v_lid, __pyx_t_1);
3041 3207
 
  __pyx_t_1 = 0;
...
 
@@ -5190,7 +5356,7 @@ static PyObject *__pyx_pf_3vms_3ptd_7_vm
5190 5356
 
    __pyx_t_5 = __Pyx_GetModuleGlobalName(__pyx_n_s_cancel); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 389, __pyx_L1_error)
5191 5357
 
    __Pyx_GOTREF(__pyx_t_5);
5192 5358
 
    __pyx_t_6 = NULL;
5193
 
    if (CYTHON_COMPILING_IN_CPYTHON && unlikely(PyMethod_Check(__pyx_t_5))) {
5359
 
    if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_5))) {
5194 5360
 
      __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
5195 5361
 
      if (likely(__pyx_t_6)) {
5196 5362
 
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
...
 
@@ -5203,15 +5369,33 @@ static PyObject *__pyx_pf_3vms_3ptd_7_vm
5203 5369
 
      __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_5, ((PyObject *)__pyx_v_handler)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 389, __pyx_L1_error)
5204 5370
 
      __Pyx_GOTREF(__pyx_t_1);
5205 5371
 
    } else {
5206
 
      __pyx_t_7 = PyTuple_New(1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 389, __pyx_L1_error)
5207
 
      __Pyx_GOTREF(__pyx_t_7);
5208
 
      __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_6); __pyx_t_6 = NULL;
5209
 
      __Pyx_INCREF(((PyObject *)__pyx_v_handler));
5210
 
      __Pyx_GIVEREF(((PyObject *)__pyx_v_handler));
5211
 
      PyTuple_SET_ITEM(__pyx_t_7, 0+1, ((PyObject *)__pyx_v_handler));
5212
 
      __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_7, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 389, __pyx_L1_error)
5213
 
      __Pyx_GOTREF(__pyx_t_1);
5214
 
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
5372
 
      #if CYTHON_FAST_PYCALL
5373
 
      if (PyFunction_Check(__pyx_t_5)) {
5374
 
        PyObject *__pyx_temp[2] = {__pyx_t_6, ((PyObject *)__pyx_v_handler)};
5375
 
        __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_5, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 389, __pyx_L1_error)
5376
 
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
5377
 
        __Pyx_GOTREF(__pyx_t_1);
5378
 
      } else
5379
 
      #endif
5380
 
      #if CYTHON_FAST_PYCCALL
5381
 
      if (__Pyx_PyFastCFunction_Check(__pyx_t_5)) {
5382
 
        PyObject *__pyx_temp[2] = {__pyx_t_6, ((PyObject *)__pyx_v_handler)};
5383
 
        __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_5, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 389, __pyx_L1_error)
5384
 
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
5385
 
        __Pyx_GOTREF(__pyx_t_1);
5386
 
      } else
5387
 
      #endif
5388
 
      {
5389
 
        __pyx_t_7 = PyTuple_New(1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 389, __pyx_L1_error)
5390
 
        __Pyx_GOTREF(__pyx_t_7);
5391
 
        __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_6); __pyx_t_6 = NULL;
5392
 
        __Pyx_INCREF(((PyObject *)__pyx_v_handler));
5393
 
        __Pyx_GIVEREF(((PyObject *)__pyx_v_handler));
5394
 
        PyTuple_SET_ITEM(__pyx_t_7, 0+1, ((PyObject *)__pyx_v_handler));
5395
 
        __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_7, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 389, __pyx_L1_error)
5396
 
        __Pyx_GOTREF(__pyx_t_1);
5397
 
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
5398
 
      }
5215 5399
 
    }
5216 5400
 
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
5217 5401
 
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
...
 
@@ -6247,7 +6431,7 @@ static CYTHON_INLINE PyObject* __Pyx_PyO
6247 6431
 
#endif
6248 6432
 

	
6249 6433
 
/* PyErrFetchRestore */
6250
 
#if CYTHON_COMPILING_IN_CPYTHON
6434
 
#if CYTHON_FAST_THREAD_STATE
6251 6435
 
static CYTHON_INLINE void __Pyx_ErrRestoreInState(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb) {
6252 6436
 
    PyObject *tmp_type, *tmp_value, *tmp_tb;
6253 6437
 
    tmp_type = tstate->curexc_type;
...
 
@@ -6433,6 +6617,120 @@ bad:
6433 6617
 
}
6434 6618
 
#endif
6435 6619
 

	
6620
 
/* PyIntBinop */
6621
 
  #if !CYTHON_COMPILING_IN_PYPY
6622
 
static PyObject* __Pyx_PyInt_LshiftObjC(PyObject *op1, PyObject *op2, CYTHON_UNUSED long intval, CYTHON_UNUSED int inplace) {
6623
 
    #if PY_MAJOR_VERSION < 3
6624
 
    if (likely(PyInt_CheckExact(op1))) {
6625
 
        const long b = intval;
6626
 
        long a = PyInt_AS_LONG(op1);
6627
 
            if (likely(a == (a << b) >> b)) {
6628
 
                return PyInt_FromLong(a << b);
6629
 
            }
6630
 
    }
6631
 
    #endif
6632
 
    #if CYTHON_USE_PYLONG_INTERNALS
6633
 
    if (likely(PyLong_CheckExact(op1))) {
6634
 
        const long b = intval;
6635
 
        long a, x;
6636
 
#ifdef HAVE_LONG_LONG
6637
 
        const PY_LONG_LONG llb = intval;
6638
 
        PY_LONG_LONG lla, llx;
6639
 
#endif
6640
 
        const digit* digits = ((PyLongObject*)op1)->ob_digit;
6641
 
        const Py_ssize_t size = Py_SIZE(op1);
6642
 
        if (likely(__Pyx_sst_abs(size) <= 1)) {
6643
 
            a = likely(size) ? digits[0] : 0;
6644
 
            if (size == -1) a = -a;
6645
 
        } else {
6646
 
            switch (size) {
6647
 
                case -2:
6648
 
                    if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT) {
6649
 
                        a = -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]));
6650
 
                        break;
6651
 
#ifdef HAVE_LONG_LONG
6652
 
                    } else if (8 * sizeof(PY_LONG_LONG) - 1 > 2 * PyLong_SHIFT) {
6653
 
                        lla = -(PY_LONG_LONG) (((((unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0]));
6654
 
                        goto long_long;
6655
 
#endif
6656
 
                    }
6657
 
                case 2:
6658
 
                    if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT) {
6659
 
                        a = (long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]));
6660
 
                        break;
6661
 
#ifdef HAVE_LONG_LONG
6662
 
                    } else if (8 * sizeof(PY_LONG_LONG) - 1 > 2 * PyLong_SHIFT) {
6663
 
                        lla = (PY_LONG_LONG) (((((unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0]));
6664
 
                        goto long_long;
6665
 
#endif
6666
 
                    }
6667
 
                case -3:
6668
 
                    if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT) {
6669
 
                        a = -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]));
6670
 
                        break;
6671
 
#ifdef HAVE_LONG_LONG
6672
 
                    } else if (8 * sizeof(PY_LONG_LONG) - 1 > 3 * PyLong_SHIFT) {
6673
 
                        lla = -(PY_LONG_LONG) (((((((unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0]));
6674
 
                        goto long_long;
6675
 
#endif
6676
 
                    }
6677
 
                case 3:
6678
 
                    if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT) {
6679
 
                        a = (long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]));
6680
 
                        break;
6681
 
#ifdef HAVE_LONG_LONG
6682
 
                    } else if (8 * sizeof(PY_LONG_LONG) - 1 > 3 * PyLong_SHIFT) {
6683
 
                        lla = (PY_LONG_LONG) (((((((unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0]));
6684
 
                        goto long_long;
6685
 
#endif
6686
 
                    }
6687
 
                case -4:
6688
 
                    if (8 * sizeof(long) - 1 > 4 * PyLong_SHIFT) {
6689
 
                        a = -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]));
6690
 
                        break;
6691
 
#ifdef HAVE_LONG_LONG
6692
 
                    } else if (8 * sizeof(PY_LONG_LONG) - 1 > 4 * PyLong_SHIFT) {
6693
 
                        lla = -(PY_LONG_LONG) (((((((((unsigned PY_LONG_LONG)digits[3]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0]));
6694
 
                        goto long_long;
6695
 
#endif
6696
 
                    }
6697
 
                case 4:
6698
 
                    if (8 * sizeof(long) - 1 > 4 * PyLong_SHIFT) {
6699
 
                        a = (long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]));
6700
 
                        break;
6701
 
#ifdef HAVE_LONG_LONG
6702
 
                    } else if (8 * sizeof(PY_LONG_LONG) - 1 > 4 * PyLong_SHIFT) {
6703
 
                        lla = (PY_LONG_LONG) (((((((((unsigned PY_LONG_LONG)digits[3]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0]));
6704
 
                        goto long_long;
6705
 
#endif
6706
 
                    }
6707
 
                default: return PyLong_Type.tp_as_number->nb_lshift(op1, op2);
6708
 
            }
6709
 
        }
6710
 
                x = a << b;
6711
 
#ifdef HAVE_LONG_LONG
6712
 
                if (unlikely(a != x >> b)) {
6713
 
                    lla = a;
6714
 
                    goto long_long;
6715
 
                }
6716
 
#else
6717
 
                if (likely(a == x >> b))
6718
 
#endif
6719
 
            return PyLong_FromLong(x);
6720
 
#ifdef HAVE_LONG_LONG
6721
 
        long_long:
6722
 
                llx = lla << llb;
6723
 
                if (likely(lla == llx >> llb))
6724
 
            return PyLong_FromLongLong(llx);
6725
 
#endif
6726
 
        
6727
 
        
6728
 
    }
6729
 
    #endif
6730
 
    return (inplace ? PyNumber_InPlaceLshift : PyNumber_Lshift)(op1, op2);
6731
 
}
6732
 
#endif
6733
 

	
6436 6734
 
/* WriteUnraisableException */
6437 6735
 
  static void __Pyx_WriteUnraisable(const char *name, CYTHON_UNUSED int clineno,
6438 6736
 
                                  CYTHON_UNUSED int lineno, CYTHON_UNUSED const char *filename,
...
 
@@ -6520,7 +6818,7 @@ static CYTHON_INLINE int __Pyx_ArgTypeTe
6520 6818
 
/* GetModuleGlobalName */
6521 6819
 
  static CYTHON_INLINE PyObject *__Pyx_GetModuleGlobalName(PyObject *name) {
6522 6820
 
    PyObject *result;
6523
 
#if CYTHON_COMPILING_IN_CPYTHON
6821
 
#if !CYTHON_AVOID_BORROWED_REFS
6524 6822
 
    result = PyDict_GetItem(__pyx_d, name);
6525 6823
 
    if (likely(result)) {
6526 6824
 
        Py_INCREF(result);
...
 
@@ -6535,6 +6833,146 @@ static CYTHON_INLINE int __Pyx_ArgTypeTe
6535 6833
 
    return result;
6536 6834
 
}
6537 6835
 

	
6836
 
/* PyCFunctionFastCall */
6837
 
    #if CYTHON_FAST_PYCCALL
6838
 
static CYTHON_INLINE PyObject * __Pyx_PyCFunction_FastCall(PyObject *func_obj, PyObject **args, Py_ssize_t nargs) {
6839
 
    PyCFunctionObject *func = (PyCFunctionObject*)func_obj;
6840
 
    PyCFunction meth = PyCFunction_GET_FUNCTION(func);
6841
 
    PyObject *self = PyCFunction_GET_SELF(func);
6842
 
    PyObject *result;
6843
 
    int flags;
6844
 
    assert(PyCFunction_Check(func));
6845
 
    assert(METH_FASTCALL == PyCFunction_GET_FLAGS(func) & ~(METH_CLASS | METH_STATIC | METH_COEXIST));
6846
 
    assert(nargs >= 0);
6847
 
    assert(nargs == 0 || args != NULL);
6848
 
    /* _PyCFunction_FastCallDict() must not be called with an exception set,
6849
 
       because it may clear it (directly or indirectly) and so the
6850
 
       caller loses its exception */
6851
 
    assert(!PyErr_Occurred());
6852
 
    return (*((__Pyx_PyCFunctionFast)meth)) (self, args, nargs, NULL);
6853
 
}
6854
 
#endif  // CYTHON_FAST_PYCCALL
6855
 

	
6856
 
/* PyFunctionFastCall */
6857
 
    #if CYTHON_FAST_PYCALL
6858
 
#include "frameobject.h"
6859
 
static PyObject* __Pyx_PyFunction_FastCallNoKw(PyCodeObject *co, PyObject **args, Py_ssize_t na,
6860
 
                                               PyObject *globals) {
6861
 
    PyFrameObject *f;
6862
 
    PyThreadState *tstate = PyThreadState_GET();
6863
 
    PyObject **fastlocals;
6864
 
    Py_ssize_t i;
6865
 
    PyObject *result;
6866
 
    assert(globals != NULL);
6867
 
    /* XXX Perhaps we should create a specialized
6868
 
       PyFrame_New() that doesn't take locals, but does
6869
 
       take builtins without sanity checking them.
6870
 
       */
6871
 
    assert(tstate != NULL);
6872
 
    f = PyFrame_New(tstate, co, globals, NULL);
6873
 
    if (f == NULL) {
6874
 
        return NULL;
6875
 
    }
6876
 
    fastlocals = f->f_localsplus;
6877
 
    for (i = 0; i < na; i++) {
6878
 
        Py_INCREF(*args);
6879
 
        fastlocals[i] = *args++;
6880
 
    }
6881
 
    result = PyEval_EvalFrameEx(f,0);
6882
 
    ++tstate->recursion_depth;
6883
 
    Py_DECREF(f);
6884
 
    --tstate->recursion_depth;
6885
 
    return result;
6886
 
}
6887
 
#if 1 || PY_VERSION_HEX < 0x030600B1
6888
 
static PyObject *__Pyx_PyFunction_FastCallDict(PyObject *func, PyObject **args, int nargs, PyObject *kwargs) {
6889
 
    PyCodeObject *co = (PyCodeObject *)PyFunction_GET_CODE(func);
6890
 
    PyObject *globals = PyFunction_GET_GLOBALS(func);
6891
 
    PyObject *argdefs = PyFunction_GET_DEFAULTS(func);
6892
 
    PyObject *closure;
6893
 
#if PY_MAJOR_VERSION >= 3
6894
 
    PyObject *kwdefs;
6895
 
#endif
6896
 
    PyObject *kwtuple, **k;
6897
 
    PyObject **d;
6898
 
    Py_ssize_t nd;
6899
 
    Py_ssize_t nk;
6900
 
    PyObject *result;
6901
 
    assert(kwargs == NULL || PyDict_Check(kwargs));
6902
 
    nk = kwargs ? PyDict_Size(kwargs) : 0;
6903
 
    if (Py_EnterRecursiveCall((char*)" while calling a Python object")) {
6904
 
        return NULL;
6905
 
    }
6906
 
    if (
6907
 
#if PY_MAJOR_VERSION >= 3
6908
 
            co->co_kwonlyargcount == 0 &&
6909
 
#endif
6910
 
            likely(kwargs == NULL || nk == 0) &&
6911
 
            co->co_flags == (CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE)) {
6912
 
        if (argdefs == NULL && co->co_argcount == nargs) {
6913
 
            result = __Pyx_PyFunction_FastCallNoKw(co, args, nargs, globals);
6914
 
            goto done;
6915
 
        }
6916
 
        else if (nargs == 0 && argdefs != NULL
6917
 
                 && co->co_argcount == Py_SIZE(argdefs)) {
6918
 
            /* function called with no arguments, but all parameters have
6919
 
               a default value: use default values as arguments .*/
6920
 
            args = &PyTuple_GET_ITEM(argdefs, 0);
6921
 
            result =__Pyx_PyFunction_FastCallNoKw(co, args, Py_SIZE(argdefs), globals);
6922
 
            goto done;
6923
 
        }
6924
 
    }
6925
 
    if (kwargs != NULL) {
6926
 
        Py_ssize_t pos, i;
6927
 
        kwtuple = PyTuple_New(2 * nk);
6928
 
        if (kwtuple == NULL) {
6929
 
            result = NULL;
6930
 
            goto done;
6931
 
        }
6932
 
        k = &PyTuple_GET_ITEM(kwtuple, 0);
6933
 
        pos = i = 0;
6934
 
        while (PyDict_Next(kwargs, &pos, &k[i], &k[i+1])) {
6935
 
            Py_INCREF(k[i]);
6936
 
            Py_INCREF(k[i+1]);
6937
 
            i += 2;
6938
 
        }
6939
 
        nk = i / 2;
6940
 
    }
6941
 
    else {
6942
 
        kwtuple = NULL;
6943
 
        k = NULL;
6944
 
    }
6945
 
    closure = PyFunction_GET_CLOSURE(func);
6946
 
#if PY_MAJOR_VERSION >= 3
6947
 
    kwdefs = PyFunction_GET_KW_DEFAULTS(func);
6948
 
#endif
6949
 
    if (argdefs != NULL) {
6950
 
        d = &PyTuple_GET_ITEM(argdefs, 0);
6951
 
        nd = Py_SIZE(argdefs);
6952
 
    }
6953
 
    else {
6954
 
        d = NULL;
6955
 
        nd = 0;
6956
 
    }
6957
 
#if PY_MAJOR_VERSION >= 3
6958
 
    result = PyEval_EvalCodeEx((PyObject*)co, globals, (PyObject *)NULL,
6959
 
                               args, nargs,
6960
 
                               k, (int)nk,
6961
 
                               d, (int)nd, kwdefs, closure);
6962
 
#else
6963
 
    result = PyEval_EvalCodeEx(co, globals, (PyObject *)NULL,
6964
 
                               args, nargs,
6965
 
                               k, (int)nk,
6966
 
                               d, (int)nd, closure);
6967
 
#endif
6968
 
    Py_XDECREF(kwtuple);
6969
 
done:
6970
 
    Py_LeaveRecursiveCall();
6971
 
    return result;
6972
 
}
6973
 
#endif  // CPython < 3.6
6974
 
#endif  // CYTHON_FAST_PYCALL
6975
 

	
6538 6976
 
/* PyObjectCallMethO */
6539 6977
 
    #if CYTHON_COMPILING_IN_CPYTHON
6540 6978
 
static CYTHON_INLINE PyObject* __Pyx_PyObject_CallMethO(PyObject *func, PyObject *arg) {
...
 
@@ -6568,6 +7006,11 @@ static PyObject* __Pyx__PyObject_CallOne
6568 7006
 
    return result;
6569 7007
 
}
6570 7008
 
static CYTHON_INLINE PyObject* __Pyx_PyObject_CallOneArg(PyObject *func, PyObject *arg) {
7009
 
#if CYTHON_FAST_PYCALL
7010
 
    if (PyFunction_Check(func)) {
7011
 
        return __Pyx_PyFunction_FastCall(func, &arg, 1);
7012
 
    }
7013
 
#endif
6571 7014
 
#ifdef __Pyx_CyFunction_USED
6572 7015
 
    if (likely(PyCFunction_Check(func) || PyObject_TypeCheck(func, __pyx_CyFunctionType))) {
6573 7016
 
#else
...
 
@@ -6575,6 +7018,10 @@ static CYTHON_INLINE PyObject* __Pyx_PyO
6575 7018
 
#endif
6576 7019
 
        if (likely(PyCFunction_GET_FLAGS(func) & METH_O)) {
6577 7020
 
            return __Pyx_PyObject_CallMethO(func, arg);
7021
 
#if CYTHON_FAST_PYCCALL
7022
 
        } else if (PyCFunction_GET_FLAGS(func) & METH_FASTCALL) {
7023
 
            return __Pyx_PyCFunction_FastCall(func, &arg, 1);
7024
 
#endif
6578 7025
 
        }
6579 7026
 
    }
6580 7027
 
    return __Pyx__PyObject_CallOneArg(func, arg);
...
 
@@ -6744,7 +7191,7 @@ static void __Pyx_AddTraceback(const cha
6744 7191
 
        0                    /*PyObject *locals*/
6745 7192
 
    );
6746 7193
 
    if (!py_frame) goto bad;
6747
 
    py_frame->f_lineno = py_line;
7194
 
    __Pyx_PyFrame_SetLineNumber(py_frame, py_line);
6748 7195
 
    PyTraceBack_Here(py_frame);
6749 7196
 
bad:
6750 7197
 
    Py_XDECREF(py_code);
...
 
@@ -6782,14 +7229,18 @@ bad:
6782 7229
 
            return PyInt_FromLong((long) value);
6783 7230
 
        } else if (sizeof(unsigned short) <= sizeof(unsigned long)) {
6784 7231
 
            return PyLong_FromUnsignedLong((unsigned long) value);
7232
 
#ifdef HAVE_LONG_LONG
6785 7233
 
        } else if (sizeof(unsigned short) <= sizeof(unsigned PY_LONG_LONG)) {
6786 7234
 
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
7235
 
#endif
6787 7236
 
        }
6788 7237
 
    } else {
6789 7238
 
        if (sizeof(unsigned short) <= sizeof(long)) {
6790 7239
 
            return PyInt_FromLong((long) value);
7240
 
#ifdef HAVE_LONG_LONG
6791 7241
 
        } else if (sizeof(unsigned short) <= sizeof(PY_LONG_LONG)) {
6792 7242
 
            return PyLong_FromLongLong((PY_LONG_LONG) value);
7243
 
#endif
6793 7244
 
        }
6794 7245
 
    }
6795 7246
 
    {
...
 
@@ -6809,14 +7260,18 @@ bad:
6809 7260
 
            return PyInt_FromLong((long) value);
6810 7261
 
        } else if (sizeof(int) <= sizeof(unsigned long)) {
6811 7262
 
            return PyLong_FromUnsignedLong((unsigned long) value);
7263
 
#ifdef HAVE_LONG_LONG
6812 7264
 
        } else if (sizeof(int) <= sizeof(unsigned PY_LONG_LONG)) {
6813 7265
 
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
7266
 
#endif
6814 7267
 
        }
6815 7268
 
    } else {
6816 7269
 
        if (sizeof(int) <= sizeof(long)) {
6817 7270
 
            return PyInt_FromLong((long) value);
7271
 
#ifdef HAVE_LONG_LONG
6818 7272
 
        } else if (sizeof(int) <= sizeof(PY_LONG_LONG)) {
6819 7273
 
            return PyLong_FromLongLong((PY_LONG_LONG) value);
7274
 
#endif
6820 7275
 
        }
6821 7276
 
    }
6822 7277
 
    {
...
 
@@ -6836,14 +7291,18 @@ bad:
6836 7291
 
            return PyInt_FromLong((long) value);
6837 7292
 
        } else if (sizeof(unsigned int) <= sizeof(unsigned long)) {
6838 7293
 
            return PyLong_FromUnsignedLong((unsigned long) value);
7294
 
#ifdef HAVE_LONG_LONG
6839 7295
 
        } else if (sizeof(unsigned int) <= sizeof(unsigned PY_LONG_LONG)) {
6840 7296
 
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
7297
 
#endif
6841 7298
 
        }
6842 7299
 
    } else {
6843 7300
 
        if (sizeof(unsigned int) <= sizeof(long)) {
6844 7301
 
            return PyInt_FromLong((long) value);
7302
 
#ifdef HAVE_LONG_LONG
6845 7303
 
        } else if (sizeof(unsigned int) <= sizeof(PY_LONG_LONG)) {
6846 7304
 
            return PyLong_FromLongLong((PY_LONG_LONG) value);
7305
 
#endif
6847 7306
 
        }
6848 7307
 
    }
6849 7308
 
    {
...
 
@@ -6873,14 +7332,18 @@ static PyObject* __pyx_convert__to_py_De
6873 7332
 
            return PyInt_FromLong((long) value);
6874 7333
 
        } else if (sizeof(unsigned char) <= sizeof(unsigned long)) {
6875 7334
 
            return PyLong_FromUnsignedLong((unsigned long) value);
7335
 
#ifdef HAVE_LONG_LONG
6876 7336
 
        } else if (sizeof(unsigned char) <= sizeof(unsigned PY_LONG_LONG)) {
6877 7337
 
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
7338
 
#endif
6878 7339
 
        }
6879 7340
 
    } else {
6880 7341
 
        if (sizeof(unsigned char) <= sizeof(long)) {
6881 7342
 
            return PyInt_FromLong((long) value);
7343
 
#ifdef HAVE_LONG_LONG
6882 7344
 
        } else if (sizeof(unsigned char) <= sizeof(PY_LONG_LONG)) {
6883 7345
 
            return PyLong_FromLongLong((PY_LONG_LONG) value);
7346
 
#endif
6884 7347
 
        }
6885 7348
 
    }
6886 7349
 
    {
...
 
@@ -6900,14 +7363,18 @@ static PyObject* __pyx_convert__to_py_De
6900 7363
 
            return PyInt_FromLong((long) value);
6901 7364
 
        } else if (sizeof(unsigned PY_LONG_LONG) <= sizeof(unsigned long)) {
6902 7365
 
            return PyLong_FromUnsignedLong((unsigned long) value);
7366
 
#ifdef HAVE_LONG_LONG
6903 7367
 
        } else if (sizeof(unsigned PY_LONG_LONG) <= sizeof(unsigned PY_LONG_LONG)) {
6904 7368
 
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
7369
 
#endif
6905 7370
 
        }
6906 7371
 
    } else {
6907 7372
 
        if (sizeof(unsigned PY_LONG_LONG) <= sizeof(long)) {
6908 7373
 
            return PyInt_FromLong((long) value);
7374
 
#ifdef HAVE_LONG_LONG
6909 7375
 
        } else if (sizeof(unsigned PY_LONG_LONG) <= sizeof(PY_LONG_LONG)) {
6910 7376
 
            return PyLong_FromLongLong((PY_LONG_LONG) value);
7377
 
#endif
6911 7378
 
        }
6912 7379
 
    }
6913 7380
 
    {
...
 
@@ -6986,8 +7453,10 @@ static PyObject* __pyx_convert__to_py_De
6986 7453
 
#endif
6987 7454
 
            if (sizeof(unsigned char) <= sizeof(unsigned long)) {
6988 7455
 
                __PYX_VERIFY_RETURN_INT_EXC(unsigned char, unsigned long, PyLong_AsUnsignedLong(x))
7456
 
#ifdef HAVE_LONG_LONG
6989 7457
 
            } else if (sizeof(unsigned char) <= sizeof(unsigned PY_LONG_LONG)) {
6990 7458
 
                __PYX_VERIFY_RETURN_INT_EXC(unsigned char, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
7459
 
#endif
6991 7460
 
            }
6992 7461
 
        } else {
6993 7462
 
#if CYTHON_USE_PYLONG_INTERNALS
...
 
@@ -7054,8 +7523,10 @@ static PyObject* __pyx_convert__to_py_De
7054 7523
 
#endif
7055 7524
 
            if (sizeof(unsigned char) <= sizeof(long)) {
7056 7525
 
                __PYX_VERIFY_RETURN_INT_EXC(unsigned char, long, PyLong_AsLong(x))
7526
 
#ifdef HAVE_LONG_LONG
7057 7527
 
            } else if (sizeof(unsigned char) <= sizeof(PY_LONG_LONG)) {
7058 7528
 
                __PYX_VERIFY_RETURN_INT_EXC(unsigned char, PY_LONG_LONG, PyLong_AsLongLong(x))
7529
 
#endif
7059 7530
 
            }
7060 7531
 
        }
7061 7532
 
        {
...
 
@@ -7171,8 +7642,10 @@ raise_neg_overflow:
7171 7642
 
#endif
7172 7643
 
            if (sizeof(unsigned short) <= sizeof(unsigned long)) {
7173 7644
 
                __PYX_VERIFY_RETURN_INT_EXC(unsigned short, unsigned long, PyLong_AsUnsignedLong(x))
7645
 
#ifdef HAVE_LONG_LONG
7174 7646
 
            } else if (sizeof(unsigned short) <= sizeof(unsigned PY_LONG_LONG)) {
7175 7647
 
                __PYX_VERIFY_RETURN_INT_EXC(unsigned short, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
7648
 
#endif
7176 7649
 
            }
7177 7650
 
        } else {
7178 7651
 
#if CYTHON_USE_PYLONG_INTERNALS
...
 
@@ -7239,8 +7712,10 @@ raise_neg_overflow:
7239 7712
 
#endif
7240 7713
 
            if (sizeof(unsigned short) <= sizeof(long)) {
7241 7714
 
                __PYX_VERIFY_RETURN_INT_EXC(unsigned short, long, PyLong_AsLong(x))
7715
 
#ifdef HAVE_LONG_LONG
7242 7716
 
            } else if (sizeof(unsigned short) <= sizeof(PY_LONG_LONG)) {
7243 7717
 
                __PYX_VERIFY_RETURN_INT_EXC(unsigned short, PY_LONG_LONG, PyLong_AsLongLong(x))
7718
 
#endif
7244 7719
 
            }
7245 7720
 
        }
7246 7721
 
        {
...
 
@@ -7356,8 +7831,10 @@ raise_neg_overflow:
7356 7831
 
#endif
7357 7832
 
            if (sizeof(unsigned int) <= sizeof(unsigned long)) {
7358 7833
 
                __PYX_VERIFY_RETURN_INT_EXC(unsigned int, unsigned long, PyLong_AsUnsignedLong(x))
7834
 
#ifdef HAVE_LONG_LONG
7359 7835
 
            } else if (sizeof(unsigned int) <= sizeof(unsigned PY_LONG_LONG)) {
7360 7836
 
                __PYX_VERIFY_RETURN_INT_EXC(unsigned int, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
7837
 
#endif
7361 7838
 
            }
7362 7839
 
        } else {
7363 7840
 
#if CYTHON_USE_PYLONG_INTERNALS
...
 
@@ -7424,8 +7901,10 @@ raise_neg_overflow:
7424 7901
 
#endif
7425 7902
 
            if (sizeof(unsigned int) <= sizeof(long)) {
7426 7903
 
                __PYX_VERIFY_RETURN_INT_EXC(unsigned int, long, PyLong_AsLong(x))
7904
 
#ifdef HAVE_LONG_LONG
7427 7905
 
            } else if (sizeof(unsigned int) <= sizeof(PY_LONG_LONG)) {
7428 7906
 
                __PYX_VERIFY_RETURN_INT_EXC(unsigned int, PY_LONG_LONG, PyLong_AsLongLong(x))
7907
 
#endif
7429 7908
 
            }
7430 7909
 
        }
7431 7910
 
        {
...
 
@@ -7541,8 +8020,10 @@ raise_neg_overflow:
7541 8020
 
#endif
7542 8021
 
            if (sizeof(unsigned PY_LONG_LONG) <= sizeof(unsigned long)) {
7543 8022
 
                __PYX_VERIFY_RETURN_INT_EXC(unsigned PY_LONG_LONG, unsigned long, PyLong_AsUnsignedLong(x))
8023
 
#ifdef HAVE_LONG_LONG
7544 8024
 
            } else if (sizeof(unsigned PY_LONG_LONG) <= sizeof(unsigned PY_LONG_LONG)) {
7545 8025
 
                __PYX_VERIFY_RETURN_INT_EXC(unsigned PY_LONG_LONG, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
8026
 
#endif
7546 8027
 
            }
7547 8028
 
        } else {
7548 8029
 
#if CYTHON_USE_PYLONG_INTERNALS
...
 
@@ -7609,8 +8090,10 @@ raise_neg_overflow:
7609 8090
 
#endif
7610 8091
 
            if (sizeof(unsigned PY_LONG_LONG) <= sizeof(long)) {
7611 8092
 
                __PYX_VERIFY_RETURN_INT_EXC(unsigned PY_LONG_LONG, long, PyLong_AsLong(x))
8093
 
#ifdef HAVE_LONG_LONG
7612 8094
 
            } else if (sizeof(unsigned PY_LONG_LONG) <= sizeof(PY_LONG_LONG)) {
7613 8095
 
                __PYX_VERIFY_RETURN_INT_EXC(unsigned PY_LONG_LONG, PY_LONG_LONG, PyLong_AsLongLong(x))
8096
 
#endif
7614 8097
 
            }
7615 8098
 
        }
7616 8099
 
        {
...
 
@@ -7726,8 +8209,10 @@ raise_neg_overflow:
7726 8209
 
#endif
7727 8210
 
            if (sizeof(int) <= sizeof(unsigned long)) {
7728 8211
 
                __PYX_VERIFY_RETURN_INT_EXC(int, unsigned long, PyLong_AsUnsignedLong(x))
8212
 
#ifdef HAVE_LONG_LONG
7729 8213
 
            } else if (sizeof(int) <= sizeof(unsigned PY_LONG_LONG)) {
7730 8214
 
                __PYX_VERIFY_RETURN_INT_EXC(int, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
8215
 
#endif
7731 8216
 
            }
7732 8217
 
        } else {
7733 8218
 
#if CYTHON_USE_PYLONG_INTERNALS
...
 
@@ -7794,8 +8279,10 @@ raise_neg_overflow:
7794 8279
 
#endif
7795 8280
 
            if (sizeof(int) <= sizeof(long)) {
7796 8281
 
                __PYX_VERIFY_RETURN_INT_EXC(int, long, PyLong_AsLong(x))
8282
 
#ifdef HAVE_LONG_LONG
7797 8283
 
            } else if (sizeof(int) <= sizeof(PY_LONG_LONG)) {
7798 8284
 
                __PYX_VERIFY_RETURN_INT_EXC(int, PY_LONG_LONG, PyLong_AsLongLong(x))
8285
 
#endif
7799 8286
 
            }
7800 8287
 
        }
7801 8288
 
        {
...
 
@@ -7911,8 +8398,10 @@ raise_neg_overflow:
7911 8398
 
#endif
7912 8399
 
            if (sizeof(PY_LONG_LONG) <= sizeof(unsigned long)) {
7913 8400
 
                __PYX_VERIFY_RETURN_INT_EXC(PY_LONG_LONG, unsigned long, PyLong_AsUnsignedLong(x))
8401
 
#ifdef HAVE_LONG_LONG
7914 8402
 
            } else if (sizeof(PY_LONG_LONG) <= sizeof(unsigned PY_LONG_LONG)) {
7915 8403
 
                __PYX_VERIFY_RETURN_INT_EXC(PY_LONG_LONG, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
8404
 
#endif
7916 8405
 
            }
7917 8406
 
        } else {
7918 8407
 
#if CYTHON_USE_PYLONG_INTERNALS
...
 
@@ -7979,8 +8468,10 @@ raise_neg_overflow:
7979 8468
 
#endif
7980 8469
 
            if (sizeof(PY_LONG_LONG) <= sizeof(long)) {
7981 8470
 
                __PYX_VERIFY_RETURN_INT_EXC(PY_LONG_LONG, long, PyLong_AsLong(x))
8471
 
#ifdef HAVE_LONG_LONG
7982 8472
 
            } else if (sizeof(PY_LONG_LONG) <= sizeof(PY_LONG_LONG)) {
7983 8473
 
                __PYX_VERIFY_RETURN_INT_EXC(PY_LONG_LONG, PY_LONG_LONG, PyLong_AsLongLong(x))
8474
 
#endif
7984 8475
 
            }
7985 8476
 
        }
7986 8477
 
        {
...
 
@@ -8096,8 +8587,10 @@ raise_neg_overflow:
8096 8587
 
#endif
8097 8588
 
            if (sizeof(short) <= sizeof(unsigned long)) {
8098 8589
 
                __PYX_VERIFY_RETURN_INT_EXC(short, unsigned long, PyLong_AsUnsignedLong(x))
8590
 
#ifdef HAVE_LONG_LONG
8099 8591
 
            } else if (sizeof(short) <= sizeof(unsigned PY_LONG_LONG)) {
8100 8592
 
                __PYX_VERIFY_RETURN_INT_EXC(short, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
8593
 
#endif
8101 8594
 
            }
8102 8595
 
        } else {
8103 8596
 
#if CYTHON_USE_PYLONG_INTERNALS
...
 
@@ -8164,8 +8657,10 @@ raise_neg_overflow:
8164 8657
 
#endif
8165 8658
 
            if (sizeof(short) <= sizeof(long)) {
8166 8659
 
                __PYX_VERIFY_RETURN_INT_EXC(short, long, PyLong_AsLong(x))
8660
 
#ifdef HAVE_LONG_LONG
8167 8661
 
            } else if (sizeof(short) <= sizeof(PY_LONG_LONG)) {
8168 8662
 
                __PYX_VERIFY_RETURN_INT_EXC(short, PY_LONG_LONG, PyLong_AsLongLong(x))
8663
 
#endif
8169 8664
 
            }
8170 8665
 
        }
8171 8666
 
        {
...
 
@@ -8222,14 +8717,18 @@ raise_neg_overflow:
8222 8717
 
            return PyInt_FromLong((long) value);
8223 8718
 
        } else if (sizeof(long) <= sizeof(unsigned long)) {
8224 8719
 
            return PyLong_FromUnsignedLong((unsigned long) value);
8720
 
#ifdef HAVE_LONG_LONG
8225 8721
 
        } else if (sizeof(long) <= sizeof(unsigned PY_LONG_LONG)) {
8226 8722
 
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
8723
 
#endif
8227 8724
 
        }
8228 8725
 
    } else {
8229 8726
 
        if (sizeof(long) <= sizeof(long)) {
8230 8727
 
            return PyInt_FromLong((long) value);
8728
 
#ifdef HAVE_LONG_LONG
8231 8729
 
        } else if (sizeof(long) <= sizeof(PY_LONG_LONG)) {
8232 8730
 
            return PyLong_FromLongLong((PY_LONG_LONG) value);
8731
 
#endif
8233 8732
 
        }
8234 8733
 
    }
8235 8734
 
    {
...
 
@@ -8308,8 +8807,10 @@ raise_neg_overflow:
8308 8807
 
#endif
8309 8808
 
            if (sizeof(long) <= sizeof(unsigned long)) {
8310 8809
 
                __PYX_VERIFY_RETURN_INT_EXC(long, unsigned long, PyLong_AsUnsignedLong(x))
8810
 
#ifdef HAVE_LONG_LONG
8311 8811
 
            } else if (sizeof(long) <= sizeof(unsigned PY_LONG_LONG)) {
8312 8812
 
                __PYX_VERIFY_RETURN_INT_EXC(long, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
8813
 
#endif
8313 8814
 
            }
8314 8815
 
        } else {
8315 8816
 
#if CYTHON_USE_PYLONG_INTERNALS
...
 
@@ -8376,8 +8877,10 @@ raise_neg_overflow:
8376 8877
 
#endif
8377 8878
 
            if (sizeof(long) <= sizeof(long)) {
8378 8879
 
                __PYX_VERIFY_RETURN_INT_EXC(long, long, PyLong_AsLong(x))
8880
 
#ifdef HAVE_LONG_LONG
8379 8881
 
            } else if (sizeof(long) <= sizeof(PY_LONG_LONG)) {
8380 8882
 
                __PYX_VERIFY_RETURN_INT_EXC(long, PY_LONG_LONG, PyLong_AsLongLong(x))
8883
 
#endif
8381 8884
 
            }
8382 8885
 
        }
8383 8886
 
        {
...
 
@@ -8680,7 +9183,9 @@ static CYTHON_INLINE int __Pyx_PyObject_
8680 9183
 
   else return PyObject_IsTrue(x);
8681 9184
 
}
8682 9185
 
static CYTHON_INLINE PyObject* __Pyx_PyNumber_IntOrLong(PyObject* x) {
9186
 
#if CYTHON_USE_TYPE_SLOTS
8683 9187
 
  PyNumberMethods *m;
9188
 
#endif
8684 9189
 
  const char *name = NULL;
8685 9190
 
  PyObject *res = NULL;
8686 9191
 
#if PY_MAJOR_VERSION < 3
...
 
@@ -8689,8 +9194,9 @@ static CYTHON_INLINE PyObject* __Pyx_PyN
8689 9194
 
  if (PyLong_Check(x))
8690 9195
 
#endif
8691 9196
 
    return __Pyx_NewRef(x);
9197
 
#if CYTHON_USE_TYPE_SLOTS
8692 9198
 
  m = Py_TYPE(x)->tp_as_number;
8693
 
#if PY_MAJOR_VERSION < 3
9199
 
  #if PY_MAJOR_VERSION < 3
8694 9200
 
  if (m && m->nb_int) {
8695 9201
 
    name = "int";
8696 9202
 
    res = PyNumber_Int(x);
...
 
@@ -8699,11 +9205,14 @@ static CYTHON_INLINE PyObject* __Pyx_PyN
8699 9205
 
    name = "long";
8700 9206
 
    res = PyNumber_Long(x);
8701 9207
 
  }
8702
 
#else
9208
 
  #else
8703 9209
 
  if (m && m->nb_int) {
8704 9210
 
    name = "int";
8705 9211
 
    res = PyNumber_Long(x);
8706 9212
 
  }
9213
 
  #endif
9214
 
#else
9215
 
  res = PyNumber_Int(x);
8707 9216
 
#endif
8708 9217
 
  if (res) {
8709 9218
 
#if PY_MAJOR_VERSION < 3
0 comments (0 inline, 0 general)