Using Manual Processor Dispatch

To use manual processor dispatch, create processor-specific versions of each function that you want to optimize using processor dispatch.

The syntax of these extended attributes is as follows:

__declspec(cpu_specific(cpuid))

for each function implementation

__declspec(cpu_dispatch(cpuid-list))

for dispatch function stub

The values for cpuid are shown in the table below:

Processor

Values for cpuid

Intel® Pentium® 4 processors with Streaming SIMD Extensions 3 (SSE3)

future_cpu_10

Intel Pentium® M processors

pentium_m

Intel Pentium 4 processors

pentium_4

Intel Pentium III processors (exclude xmm registers)

pentium_iii_no_xmm_regs

Intel Pentium III processors

pentium_III

Intel Pentium II processors

pentium_II

Intel® Pentium® Pro processors pentium_pro

Intel Pentium processors with MMX™ Technology

pentium_MMX

Intel® Pentium® processors pentium
x86 processors not provided by Intel Corporation
generic

You can use manual processor dispatch in conjunction with the -Qx (Linux*: -x) options.

See the example on the next topic.