(no commit message)
authorlkcl <lkcl@web>
Thu, 26 May 2022 12:36:50 +0000 (13:36 +0100)
committerIkiWiki <ikiwiki.info>
Thu, 26 May 2022 12:36:50 +0000 (13:36 +0100)
openpower/sv/int_fp_mv.mdwn

index 578a9b180710188825e37c1fd3c841aa5313039b..46a76e9c62f0979fdcf095aaf2d93da5c3401999 100644 (file)
@@ -430,8 +430,10 @@ Key for pseudo-code:
 | `int`                     | --          | `u32`/`u64`/`i32`/`i64` (or other types from SimpleV)                                              |
 | `uint`                    | --          | the unsigned integer of the same bit-width as `int`                                                |
 | `int::BITS`               | `int`       | the bit-width of `int`                                                                             |
-| `int::MIN_VALUE`          | `int`       | the minimum value `int` can store (`0` if unsigned, `-2^(int::BITS-1)` if signed)                  |
-| `int::MAX_VALUE`          | `int`       | the maximum value `int` can store (`2^int::BITS - 1` if unsigned, `2^(int::BITS-1) - 1` if signed) |
+| `uint::MIN_VALUE`         | `uint`      | the minimum value `uint` can store: `0`                   |
+| `uint::MAX_VALUE`          | `uint`       | the maximum value `uint` can store: `2^int::BITS - 1`  |
+| `int::MIN_VALUE`          | `int`       | the minimum value `int` can store : `-2^(int::BITS-1)`              |
+| `int::MAX_VALUE`          | `int`       | the maximum value `int` can store :  `2^(int::BITS-1) - 1`  |
 | `int::VALUE_COUNT`        | Integer     | the number of different values `int` can store (`2^int::BITS`). too big to fit in `int`.           |
 | `rint(fp, rounding_mode)` | `fp`        | rounds the floating-point value `fp` to an integer according to rounding mode `rounding_mode`      |