/* Portable C Implementation */
int Foo(int);
/* Use C version on MMX processors */
#define Foo_MMX Foo
/* Hand-tuned SSE implementation */
int Foo_SSE(int)
/* Use SSE version on SSE2 processors */
#define Foo_SSE2 Foo_SSE

Example 3: Sample header.

Back to Article