[fpc-devel] Thoughts: Make FillChar etc. an intrinsic for specialised performance potential

Sven Barth pascaldragon at googlemail.com
Sat Apr 16 16:41:29 CEST 2022

Benito van der Zander via fpc-devel <fpc-devel at lists.freepascal.org>
schrieb am Sa., 16. Apr. 2022, 15:43:

> Hi,
> it could always inline it.
> For small sizes do that mov and for large sizes do rep stosb on x86. It is
> very fast nowadays. Faster than FillChar on my Intel laptop. (except for
> mid sizes like 128 bytes)

FillChar is on most platforms an assembly function and FPC *never* inlines
assembly functions.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20220416/8fb9d8be/attachment.htm>

More information about the fpc-devel mailing list