Lines Matching refs:limbs
41 int FpInField(FpElem const* in) { return (VliCmp(&in->limbs, &epid20_p) < 0); } in FpInField()
44 VliModAdd(&result->limbs, &left->limbs, &right->limbs, &epid20_p); in FpAdd()
48 VliModMul(&result->limbs, &left->limbs, &right->limbs, &epid20_p); in FpMul()
52 VliModSub(&result->limbs, &left->limbs, &right->limbs, &epid20_p); in FpSub()
56 VliModExp(&result->limbs, &base->limbs, exp, &epid20_p); in FpExp()
60 VliCondSet(&result->limbs, &epid20_p, &in->limbs, VliIsZero(&in->limbs)); in FpNeg()
61 VliSub(&result->limbs, &epid20_p, &result->limbs); in FpNeg()
65 return (VliCmp(&left->limbs, &right->limbs) == 0); in FpEq()
69 VliModInv(&result->limbs, &in->limbs, &epid20_p); in FpInv()
84 VliModBarrett(&result->limbs, &deserialized_t, &epid20_p); in FpRand()
99 VliModBarrett(&result->limbs, &deserialized_t, &p_minus_one); in FpRandNonzero()
105 void FpClear(FpElem* result) { VliClear(&result->limbs); } in FpClear()
109 *(uint32_t*)(result->limbs.word) = in; in FpSet()
119 VliModBarrett(&result->limbs, &vli, &epid20_p); in FpFromHash()