www.digitalmars.com         C & C++   DMDScript  

D.gnu - always_inline and noinline

reply "jerro" <a a.com> writes:
Is there any chance  attribute("always_inline") and 
 attribute("noinline") will be added to GDC? It would be nice to 
be able to control inlining.
Apr 20 2013
parent reply Iain Buclaw <ibuclaw ubuntu.com> writes:
On Apr 20, 2013 5:10 PM, "jerro" <a a.com> wrote:
 Is there any chance  attribute("always_inline") and
attribute("noinline") will be added to GDC? It would be nice to be able to control inlining. Can do. Now we are freed from the shackles of GCC attributes, we can give some of the attributes better or alternative names. Regards -- Iain Buclaw *(p < e ? p++ : p) = (c & 0x0f) + '0';
Apr 20 2013
parent reply "jerro" <a a.com> writes:
 Can do.
That would be nice :)
 Now we are freed from the shackles of GCC attributes, we can 
 give some of the attributes better or alternative names.
Personally, I'm fine with the names noinline and always_inline. If you are looking for alternative names, one option would be to use forceinline instead of always_inline.
Apr 20 2013
parent reply Iain Buclaw <ibuclaw ubuntu.com> writes:
On 20 April 2013 19:17, jerro <a a.com> wrote:

 Can do.

 That would be nice :)


  Now we are freed from the shackles of GCC attributes, we can give some of
 the attributes better or alternative names.
Personally, I'm fine with the names noinline and always_inline. If you are looking for alternative names, one option would be to use forceinline instead of always_inline.
And it's in: https://github.com/D-Programming-GDC/GDC/commit/3e16d4d7673e4b3b8750df8bc92ce853199a2e78 -- Iain Buclaw *(p < e ? p++ : p) = (c & 0x0f) + '0';
May 13 2013
parent "jerro" <a a.com> writes:
Great!
May 14 2013