[fpc-devel] Inlining SarInt64
Jonas Maebe
jonas.maebe at elis.ugent.be
Wed Sep 25 12:58:20 CEST 2013
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20130925/58ea4512/attachment.html>
More information about the fpc-devel
mailing list