core.checkedint?
Kai Nacke via digitalmars-d-ldc
digitalmars-d-ldc at puremagic.com
Sat Nov 1 12:39:42 PDT 2014
On Saturday, 1 November 2014 at 04:04:48 UTC, David Nadlinger via
digitalmars-d-ldc wrote:
> On 1 Nov 2014, at 1:58, bearophile via digitalmars-d-ldc wrote:
>> Do you want to make LDC2 recognize core.checkedint functions
>> and implement them efficiently reading the overflow/carry
>> flags of the CPU?
>
> Sure, it maps very directly to the corresponding LLVM
> intrinsics (conditionally setting the by-ref parameter has to
> be done in a small wrapper, though). Pull request are very
> welcome. ;)
>
> David
See https://github.com/ldc-developers/ldc/pull/772
Regards,
Kai
More information about the digitalmars-d-ldc
mailing list