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