core.checkedint?

safety0ff via digitalmars-d-ldc digitalmars-d-ldc at puremagic.com
Sat Nov 1 11:14:42 PDT 2014


On Saturday, 1 November 2014 at 18:06:41 UTC, bearophile wrote:
> safety0ff:
>
>> Rinse and repeat with:
>> llvm_uadd_with_overflow, llvm_sadd_with_overflow, 
>> llvm_usub_with_overflow, llvm_ssub_with_overflow, 
>> llvm_smul_with_overflow.
>
> Good.
> Is it 100% guaranteed ldc2 will inline this function?
>
> Bye,
> bearophile

They're intrinsics:
https://github.com/ldc-developers/druntime/blob/ldc/src/ldc/intrinsics.di#L462


More information about the digitalmars-d-ldc mailing list