Pentium III SSE intrinsics

Gunnar Evermann ge204@eng.cam.ac.uk
Sun Dec 3 08:01:00 GMT 2000


A while ago support for some of the SSE intrinsics seems to have been
added to gcc. After some fiddling I managed to get gcc to build and not
segfault immediately when passing '-msse' but I can't seem to figure
out how to actually use them.

I suppose I need to call stuff like '__builtin_ia32_addps()' but what
types should the parameters be? It would be nice to be able to use the
standard Intel syntax, e.g. '__m128 _mm_add_ps (__m128 a, __m128 b)'


Maybe somebody could provide a three line example?

thanks

 Gunnar


More information about the Gcc mailing list