On Thu, 10 Jan 2008 15:50:55 +0100
willem <[EMAIL PROTECTED]> wrote:

> Wel I am interested in CPU extentsive applications ! Can can  SSE2 ,SSE3 
> or even SSE4 help you ?

Do you have any SSE examples that show a speed gain? My own experiments were 
not very encouraging.

This:

operator +(const v1,v2: TVector4): TVector4; assembler; inline;
Asm
  movups xmm0, [v1]  
  addps xmm0, [v2]   
  movups [Result], xmm0
end;

is slower than this:

operator+(const a, b: TVector4): TVector4;
begin
  with Result do begin
    x:=a.x+b.x;
    y:=a.y+b.y;
    z:=a.z+b.z;
    w:=a.w+b.w;
  end;
end;

_________________________________________________________________
     To unsubscribe: mail [EMAIL PROTECTED] with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to