Lines Matching refs:small
253 * smallfelem_neg sets |out| to |-small|
257 static void smallfelem_neg(felem out, const smallfelem small)
260 out[0] = zero105[0] - small[0];
261 out[1] = zero105[1] - small[1];
262 out[2] = zero105[2] - small[2];
263 out[3] = zero105[3] - small[3];
478 * smallfelem_square sets |out| = |small|^2
480 * small[i] < 2^64
484 static void smallfelem_square(longfelem out, const smallfelem small)
489 a = ((uint128_t) small[0]) * small[0];
495 a = ((uint128_t) small[0]) * small[1];
502 a = ((uint128_t) small[0]) * small[2];
509 a = ((uint128_t) small[0]) * small[3];
515 a = ((uint128_t) small[1]) * small[2];
522 a = ((uint128_t) small[1]) * small[1];
528 a = ((uint128_t) small[1]) * small[3];
535 a = ((uint128_t) small[2]) * small[3];
543 a = ((uint128_t) small[2]) * small[2];
549 a = ((uint128_t) small[3]) * small[3];
565 u64 small[4];
566 felem_shrink(small, in);
567 smallfelem_square(out, small);
850 /* small is minimal except that the value might be > p */
932 * small[i] < 2^64
934 static limb smallfelem_is_zero(const smallfelem small)
939 u64 is_zero = small[0] | small[1] | small[2] | small[3];
949 is_p = (small[0] ^ kPrime[0]) |
950 (small[1] ^ kPrime[1]) |
951 (small[2] ^ kPrime[2]) | (small[3] ^ kPrime[3]);
968 static int smallfelem_is_zero_int(const void *small)
970 return (int)(smallfelem_is_zero(small) & ((limb) 1));
1645 * small point multiples 0*P, 1*P, ..., 17*P are in pre_comp[], the scalars