On 03/02/19 06:26, J. Gareth Moreton wrote:
And similarly with AVX.  Even if we're stuck with just SSE2, assembler improvements can be made over the Pascal code just by removing the call to Trunc and replacing it with its single assembler command: "cvttsd2si %xmm0,%rax".

The compiler already does that when the appropriate instruction set is selected.


Jonas
_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Reply via email to