Skip to content

Commit

Permalink
__riscv_v_intrinsic should always define if compiler support RVV in…
Browse files Browse the repository at this point in the history
…trinsics.

Fix #376
  • Loading branch information
kito-cheng committed Nov 19, 2024
1 parent 3d81513 commit 39bd4ba
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions doc/rvv-intrinsic-spec.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ This document uses the term "RVV" as an abbreviation for the RISC-V "V" extensio

The `__riscv_v_intrinsic` macro is the C macro to test the compiler's support for the RISC-V "V" extension intrinsics.

This macro should be defined even if the vector extension is not enabled.

The value of the test macro is defined as its version, which is computed using the following formula. The formula is identical to what is defined in the RISC-V C API specification cite:[riscv-c-api].

----
Expand Down

0 comments on commit 39bd4ba

Please sign in to comment.