From fd3f9219f4e7178435f312300f933abe25608cf3 Mon Sep 17 00:00:00 2001 From: Bryan Forbes Date: Tue, 16 Mar 2010 03:40:55 -0500 Subject: Added cython bindings. --- cython/stdint.pxi | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 cython/stdint.pxi (limited to 'cython/stdint.pxi') diff --git a/cython/stdint.pxi b/cython/stdint.pxi new file mode 100644 index 0000000..518c3d1 --- /dev/null +++ b/cython/stdint.pxi @@ -0,0 +1,10 @@ +cdef extern from "stdint.h": + ctypedef unsigned char uint8_t + ctypedef short int int16_t + ctypedef unsigned short int uint16_t + ctypedef unsigned int uint32_t + ctypedef int int32_t +IF UNAME_MACHINE == 'x86_64': + ctypedef unsigned long int uint64_t +ELSE: + ctypedef unsigned long long int uint64_t -- cgit v1.1-32-gdbae