26
28
#define PyInt_AsSsize_t(o) PyInt_AsLong(o)
27
29
#define PyNumber_Index(o) PyNumber_Int(o)
28
30
#define PyIndex_Check(o) PyNumber_Check(o)
31
#define PyErr_WarnEx(category, message, stacklevel) PyErr_Warn(category, message)
30
34
#if PY_VERSION_HEX < 0x02060000
31
35
#define Py_REFCNT(ob) (((PyObject*)(ob))->ob_refcnt)
32
36
#define Py_TYPE(ob) (((PyObject*)(ob))->ob_type)
60
64
#define PyBUF_INDIRECT (0x0100 | PyBUF_STRIDES)
63
68
#if PY_MAJOR_VERSION < 3
64
69
#define __Pyx_BUILTIN_MODULE_NAME "__builtin__"
66
71
#define __Pyx_BUILTIN_MODULE_NAME "builtins"
68
74
#if PY_MAJOR_VERSION >= 3
69
75
#define Py_TPFLAGS_CHECKTYPES 0
70
76
#define Py_TPFLAGS_HAVE_INDEX 0
72
79
#if (PY_VERSION_HEX < 0x02060000) || (PY_MAJOR_VERSION >= 3)
73
80
#define Py_TPFLAGS_HAVE_NEWBUFFER 0
75
83
#if PY_MAJOR_VERSION >= 3
76
84
#define PyBaseString_Type PyUnicode_Type
77
85
#define PyString_Type PyUnicode_Type
100
109
#define __Pyx_PyNumber_Divide(x,y) PyNumber_Divide(x,y)
101
110
#define __Pyx_PyNumber_InPlaceDivide(x,y) PyNumber_InPlaceDivide(x,y)
103
114
#if PY_MAJOR_VERSION >= 3
104
115
#define PyMethod_New(func, self, klass) PyInstanceMethod_New(func)
106
118
#if !defined(WIN32) && !defined(MS_WINDOWS)
107
119
#ifndef __stdcall
108
120
#define __stdcall
117
129
#define _USE_MATH_DEFINES
119
132
#if PY_VERSION_HEX < 0x02050000
120
133
#define __Pyx_GetAttrString(o,n) PyObject_GetAttrString((o),((char *)(n)))
121
134
#define __Pyx_SetAttrString(o,n,a) PyObject_SetAttrString((o),((char *)(n)),(a))
125
138
#define __Pyx_SetAttrString(o,n,a) PyObject_SetAttrString((o),(n),(a))
126
139
#define __Pyx_DelAttrString(o,n) PyObject_DelAttrString((o),(n))
128
142
#if PY_VERSION_HEX < 0x02050000
129
143
#define __Pyx_NAMESTR(n) ((char *)(n))
130
144
#define __Pyx_DOCSTR(n) ((char *)(n))
175
191
#define __Pyx_PyBytes_AsUString(s) ((unsigned char*) __Pyx_PyBytes_AsString(s))
177
193
#define __Pyx_PyBool_FromLong(b) ((b) ? (Py_INCREF(Py_True), Py_True) : (Py_INCREF(Py_False), Py_False))
178
static INLINE int __Pyx_PyObject_IsTrue(PyObject*);
179
static INLINE PyObject* __Pyx_PyNumber_Int(PyObject* x);
194
static CYTHON_INLINE int __Pyx_PyObject_IsTrue(PyObject*);
195
static CYTHON_INLINE PyObject* __Pyx_PyNumber_Int(PyObject* x);
181
197
#if !defined(T_PYSSIZET)
182
198
#if PY_VERSION_HEX < 0x02050000
243
static INLINE Py_ssize_t __Pyx_PyIndex_AsSsize_t(PyObject*);
244
static INLINE PyObject * __Pyx_PyInt_FromSize_t(size_t);
245
static INLINE size_t __Pyx_PyInt_AsSize_t(PyObject*);
259
static CYTHON_INLINE Py_ssize_t __Pyx_PyIndex_AsSsize_t(PyObject*);
260
static CYTHON_INLINE PyObject * __Pyx_PyInt_FromSize_t(size_t);
261
static CYTHON_INLINE size_t __Pyx_PyInt_AsSize_t(PyObject*);
247
263
#define __pyx_PyFloat_AsDouble(x) (PyFloat_CheckExact(x) ? PyFloat_AS_DOUBLE(x) : PyFloat_AsDouble(x))
324
339
PyObject *_title;
342
/* "/home/tachyon/h5py/h5py/h5.pxd":28
343
* cpdef H5PYConfig get_config()
345
* cdef class IDProxy: # <<<<<<<<<<<<<<
347
* cdef object __weakref__
350
struct __pyx_obj_4h5py_2h5_IDProxy {
352
PyObject *__weakref__;
327
357
#ifndef CYTHON_REFNANNY
328
358
#define CYTHON_REFNANNY 0
370
400
#define __Pyx_XGIVEREF(r) do { if((r) != NULL) {__Pyx_GIVEREF(r);} } while(0)
371
401
#define __Pyx_XGOTREF(r) do { if((r) != NULL) {__Pyx_GOTREF(r);} } while(0)
373
static INLINE PyObject *__Pyx_PyInt_to_py_hid_t(hid_t);
375
static INLINE unsigned char __Pyx_PyInt_AsUnsignedChar(PyObject *);
377
static INLINE unsigned short __Pyx_PyInt_AsUnsignedShort(PyObject *);
379
static INLINE unsigned int __Pyx_PyInt_AsUnsignedInt(PyObject *);
381
static INLINE char __Pyx_PyInt_AsChar(PyObject *);
383
static INLINE short __Pyx_PyInt_AsShort(PyObject *);
385
static INLINE int __Pyx_PyInt_AsInt(PyObject *);
387
static INLINE signed char __Pyx_PyInt_AsSignedChar(PyObject *);
389
static INLINE signed short __Pyx_PyInt_AsSignedShort(PyObject *);
391
static INLINE signed int __Pyx_PyInt_AsSignedInt(PyObject *);
393
static INLINE unsigned long __Pyx_PyInt_AsUnsignedLong(PyObject *);
395
static INLINE unsigned PY_LONG_LONG __Pyx_PyInt_AsUnsignedLongLong(PyObject *);
397
static INLINE long __Pyx_PyInt_AsLong(PyObject *);
399
static INLINE PY_LONG_LONG __Pyx_PyInt_AsLongLong(PyObject *);
401
static INLINE signed long __Pyx_PyInt_AsSignedLong(PyObject *);
403
static INLINE signed PY_LONG_LONG __Pyx_PyInt_AsSignedLongLong(PyObject *);
405
static PyTypeObject *__Pyx_ImportType(const char *module_name, const char *class_name, long size); /*proto*/
403
static CYTHON_INLINE PyObject *__Pyx_PyInt_to_py_hid_t(hid_t);
405
static CYTHON_INLINE unsigned char __Pyx_PyInt_AsUnsignedChar(PyObject *);
407
static CYTHON_INLINE unsigned short __Pyx_PyInt_AsUnsignedShort(PyObject *);
409
static CYTHON_INLINE unsigned int __Pyx_PyInt_AsUnsignedInt(PyObject *);
411
static CYTHON_INLINE char __Pyx_PyInt_AsChar(PyObject *);
413
static CYTHON_INLINE short __Pyx_PyInt_AsShort(PyObject *);
415
static CYTHON_INLINE int __Pyx_PyInt_AsInt(PyObject *);
417
static CYTHON_INLINE signed char __Pyx_PyInt_AsSignedChar(PyObject *);
419
static CYTHON_INLINE signed short __Pyx_PyInt_AsSignedShort(PyObject *);
421
static CYTHON_INLINE signed int __Pyx_PyInt_AsSignedInt(PyObject *);
423
static CYTHON_INLINE unsigned long __Pyx_PyInt_AsUnsignedLong(PyObject *);
425
static CYTHON_INLINE unsigned PY_LONG_LONG __Pyx_PyInt_AsUnsignedLongLong(PyObject *);
427
static CYTHON_INLINE long __Pyx_PyInt_AsLong(PyObject *);
429
static CYTHON_INLINE PY_LONG_LONG __Pyx_PyInt_AsLongLong(PyObject *);
431
static CYTHON_INLINE signed long __Pyx_PyInt_AsSignedLong(PyObject *);
433
static CYTHON_INLINE signed PY_LONG_LONG __Pyx_PyInt_AsSignedLongLong(PyObject *);
435
static PyTypeObject *__Pyx_ImportType(const char *module_name, const char *class_name, long size, int strict); /*proto*/
407
437
static PyObject *__Pyx_ImportModule(const char *name); /*proto*/
414
444
/* Module declarations from h5py.h5 */
416
446
static PyTypeObject *__pyx_ptype_4h5py_2h5_H5PYConfig = 0;
447
static PyTypeObject *__pyx_ptype_4h5py_2h5_IDProxy = 0;
417
448
static PyTypeObject *__pyx_ptype_4h5py_2h5_ObjectID = 0;
418
449
static PyTypeObject *__pyx_ptype_4h5py_2h5_SmartStruct = 0;
419
450
static struct __pyx_obj_4h5py_2h5_H5PYConfig *(*__pyx_f_4h5py_2h5_get_config)(int __pyx_skip_dispatch); /*proto*/
634
665
/*--- Function export code ---*/
635
666
/*--- Type init code ---*/
636
667
/*--- Type import code ---*/
637
__pyx_ptype_4h5py_2h5_H5PYConfig = __Pyx_ImportType("h5py.h5", "H5PYConfig", sizeof(struct __pyx_obj_4h5py_2h5_H5PYConfig)); if (unlikely(!__pyx_ptype_4h5py_2h5_H5PYConfig)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 15; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
638
__pyx_ptype_4h5py_2h5_ObjectID = __Pyx_ImportType("h5py.h5", "ObjectID", sizeof(struct __pyx_obj_4h5py_2h5_ObjectID)); if (unlikely(!__pyx_ptype_4h5py_2h5_ObjectID)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 28; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
639
__pyx_ptype_4h5py_2h5_SmartStruct = __Pyx_ImportType("h5py.h5", "SmartStruct", sizeof(struct __pyx_obj_4h5py_2h5_SmartStruct)); if (unlikely(!__pyx_ptype_4h5py_2h5_SmartStruct)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 35; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
668
__pyx_ptype_4h5py_2h5_H5PYConfig = __Pyx_ImportType("h5py.h5", "H5PYConfig", sizeof(struct __pyx_obj_4h5py_2h5_H5PYConfig), 1); if (unlikely(!__pyx_ptype_4h5py_2h5_H5PYConfig)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 15; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
669
__pyx_ptype_4h5py_2h5_IDProxy = __Pyx_ImportType("h5py.h5", "IDProxy", sizeof(struct __pyx_obj_4h5py_2h5_IDProxy), 1); if (unlikely(!__pyx_ptype_4h5py_2h5_IDProxy)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 28; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
670
__pyx_ptype_4h5py_2h5_ObjectID = __Pyx_ImportType("h5py.h5", "ObjectID", sizeof(struct __pyx_obj_4h5py_2h5_ObjectID), 1); if (unlikely(!__pyx_ptype_4h5py_2h5_ObjectID)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 34; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
671
__pyx_ptype_4h5py_2h5_SmartStruct = __Pyx_ImportType("h5py.h5", "SmartStruct", sizeof(struct __pyx_obj_4h5py_2h5_SmartStruct), 1); if (unlikely(!__pyx_ptype_4h5py_2h5_SmartStruct)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 40; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
640
672
/*--- Function import code ---*/
641
673
__pyx_t_1 = __Pyx_ImportModule("h5py.h5"); if (!__pyx_t_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
642
674
if (__Pyx_ImportFunction(__pyx_t_1, "get_config", (void (**)(void))&__pyx_f_4h5py_2h5_get_config, "struct __pyx_obj_4h5py_2h5_H5PYConfig *(int __pyx_skip_dispatch)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
644
676
Py_DECREF(__pyx_t_1); __pyx_t_1 = 0;
645
677
/*--- Execution code ---*/
647
/* "/home/tachyon/slave/unix-release/build/h5py/h5fd.pyx":23
679
/* "/home/tachyon/h5py/h5py/h5fd.pyx":23
649
681
* from h5 cimport init_hdf5
650
682
* init_hdf5() # <<<<<<<<<<<<<<
654
686
__pyx_t_2 = __pyx_f_4h5py_2h5_init_hdf5(); if (unlikely(__pyx_t_2 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 23; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
656
/* "/home/tachyon/slave/unix-release/build/h5py/h5fd.pyx":27
688
/* "/home/tachyon/h5py/h5py/h5fd.pyx":27
657
689
* # === Multi-file driver =======================================================
659
691
* MEM_DEFAULT = H5FD_MEM_DEFAULT # <<<<<<<<<<<<<<
665
697
if (PyObject_SetAttr(__pyx_m, __pyx_n_s__MEM_DEFAULT, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 27; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
666
698
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
668
/* "/home/tachyon/slave/unix-release/build/h5py/h5fd.pyx":28
700
/* "/home/tachyon/h5py/h5py/h5fd.pyx":28
670
702
* MEM_DEFAULT = H5FD_MEM_DEFAULT
671
703
* MEM_SUPER = H5FD_MEM_SUPER # <<<<<<<<<<<<<<
677
709
if (PyObject_SetAttr(__pyx_m, __pyx_n_s__MEM_SUPER, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 28; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
678
710
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
680
/* "/home/tachyon/slave/unix-release/build/h5py/h5fd.pyx":29
712
/* "/home/tachyon/h5py/h5py/h5fd.pyx":29
681
713
* MEM_DEFAULT = H5FD_MEM_DEFAULT
682
714
* MEM_SUPER = H5FD_MEM_SUPER
683
715
* MEM_BTREE = H5FD_MEM_BTREE # <<<<<<<<<<<<<<
689
721
if (PyObject_SetAttr(__pyx_m, __pyx_n_s__MEM_BTREE, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 29; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
690
722
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
692
/* "/home/tachyon/slave/unix-release/build/h5py/h5fd.pyx":30
724
/* "/home/tachyon/h5py/h5py/h5fd.pyx":30
693
725
* MEM_SUPER = H5FD_MEM_SUPER
694
726
* MEM_BTREE = H5FD_MEM_BTREE
695
727
* MEM_DRAW = H5FD_MEM_DRAW # <<<<<<<<<<<<<<
701
733
if (PyObject_SetAttr(__pyx_m, __pyx_n_s__MEM_DRAW, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 30; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
702
734
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
704
/* "/home/tachyon/slave/unix-release/build/h5py/h5fd.pyx":31
736
/* "/home/tachyon/h5py/h5py/h5fd.pyx":31
705
737
* MEM_BTREE = H5FD_MEM_BTREE
706
738
* MEM_DRAW = H5FD_MEM_DRAW
707
739
* MEM_GHEAP = H5FD_MEM_GHEAP # <<<<<<<<<<<<<<
713
745
if (PyObject_SetAttr(__pyx_m, __pyx_n_s__MEM_GHEAP, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 31; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
714
746
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
716
/* "/home/tachyon/slave/unix-release/build/h5py/h5fd.pyx":32
748
/* "/home/tachyon/h5py/h5py/h5fd.pyx":32
717
749
* MEM_DRAW = H5FD_MEM_DRAW
718
750
* MEM_GHEAP = H5FD_MEM_GHEAP
719
751
* MEM_LHEAP = H5FD_MEM_LHEAP # <<<<<<<<<<<<<<
725
757
if (PyObject_SetAttr(__pyx_m, __pyx_n_s__MEM_LHEAP, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 32; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
726
758
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
728
/* "/home/tachyon/slave/unix-release/build/h5py/h5fd.pyx":33
760
/* "/home/tachyon/h5py/h5py/h5fd.pyx":33
729
761
* MEM_GHEAP = H5FD_MEM_GHEAP
730
762
* MEM_LHEAP = H5FD_MEM_LHEAP
731
763
* MEM_OHDR = H5FD_MEM_OHDR # <<<<<<<<<<<<<<
737
769
if (PyObject_SetAttr(__pyx_m, __pyx_n_s__MEM_OHDR, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 33; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
738
770
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
740
/* "/home/tachyon/slave/unix-release/build/h5py/h5fd.pyx":34
772
/* "/home/tachyon/h5py/h5py/h5fd.pyx":34
741
773
* MEM_LHEAP = H5FD_MEM_LHEAP
742
774
* MEM_OHDR = H5FD_MEM_OHDR
743
775
* MEM_NTYPES = H5FD_MEM_NTYPES # <<<<<<<<<<<<<<
749
781
if (PyObject_SetAttr(__pyx_m, __pyx_n_s__MEM_NTYPES, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 34; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
750
782
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
752
/* "/home/tachyon/slave/unix-release/build/h5py/h5fd.pyx":38
784
/* "/home/tachyon/h5py/h5py/h5fd.pyx":38
753
785
* # === Driver types ============================================================
755
787
* CORE = H5FD_CORE # <<<<<<<<<<<<<<
761
793
if (PyObject_SetAttr(__pyx_m, __pyx_n_s__CORE, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 38; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
762
794
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
764
/* "/home/tachyon/slave/unix-release/build/h5py/h5fd.pyx":39
796
/* "/home/tachyon/h5py/h5py/h5fd.pyx":39
766
798
* CORE = H5FD_CORE
767
799
* FAMILY = H5FD_FAMILY # <<<<<<<<<<<<<<
773
805
if (PyObject_SetAttr(__pyx_m, __pyx_n_s__FAMILY, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 39; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
774
806
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
776
/* "/home/tachyon/slave/unix-release/build/h5py/h5fd.pyx":40
808
/* "/home/tachyon/h5py/h5py/h5fd.pyx":40
777
809
* CORE = H5FD_CORE
778
810
* FAMILY = H5FD_FAMILY
779
811
* LOG = H5FD_LOG # <<<<<<<<<<<<<<
785
817
if (PyObject_SetAttr(__pyx_m, __pyx_n_s__LOG, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 40; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
786
818
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
788
/* "/home/tachyon/slave/unix-release/build/h5py/h5fd.pyx":41
820
/* "/home/tachyon/h5py/h5py/h5fd.pyx":41
789
821
* FAMILY = H5FD_FAMILY
791
823
* MPIO = H5FD_MPIO # <<<<<<<<<<<<<<
797
829
if (PyObject_SetAttr(__pyx_m, __pyx_n_s__MPIO, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 41; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
798
830
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
800
/* "/home/tachyon/slave/unix-release/build/h5py/h5fd.pyx":42
832
/* "/home/tachyon/h5py/h5py/h5fd.pyx":42
802
834
* MPIO = H5FD_MPIO
803
835
* MULTI = H5FD_MULTI # <<<<<<<<<<<<<<
809
841
if (PyObject_SetAttr(__pyx_m, __pyx_n_s__MULTI, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 42; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
810
842
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
812
/* "/home/tachyon/slave/unix-release/build/h5py/h5fd.pyx":43
844
/* "/home/tachyon/h5py/h5py/h5fd.pyx":43
813
845
* MPIO = H5FD_MPIO
814
846
* MULTI = H5FD_MULTI
815
847
* SEC2 = H5FD_SEC2 # <<<<<<<<<<<<<<
821
853
if (PyObject_SetAttr(__pyx_m, __pyx_n_s__SEC2, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 43; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
822
854
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
824
/* "/home/tachyon/slave/unix-release/build/h5py/h5fd.pyx":44
856
/* "/home/tachyon/h5py/h5py/h5fd.pyx":44
825
857
* MULTI = H5FD_MULTI
826
858
* SEC2 = H5FD_SEC2
827
859
* STDIO = H5FD_STDIO # <<<<<<<<<<<<<<
833
865
if (PyObject_SetAttr(__pyx_m, __pyx_n_s__STDIO, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 44; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
834
866
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
836
/* "/home/tachyon/slave/unix-release/build/h5py/h5fd.pyx":48
868
/* "/home/tachyon/h5py/h5py/h5fd.pyx":48
837
869
* WINDOWS = H5FD_WINDOWS
839
871
* WINDOWS = -1 # <<<<<<<<<<<<<<
843
875
if (PyObject_SetAttr(__pyx_m, __pyx_n_s__WINDOWS, __pyx_int_neg_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 48; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
845
/* "/home/tachyon/slave/unix-release/build/h5py/h5fd.pyx":52
877
/* "/home/tachyon/h5py/h5py/h5fd.pyx":52
846
878
* # === Logging driver ==========================================================
848
880
* LOG_LOC_READ = H5FD_LOG_LOC_READ # 0x0001 # <<<<<<<<<<<<<<
854
886
if (PyObject_SetAttr(__pyx_m, __pyx_n_s__LOG_LOC_READ, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 52; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
855
887
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
857
/* "/home/tachyon/slave/unix-release/build/h5py/h5fd.pyx":53
889
/* "/home/tachyon/h5py/h5py/h5fd.pyx":53
859
891
* LOG_LOC_READ = H5FD_LOG_LOC_READ # 0x0001
860
892
* LOG_LOC_WRITE = H5FD_LOG_LOC_WRITE # 0x0002 # <<<<<<<<<<<<<<
866
898
if (PyObject_SetAttr(__pyx_m, __pyx_n_s__LOG_LOC_WRITE, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 53; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
867
899
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
869
/* "/home/tachyon/slave/unix-release/build/h5py/h5fd.pyx":54
901
/* "/home/tachyon/h5py/h5py/h5fd.pyx":54
870
902
* LOG_LOC_READ = H5FD_LOG_LOC_READ # 0x0001
871
903
* LOG_LOC_WRITE = H5FD_LOG_LOC_WRITE # 0x0002
872
904
* LOG_LOC_SEEK = H5FD_LOG_LOC_SEEK # 0x0004 # <<<<<<<<<<<<<<
878
910
if (PyObject_SetAttr(__pyx_m, __pyx_n_s__LOG_LOC_SEEK, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 54; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
879
911
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
881
/* "/home/tachyon/slave/unix-release/build/h5py/h5fd.pyx":55
913
/* "/home/tachyon/h5py/h5py/h5fd.pyx":55
882
914
* LOG_LOC_WRITE = H5FD_LOG_LOC_WRITE # 0x0002
883
915
* LOG_LOC_SEEK = H5FD_LOG_LOC_SEEK # 0x0004
884
916
* LOG_LOC_IO = H5FD_LOG_LOC_IO # (H5FD_LOG_LOC_READ|H5FD_LOG_LOC_WRITE|H5FD_LOG_LOC_SEEK) # <<<<<<<<<<<<<<
890
922
if (PyObject_SetAttr(__pyx_m, __pyx_n_s__LOG_LOC_IO, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 55; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
891
923
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
893
/* "/home/tachyon/slave/unix-release/build/h5py/h5fd.pyx":58
925
/* "/home/tachyon/h5py/h5py/h5fd.pyx":58
895
927
* # Flags for tracking number of times each byte is read/written
896
928
* LOG_FILE_READ = H5FD_LOG_FILE_READ # 0x0008 # <<<<<<<<<<<<<<
902
934
if (PyObject_SetAttr(__pyx_m, __pyx_n_s__LOG_FILE_READ, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 58; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
903
935
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
905
/* "/home/tachyon/slave/unix-release/build/h5py/h5fd.pyx":59
937
/* "/home/tachyon/h5py/h5py/h5fd.pyx":59
906
938
* # Flags for tracking number of times each byte is read/written
907
939
* LOG_FILE_READ = H5FD_LOG_FILE_READ # 0x0008
908
940
* LOG_FILE_WRITE= H5FD_LOG_FILE_WRITE # 0x0010 # <<<<<<<<<<<<<<
914
946
if (PyObject_SetAttr(__pyx_m, __pyx_n_s__LOG_FILE_WRITE, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 59; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
915
947
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
917
/* "/home/tachyon/slave/unix-release/build/h5py/h5fd.pyx":60
949
/* "/home/tachyon/h5py/h5py/h5fd.pyx":60
918
950
* LOG_FILE_READ = H5FD_LOG_FILE_READ # 0x0008
919
951
* LOG_FILE_WRITE= H5FD_LOG_FILE_WRITE # 0x0010
920
952
* LOG_FILE_IO = H5FD_LOG_FILE_IO # (H5FD_LOG_FILE_READ|H5FD_LOG_FILE_WRITE) # <<<<<<<<<<<<<<
926
958
if (PyObject_SetAttr(__pyx_m, __pyx_n_s__LOG_FILE_IO, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 60; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
927
959
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
929
/* "/home/tachyon/slave/unix-release/build/h5py/h5fd.pyx":63
961
/* "/home/tachyon/h5py/h5py/h5fd.pyx":63
931
963
* # Flag for tracking "flavor" (type) of information stored at each byte
932
964
* LOG_FLAVOR = H5FD_LOG_FLAVOR # 0x0020 # <<<<<<<<<<<<<<
938
970
if (PyObject_SetAttr(__pyx_m, __pyx_n_s__LOG_FLAVOR, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 63; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
939
971
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
941
/* "/home/tachyon/slave/unix-release/build/h5py/h5fd.pyx":66
973
/* "/home/tachyon/h5py/h5py/h5fd.pyx":66
943
975
* # Flags for tracking total number of reads/writes/seeks
944
976
* LOG_NUM_READ = H5FD_LOG_NUM_READ # 0x0040 # <<<<<<<<<<<<<<
950
982
if (PyObject_SetAttr(__pyx_m, __pyx_n_s__LOG_NUM_READ, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 66; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
951
983
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
953
/* "/home/tachyon/slave/unix-release/build/h5py/h5fd.pyx":67
985
/* "/home/tachyon/h5py/h5py/h5fd.pyx":67
954
986
* # Flags for tracking total number of reads/writes/seeks
955
987
* LOG_NUM_READ = H5FD_LOG_NUM_READ # 0x0040
956
988
* LOG_NUM_WRITE = H5FD_LOG_NUM_WRITE # 0x0080 # <<<<<<<<<<<<<<
962
994
if (PyObject_SetAttr(__pyx_m, __pyx_n_s__LOG_NUM_WRITE, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 67; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
963
995
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
965
/* "/home/tachyon/slave/unix-release/build/h5py/h5fd.pyx":68
997
/* "/home/tachyon/h5py/h5py/h5fd.pyx":68
966
998
* LOG_NUM_READ = H5FD_LOG_NUM_READ # 0x0040
967
999
* LOG_NUM_WRITE = H5FD_LOG_NUM_WRITE # 0x0080
968
1000
* LOG_NUM_SEEK = H5FD_LOG_NUM_SEEK # 0x0100 # <<<<<<<<<<<<<<
974
1006
if (PyObject_SetAttr(__pyx_m, __pyx_n_s__LOG_NUM_SEEK, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 68; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
975
1007
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
977
/* "/home/tachyon/slave/unix-release/build/h5py/h5fd.pyx":69
1009
/* "/home/tachyon/h5py/h5py/h5fd.pyx":69
978
1010
* LOG_NUM_WRITE = H5FD_LOG_NUM_WRITE # 0x0080
979
1011
* LOG_NUM_SEEK = H5FD_LOG_NUM_SEEK # 0x0100
980
1012
* LOG_NUM_IO = H5FD_LOG_NUM_IO # (H5FD_LOG_NUM_READ|H5FD_LOG_NUM_WRITE|H5FD_LOG_NUM_SEEK) # <<<<<<<<<<<<<<
986
1018
if (PyObject_SetAttr(__pyx_m, __pyx_n_s__LOG_NUM_IO, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 69; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
987
1019
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
989
/* "/home/tachyon/slave/unix-release/build/h5py/h5fd.pyx":72
1021
/* "/home/tachyon/h5py/h5py/h5fd.pyx":72
991
1023
* # Flags for tracking time spent in open/read/write/seek/close
992
1024
* LOG_TIME_OPEN = H5FD_LOG_TIME_OPEN # 0x0200 # Not implemented yet # <<<<<<<<<<<<<<
998
1030
if (PyObject_SetAttr(__pyx_m, __pyx_n_s__LOG_TIME_OPEN, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 72; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
999
1031
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
1001
/* "/home/tachyon/slave/unix-release/build/h5py/h5fd.pyx":73
1033
/* "/home/tachyon/h5py/h5py/h5fd.pyx":73
1002
1034
* # Flags for tracking time spent in open/read/write/seek/close
1003
1035
* LOG_TIME_OPEN = H5FD_LOG_TIME_OPEN # 0x0200 # Not implemented yet
1004
1036
* LOG_TIME_READ = H5FD_LOG_TIME_READ # 0x0400 # Not implemented yet # <<<<<<<<<<<<<<
1010
1042
if (PyObject_SetAttr(__pyx_m, __pyx_n_s__LOG_TIME_READ, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 73; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1011
1043
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
1013
/* "/home/tachyon/slave/unix-release/build/h5py/h5fd.pyx":74
1045
/* "/home/tachyon/h5py/h5py/h5fd.pyx":74
1014
1046
* LOG_TIME_OPEN = H5FD_LOG_TIME_OPEN # 0x0200 # Not implemented yet
1015
1047
* LOG_TIME_READ = H5FD_LOG_TIME_READ # 0x0400 # Not implemented yet
1016
1048
* LOG_TIME_WRITE= H5FD_LOG_TIME_WRITE # 0x0800 # Partially implemented (need to track total time) # <<<<<<<<<<<<<<
1022
1054
if (PyObject_SetAttr(__pyx_m, __pyx_n_s__LOG_TIME_WRITE, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 74; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1023
1055
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
1025
/* "/home/tachyon/slave/unix-release/build/h5py/h5fd.pyx":75
1057
/* "/home/tachyon/h5py/h5py/h5fd.pyx":75
1026
1058
* LOG_TIME_READ = H5FD_LOG_TIME_READ # 0x0400 # Not implemented yet
1027
1059
* LOG_TIME_WRITE= H5FD_LOG_TIME_WRITE # 0x0800 # Partially implemented (need to track total time)
1028
1060
* LOG_TIME_SEEK = H5FD_LOG_TIME_SEEK # 0x1000 # Partially implemented (need to track total time & track time for seeks during reading) # <<<<<<<<<<<<<<
1034
1066
if (PyObject_SetAttr(__pyx_m, __pyx_n_s__LOG_TIME_SEEK, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 75; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1035
1067
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
1037
/* "/home/tachyon/slave/unix-release/build/h5py/h5fd.pyx":76
1069
/* "/home/tachyon/h5py/h5py/h5fd.pyx":76
1038
1070
* LOG_TIME_WRITE= H5FD_LOG_TIME_WRITE # 0x0800 # Partially implemented (need to track total time)
1039
1071
* LOG_TIME_SEEK = H5FD_LOG_TIME_SEEK # 0x1000 # Partially implemented (need to track total time & track time for seeks during reading)
1040
1072
* LOG_TIME_CLOSE= H5FD_LOG_TIME_CLOSE # 0x2000 # Fully implemented # <<<<<<<<<<<<<<
1046
1078
if (PyObject_SetAttr(__pyx_m, __pyx_n_s__LOG_TIME_CLOSE, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 76; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1047
1079
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
1049
/* "/home/tachyon/slave/unix-release/build/h5py/h5fd.pyx":77
1081
/* "/home/tachyon/h5py/h5py/h5fd.pyx":77
1050
1082
* LOG_TIME_SEEK = H5FD_LOG_TIME_SEEK # 0x1000 # Partially implemented (need to track total time & track time for seeks during reading)
1051
1083
* LOG_TIME_CLOSE= H5FD_LOG_TIME_CLOSE # 0x2000 # Fully implemented
1052
1084
* LOG_TIME_IO = H5FD_LOG_TIME_IO # (H5FD_LOG_TIME_OPEN|H5FD_LOG_TIME_READ|H5FD_LOG_TIME_WRITE|H5FD_LOG_TIME_SEEK|H5FD_LOG_TIME_CLOSE) # <<<<<<<<<<<<<<
1058
1090
if (PyObject_SetAttr(__pyx_m, __pyx_n_s__LOG_TIME_IO, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 77; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1059
1091
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
1061
/* "/home/tachyon/slave/unix-release/build/h5py/h5fd.pyx":80
1093
/* "/home/tachyon/h5py/h5py/h5fd.pyx":80
1063
1095
* # Flag for tracking allocation of space in file
1064
1096
* LOG_ALLOC = H5FD_LOG_ALLOC # 0x4000 # <<<<<<<<<<<<<<
1070
1102
if (PyObject_SetAttr(__pyx_m, __pyx_n_s__LOG_ALLOC, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 80; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1071
1103
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
1073
/* "/home/tachyon/slave/unix-release/build/h5py/h5fd.pyx":81
1105
/* "/home/tachyon/h5py/h5py/h5fd.pyx":81
1074
1106
* # Flag for tracking allocation of space in file
1075
1107
* LOG_ALLOC = H5FD_LOG_ALLOC # 0x4000
1076
1108
* LOG_ALL = H5FD_LOG_ALL # (H5FD_LOG_ALLOC|H5FD_LOG_TIME_IO|H5FD_LOG_NUM_IO|H5FD_LOG_FLAVOR|H5FD_LOG_FILE_IO|H5FD_LOG_LOC_IO) # <<<<<<<<<<<<<<
1081
1113
if (PyObject_SetAttr(__pyx_m, __pyx_n_s__LOG_ALL, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 81; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1082
1114
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
1084
/* "/home/tachyon/slave/unix-release/build/h5py/h5.pxd":1
1116
/* "/home/tachyon/h5py/h5py/h5.pxd":1
1085
1117
* #+ # <<<<<<<<<<<<<<
1087
1119
* # This file is part of h5py, a low-level Python interface to the HDF5 library.
1116
1148
__pyx_f = __pyx_filenames;
1119
static INLINE PyObject *__Pyx_PyInt_to_py_hid_t(hid_t val) {
1151
static CYTHON_INLINE PyObject *__Pyx_PyInt_to_py_hid_t(hid_t val) {
1120
1152
const hid_t neg_one = (hid_t)-1, const_zero = 0;
1121
1153
const int is_unsigned = neg_one > const_zero;
1122
1154
if (sizeof(hid_t) < sizeof(long)) {
1137
static INLINE unsigned char __Pyx_PyInt_AsUnsignedChar(PyObject* x) {
1169
static CYTHON_INLINE unsigned char __Pyx_PyInt_AsUnsignedChar(PyObject* x) {
1138
1170
const unsigned char neg_one = (unsigned char)-1, const_zero = 0;
1139
1171
const int is_unsigned = neg_one > const_zero;
1140
1172
if (sizeof(unsigned char) < sizeof(long)) {
1153
1185
return (unsigned char)__Pyx_PyInt_AsUnsignedLong(x);
1156
static INLINE unsigned short __Pyx_PyInt_AsUnsignedShort(PyObject* x) {
1188
static CYTHON_INLINE unsigned short __Pyx_PyInt_AsUnsignedShort(PyObject* x) {
1157
1189
const unsigned short neg_one = (unsigned short)-1, const_zero = 0;
1158
1190
const int is_unsigned = neg_one > const_zero;
1159
1191
if (sizeof(unsigned short) < sizeof(long)) {
1172
1204
return (unsigned short)__Pyx_PyInt_AsUnsignedLong(x);
1175
static INLINE unsigned int __Pyx_PyInt_AsUnsignedInt(PyObject* x) {
1207
static CYTHON_INLINE unsigned int __Pyx_PyInt_AsUnsignedInt(PyObject* x) {
1176
1208
const unsigned int neg_one = (unsigned int)-1, const_zero = 0;
1177
1209
const int is_unsigned = neg_one > const_zero;
1178
1210
if (sizeof(unsigned int) < sizeof(long)) {
1191
1223
return (unsigned int)__Pyx_PyInt_AsUnsignedLong(x);
1194
static INLINE char __Pyx_PyInt_AsChar(PyObject* x) {
1226
static CYTHON_INLINE char __Pyx_PyInt_AsChar(PyObject* x) {
1195
1227
const char neg_one = (char)-1, const_zero = 0;
1196
1228
const int is_unsigned = neg_one > const_zero;
1197
1229
if (sizeof(char) < sizeof(long)) {
1210
1242
return (char)__Pyx_PyInt_AsLong(x);
1213
static INLINE short __Pyx_PyInt_AsShort(PyObject* x) {
1245
static CYTHON_INLINE short __Pyx_PyInt_AsShort(PyObject* x) {
1214
1246
const short neg_one = (short)-1, const_zero = 0;
1215
1247
const int is_unsigned = neg_one > const_zero;
1216
1248
if (sizeof(short) < sizeof(long)) {
1229
1261
return (short)__Pyx_PyInt_AsLong(x);
1232
static INLINE int __Pyx_PyInt_AsInt(PyObject* x) {
1264
static CYTHON_INLINE int __Pyx_PyInt_AsInt(PyObject* x) {
1233
1265
const int neg_one = (int)-1, const_zero = 0;
1234
1266
const int is_unsigned = neg_one > const_zero;
1235
1267
if (sizeof(int) < sizeof(long)) {
1248
1280
return (int)__Pyx_PyInt_AsLong(x);
1251
static INLINE signed char __Pyx_PyInt_AsSignedChar(PyObject* x) {
1283
static CYTHON_INLINE signed char __Pyx_PyInt_AsSignedChar(PyObject* x) {
1252
1284
const signed char neg_one = (signed char)-1, const_zero = 0;
1253
1285
const int is_unsigned = neg_one > const_zero;
1254
1286
if (sizeof(signed char) < sizeof(long)) {
1267
1299
return (signed char)__Pyx_PyInt_AsSignedLong(x);
1270
static INLINE signed short __Pyx_PyInt_AsSignedShort(PyObject* x) {
1302
static CYTHON_INLINE signed short __Pyx_PyInt_AsSignedShort(PyObject* x) {
1271
1303
const signed short neg_one = (signed short)-1, const_zero = 0;
1272
1304
const int is_unsigned = neg_one > const_zero;
1273
1305
if (sizeof(signed short) < sizeof(long)) {
1286
1318
return (signed short)__Pyx_PyInt_AsSignedLong(x);
1289
static INLINE signed int __Pyx_PyInt_AsSignedInt(PyObject* x) {
1321
static CYTHON_INLINE signed int __Pyx_PyInt_AsSignedInt(PyObject* x) {
1290
1322
const signed int neg_one = (signed int)-1, const_zero = 0;
1291
1323
const int is_unsigned = neg_one > const_zero;
1292
1324
if (sizeof(signed int) < sizeof(long)) {
1305
1337
return (signed int)__Pyx_PyInt_AsSignedLong(x);
1308
static INLINE unsigned long __Pyx_PyInt_AsUnsignedLong(PyObject* x) {
1340
static CYTHON_INLINE unsigned long __Pyx_PyInt_AsUnsignedLong(PyObject* x) {
1309
1341
const unsigned long neg_one = (unsigned long)-1, const_zero = 0;
1310
1342
const int is_unsigned = neg_one > const_zero;
1311
1343
#if PY_VERSION_HEX < 0x03000000
1343
static INLINE unsigned PY_LONG_LONG __Pyx_PyInt_AsUnsignedLongLong(PyObject* x) {
1375
static CYTHON_INLINE unsigned PY_LONG_LONG __Pyx_PyInt_AsUnsignedLongLong(PyObject* x) {
1344
1376
const unsigned PY_LONG_LONG neg_one = (unsigned PY_LONG_LONG)-1, const_zero = 0;
1345
1377
const int is_unsigned = neg_one > const_zero;
1346
1378
#if PY_VERSION_HEX < 0x03000000
1378
static INLINE long __Pyx_PyInt_AsLong(PyObject* x) {
1410
static CYTHON_INLINE long __Pyx_PyInt_AsLong(PyObject* x) {
1379
1411
const long neg_one = (long)-1, const_zero = 0;
1380
1412
const int is_unsigned = neg_one > const_zero;
1381
1413
#if PY_VERSION_HEX < 0x03000000
1413
static INLINE PY_LONG_LONG __Pyx_PyInt_AsLongLong(PyObject* x) {
1445
static CYTHON_INLINE PY_LONG_LONG __Pyx_PyInt_AsLongLong(PyObject* x) {
1414
1446
const PY_LONG_LONG neg_one = (PY_LONG_LONG)-1, const_zero = 0;
1415
1447
const int is_unsigned = neg_one > const_zero;
1416
1448
#if PY_VERSION_HEX < 0x03000000
1448
static INLINE signed long __Pyx_PyInt_AsSignedLong(PyObject* x) {
1480
static CYTHON_INLINE signed long __Pyx_PyInt_AsSignedLong(PyObject* x) {
1449
1481
const signed long neg_one = (signed long)-1, const_zero = 0;
1450
1482
const int is_unsigned = neg_one > const_zero;
1451
1483
#if PY_VERSION_HEX < 0x03000000
1483
static INLINE signed PY_LONG_LONG __Pyx_PyInt_AsSignedLongLong(PyObject* x) {
1515
static CYTHON_INLINE signed PY_LONG_LONG __Pyx_PyInt_AsSignedLongLong(PyObject* x) {
1484
1516
const signed PY_LONG_LONG neg_one = (signed PY_LONG_LONG)-1, const_zero = 0;
1485
1517
const int is_unsigned = neg_one > const_zero;
1486
1518
#if PY_VERSION_HEX < 0x03000000
1547
1580
module_name, class_name);
1550
if (((PyTypeObject *)result)->tp_basicsize != size) {
1583
if (!strict && ((PyTypeObject *)result)->tp_basicsize > size) {
1584
PyOS_snprintf(warning, sizeof(warning),
1585
"%s.%s size changed, may indicate binary incompatibility",
1586
module_name, class_name);
1587
PyErr_WarnEx(NULL, warning, 0);
1589
else if (((PyTypeObject *)result)->tp_basicsize != size) {
1551
1590
PyErr_Format(PyExc_ValueError,
1552
"%s.%s does not appear to be the correct type object",
1591
"%s.%s has the wrong size, try recompiling",
1553
1592
module_name, class_name);
1742
1781
/* Type Conversion Functions */
1744
static INLINE int __Pyx_PyObject_IsTrue(PyObject* x) {
1783
static CYTHON_INLINE int __Pyx_PyObject_IsTrue(PyObject* x) {
1745
1784
if (x == Py_True) return 1;
1746
1785
else if ((x == Py_False) | (x == Py_None)) return 0;
1747
1786
else return PyObject_IsTrue(x);
1750
static INLINE PyObject* __Pyx_PyNumber_Int(PyObject* x) {
1789
static CYTHON_INLINE PyObject* __Pyx_PyNumber_Int(PyObject* x) {
1751
1790
PyNumberMethods *m;
1752
1791
const char *name = NULL;
1753
1792
PyObject *res = NULL;