Lines Matching refs:limbs
37 int FqInField(FqElem const* in) { return (VliCmp(&in->limbs, &epid20_q) < 0); } in FqInField()
40 VliModAdd(&result->limbs, &left->limbs, &right->limbs, &epid20_q); in FqAdd()
44 VliModSub(&result->limbs, &left->limbs, &right->limbs, &epid20_q); in FqSub()
48 VliModMul(&result->limbs, &left->limbs, &right->limbs, &epid20_q); in FqMul()
52 VliModExp(&result->limbs, &base->limbs, exp, &epid20_q); in FqExp()
56 VliSet(&result->limbs, &in->limbs); in FqCp()
59 int FqIsZero(FqElem const* value) { return VliIsZero(&value->limbs); } in FqIsZero()
62 VliModInv(&result->limbs, &in->limbs, &epid20_q); in FqInv()
66 VliCondSet(&result->limbs, &epid20_q, &in->limbs, VliIsZero(&in->limbs)); in FqNeg()
67 VliSub(&result->limbs, &epid20_q, &result->limbs); in FqNeg()
71 VliModSquare(&result->limbs, &in->limbs, &epid20_q); in FqSquare()
74 void FqClear(FqElem* result) { VliClear(&result->limbs); } in FqClear()
78 *(uint32_t*)(result->limbs.word) = in; in FqSet()
82 return (VliCmp(&left->limbs, &right->limbs) == 0); in FqEq()
87 VliCondSet(&result->limbs, &true_val->limbs, &false_val->limbs, truth_val); in FqCondSet()
98 VliModSquare(&tmp, &result->limbs, &epid20_q); in FqSqrt()
99 return 0 == VliCmp(&tmp, &in->limbs); in FqSqrt()
114 VliModBarrett(&result->limbs, &deserialized_t, &epid20_q); in FqRand()
125 VliModBarrett(&result->limbs, &vli, &epid20_q); in FqFromHash()