Developer Guide and Reference

Contents

cpu_dispatch, cpu_specific

Provides the ability to write one or more versions of a function that execute only on a list of targeted processors (cpu_dispatch). Provides the ability to declare that a version of a function is targeted at particular type(s) of processors (cpu_specific).

Syntax

Windows* OS:
__declspec(cpu_dispatch
(
cpuid, cpuid, ...
)
)
__declspec(cpu_specific
(
cpuid
)
)
Linux* OS:
__attribute__((cpu_dispatch
(
cpuid, cpuid, ...
)
)
)
__attribute__((cpu_specific
(
cpuid
)
)
)
Arguments
cpuid
Possible values are:
atom
: Intel® Atom™ processors with Intel® Supplemental Streaming SIMD Extensions 3 (Intel® SSSE3)
atom_sse4_2
: Intel® Atom™ processors with Intel® Streaming SIMD Extensions 4.2 (Intel® SSE4.2)
atom_sse4_2_movbe
: Intel® Atom™ processors with Intel® Streaming SIMD Extensions 4.2 (Intel® SSE4.2) with MOVBE instructions enabled
broadwell
: This is a synonym for
core_5th_gen_avx
core_2nd_gen_avx
: 2nd generation Intel® Core™ processor family with support for Intel® Advanced Vector Extensions (Intel® AVX)
core_3rd_gen_avx
: 3rd generation Intel® Core™ processor family with support for Intel® Advanced Vector Extensions (Intel® AVX) including the RDRND instruction
core_4th_gen_avx
: 4th generation Intel® Core™ processor family with support for Intel® Advanced Vector Extensions 2 (Intel® AVX2) including the RDRND instruction
core_4th_gen_avx_tsx
: 4th generation Intel® Core™ processor family with support for Intel® Advanced Vector Extensions 2 (Intel® AVX2) including the RDRND instruction, and support for Intel® Transactional Synchronization Extensions (Intel® TSX)
<