__vector equality compare: LDC vs {GDC, DMD}

kinke noone at nowhere.com
Wed Jul 27 16:54:00 UTC 2022


On Wednesday, 27 July 2022 at 16:49:35 UTC, Iain Buclaw wrote:
> Just a random observation, why `(1 << sizeInBits) - 1` and not 
> just `-1`? I'd have thought the former would suffer from 
> overflow issues (sizeInBits == 64).

Heh, absolutely right: 
https://github.com/ldc-developers/ldc/commit/fc28d2db91e205843a37ef1fa80af1f5a5476dea


More information about the digitalmars-d-ldc mailing list