Skip to content

Latest commit

 

History

History
45 lines (33 loc) · 1.09 KB

instr_macros.rst

File metadata and controls

45 lines (33 loc) · 1.09 KB
.rst-content table.docutils { width: 100%; table-layout: fixed; } table.docutils .line-block { margin-left: 0; margin-bottom: 0; } table.docutils code.literal { color: initial; } code.docutils { background: initial; }

Instruction set macros

Each of these macros corresponds to an instruction set supported by XSIMD. They can be used to filter arch-specific code.

xsimd_config_macro

Changing Default architecture

You can change the default instruction set used by xsimd (when none is provided explicitely) by setting the XSIMD_DEFAULT_ARCH macro to, say, xsimd::avx2. A common usage is to set it to xsimd::unsupported as a way to detect instantiation of batches with the default architecture.