Skip to content

Commit 61687d6

Browse files
committed
Add XSIMD_TARGET_RISCV
1 parent 5a7d696 commit 61687d6

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

include/xsimd/config/xsimd_config.hpp

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -464,6 +464,17 @@
464464
#define XSIMD_SVE_BITS 0
465465
#endif
466466

467+
/**
468+
* @ingroup xsimd_config_macro
469+
*
470+
* Set to 1 if the target is the RISC-V architecture family.
471+
*/
472+
#ifdef __riscv
473+
#define XSIMD_TARGET_RISCV 1
474+
#else
475+
#define XSIMD_TARGET_RISCV 0
476+
#endif
477+
467478
/**
468479
* @ingroup xsimd_config_macro
469480
*

0 commit comments

Comments
 (0)