summaryrefslogtreecommitdiffstats
path: root/cython/stdint.pxi
blob: f9e5e95284f00e90a65b621d3b26f7a6b3fc5ec8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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
    ctypedef long int time_t 
IF UNAME_MACHINE == 'x86_64':
    ctypedef long int int64_t
    ctypedef unsigned long int uint64_t
ELSE:
    ctypedef long long int int64_t
    ctypedef unsigned long long int uint64_t

cdef extern from "time.h":
    cdef struct timeval:
        time_t tv_sec
        time_t tv_usec