Function isZero [src]
Return true if the field element is zero
Prototype
pub inline fn isZero(fe: Fe) bool
Parameters
fe: Fe
Source
pub inline fn isZero(fe: Fe) bool {
var reduced = fe;
reduced.reduce();
const limbs = reduced.limbs;
return (limbs[0] | limbs[1] | limbs[2] | limbs[3] | limbs[4]) == 0;
}