On 18 January 2014 06:25, Jason Orendorff <[email protected]> wrote:

>
> Except I think we want bitlen(0) === 0 for consistency with clz.
>
>
Just noting that this actually works:
 Math.ceil(Math.log(0 + 1) / Math.LN2) === 0

However:
 Math.ceil(Math.log(-1 + 1) / Math.LN2) === -Infinity

Not sure how that affects a Negative NaN-cy option :)
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to