Saturating integer arithmetic

John Colvin via Digitalmars-d digitalmars-d at puremagic.com
Sun Jun 26 16:40:55 PDT 2016


On Sunday, 26 June 2016 at 22:34:29 UTC, Andrei Alexandrescu 
wrote:
> On 06/26/2016 02:07 PM, ketmar wrote:
>> On Sunday, 26 June 2016 at 13:59:03 UTC, Andrei Alexandrescu 
>> wrote:
>>> See the recent thread "DbI checked integral". Saturation is a 
>>> direct
>>> goal, and you should be able to optimize operations for each 
>>> type by
>>> defining relatively small hooks.
>>
>> alas, it is completely inappropriate for any computation-heavy 
>> task.
>> even if dmd inliner will do some miracle and will inline some 
>> calls.
>
> What is some good literature to look at for SIMD saturation 
> arithmetic? -- Andrei

http://www.intel.co.uk/content/dam/www/public/us/en/documents/manuals/64-ia-32-architectures-optimization-manual.pdf has some stuff about saturation in it. I learned from that and the instruction reference.


More information about the Digitalmars-d mailing list