RFR: 8188044: We need Math.unsignedMultiplyHigh [v2]

Andrew Haley aph at redhat.com
Fri Jul 2 14:51:58 UTC 2021


On 7/2/21 12:26 PM, Raffaello Giulietti wrote:
> ... or even as a one liner, like in the test
> 
> 	return Math.multiplyHigh(x, y) + ((x >> (Long.SIZE - 1)) & y) + ((y >> 
> (Long.SIZE - 1)) & x);

It was hard to write, so it should be hard to read too! :-)



More information about the core-libs-dev mailing list