[PATCH] Add function to add bits from array to bitvec

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/OpenBSC@lists.osmocom.org/.

Harald Welte laforge at gnumonks.org
Mon Mar 14 18:06:37 UTC 2016


Hi Max,

> +unsigned int bitvec_add_array(struct bitvec *bv, const uint32_t *array, unsigned int array_len,
> + *  \param[in] estimate indicates whether to return number of bits required instead of actually changing bv
> + *  \returns number of bits necessary to add given PCIDs if estimate is true, 0 otherwise
> +unsigned int bitvec_add_array(struct bitvec *bv, const uint32_t *array, unsigned int array_len,
> +static inline void test_array_item(unsigned t, struct bitvec *b, unsigned int n, uint32_t *array, unsigned int p)
> +	printf("\nbits: %u, est: %u, real: %u, x: %u, y: %u\n", t, i, b->cur_bit, x, y);

you often seem to submit code with line lengths in excess of 80
characters.  Please configure your editor accordingly and save us some
time and review cycles just for cosmetic issues.  Thanks!

-- 
- Harald Welte <laforge at gnumonks.org>           http://laforge.gnumonks.org/
============================================================================
"Privacy in residential applications is a desirable marketing option."
                                                  (ETSI EN 300 175-7 Ch. A6)



More information about the OpenBSC mailing list