aboutsummaryrefslogtreecommitdiffstats
path: root/awlsim/common/cython_support.pxd.in
blob: 40e214ed24da566360c2280241ec0dea9744bfbd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# Get all stdint types.
from libc.stdint cimport *

# Boolean type. The values 0 and 1 can be used.
ctypedef bint		_Bool

# Extended boolean type for use as return type from
# functions that can raise exceptions.
# The values 0 and 1 can be used.
# An exception is encoded as special value ExBool_val.
ctypedef signed int	ExBool_t
cdef enum:		ExBool_val = -1

# Make the Cython likely()/unlikely() condition macros accessible.
cdef extern from *:
	_Bool likely(_Bool)
	_Bool unlikely(_Bool)
bues.ch cgit interface