[fpc-devel] improvement SSE and string+char

Florian Klaempfl florian at freepascal.org
Sun Dec 9 20:18:19 CET 2007


DarekM schrieb:
> Hi
> I've notice two improvement
> 1. equation in SSE
> 
> # Var Zr located in register mreg0md
> # Var Zi located in register mreg1md
> # Var Ti located in register mreg3md
> # Var Tr located in register mreg2md
> # [39] Tr := Zr * Zr;
>    movsd    %xmm0,%xmm4
>    mulsd    %xmm0,%xmm4
>    movsd    %xmm4,%xmm2
> 
> it can be changed to:
> # [39] Tr := Zr * Zr;
>    movsd    %xmm0,%xmm2
>    mulsd    %xmm0,%xmm2

Yes, but it's not easy to implement ;)



More information about the fpc-devel mailing list