Lines Matching refs:bitmask
82 * A rdbx_t consists of a xtd_seq_num_t and a bitmask. The index is highest
83 * sequence number that has been received, and the bitmask indicates
85 * highest bit in the bitmask corresponds to the index in the bitmask.
190 if (bitvector_alloc(&rdbx->bitmask, ws) != 0)
204 bitvector_dealloc(&rdbx->bitmask);
219 bitvector_set_to_zero(&rdbx->bitmask);
255 return bitvector_get_length(&rdbx->bitmask);
268 } else if ((int)(bitvector_get_length(&rdbx->bitmask) - 1) + delta < 0) {
269 /* if delta is lower than the bitmask, it's bad */
271 } else if (bitvector_get_bit(&rdbx->bitmask,
272 (int)(bitvector_get_length(&rdbx->bitmask) - 1) + delta) == 1) {
273 /* delta is within the window, so check the bitmask */
296 bitvector_left_shift(&rdbx->bitmask, delta);
297 bitvector_set_bit(&rdbx->bitmask, bitvector_get_length(&rdbx->bitmask) - 1);
300 bitvector_set_bit(&rdbx->bitmask, bitvector_get_length(&rdbx->bitmask) -1 + delta);