Lines Matching refs:bitv
94 typedef struct bitv bitv; typedef
95 static const struct info *dictval2info(const bitv *bv);
101 static bitv *code2dictval(fm_dc_handle_t *dhp, const char *code);
109 static bitv *bitv_alloc(void);
110 static void bitv_free(bitv *bv);
111 static void bitv_shift(bitv *bv, unsigned bits);
112 static void bitv_setlo(bitv *bv, unsigned bits, unsigned val);
113 static void bitv_shiftin(bitv *bv, unsigned bits, unsigned val);
114 static void bitv_shiftinv(bitv *bv, unsigned bits, const bitv *inbv);
115 static int bitv_bits(const bitv *bv);
116 static unsigned bitv_chunk(const bitv *bv, unsigned limbit, unsigned lobit);
117 static int bitv_mul(bitv *bv, unsigned long long val);
118 static int bitv_add(bitv *bv, unsigned long long val);
119 static int bitv_sub(bitv *bv, unsigned long long val);
120 static int bitv_ge(const bitv *bv, unsigned long long val);
121 static bitv *bitv_strparse(const char *s, int bits);
122 static int bitv_cmp(const bitv *bv1, const bitv *bv2);
443 bitv *dictval; in fm_dc_code2key()
482 bitv *thisval; in fm_dc_code2key()
589 dictval2info(const bitv *bv) in dictval2info()
707 bitv *dictval; /* value from dictionary */ in buildcode()
708 bitv *allbits; /* assembled diagcode in binary */ in buildcode()
830 static bitv *
835 bitv *allbits; in code2dictval()
836 bitv *dictval; in code2dictval()
1104 struct bitv { struct
1109 static bitv * argument
1113 struct bitv *bv = malloc(sizeof (*bv)); in bitv_alloc()
1124 bitv_free(bitv *bv) in bitv_free()
1131 bitv_shift(bitv *bv, unsigned bits) in bitv_shift()
1153 bitv_setlo(bitv *bv, unsigned bits, unsigned val) in bitv_setlo()
1185 bitv_shiftin(bitv *bv, unsigned bits, unsigned val) in bitv_shiftin()
1193 bitv_shiftinv(bitv *bv, unsigned bits, const bitv *inbv) in bitv_shiftinv()
1208 bitv_bits(const bitv *bv) in bitv_bits()
1229 bitv_chunk(const bitv *bv, unsigned limbit, unsigned lobit) in bitv_chunk()
1256 bitv_mul(bitv *bv, unsigned long long val) in bitv_mul()
1308 bitv_add(bitv *bv, unsigned long long val) in bitv_add()
1339 bitv_sub(bitv *bv, unsigned long long val) in bitv_sub()
1372 bitv_ge(const bitv *bv, unsigned long long val) in bitv_ge()
1395 static bitv *
1400 bitv *bv = bitv_alloc(); in bitv_strparse()
1450 bitv_cmp(const bitv *bv1, const bitv *bv2) in bitv_cmp()