summaryrefslogtreecommitdiffstats
path: root/cython/stdint.pxi
diff options
context:
space:
mode:
Diffstat (limited to 'cython/stdint.pxi')
-rw-r--r--cython/stdint.pxi10
1 files changed, 10 insertions, 0 deletions
diff --git a/cython/stdint.pxi b/cython/stdint.pxi
new file mode 100644
index 0000000..e21103f
--- /dev/null
+++ b/cython/stdint.pxi
@@ -0,0 +1,10 @@
1cdef extern from *:
2 ctypedef unsigned char uint8_t
3 ctypedef short int int16_t
4 ctypedef unsigned short int uint16_t
5 ctypedef unsigned int uint32_t
6 ctypedef int int32_t
7IF UNAME_MACHINE == 'x86_64':
8 ctypedef unsigned long int uint64_t
9ELSE:
10 ctypedef unsigned long long int uint64_t