org.apfloat.internal.IntModConstants Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of apfloat Show documentation
Show all versions of apfloat Show documentation
High performance arbitrary precision arithmetic library
package org.apfloat.internal;
/**
* Constants needed for various modular arithmetic operations for the int
type.
*
* @version 1.0
* @author Mikko Tommila
*/
public interface IntModConstants
{
/**
* Moduli to be used in number theoretic transforms.
* Allows transform lengths upto 3*224.
*/
public static final int MODULUS[] = { 2113929217, 2013265921, 1811939329 };
/**
* Primitive roots for the corresponding moduli.
*/
public static final int PRIMITIVE_ROOT[] = { 5, 31, 13 };
/**
* Maximum transform length for the moduli.
*/
public static final long MAX_TRANSFORM_LENGTH = 50331648;
/**
* Maximum bits in a power-of-two base that fits in an int
.
*/
public static final int MAX_POWER_OF_TWO_BITS = 31;
/**
* Maximum power-of-two base that fits in an int
.
*/
public static final int MAX_POWER_OF_TWO_BASE = 1 << MAX_POWER_OF_TWO_BITS;
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy