[fpc-devel] Inlining SarInt64

August Oktobar augustoktobar at gmail.com
Wed Sep 25 18:13:22 CEST 2013


I understand. BTW, in GCC compilers this is always inlined (int64 div X)
.


On Wed, Sep 25, 2013 at 12:58 PM, Jonas Maebe <jonas.maebe at elis.ugent.be>wrote:

>
> On 25 Sep 2013, at 00:11, August Oktobar wrote:
>
> Why this function cannot be inlined? In some code doing int64
> shifting/dividing math, it is not inlined as other similar compiler
> functions (round, odd etc.)? i am using FPC  2.7.1 32 bit.
>
>
> It's not inline because it is not declared as "inline". Always inlining it
> is probably not a good idea, because that function is not really small and
> hence will code significant code bloat. Adaptive inlining (depending on the
> number of constant parameters and the resulting code size, or possibly
> based on profiling information) would be nice, but FPC does not support
> this.
>
>
> Jonas
>
> _______________________________________________
> fpc-devel maillist  -  fpc-devel at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20130925/724af141/attachment.html>


More information about the fpc-devel mailing list