Lines Matching defs:small
267 * smallfelem_neg sets |out| to |-small|
271 static void smallfelem_neg(felem out, const smallfelem small)
274 out[0] = zero105[0] - small[0];
275 out[1] = zero105[1] - small[1];
276 out[2] = zero105[2] - small[2];
277 out[3] = zero105[3] - small[3];
490 * smallfelem_square sets |out| = |small|^2
492 * small[i] < 2^64
496 static void smallfelem_square(longfelem out, const smallfelem small)
501 a = ((uint128_t) small[0]) * small[0];
507 a = ((uint128_t) small[0]) * small[1];
514 a = ((uint128_t) small[0]) * small[2];
521 a = ((uint128_t) small[0]) * small[3];
527 a = ((uint128_t) small[1]) * small[2];
534 a = ((uint128_t) small[1]) * small[1];
540 a = ((uint128_t) small[1]) * small[3];
547 a = ((uint128_t) small[2]) * small[3];
555 a = ((uint128_t) small[2]) * small[2];
561 a = ((uint128_t) small[3]) * small[3];
577 u64 small[4];
578 felem_shrink(small, in);
579 smallfelem_square(out, small);
862 /* small is minimal except that the value might be > p */
944 * small[i] < 2^64
946 static limb smallfelem_is_zero(const smallfelem small)
951 u64 is_zero = small[0] | small[1] | small[2] | small[3];
961 is_p = (small[0] ^ kPrime[0]) |
962 (small[1] ^ kPrime[1]) |
963 (small[2] ^ kPrime[2]) | (small[3] ^ kPrime[3]);
980 static int smallfelem_is_zero_int(const smallfelem small)
982 return (int)(smallfelem_is_zero(small) & ((limb) 1));
1657 * small point multiples 0*P, 1*P, ..., 17*P are in pre_comp[], the scalars