Lines Matching refs:u64
55 typedef uint64_t u64; typedef
118 typedef u64 smallfelem[NLIMBS];
121 static const u64 kPrime[4] = {
124 static const u64 bottom63bits = 0x7ffffffffffffffful;
132 out[0] = *((u64 *)&in[0]); in bin32_to_felem()
133 out[1] = *((u64 *)&in[8]); in bin32_to_felem()
134 out[2] = *((u64 *)&in[16]); in bin32_to_felem()
135 out[3] = *((u64 *)&in[24]); in bin32_to_felem()
144 *((u64 *)&out[0]) = in[0]; in smallfelem_to_bin32()
145 *((u64 *)&out[8]) = in[1]; in smallfelem_to_bin32()
146 *((u64 *)&out[16]) = in[2]; in smallfelem_to_bin32()
147 *((u64 *)&out[24]) = in[3]; in smallfelem_to_bin32()
225 static void felem_scalar(felem out, const u64 scalar) in felem_scalar()
234 static void longfelem_scalar(longfelem out, const u64 scalar) in longfelem_scalar()
383 u64 a, b, mask; in felem_shrink()
384 u64 high, low; in felem_shrink()
385 static const u64 kPrime3Test = 0x7fffffff00000001ul; /* 2^63 - 2^32 + 1 */ in felem_shrink()
388 tmp[3] = zero110[3] + in[3] + ((u64)(in[2] >> 64)); in felem_shrink()
391 tmp[2] = zero110[2] + (u64)in[2]; in felem_shrink()
401 tmp[3] = (u64)tmp[3]; in felem_shrink()
409 tmp[3] = (u64)tmp[3]; in felem_shrink()
425 high = (u64)(tmp[3] >> 64); in felem_shrink()
433 low = (u64)tmp[3]; in felem_shrink()
457 tmp[1] += ((u64)(tmp[0] >> 64)); in felem_shrink()
458 tmp[0] = (u64)tmp[0]; in felem_shrink()
459 tmp[2] += ((u64)(tmp[1] >> 64)); in felem_shrink()
460 tmp[1] = (u64)tmp[1]; in felem_shrink()
461 tmp[3] += ((u64)(tmp[2] >> 64)); in felem_shrink()
462 tmp[2] = (u64)tmp[2]; in felem_shrink()
490 u64 high, low; in smallfelem_square()
568 u64 small[4]; in felem_square()
585 u64 high, low; in smallfelem_mul()
835 static void subtract_u64(u64 *result, u64 *carry, u64 v) in subtract_u64()
840 *result = (u64)r; in subtract_u64()
850 u64 all_equal_so_far = 0, result = 0, carry; in felem_contract()
863 u64 equal; in felem_contract()
869 result |= all_equal_so_far & ((u64)(a >> 64)); in felem_contract()
940 u64 is_p; in smallfelem_is_zero()
942 u64 is_zero = small[0] | small[1] | small[2] | small[3]; in smallfelem_is_zero()
1219 const u64 mask64 = mask; in copy_small_conditional()
1638 static void select_point(const u64 idx, unsigned int size, in select_point()
1642 u64 *outlimbs = &out[0][0]; in select_point()
1647 const u64 *inlimbs = (u64 *)&pre_comp[i][0][0]; in select_point()
1648 u64 mask = i ^ idx; in select_point()
1684 u64 bits; in batch_mul()