On 29 Nov 2008, at 18:15, Dariusz Mazur wrote:

Florian Klaempfl pisze:
function f : double;
 var
   d1,d2,d3 : array[0..1] of double;

begin
     d1:=d2*d3;
 end;


I would expect some thing like this
type
   tSSEvector= packed record of
             a,b : double;
  end;

{ or }
   tSSEvector= array[0..1] of double;


function f : double;
var
  d1,d2,d3 : tSSEVector;

begin

d1:=d2*d3;
end;


Of course tSSEVector should be declared in System unit.
Then  any one can use SSE intentionally

Why can't you now? It's not like multiplication has any other meaning for arrays. And declaring "magic compiler types" in the system unit is something that should be avoided as much as possible (it makes both the compiler and rtl harder to adapt and understand).


Jonas
_______________________________________________
fpc-devel maillist  -  [email protected]
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to