Example #1
0
// iterate over items in this labelset and apply fn app to each.
// stuff2 also gets passed to app
static SB_INLINE void labelset_iter (LabelSet *ls, int (*app)(uint32_t el, void *stuff1), void *stuff2) {
    bitset_iter(*(ls->set), app, stuff2);
}
Example #2
0
// save this bitset to qemu file f
static SB_INLINE void bitset_save(void * /* QEMUFile * */ f, BitSet *bs) {
  qemu_put_be32(f, bs->max_size);
  qemu_put_be32(f, bs->current_size);
  bitset_iter(bs, __bitset_save_aux, f);
}