Android Utililty Methods Long Power Calculate

List of utility methods to do Long Power Calculate

Description

The list of methods to do Long Power Calculate are organized into topic(s).

Method

longpow(final long k, int e)
Raise a long to an int power.
if (e < 0) {
    throw new NotPositiveException(LocalizedFormats.EXPONENT, e);
long result = 1l;
long k2p = k;
while (e != 0) {
    if ((e & 0x1) != 0) {
        result *= k2p;
...
longpow(final long k, long e)
Raise a long to a long power.
if (e < 0) {
    throw new NotPositiveException(LocalizedFormats.EXPONENT, e);
long result = 1l;
long k2p = k;
while (e != 0) {
    if ((e & 0x1) != 0) {
        result *= k2p;
...