noprefix.h
1 #ifndef NUMPY_CORE_INCLUDE_NUMPY_NOPREFIX_H_ 2 #define NUMPY_CORE_INCLUDE_NUMPY_NOPREFIX_H_ 3 4 /* 5 * You can directly include noprefix.h as a backward 6 * compatibility measure 7 */ 8 #ifndef NPY_NO_PREFIX 9 #include "ndarrayobject.h" 10 #include "npy_interrupt.h" 11 #endif 12 13 #define SIGSETJMP NPY_SIGSETJMP 14 #define SIGLONGJMP NPY_SIGLONGJMP 15 #define SIGJMP_BUF NPY_SIGJMP_BUF 16 17 #define MAX_DIMS NPY_MAXDIMS 18 19 #define longlong npy_longlong 20 #define ulonglong npy_ulonglong 21 #define Bool npy_bool 22 #define longdouble npy_longdouble 23 #define byte npy_byte 24 25 #ifndef _BSD_SOURCE 26 #define ushort npy_ushort 27 #define uint npy_uint 28 #define ulong npy_ulong 29 #endif 30 31 #define ubyte npy_ubyte 32 #define ushort npy_ushort 33 #define uint npy_uint 34 #define ulong npy_ulong 35 #define cfloat npy_cfloat 36 #define cdouble npy_cdouble 37 #define clongdouble npy_clongdouble 38 #define Int8 npy_int8 39 #define UInt8 npy_uint8 40 #define Int16 npy_int16 41 #define UInt16 npy_uint16 42 #define Int32 npy_int32 43 #define UInt32 npy_uint32 44 #define Int64 npy_int64 45 #define UInt64 npy_uint64 46 #define Int128 npy_int128 47 #define UInt128 npy_uint128 48 #define Int256 npy_int256 49 #define UInt256 npy_uint256 50 #define Float16 npy_float16 51 #define Complex32 npy_complex32 52 #define Float32 npy_float32 53 #define Complex64 npy_complex64 54 #define Float64 npy_float64 55 #define Complex128 npy_complex128 56 #define Float80 npy_float80 57 #define Complex160 npy_complex160 58 #define Float96 npy_float96 59 #define Complex192 npy_complex192 60 #define Float128 npy_float128 61 #define Complex256 npy_complex256 62 #define intp npy_intp 63 #define uintp npy_uintp 64 #define datetime npy_datetime 65 #define timedelta npy_timedelta 66 67 #define SIZEOF_LONGLONG NPY_SIZEOF_LONGLONG 68 #define SIZEOF_INTP NPY_SIZEOF_INTP 69 #define SIZEOF_UINTP NPY_SIZEOF_UINTP 70 #define SIZEOF_HALF NPY_SIZEOF_HALF 71 #define SIZEOF_LONGDOUBLE NPY_SIZEOF_LONGDOUBLE 72 #define SIZEOF_DATETIME NPY_SIZEOF_DATETIME 73 #define SIZEOF_TIMEDELTA NPY_SIZEOF_TIMEDELTA 74 75 #define LONGLONG_FMT NPY_LONGLONG_FMT 76 #define ULONGLONG_FMT NPY_ULONGLONG_FMT 77 #define LONGLONG_SUFFIX NPY_LONGLONG_SUFFIX 78 #define ULONGLONG_SUFFIX NPY_ULONGLONG_SUFFIX 79 80 #define MAX_INT8 127 81 #define MIN_INT8 -128 82 #define MAX_UINT8 255 83 #define MAX_INT16 32767 84 #define MIN_INT16 -32768 85 #define MAX_UINT16 65535 86 #define MAX_INT32 2147483647 87 #define MIN_INT32 (-MAX_INT32 - 1) 88 #define MAX_UINT32 4294967295U 89 #define MAX_INT64 LONGLONG_SUFFIX(9223372036854775807) 90 #define MIN_INT64 (-MAX_INT64 - LONGLONG_SUFFIX(1)) 91 #define MAX_UINT64 ULONGLONG_SUFFIX(18446744073709551615) 92 #define MAX_INT128 LONGLONG_SUFFIX(85070591730234615865843651857942052864) 93 #define MIN_INT128 (-MAX_INT128 - LONGLONG_SUFFIX(1)) 94 #define MAX_UINT128 ULONGLONG_SUFFIX(170141183460469231731687303715884105728) 95 #define MAX_INT256 LONGLONG_SUFFIX(57896044618658097711785492504343953926634992332820282019728792003956564819967) 96 #define MIN_INT256 (-MAX_INT256 - LONGLONG_SUFFIX(1)) 97 #define MAX_UINT256 ULONGLONG_SUFFIX(115792089237316195423570985008687907853269984665640564039457584007913129639935) 98 99 #define MAX_BYTE NPY_MAX_BYTE 100 #define MIN_BYTE NPY_MIN_BYTE 101 #define MAX_UBYTE NPY_MAX_UBYTE 102 #define MAX_SHORT NPY_MAX_SHORT 103 #define MIN_SHORT NPY_MIN_SHORT 104 #define MAX_USHORT NPY_MAX_USHORT 105 #define MAX_INT NPY_MAX_INT 106 #define MIN_INT NPY_MIN_INT 107 #define MAX_UINT NPY_MAX_UINT 108 #define MAX_LONG NPY_MAX_LONG 109 #define MIN_LONG NPY_MIN_LONG 110 #define MAX_ULONG NPY_MAX_ULONG 111 #define MAX_LONGLONG NPY_MAX_LONGLONG 112 #define MIN_LONGLONG NPY_MIN_LONGLONG 113 #define MAX_ULONGLONG NPY_MAX_ULONGLONG 114 #define MIN_DATETIME NPY_MIN_DATETIME 115 #define MAX_DATETIME NPY_MAX_DATETIME 116 #define MIN_TIMEDELTA NPY_MIN_TIMEDELTA 117 #define MAX_TIMEDELTA NPY_MAX_TIMEDELTA 118 119 #define BITSOF_BOOL NPY_BITSOF_BOOL 120 #define BITSOF_CHAR NPY_BITSOF_CHAR 121 #define BITSOF_SHORT NPY_BITSOF_SHORT 122 #define BITSOF_INT NPY_BITSOF_INT 123 #define BITSOF_LONG NPY_BITSOF_LONG 124 #define BITSOF_LONGLONG NPY_BITSOF_LONGLONG 125 #define BITSOF_HALF NPY_BITSOF_HALF 126 #define BITSOF_FLOAT NPY_BITSOF_FLOAT 127 #define BITSOF_DOUBLE NPY_BITSOF_DOUBLE 128 #define BITSOF_LONGDOUBLE NPY_BITSOF_LONGDOUBLE 129 #define BITSOF_DATETIME NPY_BITSOF_DATETIME 130 #define BITSOF_TIMEDELTA NPY_BITSOF_TIMEDELTA 131 132 #define _pya_malloc PyArray_malloc 133 #define _pya_free PyArray_free 134 #define _pya_realloc PyArray_realloc 135 136 #define BEGIN_THREADS_DEF NPY_BEGIN_THREADS_DEF 137 #define BEGIN_THREADS NPY_BEGIN_THREADS 138 #define END_THREADS NPY_END_THREADS 139 #define ALLOW_C_API_DEF NPY_ALLOW_C_API_DEF 140 #define ALLOW_C_API NPY_ALLOW_C_API 141 #define DISABLE_C_API NPY_DISABLE_C_API 142 143 #define PY_FAIL NPY_FAIL 144 #define PY_SUCCEED NPY_SUCCEED 145 146 #ifndef TRUE 147 #define TRUE NPY_TRUE 148 #endif 149 150 #ifndef FALSE 151 #define FALSE NPY_FALSE 152 #endif 153 154 #define LONGDOUBLE_FMT NPY_LONGDOUBLE_FMT 155 156 #define CONTIGUOUS NPY_CONTIGUOUS 157 #define C_CONTIGUOUS NPY_C_CONTIGUOUS 158 #define FORTRAN NPY_FORTRAN 159 #define F_CONTIGUOUS NPY_F_CONTIGUOUS 160 #define OWNDATA NPY_OWNDATA 161 #define FORCECAST NPY_FORCECAST 162 #define ENSURECOPY NPY_ENSURECOPY 163 #define ENSUREARRAY NPY_ENSUREARRAY 164 #define ELEMENTSTRIDES NPY_ELEMENTSTRIDES 165 #define ALIGNED NPY_ALIGNED 166 #define NOTSWAPPED NPY_NOTSWAPPED 167 #define WRITEABLE NPY_WRITEABLE 168 #define WRITEBACKIFCOPY NPY_ARRAY_WRITEBACKIFCOPY 169 #define ARR_HAS_DESCR NPY_ARR_HAS_DESCR 170 #define BEHAVED NPY_BEHAVED 171 #define BEHAVED_NS NPY_BEHAVED_NS 172 #define CARRAY NPY_CARRAY 173 #define CARRAY_RO NPY_CARRAY_RO 174 #define FARRAY NPY_FARRAY 175 #define FARRAY_RO NPY_FARRAY_RO 176 #define DEFAULT NPY_DEFAULT 177 #define IN_ARRAY NPY_IN_ARRAY 178 #define OUT_ARRAY NPY_OUT_ARRAY 179 #define INOUT_ARRAY NPY_INOUT_ARRAY 180 #define IN_FARRAY NPY_IN_FARRAY 181 #define OUT_FARRAY NPY_OUT_FARRAY 182 #define INOUT_FARRAY NPY_INOUT_FARRAY 183 #define UPDATE_ALL NPY_UPDATE_ALL 184 185 #define OWN_DATA NPY_OWNDATA 186 #define BEHAVED_FLAGS NPY_BEHAVED 187 #define BEHAVED_FLAGS_NS NPY_BEHAVED_NS 188 #define CARRAY_FLAGS_RO NPY_CARRAY_RO 189 #define CARRAY_FLAGS NPY_CARRAY 190 #define FARRAY_FLAGS NPY_FARRAY 191 #define FARRAY_FLAGS_RO NPY_FARRAY_RO 192 #define DEFAULT_FLAGS NPY_DEFAULT 193 #define UPDATE_ALL_FLAGS NPY_UPDATE_ALL_FLAGS 194 195 #ifndef MIN 196 #define MIN PyArray_MIN 197 #endif 198 #ifndef MAX 199 #define MAX PyArray_MAX 200 #endif 201 #define MAX_INTP NPY_MAX_INTP 202 #define MIN_INTP NPY_MIN_INTP 203 #define MAX_UINTP NPY_MAX_UINTP 204 #define INTP_FMT NPY_INTP_FMT 205 206 #ifndef PYPY_VERSION 207 #define REFCOUNT PyArray_REFCOUNT 208 #define MAX_ELSIZE NPY_MAX_ELSIZE 209 #endif 210 211 #endif /* NUMPY_CORE_INCLUDE_NUMPY_NOPREFIX_H_ */