Lines Matching refs:cc_unit
78 r = (cc_unit)tmp; \
84 cc_unit _c = (tmp) >> CCN_UNIT_BITS; \
86 r = (cc_unit)tmp; \
93 r = (cc_unit)tmp; \
99 cc_unit _b = (tmp) >> (2 * CCN_UNIT_BITS - 1); \
101 r = (cc_unit)tmp; \
123 r = (cc_unit)lo; \
132 void ccn_set(cc_size n, cc_unit *cc_counted_by(n) r, const cc_unit *cc_counted_by(n) s);
137 ccn_setn(cc_size n, cc_unit *cc_counted_by (n)r, const cc_size s_size, const cc_unit *cc_counted_by… in ccn_setn()
151 ccn_clear(cc_size n, cc_unit *cc_sized_by (n)r) in ccn_clear()
157 CC_INLINE cc_unit
158 ccn_bit(const cc_unit *cc_indexable x, size_t k) in ccn_bit()
165 cc_unit ccn_abs(cc_size n, cc_unit *cc_counted_by(n) r, const cc_unit *cc_counted_by(n) s, const cc…
171 size_t ccn_trailing_zeros(cc_size n, const cc_unit *s);
182 void ccn_shift_right(cc_size n, cc_unit *cc_counted_by(n) r, const cc_unit *cc_counted_by(n) s, siz…
193 void ccn_shift_right_multi(cc_size n, cc_unit *cc_counted_by(n) r, const cc_unit *cc_counted_by(n) …
200 void ccn_shift_left(cc_size n, cc_unit *cc_counted_by(n) r, const cc_unit *cc_counted_by(n) s, size…
203 void ccn_shift_left_multi(cc_size n, cc_unit *cc_counted_by(n) r, const cc_unit *cc_counted_by(n) s…
208 void ccn_cond_swap(cc_size n, cc_unit ki, cc_unit *cc_counted_by(n) r0, cc_unit *cc_counted_by(n) r…
221 void ccn_cond_shift_right(cc_size n, cc_unit s, cc_unit *cc_counted_by(n) r, const cc_unit *cc_coun…
231 void ccn_cond_neg(cc_size n, cc_unit s, cc_unit *cc_counted_by(n) r, const cc_unit *cc_counted_by(n…
245 …_shift_right_carry(cc_size n, cc_unit s, cc_unit *cc_counted_by(n) r, const cc_unit *cc_counted_by…
260 cc_unit ccn_cond_add(cc_size n, cc_unit s, cc_unit *cc_counted_by(n) r, const cc_unit *cc_counted_b…
275 cc_unit ccn_cond_rsub(cc_size n, cc_unit s, cc_unit *cc_counted_by(n) r, const cc_unit *cc_counted_…
290 cc_unit ccn_cond_sub(cc_size n, cc_unit s, cc_unit *cc_counted_by(n) r, const cc_unit *cc_counted_b…
301 void ccn_cond_clear(cc_size n, cc_unit s, cc_unit *r);
317 void ccn_mux(cc_size n, cc_unit s, cc_unit *cc_counted_by(n) r, const cc_unit *cc_counted_by(n) a, …
335 …(cc_ws_t ws, cc_size rn, cc_unit *cc_counted_by(rn) r, cc_size sn, const cc_unit *cc_counted_by(sn…
346 …d ccn_lcm_ws(cc_ws_t ws, cc_size n, cc_unit *cc_unsafe_indexable r2n, const cc_unit *cc_counted_by…
352 void ccn_mul(cc_size n, cc_unit *cc_unsafe_indexable r_2n, const cc_unit *cc_counted_by(n)s, const …
358 cc_unit ccn_mul1(cc_size n, cc_unit *cc_counted_by(n) r, const cc_unit *cc_counted_by(n) s, const c…
366 void ccn_muln(cc_size n, cc_unit *cc_counted_by(n + nv) r, const cc_unit *cc_counted_by(n) s, cc_si…
372 cc_unit ccn_addmul1(cc_size n, cc_unit *cc_counted_by(n) r, const cc_unit *cc_counted_by(n) s, cons…
379 …_mul_ws(cc_ws_t ws, cc_size count, cc_unit *cc_unsafe_indexable r, const cc_unit *cc_counted_by(co…
384 void ccn_sqr_ws(cc_ws_t ws, cc_size n, cc_unit *cc_unsafe_indexable r, const cc_unit *cc_counted_by…
409 void ccn_neg(cc_size n, cc_unit *cc_counted_by(n) r, const cc_unit *cc_counted_by(n) x);
420 CC_INLINE cc_unit
421 ccn_invert(cc_unit x) in ccn_invert()
426 cc_unit y = (3 * x) ^ 2; in ccn_invert()
451 …n_div_exact_ws(cc_ws_t ws, cc_size n, cc_unit *cc_counted_by(n) q, const cc_unit *cc_counted_by(n)…
464 bool ccn_divides1(cc_size n, const cc_unit *cc_counted_by(n)x, cc_unit q);
477 CC_INLINE cc_unit
478 ccn_select(cc_size start, cc_size end, const cc_unit *cc_counted_by(end)r, cc_size i) in ccn_select()
480 cc_unit ri = 0; in ccn_select()
485 ri |= r[j] & ((cc_unit)i_neq_j - 1); in ccn_select()
514 …vmod_ws(cc_ws_t ws, cc_size n, cc_unit *cc_counted_by(n) r, cc_size xn, const cc_unit *cc_counted_…
528 void ccn_mux_seed_mask(cc_unit seed);
544 …ize na, const cc_unit *cc_counted_by(na) a, cc_size nq, cc_unit *cc_counted_by(nq) q, cc_size n, c…
547 …ize na, const cc_unit *cc_counted_by(na) a, cc_size nq, cc_unit *cc_counted_by(nq) q, cc_size n, c…
550 void ccn_zero_multi(cc_size n, cc_unit *r, ...);
553 cc_unit ccn_add_ws(cc_ws_t ws, cc_size count, cc_unit *r, const cc_unit *s, const cc_unit *t);
556 cc_unit ccn_sub_ws(cc_ws_t ws, cc_size count, cc_unit *r, const cc_unit *s, const cc_unit *t);
559 cc_unit ccn_add1_ws(cc_ws_t ws, cc_size n, cc_unit *r, const cc_unit *s, cc_unit v);
564 cc_unit ccn_addn(cc_size n, cc_unit *cc_counted_by(n) r, const cc_unit *cc_counted_by(n) s, cc_size…
569 cc_unit ccn_sub1(cc_size n, cc_unit *cc_counted_by(n) r, const cc_unit *cc_counted_by(n) s, cc_unit…
574 cc_unit ccn_subn(cc_size n, cc_unit *cc_counted_by(n) r, const cc_unit *cc_counted_by(n) s, cc_size…
578 cc_size ccn_n(cc_size n, const cc_unit *cc_counted_by(n)s);
582 int ccn_random_bits(cc_size nbits, cc_unit *cc_unsafe_indexable r, struct ccrng_state *rng);
586 int ccn_random_bits_fips(cc_size nbits, cc_unit *cc_unsafe_indexable r, struct ccrng_state *rng);
591 const cc_unit *s;
592 const cc_unit *t;
604 void ccn_recode_jsf_init(struct ccn_rjsf_state *r, size_t nbits, const cc_unit *s, const cc_unit *t…
656 ccn_read_le_bytes(cc_size n, const uint8_t *in, cc_unit *out) in ccn_read_le_bytes()
672 ccn_write_le_bytes(cc_size n, const cc_unit *in, uint8_t *out) in ccn_write_le_bytes()
688 void ccn_recode_ssw(cc_size n, const cc_unit *s, int w, int8_t *r);