org.apfloat.internal.LongCarryCRTBuilder 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;
import org.apfloat.spi.CarryCRTBuilder;
import org.apfloat.spi.CarryCRTStrategy;
import org.apfloat.spi.CarryCRTStepStrategy;
/**
* Creates carry-CRT related objects, for the
* long
type.
*
* @since 1.7.0
* @version 1.7.0
* @author Mikko Tommila
*/
public class LongCarryCRTBuilder
implements CarryCRTBuilder
{
/**
* Default constructor.
*/
public LongCarryCRTBuilder()
{
}
public CarryCRTStrategy createCarryCRT(int radix)
{
return new StepCarryCRTStrategy(radix);
}
public CarryCRTStepStrategy createCarryCRTSteps(int radix)
{
return new LongCarryCRTStepStrategy(radix);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy