This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Intrinsics with -march=pentium3
- From: Eljay Love-Jensen <eljay at adobe dot com>
- To: Jean-Marc Valin <Jean-Marc dot Valin at USherbrooke dot ca>, gcc-help at gcc dot gnu dot org
- Date: Fri, 16 Jan 2004 14:45:08 -0600
- Subject: Re: Intrinsics with -march=pentium3
Hi Jean-Marc,
Wouldn't you compile the SSE routine in one source file with the switch, and the non-SSE routine in a different source file (along with all the rest of the other source code) without the switch.
Then algorithmically determine if the SSE support is available and programmatically set a function pointer to the correct routine, and utilize the SSE or non-SSE routine via that function pointer mechanism.
?
--Eljay