cpu_dispatch

Provides the ability to write one or more versions of a function that execute only on a list of targeted processors.

Syntax

Windows* OS:

__declspec(cpu_dispatch(cpuid, cpuid, ...))

Linux* OS:

__attribute__((cpu_dispatch(cpuid, cpuid, ...)))

Arguments

cpuid

See cpu_specific for a list of supported values.

Description

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.

See Also

Para obtener información más completa sobre las optimizaciones del compilador, consulte nuestro Aviso de optimización.