Rename Number.prototype.clz to Math.clz

Jason Orendorff jason.orendorff at gmail.com
Fri Jan 17 11:25:00 PST 2014


On Fri, Jan 17, 2014 at 1:12 PM, Nick Krempel <ndkrempel at google.com> wrote:
> bitlen(n) := ceil(log_2(n + 1))

Except I think we want bitlen(0) === 0 for consistency with clz.

-j


More information about the es-discuss mailing list