public void multiplyByPowerOfTen(int pow10) { TenPower tp = TenPower.getInstance(Math.abs(pow10)); if (pow10 < 0) { mulShift(tp._divisor, tp._divisorShift); } else { mulShift(tp._multiplicand, tp._multiplierShift); } } private void mulShift(BigInteger multiplicand, int multiplierShift) {
public void multiplyByPowerOfTen(int pow10) { TenPower tp = TenPower.getInstance(Math.abs(pow10)); if (pow10 < 0) { mulShift(tp._divisor, tp._divisorShift); } else { mulShift(tp._multiplicand, tp._multiplierShift); } } private void mulShift(BigInteger multiplicand, int multiplierShift) {
static TenPower getInstance(int index) { TenPower result = _cache[index]; if (result == null) { result = new TenPower(index); _cache[index] = result; } return result; } }
public void multiplyByPowerOfTen(int pow10) { TenPower tp = TenPower.getInstance(Math.abs(pow10)); if (pow10 < 0) { mulShift(tp._divisor, tp._divisorShift); } else { mulShift(tp._multiplicand, tp._multiplierShift); } } private void mulShift(BigInteger multiplicand, int multiplierShift) {
static TenPower getInstance(int index) { TenPower result = _cache[index]; if (result == null) { result = new TenPower(index); _cache[index] = result; } return result; } }
public void multiplyByPowerOfTen(int pow10) { TenPower tp = TenPower.getInstance(Math.abs(pow10)); if (pow10 < 0) { mulShift(tp._divisor, tp._divisorShift); } else { mulShift(tp._multiplicand, tp._multiplierShift); } } private void mulShift(BigInteger multiplicand, int multiplierShift) {
static TenPower getInstance(int index) { TenPower result = _cache[index]; if (result == null) { result = new TenPower(index); _cache[index] = result; } return result; } }
static TenPower getInstance(int index) { TenPower result = _cache[index]; if (result == null) { result = new TenPower(index); _cache[index] = result; } return result; } }