[Haskell-cafe] clz / bsr functions on Integer

james faure james.faure at epitech.eu
Sat Nov 13 00:13:27 UTC 2021

Why is there no `countLeadingZeros` function for Integer? This seems particularly strange because gmp provides mp_bitcnt_t mpz_scan0 (const mpz_t op, mp_bitcnt_t starting_bit)

More importantly, what is the recommended way to access it?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20211113/ded2bd2e/attachment.html>

More information about the Haskell-Cafe mailing list