Lines Matching refs:small
254 * smallfelem_neg sets |out| to |-small|
258 static void smallfelem_neg(felem out, const smallfelem small)
261 out[0] = zero105[0] - small[0];
262 out[1] = zero105[1] - small[1];
263 out[2] = zero105[2] - small[2];
264 out[3] = zero105[3] - small[3];
479 * smallfelem_square sets |out| = |small|^2
481 * small[i] < 2^64
485 static void smallfelem_square(longfelem out, const smallfelem small)
490 a = ((uint128_t) small[0]) * small[0];
496 a = ((uint128_t) small[0]) * small[1];
503 a = ((uint128_t) small[0]) * small[2];
510 a = ((uint128_t) small[0]) * small[3];
516 a = ((uint128_t) small[1]) * small[2];
523 a = ((uint128_t) small[1]) * small[1];
529 a = ((uint128_t) small[1]) * small[3];
536 a = ((uint128_t) small[2]) * small[3];
544 a = ((uint128_t) small[2]) * small[2];
550 a = ((uint128_t) small[3]) * small[3];
566 u64 small[4];
567 felem_shrink(small, in);
568 smallfelem_square(out, small);
851 /* small is minimal except that the value might be > p */
933 * small[i] < 2^64
935 static limb smallfelem_is_zero(const smallfelem small)
940 u64 is_zero = small[0] | small[1] | small[2] | small[3];
950 is_p = (small[0] ^ kPrime[0]) |
951 (small[1] ^ kPrime[1]) |
952 (small[2] ^ kPrime[2]) | (small[3] ^ kPrime[3]);
969 static int smallfelem_is_zero_int(const void *small)
971 return (int)(smallfelem_is_zero(small) & ((limb) 1));
1667 * small point multiples 0*P, 1*P, ..., 17*P are in pre_comp[], the scalars