<div dir="auto"><div><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Benito van der Zander via fpc-devel <<a href="mailto:fpc-devel@lists.freepascal.org">fpc-devel@lists.freepascal.org</a>> schrieb am Sa., 16. Apr. 2022, 15:43:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
<div id="m_-1720528784538656893smartTemplate4-template">Hi,<br>
</div>
<div><br>
</div>
<div>it could always inline it.</div>
<div><br>
</div>
<div>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)<br></div></div></blockquote></div></div><div dir="auto"><br></div><div dir="auto">FillChar is on most platforms an assembly function and FPC *never* inlines assembly functions. </div><div dir="auto"><br></div><div dir="auto">Regards, </div><div dir="auto">Sven </div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div></div></div>
</blockquote></div></div></div>