Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/c-api.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -881,7 +881,7 @@ All `length` fields should be initialized to zero if `__init_riscv_feature_bits`

NOTE: To detect failure in the `__init_riscv_feature_bits` function, it is recommended to check that `__riscv_feature_bits.length` is non-zero.

Each queryable extension must have an associated `groupid` and `bitmask` that indicates its position within the features array.
Each queryable extension must have an associated `groupid` and `bitmask` that indicates its position within the features array.

> For example, the zba extension is represented by `groupid`: 0 and `bitmask`: `1ULL << 27`. Users can check if the zba extension is enabled using: `__riscv_feature_bits.features[0] & (1ULL << 27)`.

Expand Down
Loading