[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[iiwusynth-devel] SSE! (1st working example)
From: |
M. Nentwig |
Subject: |
[iiwusynth-devel] SSE! (1st working example) |
Date: |
Tue, 29 Oct 2002 09:16:55 +0200 |
Yes!!
A small step for mankind, but... well... it works :)
I should note, that I had to 'dos2unix' sse.h.
Also, I had to change ATTR_ALIGN(16) to __attribute__ ((aligned(16))) to
get it compiled.
-Markus
#include <stdlib.h>
#include "sse.h"
int main(void){
sse_t a;
sse_t b;
sse_t c;
a.sf[0]=1;
a.sf[1]=2;
a.sf[2]=3;
a.sf[3]=4;
b.sf[0]=5;
b.sf[1]=6;
b.sf[2]=7;
b.sf[3]=8;
movups_m2r(a,xmm0);
movups_m2r(b,xmm1);
mulps_r2r(xmm0,xmm1);
movups_r2m(xmm1,a);
printf("%f %f %f %f\n",a.sf[0],a.sf[1],a.sf[2],a.sf[3]);
};
- [iiwusynth-devel] SSE! (1st working example),
M. Nentwig <=