Lines Matching refs:limb

107 typedef uint64_t limb;  typedef
109 typedef limb limb_aX __attribute((__aligned__(1)));
110 typedef limb felem[NLIMBS];
113 static const limb bottom56bits = 0xffffffffffffff;
119 out[0] = (*((limb *) & in[0])) & bottom56bits; in bin48_to_felem()
131 (*((limb *) & out[0])) |= (in[0] & bottom56bits); in felem_to_bin48()
176 memset(&out[1], 0, sizeof(limb) * (NLIMBS-1)); in felem_one()
194 static void felem_scalar(felem out, const felem in, limb scalar) in felem_scalar()
203 static void felem_scalar64(felem out, limb scalar) in felem_scalar64()
212 static void felem_scalar128(widefelem out, limb scalar) in felem_scalar128()
234 static const limb two60m52m4 = (((limb) 1) << 60) in felem_neg()
235 - (((limb) 1) << 52) in felem_neg()
236 - (((limb) 1) << 4); in felem_neg()
237 static const limb two60p44m12 = (((limb) 1) << 60) in felem_neg()
238 + (((limb) 1) << 44) in felem_neg()
239 - (((limb) 1) << 12); in felem_neg()
240 static const limb two60m28m4 = (((limb) 1) << 60) in felem_neg()
241 - (((limb) 1) << 28) in felem_neg()
242 - (((limb) 1) << 4); in felem_neg()
243 static const limb two60m4 = (((limb) 1) << 60) in felem_neg()
244 - (((limb) 1) << 4); in felem_neg()
270 static const limb two60m52m4 = (((limb) 1) << 60) in felem_diff64()
271 - (((limb) 1) << 52) in felem_diff64()
272 - (((limb) 1) << 4); in felem_diff64()
273 static const limb two60p44m12 = (((limb) 1) << 60) in felem_diff64()
274 + (((limb) 1) << 44) in felem_diff64()
275 - (((limb) 1) << 12); in felem_diff64()
276 static const limb two60m28m4 = (((limb) 1) << 60) in felem_diff64()
277 - (((limb) 1) << 28) in felem_diff64()
278 - (((limb) 1) << 4); in felem_diff64()
279 static const limb two60m4 = (((limb) 1) << 60) in felem_diff64()
280 - (((limb) 1) << 4); in felem_diff64()
828 static limb felem_is_zero(const felem in) in felem_is_zero()
830 limb zero, p384; in felem_is_zero()
845 return (int)(felem_is_zero(in) & ((limb) 1)); in felem_is_zero_int()
857 static const int64_t two56 = ((limb) 1) << 56; in felem_contract()
1052 static void copy_conditional(felem out, const felem in, limb mask) in copy_conditional()
1078 limb x_equal, y_equal, z1_is_zero, z2_is_zero; in point_add()
1079 limb points_equal; in point_add()
1336 static void select_point(const limb idx, unsigned int size, in select_point()
1340 limb *outlimbs = &out[0][0]; in select_point()
1345 const limb *inlimbs = &pre_comp[i][0][0]; in select_point()
1346 limb mask = i ^ idx; in select_point()
1382 limb bits; in batch_mul()
1439 copy_conditional(tmp[1], tmp[3], (-(limb) sign)); in batch_mul()