__device__ void fp_neg(fp_t &z, const fp_t &x)
Compute an additive inverse of a residue x modulo p. Stores in z. Subtracts x from the highest multip...
__device__ bool fp_nonzero(const fp_t &x)
Check if the reduced input x is different from zero.
__device__ void g1p_neg(g1p_t &p)
Computes the negative of the point p. Due to negation map automorphism on Elliptic Curves in Weierstr...
G1 point in projective coordinates.