org.apfloat.internal
Interface LongModConstants


public interface LongModConstants

Constants needed for various modular arithmetic operations for the long type.

Version:
1.0
Author:
Mikko Tommila

Field Summary
static long MAX_POWER_OF_TWO_BASE
          Maximum power-of-two base that fits in a long.
static int MAX_POWER_OF_TWO_BITS
          Maximum bits in a power-of-two base that fits in a long.
static long MAX_TRANSFORM_LENGTH
          Maximum transform length for the moduli.
static long[] MODULUS
          Moduli to be used in number theoretic transforms.
static long[] PRIMITIVE_ROOT
          Primitive roots for the corresponding moduli.
 

Field Detail

MODULUS

static final long[] MODULUS
Moduli to be used in number theoretic transforms. Allows transform lengths upto 3*247.


PRIMITIVE_ROOT

static final long[] PRIMITIVE_ROOT
Primitive roots for the corresponding moduli.


MAX_TRANSFORM_LENGTH

static final long MAX_TRANSFORM_LENGTH
Maximum transform length for the moduli.

See Also:
Constant Field Values

MAX_POWER_OF_TWO_BITS

static final int MAX_POWER_OF_TWO_BITS
Maximum bits in a power-of-two base that fits in a long.

See Also:
Constant Field Values

MAX_POWER_OF_TWO_BASE

static final long MAX_POWER_OF_TWO_BASE
Maximum power-of-two base that fits in a long.

See Also:
Constant Field Values