Lines Matching refs:cc_unit

25 typedef uint64_t cc_unit;          // 64 bit unit  typedef
30 typedef uint32_t cc_unit; // 32 bit unit typedef
39 #define CCN_UNIT_BITS (sizeof(cc_unit) * 8)
40 #define CCN_UNIT_MASK ((cc_unit)~0)
48 #define ccn_sizeof_n(_n_) (sizeof(cc_unit) * (_n_))
57 #define ccn_nof_size(_size_) (((_size_) + sizeof(cc_unit) - 1) / sizeof(cc_unit))
71 CC_INLINE cc_unit ccn_bit(const cc_unit *cc_indexable x, size_t k) in ccn_bit()
77 CC_INLINE void ccn_set_bit(cc_unit *cc_indexable x, size_t k, cc_unit v) in ccn_set_bit()
80 x[k >> CCN_LOG2_BITS_PER_UNIT] |= (cc_unit)1 << (k & (CCN_UNIT_BITS - 1)); in ccn_set_bit()
82 x[k >> CCN_LOG2_BITS_PER_UNIT] &= ~((cc_unit)1 << (k & (CCN_UNIT_BITS - 1))); in ccn_set_bit()
112 #define ccn64_32(a1,a0) (((const cc_unit)a1) << 32 | ((const cc_unit)a0))
187 cc_size ccn_n(cc_size n, const cc_unit *cc_counted_by(n) s) __asm__("_ccn_n");
198 void ccn_shift_right(cc_size n, cc_unit *cc_counted_by(n) r, const cc_unit *cc_counted_by(n) s, siz…
207 size_t ccn_bitlen(cc_size n, const cc_unit *cc_counted_by(n) s);
222 int ccn_cmp(cc_size n, const cc_unit *cc_counted_by(n) s, const cc_unit *cc_counted_by(n) t) __asm_…
238 int ccn_cmpn(cc_size ns, const cc_unit *cc_counted_by(ns) s, cc_size nt, const cc_unit *cc_counted_…
243 cc_unit ccn_sub(cc_size n, cc_unit *cc_counted_by(n) r, const cc_unit *cc_counted_by(n) s, const cc…
248 cc_unit ccn_sub1(cc_size n, cc_unit *cc_counted_by(n) r, const cc_unit *cc_counted_by(n) s, cc_unit
254 cc_unit ccn_subn(cc_size n, cc_unit *cc_counted_by(n) r, const cc_unit *cc_counted_by(n) s, in ccn_subn()
255 cc_size nt, const cc_unit *cc_counted_by(nt) t) { in ccn_subn()
264 cc_unit ccn_add(cc_size n, cc_unit *cc_sized_by(n) r, const cc_unit *cc_sized_by(n) s, const cc_uni…
269 cc_unit ccn_add1(cc_size n, cc_unit *cc_counted_by(n) r, const cc_unit *cc_counted_by(n) s, cc_unit
275 cc_unit ccn_addn(cc_size n, cc_unit *cc_counted_by(n) r, const cc_unit *cc_counted_by(n) s, in ccn_addn()
276 cc_size nt, const cc_unit *cc_counted_by(nt) t) { in ccn_addn()
300 int ccn_read_uint(cc_size n, cc_unit *cc_counted_by(n) r, size_t data_nbytes, const uint8_t *cc_siz…
320 CC_PURE CC_NONNULL((2)) size_t ccn_write_uint_size(cc_size n, const cc_unit *cc_counted_by(n) s);
340 void ccn_write_uint(cc_size n, const cc_unit *cc_counted_by(n) s, size_t out_size, void *cc_sized_b…
361 int ccn_write_uint_padded_ct(cc_size n, const cc_unit *cc_sized_by(n) s, size_t out_size, uint8_t *…
383 CC_INLINE CC_NONNULL((2, 4)) size_t ccn_write_uint_padded(cc_size n, const cc_unit *cc_counted_by(n… in ccn_write_uint_padded()
402 size_t ccn_write_int_size(cc_size n, const cc_unit *cc_counted_by(n) s);
415 void ccn_write_int(cc_size n, const cc_unit *cc_counted_by(n) s, size_t out_size, void *cc_sized_by…
420 void ccn_set(cc_size n, cc_unit *cc_counted_by(n) r, const cc_unit *cc_counted_by(n) s);
423 void ccn_zero(cc_size n, cc_unit *cc_sized_by(n) r) { in ccn_zero()
428 void ccn_clear(cc_size n, cc_unit *cc_sized_by(n) r) { in ccn_clear()
433 void ccn_zero_multi(cc_size n, cc_unit *cc_counted_by(n) r, ...) CC_SENTINEL;
436 void ccn_seti(cc_size n, cc_unit *cc_counted_by(n) r, cc_unit v) { in ccn_seti()
443 void ccn_setn(cc_size n, cc_unit *cc_counted_by(n) r, const cc_size s_size, const cc_unit *cc_count… in ccn_setn()
481 void ccn_swap(cc_size n, cc_unit *cc_counted_by(n) r) { in ccn_swap()
482 cc_unit *local_r = r; in ccn_swap()
483 cc_unit *e; in ccn_swap()
485 cc_unit t = CC_UNIT_TO_BIG(*local_r); in ccn_swap()
494 void ccn_xor(cc_size n, cc_unit *cc_counted_by(n) r, const cc_unit *cc_counted_by(n) s, const cc_un… in ccn_xor()
503 void ccn_print(cc_size n, const cc_unit *cc_counted_by(n) s);
505 void ccn_lprint(cc_size n, const char *cc_cstring label, const cc_unit *cc_counted_by(n) s);
512 int ccn_random(cc_size n, cc_unit *cc_counted_by(n) r, struct ccrng_state *rng) {
522 int ccn_random_bits(cc_size nbits, cc_unit *cc_unsafe_indexable r, struct ccrng_state *rng);