core.checkedint?

David Nadlinger via digitalmars-d-ldc digitalmars-d-ldc at puremagic.com
Fri Oct 31 21:04:37 PDT 2014


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


More information about the digitalmars-d-ldc mailing list