CastKind Type
Represents a cast kind, used in the Cast expression.
Record fields
| Record Field |
Description
|
Float-to-float conversion between different precisions.
|
|
Float-to-float conversion while rounding toward +inf. E.g., 23.2 -> 24.0, and -23.7 -> -23.
|
|
Float-to-float conversion while rounding toward -inf. E.g., 23.7 -> 23.0, and -23.2 -> -24.
|
|
Float-to-float conversion while rounding to the nearest integer. Ties to even.
|
|
Float-to-float conversion while rounding toward zero. E.g. 23.7 -> 23.0, and -23.7 -> -23.
|
|
Float to Integer rounded up conversion (toward +inf). When the given float is too large to be represented as an integer, the result is MIN_INT, i.e., 0x80000000 for 32-bit integers and 0x8000000000000000 for 64-bit integers.
|
|
Float to Integer rounded down conversion (toward -inf). When the given float is too large to be represented as an integer, the result is MIN_INT, i.e., 0x80000000 for 32-bit integers and 0x8000000000000000 for 64-bit integers.
|
|
Float to Nearest Integer rounded conversion. Ties to even. When the given float is too large to be represented as an integer, the result is MIN_INT, i.e., 0x80000000 for 32-bit integers and 0x8000000000000000 for 64-bit integers.
|
|
Float to Integer truncated conversion (closest to but no greater in absolute value than the infinitely precise result). When the given float is too large to be represented as an integer, the result is MIN_INT, i.e., 0x80000000 for 32-bit integers and 0x8000000000000000 for 64-bit integers.
|
|
|
Signed integer to float conversion
|
Sign-extending conversion
|
|
|
Unsigned integer to float conversion
|
Zero-extending conversion
|
B2R2