iiwusynth-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [iiwusynth-devel] SSE! (1st working example)


From: Peter Hanappe
Subject: Re: [iiwusynth-devel] SSE! (1st working example)
Date: Tue, 29 Oct 2002 10:22:29 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.8) Gecko/20020205

Hey Markus,

That's great! Can you give the header a iiwu_something name and
commit it to CVS. I'd like to do some tests myself.

Cheers,
P

M. Nentwig wrote:
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 mailing list
address@hidden
http://mail.nongnu.org/mailman/listinfo/iiwusynth-devel










reply via email to

[Prev in Thread] Current Thread [Next in Thread]