Skip to content

Commit

Permalink
Backport simdutf riscv v extension fix
Browse files Browse the repository at this point in the history
  • Loading branch information
klzgrad committed Feb 7, 2025
1 parent 2f2533a commit 2281216
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/third_party/simdutf/simdutf.h
Original file line number Diff line number Diff line change
Expand Up @@ -155,10 +155,11 @@
// RISC-V 64-bit
#define SIMDUTF_IS_RISCV64 1

#if __clang_major__ >= 19
// Does the compiler support target regions for RISC-V
#define SIMDUTF_HAS_RVV_TARGET_REGION 1
#endif
//#if __riscv_v_intrinsic >= 1000000
// #define SIMDUTF_HAS_RVV_INTRINSICS 1
// #define SIMDUTF_HAS_RVV_TARGET_REGION 1
//#elif ...
// Check for special compiler versions that implement pre v1.0 intrinsics

#if __riscv_v_intrinsic >= 11000
#define SIMDUTF_HAS_RVV_INTRINSICS 1
Expand Down

0 comments on commit 2281216

Please sign in to comment.