from __future__ import absolute_import
from cdsl.types import IntType, FloatType, BoolType, FlagsType
b1 = BoolType(1) b8 = BoolType(8) b16 = BoolType(16) b32 = BoolType(32) b64 = BoolType(64)
i8 = IntType(8) i16 = IntType(16) i32 = IntType(32) i64 = IntType(64)
f32 = FloatType(
32, """
A 32-bit floating point type represented in the IEEE 754-2008
*binary32* interchange format. This corresponds to the :c:type:`float`
type in most C implementations.
""")
f64 = FloatType(
64, """
A 64-bit floating point type represented in the IEEE 754-2008
*binary64* interchange format. This corresponds to the :c:type:`double`
type in most C implementations.
""")
iflags = FlagsType(
'iflags', """
CPU flags representing the result of an integer comparison. These flags
can be tested with an :type:`intcc` condition code.
""")
fflags = FlagsType(
'fflags', """
CPU flags representing the result of a floating point comparison. These
flags can be tested with a :type:`floatcc` condition code.
""")