public class FloatCRTMath extends FloatBaseMath
float type.| Constructor and Description |
|---|
FloatCRTMath(int radix)
Creates a carry-CRT math using the specified radix.
|
| Modifier and Type | Method and Description |
|---|---|
float |
add(float[] src,
float[] srcDst)
Adds three words.
|
float |
compare(float[] src1,
float[] src2)
Compares three words.
|
float |
divide(float[] srcDst)
Divides three words by the base to produce two words.
|
void |
multiply(float[] src,
float factor,
float[] dst)
Multiplies two words by one word to produce a result of three words.
|
void |
subtract(float[] src,
float[] srcDst)
Subtracts three words.
|
baseAdd, baseDivide, baseMultiplyAdd, baseSubtractpublic FloatCRTMath(int radix)
radix - The radix that will be used.public final void multiply(float[] src,
float factor,
float[] dst)
src - Source array, first multiplicand.factor - Second multiplicand.dst - Destination array.public final float compare(float[] src1,
float[] src2)
src1 - First operand.src2 - Second operand.src1 < src2, greater than zero if src1 > src2 and zero if src1 == src2.public final float add(float[] src,
float[] srcDst)
src - First operand.srcDst - Second operand, and destination of the operation.public final void subtract(float[] src,
float[] srcDst)
src - First operand.srcDst - Second operand, and destination of the operation.public final float divide(float[] srcDst)
srcDst - Source and destination of the operation.Copyright © 2024. All rights reserved.