Fixes an overflow in amp2Log2() for very large encoder input