Intrinsics with -march=pentium3

Jean-Marc Valin Jean-Marc.Valin@USherbrooke.ca
Fri Jan 16 21:43:00 GMT 2004


> 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.

I guess I can always do that, but it's going to be messy trying to tell
autoconf "compile this file with a different switch and only if this
switch is enabled". Any idea how one would do that?

> 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.

For simple functions, wouldn't that be slower than a plain "if" because
of the branch prediction?

	Jean-Marc

-- 
Jean-Marc Valin, M.Sc.A., ing. jr.
LABORIUS (http://www.gel.usherb.ca/laborius)
Université de Sherbrooke, Québec, Canada
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Ceci est une partie de message num?riquement sign?e.
URL: <https://gcc.gnu.org/pipermail/gcc-help/attachments/20040116/0ba3cc4b/attachment.sig>


More information about the Gcc-help mailing list