__device__ bool fp_iszero(const fp_t &x)
Checks if the residue x modulo p is congruent to zero.
uint64_t fp_t[6]
Residue modulo p. Any 384-bit representative of each residue is allowed, and stored as a 6-element li...
__device__ void fp_sub(fp_t &z, const fp_t &x, const fp_t &y)
Calculates the difference of two residues modulo p and stores it into z.
__device__ bool fp_eq(const fp_t &x, const fp_t &y)
Compares two residues modulo p.