Skip to content

Commit 16c8466

Browse files
a4lgcmuellner
authored andcommitted
Add support for RV64E and LP64E
`__riscv_64e` is defined analogously to `__riscv_32e`. Changing the meaning of `__riscv_32e` should not cause any problems since if we are just testing for existence of the `E` extension, there is `__riscv_e` preprocessor macro.
1 parent 7387788 commit 16c8466

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

riscv-c-api.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ https://creativecommons.org/licenses/by/4.0/.
3838
| __riscv | 1 | Always defined. |
3939
| __riscv_xlen | <ul><li>32 for rv32</li><li>64 for rv64</li><li>128 for rv128</ul> | Always defined. |
4040
| __riscv_flen | <ul><li>32 if the F extension is available **or**</li><li>64 if `D` extension available **or**</li><li>128 if `Q` extension available</li></ul> | `F` extension is available. |
41-
| __riscv_32e | 1 | `E` extension is available. |
41+
| __riscv_32e | 1 | RV32E is available. |
42+
| __riscv_64e | 1 | RV64E is available. |
4243
| __riscv_vector | 1 | Implies that any of the vector extensions (`v` or `zve*`) is available |
4344
| __riscv_v_min_vlen | <N> (see [__riscv_v_min_vlen](#__riscv_v_min_vlen)) | The `V` extension or one of the `Zve*` extensions is available. |
4445
| __riscv_v_elen | <N> (see [__riscv_v_elen](#__riscv_v_elen)) | The `V` extension or one of the `Zve*` extensions is available. |
@@ -149,8 +150,8 @@ For example:
149150

150151
| Name | Value | When defined |
151152
| ------------------------ | ----- | ----------------------------- |
152-
| __riscv_abi_rve | 1 | Defined if using `ilp32e` ABI |
153-
| __riscv_float_abi_soft | 1 | Defined if using `ilp32`, `ilp32e` or `lp64` ABI. |
153+
| __riscv_abi_rve | 1 | Defined if using `ilp32e` or `lp64e` ABI |
154+
| __riscv_float_abi_soft | 1 | Defined if using `ilp32`, `ilp32e`, `lp64` or `lp64e` ABI. |
154155
| __riscv_float_abi_single | 1 | Defined if using `ilp32f` or `lp64f` ABI. |
155156
| __riscv_float_abi_double | 1 | Defined if using `ilp32d` or `lp64d` ABI. |
156157
| __riscv_float_abi_quad | 1 | Defined if using `ilp32q` or `lp64q` ABI. |

0 commit comments

Comments
 (0)