That's already implemented in bitvec_rl(const struct bitvec *bv, bool
b); from bitvec.h in libosmocore.
See also bitcomp.h for usage details.
On 03/16/2016 01:48 PM, Sangamesh Sajjan wrote:
• Utility to find runlength of one’s or zero’s and
addition of Test cases in Unit test framework
--
Max Suraev <msuraev(a)sysmocom.de>
http://www.sysmocom.de/
=======================================================================
* sysmocom - systems for mobile communications GmbH
* Alt-Moabit 93
* 10559 Berlin, Germany
* Sitz / Registered office: Berlin, HRB 134158 B
* Geschaeftsfuehrer / Managing Directors: Holger Freyther, Harald Welte