Lines Matching defs:bits

72 	int databits;	/* number of bits used to hold dictionary value */
74 int csumbits; /* number of bits used for checksum */
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);
121 static bitv *bitv_strparse(const char *s, int bits);
709 int bit; /* for looping through bits */
775 /* assemble all the bits for the diagcode */
840 int bit; /* for looping through bits */
888 /* set the csum bits to zero */
926 * a given number of bits from the code and the offset
1129 /* shift left a bit vector by a given number of bits. fill with zeros. */
1131 bitv_shift(bitv *bv, unsigned bits)
1133 while (bits > 0) {
1134 unsigned iterbits = bits;
1137 /* how many bits this iteration? 8 max. */
1147 bits -= iterbits;
1151 /* force a given number of bits to a specific value */
1153 bitv_setlo(bitv *bv, unsigned bits, unsigned val)
1157 /* assumption: bits * 8 <= sizeof (val) */
1159 while (bits > 0) {
1160 unsigned iterbits = bits;
1172 bits -= iterbits;
1183 /* given a value and number of bits, shift it in from the right */
1185 bitv_shiftin(bitv *bv, unsigned bits, unsigned val)
1187 bitv_shift(bv, bits);
1188 bitv_setlo(bv, bits, val);
1191 /* given a bit vector and a number of bits, shift it in from the right */
1193 bitv_shiftinv(bitv *bv, unsigned bits, const bitv *inbv)
1195 int byteindex = bits / 8;
1196 int iterbits = bits % 8;
1206 /* return the number of bits required to hold the current bit vector's value */
1227 /* extract chunks of bits from bit vector */
1396 bitv_strparse(const char *s, int bits)
1436 bitv_bits(bv) > bits) {