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
next sibling parent Iain Buclaw <ibuclaw ubuntu.com> writes:
--047d7b6d86c46d6ca404dace4629
Content-Type: text/plain; charset=ISO-8859-1

On Apr 20, 2013 5:10 PM, "jerro" <a a.com> wrote:
 Is there any chance  attribute("always_inline") and

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'; --047d7b6d86c46d6ca404dace4629 Content-Type: text/html; charset=ISO-8859-1 <p><br> On Apr 20, 2013 5:10 PM, &quot;jerro&quot; &lt;<a href="mailto:a a.com">a a.com</a>&gt; wrote:<br> &gt;<br> &gt; Is there any chance attribute(&quot;always_inline&quot;) and attribute(&quot;noinline&quot;) will be added to GDC? It would be nice to be able to control inlining.</p> <p>Can do. Now we are freed from the shackles of GCC attributes, we can give some of the attributes better or alternative names. </p> <p>Regards<br> -- <br> Iain Buclaw</p> <p>*(p &lt; e ? p++ : p) = (c &amp; 0x0f) + &#39;0&#39;;</p> --047d7b6d86c46d6ca404dace4629--
Apr 20 2013
prev sibling next sibling parent "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
prev sibling next sibling parent Iain Buclaw <ibuclaw ubuntu.com> writes:
--001a11c2a1e81bcd9004dc9ad92a
Content-Type: text/plain; charset=ISO-8859-1

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'; --001a11c2a1e81bcd9004dc9ad92a Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div class=3D"gmail_extra"><div class=3D"gmail_quote">On 2= 0 April 2013 19:17, jerro <span dir=3D"ltr">&lt;<a href=3D"mailto:a a.com" = target=3D"_blank">a a.com</a>&gt;</span> wrote:<br><blockquote class=3D"gma= il_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,2= 04,204);padding-left:1ex"> <blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-= left:1px solid rgb(204,204,204);padding-left:1ex"> Can do.<br> </blockquote> <br> That would be nice :)<div class=3D"im"><br> <br> <blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-= left:1px solid rgb(204,204,204);padding-left:1ex"> Now we are freed from the shackles of GCC attributes, we can give some of t= he attributes better or alternative names.<br> </blockquote> <br></div> Personally, I&#39;m fine with the names noinline and always_inline. If you = are looking for alternative names, one option would be to use forceinline i= nstead of always_inline.<br> </blockquote></div><br><br></div><div class=3D"gmail_extra">And it&#39;s in= :<br><br><a href=3D"https://github.com/D-Programming-GDC/GDC/commit/3e16d4d= 7673e4b3b8750df8bc92ce853199a2e78">https://github.com/D-Programming-GDC/GDC= /commit/3e16d4d7673e4b3b8750df8bc92ce853199a2e78</a><br clear=3D"all"> </div><div class=3D"gmail_extra"><br>-- <br>Iain Buclaw<br><br>*(p &lt; e ?= p++ : p) =3D (c &amp; 0x0f) + &#39;0&#39;; </div></div> --001a11c2a1e81bcd9004dc9ad92a--
May 13 2013
prev sibling parent "jerro" <a a.com> writes:
Great!
May 14 2013