/**
* Set all values of a FieldElementPair to zero.
*
- * @param h FieldElementPair destination
+ * @param {FieldElementPair} h destination
*/
export function fep_0 (h: FieldElementPair): void {
memory.fill(changetype<usize>(h), 0, 80)
* Set the first limb of each FieldElement in the pair to 1 and all subsequent
* limbs to zero.
*
- * @param h FieldElementPair destination
+ * @param {FieldElementPair} h destination
*/
export function fep_1 (h: FieldElementPair): void {
fep_0(h)
/**
* Add a FieldElementPair to itself and store the sum.
*
- * @param h FieldElementPair sum destination
- * @param f FieldElementPair summand source
+ * @param {FieldElementPair} h sum destination
+ * @param {FieldElementPair} f summand source
*/
export function fep_dbl (h: FieldElementPair, f: FieldElementPair): void {
const f0 = v128.load(changetype<usize>(f), 0 << 4)
* Postconditions:
* |h| bounded by 1.01*2²⁵,1.01*2²⁴,1.01*2²⁵,1.01*2²⁴,etc.
*
- * @param h_a FieldElementPair A product destination
- * @param f_a FieldElementPair A multiplicand source
- * @param h_b FieldElementPair B product destination
- * @param f_b FieldElementPair B multiplicand source
+ * @param {FieldElementPair} h_a A product destination
+ * @param {FieldElementPair} f_a A multiplicand source
+ * @param {FieldElementPair} h_b B product destination
+ * @param {FieldElementPair} f_b B multiplicand source
*/
export function fep_sq (h: FieldElementPair, f: FieldElementPair): void {
const f01: v128 = v128.load(changetype<usize>(f), 0 << 4)
* Postconditions:
* |h| bounded by 1.01*2²⁵,1.01*2²⁴,1.01*2²⁵,1.01*2²⁴,etc.
*
- * @param h_a FieldElementPair A power destination
- * @param f_a FieldElementPair A base source
- * @param h_b FieldElementPair B power destination, doubled
- * @param f_b FieldElementPair B base source
+ * @param {FieldElementPair} h_a A power destination
+ * @param {FieldElementPair} f_a A base source
+ * @param {FieldElementPair} h_b B power destination, doubled
+ * @param {FieldElementPair} f_b B base source
*/
export function fep_sq2 (h_a: FieldElementPair, f_a: FieldElementPair, h_b: FieldElementPair, f_b: FieldElementPair): void {
// pack each f index in low lanes, high lanes are ignored