From 2b0ab2120becaa40b777e7c43bfa57cb0397e3a9 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Tue, 5 Jan 2016 20:04:57 +0000 Subject: Add bitarray_first{clear,set}_skip (thx jjk) version: rc for 2.3.9.0 after Makefile fix --- doc/index.html | 2 +- doc/libstddjb/bitarray.html | 14 ++++++++++++++ doc/upgrade.html | 7 +++++++ package/deps.mak | 2 ++ package/info | 2 +- src/include/skalibs/bitarray.h | 5 +++++ src/libstddjb/bitarray_firstclear_skip.c | 15 +++++++++++++++ src/libstddjb/bitarray_firstset_skip.c | 15 +++++++++++++++ 8 files changed, 60 insertions(+), 2 deletions(-) create mode 100644 src/libstddjb/bitarray_firstclear_skip.c create mode 100644 src/libstddjb/bitarray_firstset_skip.c diff --git a/doc/index.html b/doc/index.html index d310551..3606019 100644 --- a/doc/index.html +++ b/doc/index.html @@ -60,7 +60,7 @@ with a standard C development environment

Download

diff --git a/doc/libstddjb/bitarray.html b/doc/libstddjb/bitarray.html index 03f81df..0695ff1 100644 --- a/doc/libstddjb/bitarray.html +++ b/doc/libstddjb/bitarray.html @@ -122,11 +122,25 @@ Returns the number of the first clear bit in s, len being the total number of bits. If all bits in s are set, len is returned.

+

+ unsigned int bitarray_firstclear_skip (unsigned char const *s, unsigned int len, unsigned int skip)
+Like bitarray_firstclear, but the first skip bits are +ignored: the function cannot return less than skip. It is a +programming error if skip > len. +

+

unsigned int bitarray_firstset (unsigned char const *s, unsigned int len)
Returns the number of the first set bit in s, len being the total number of bits. If all bits in s are clear, len is returned.

+

+ unsigned int bitarray_firstset_skip (unsigned char const *s, unsigned int len, unsigned int skip)
+Like bitarray_firstset, but the first skip bits are +ignored: the function cannot return less than skip. It is a +programming error if skip > len. +

+ diff --git a/doc/upgrade.html b/doc/upgrade.html index 53b65a1..d67960f 100644 --- a/doc/upgrade.html +++ b/doc/upgrade.html @@ -18,6 +18,13 @@

What has changed in skalibs

+

in 2.3.9.0

+ + +

in 2.3.8.3