summaryrefslogtreecommitdiffstats
path: root/cython/stdint.pxi
blob: e21103fad7eda80253a1fc82f4d4461faf69adbd (plain)
1
2
3
4
5
6
7
8
9
10
cdef extern from *:
    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