Skip to content
Open
Show file tree
Hide file tree
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
11 changes: 11 additions & 0 deletions include/xsimd/config/xsimd_config.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,17 @@
* @defgroup xsimd_config_macro Instruction Set Detection
*/

/**
* @ingroup xsimd_config_macro
*
* Set to 1 if the target is the x86 architecture family.
*/
#if defined(__x86_64__) || defined(__i386__) || defined(_M_AMD64) || defined(_M_IX86)
#define XSIMD_TARGET_X86 1
#else
#define XSIMD_TARGET_X86 0
#endif

/**
* @ingroup xsimd_config_macro
*
Expand Down
Loading