[fpc-devel] SSE in FPC

Jonas Maebe jonas.maebe at elis.ugent.be
Sat Nov 29 18:30:26 CET 2008


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



More information about the fpc-devel mailing list