optimize KlassInfoTable size to power of 2
Andrew Haley
aph at redhat.com
Tue Dec 11 11:10:13 UTC 2018
On 12/11/18 11:05 AM, Andrew Haley wrote:
> unsigned mod_m(unsigned n) {
> unsigned tmp = n % 65536;
> tmp -= n / 65536;
> if (tmp >= 65537) // overflow
> tmp += 65537;
> return tmp;
> }
NB: this assumes that unsigned int is uint64_t.
--
Andrew Haley
Java Platform Lead Engineer
Red Hat UK Ltd. <https://www.redhat.com>
EAC8 43EB D3EF DB98 CC77 2FAD A5CD 6035 332F A671
More information about the serviceability-dev
mailing list