This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Pentium III SSE intrinsics
- To: gcc at gcc dot gnu dot org
- Subject: Pentium III SSE intrinsics
- From: Gunnar Evermann <ge204 at eng dot cam dot ac dot uk>
- Date: 03 Dec 2000 16:01:24 +0000
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