Re: Generating checked integral operations [WAS: Trip notes from Israel]

2017-05-23 Thread Stefan Koch via Digitalmars-d-announce
On Tuesday, 23 May 2017 at 15:54:42 UTC, Stefan Koch wrote: Well Since core.checkedint is in druntime, we _could_ detected the checking operations and generate better code for them. But right now, I am [NOT] convinced it is worth the effort.

Re: Generating checked integral operations [WAS: Trip notes from Israel]

2017-05-23 Thread Stefan Koch via Digitalmars-d-announce
On Tuesday, 23 May 2017 at 15:43:24 UTC, Andrei Alexandrescu wrote: On 05/23/2017 11:37 AM, Stefan Koch wrote: The compiler does indeed seem to optimize the code somewhat. Although the generated asm still looks wired. http://asm.dlang.org/#compilers:!((compiler:dmd_nightly,options:'-dip25+-O+-r

Generating checked integral operations [WAS: Trip notes from Israel]

2017-05-23 Thread Andrei Alexandrescu via Digitalmars-d-announce
On 05/23/2017 11:37 AM, Stefan Koch wrote: The compiler does indeed seem to optimize the code somewhat. Although the generated asm still looks wired. http://asm.dlang.org/#compilers:!((compiler:dmd_nightly,options:'-dip25+-O+-release+-inline+-m32',source:'import+core.checkedint%3B%0A%0Aalias+T+%