summaryrefslogtreecommitdiffstats
path: root/cython/stdint.pxi
blob: 518c3d12c1a11bd6fdc217c6be7ca816593383ca (plain)
1
2
3
4
5
6
7
8
9
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