https://issues.dlang.org/show_bug.cgi?id=12958
--- Comment #4 from David Bregman <[email protected]> --- If performance is not a concern, then it's much easier - just use a slow division to check: ulong mulu(ulong x, ulong y, ref bool overflow) { immutable xy = x*y; if(x && xy/x != y) { overflow = true; } return xy; } --
