Manual Processor Dispatch: Exercise

The two questions on this page refer to the following scenario:

You want to add support for the Intel® Pentium® 4 processor to the example on the previous page.


1. Which of the following is the correct __declspec() attribute for the version of the function that takes advantage of the features of the Pentium 4 processor?

A) __declspec(cpu_specific.pentium_4)
B) __declspec(cpu_specific(pentium_4))
C) __declspec:cpu_specific(pentium_4)
D) __declspec(cpu_specific(pentium_iv))

2. Which of the following is the correct attribute for the dispatch function stub?

A) __declspec(cpu_dispatch.cpuid-list(pentium, pentium_MMX, pentium_4))
B) __declspec(cpu_dispatch(pentium, pentium_MMX, pentium_4))
C) __declspec:cpu_dispatch(pentium, pentium_MMX, pentium_4)
D) __declspec.cpu_dispatch(pentium, pentium_MMX, pentium_4)