Intel® C++ Compiler 16.0 User and Reference Guide
Provides the ability to write one or more versions of a function that execute only on a list of targeted processors.
Windows* OS: __declspec(cpu_dispatch(cpuid, cpuid, ...)) |
Linux* OS: __attribute__((cpu_dispatch(cpuid, cpuid, ...))) |
cpuid |
See cpu_specific for a list of supported values. |
Use this keyword to provide a list of targeted processors, along with an empty function body/function stub.
This feature is available only for Intel processors based on IA-32 or Intel® 64 architecture. It is not available for non-Intel processors. Applications built using the manual processor dispatch feature may be more highly optimized for Intel processors than for non-Intel processors.