Lines Matching refs:small
256 /* smallfelem_neg sets |out| to |-small|
260 static void smallfelem_neg(felem out, const smallfelem small)
263 out[0] = zero105[0] - small[0];
264 out[1] = zero105[1] - small[1];
265 out[2] = zero105[2] - small[2];
266 out[3] = zero105[3] - small[3];
455 /* smallfelem_square sets |out| = |small|^2
457 * small[i] < 2^64
461 static void smallfelem_square(longfelem out, const smallfelem small)
466 a = ((uint128_t) small[0]) * small[0];
472 a = ((uint128_t) small[0]) * small[1];
479 a = ((uint128_t) small[0]) * small[2];
486 a = ((uint128_t) small[0]) * small[3];
492 a = ((uint128_t) small[1]) * small[2];
499 a = ((uint128_t) small[1]) * small[1];
505 a = ((uint128_t) small[1]) * small[3];
512 a = ((uint128_t) small[2]) * small[3];
520 a = ((uint128_t) small[2]) * small[2];
526 a = ((uint128_t) small[3]) * small[3];
541 u64 small[4];
542 felem_shrink(small, in);
543 smallfelem_square(out, small);
819 /* small is minimal except that the value might be > p */
892 * small[i] < 2^64
894 static limb smallfelem_is_zero(const smallfelem small)
899 u64 is_zero = small[0] | small[1] | small[2] | small[3];
909 is_p = (small[0] ^ kPrime[0]) |
910 (small[1] ^ kPrime[1]) |
911 (small[2] ^ kPrime[2]) |
912 (small[3] ^ kPrime[3]);
929 static int smallfelem_is_zero_int(const smallfelem small)
931 return (int) (smallfelem_is_zero(small) & ((limb)1));
1502 * The small point multiples 0*P, 1*P, ..., 17*P are in pre_comp[],