"CLong" (コンパイルタイプ)
"CLong" (コンパイルタイプ)
"CLong"
C言語のlong型を表す.
詳細
- "CLong"はプラットフォーム特有の具象型で置き換えられるマクロである.ほとんどのプラットフォームでは,"CLong"は"Integer32"または"Integer64"のマクロである.
例題
例 (3)
cf = FunctionCompile[Function[Typed[arg, "CLong"], arg]]cf[100]longでC標準ライブラリ関数labsを呼び出すプログラムをコンパイルする:
cf = FunctionCompile[Function[Typed[arg, "CLong"], LibraryFunction["labs"][arg]]]cf[-10]cf = FunctionCompile[Function[{}, Typed[12, "CLong"]]]cf[]関連項目
コンパイルタイプ: Integer64 CUnsignedLong Integer128
テクニカルノート
履歴
2022 で導入 (13.1)