new implementation of exponent decoding