pgsql: Add pg_attribute_always_inline. - Mailing list pgsql-committers

From Andres Freund
Subject pgsql: Add pg_attribute_always_inline.
Date
Msg-id E1ePGsa-0008Ng-Oi@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Add pg_attribute_always_inline.

Sometimes it is useful to be able to insist that the compiler inline a
function that its normal cost analysis would not normally choose to inline.
This can be useful for instantiating different variants of a function that
remove branches of code by constant folding.

Author: Thomas Munro
Reviewed-By: Andres Freund
Discussion: https://postgr.es/m/CAEepm=09rr65VN+cAV5FgyM_z=D77Xy8Fuc9CDDDYbq3pQUezg@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/dbb3d6f0102e0aca7575ff864450fca57ac85517

Modified Files
--------------
src/include/c.h | 10 ++++++++++
1 file changed, 10 insertions(+)


pgsql-committers by date:

Previous
From: Andres Freund
Date:
Subject: Re: pgsql: Provide overflow safe integer math inline functions.
Next
From: Teodor Sigaev
Date:
Subject: pgsql: Add approximated Zipfian-distributed random generator topgbench