Lines Matching refs:bitcnt_t
39 int nn_lshift_fixedlen(nn_t out, nn_src_t in, bitcnt_t cnt) in nn_lshift_fixedlen()
42 bitcnt_t lshift, hshift; in nn_lshift_fixedlen()
52 lshift = (bitcnt_t)(WORD_BITS - hshift); in nn_lshift_fixedlen()
94 int nn_lshift(nn_t out, nn_src_t in, bitcnt_t cnt) in nn_lshift()
96 bitcnt_t lshift, hshift, blen; in nn_lshift()
116 lshift = (bitcnt_t)(WORD_BITS - hshift); in nn_lshift()
157 int nn_rshift_fixedlen(nn_t out, nn_src_t in, bitcnt_t cnt) in nn_rshift_fixedlen()
160 bitcnt_t lshift, hshift; in nn_rshift_fixedlen()
170 hshift = (bitcnt_t)(WORD_BITS - lshift); in nn_rshift_fixedlen()
211 int nn_rshift(nn_t out, nn_src_t in, bitcnt_t cnt) in nn_rshift()
214 bitcnt_t lshift, hshift; in nn_rshift()
216 bitcnt_t blen; in nn_rshift()
227 hshift = (bitcnt_t)(WORD_BITS - lshift); in nn_rshift()
277 int nn_rrot(nn_t out, nn_src_t in, bitcnt_t cnt, bitcnt_t bitlen) in nn_rrot()
289 ret = nn_lshift(&tmp, in, (bitcnt_t)(bitlen - cnt)); EG(ret, err); in nn_rrot()
317 int nn_lrot(nn_t out, nn_src_t in, bitcnt_t cnt, bitcnt_t bitlen) in nn_lrot()
331 ret = nn_rshift(out, in, (bitcnt_t)(bitlen - cnt)); EG(ret, err); in nn_lrot()
505 int nn_clz(nn_src_t in, bitcnt_t *lz) in nn_clz()
507 bitcnt_t cnt = 0; in nn_clz()
517 cnt = (bitcnt_t)(cnt + WORD_BITS); in nn_clz()
519 cnt = (bitcnt_t)(cnt + wclz(in->val[i - 1])); in nn_clz()
534 int nn_bitlen(nn_src_t in, bitcnt_t *blen) in nn_bitlen()
536 bitcnt_t _blen = 0; in nn_bitlen()
546 _blen = (bitcnt_t)((i * WORD_BITS) - wclz(in->val[i - 1])); in nn_bitlen()
561 int nn_getbit(nn_src_t in, bitcnt_t bit, u8 *bitval) in nn_getbit()
563 bitcnt_t widx = bit / WORD_BITS; in nn_getbit()