"CInt" (Compiled Type)
"CInt" (Compiled Type)
"CInt"
represents the C int type.
Details
- "CInt" is a macro that is replaced with a platform-specific concrete type. On most platforms, "CInt" is a macro for "Integer32".
Examples
Basic Examples (3)
Compile a function that takes a "CInt" as input:
cf = FunctionCompile[Function[Typed[arg, "CInt"], arg]]cf[100]Compile a program that calls the C standard library function abs on an int:
cf = FunctionCompile[Function[Typed[arg, "CInt"], LibraryFunction["abs"][arg]]]cf[-10]Create a constant with type "CInt":
cf = FunctionCompile[Function[{}, Typed[12, "CInt"]]]cf[]See Also
Compiled Types: Integer32 CUnsignedInt CLong CFloat
Tech Notes
Related Guides
History
Introduced in 2022 (13.1)