Spdk/test/unit/lib/util
Jim Harris 7c56c393ba bit_array: return UINT32_MAX if no cleared bits found
spdk_bit_array_find_first_set() returns UINT32_MAX if no
set bits are found.  But spdk_bit_array_find_first_clear()
would return the size of the bit array instead in this case.
(Note: the comments say size of the bit array + 1 which was
incorrect)

So this patch makes spdk_bit_array_find_first_clear()
consistent with spdk_bit_array_find_first_set() and returns
UINT32_MAX if no cleared bit is found.

Signed-off-by: Jim Harris <james.r.harris@intel.com>
Change-Id: I44c1e674149f8c2e87122800d5db45a2851f0bef

Reviewed-on: https://review.gerrithub.io/428225
Chandler-Test-Pool: SPDK Automated Test System <sys_sgsw@intel.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
Reviewed-by: Ziye Yang <optimistyzy@gmail.com>
Reviewed-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com>
2018-10-08 17:03:33 +00:00
..
base64.c test/unit: Fix scan-build errors in thread and util tests 2018-08-31 19:09:07 +00:00
bit_array.c bit_array: return UINT32_MAX if no cleared bits found 2018-10-08 17:03:33 +00:00
cpuset.c lib/util: return const pointer from spdk_cpuset_fmt 2018-02-20 13:05:36 -05:00
crc16.c test: use spdk_unittest.mk for lib/unit unit tests 2018-02-14 11:07:05 -05:00
crc32_ieee.c test: use spdk_unittest.mk for lib/unit unit tests 2018-02-14 11:07:05 -05:00
crc32c.c test: use spdk_unittest.mk for lib/unit unit tests 2018-02-14 11:07:05 -05:00
string.c test/unit: Fix scan-build errors in thread and util tests 2018-08-31 19:09:07 +00:00
Makefile util/base64: add base64 lib and unit tests 2018-07-19 00:50:54 +00:00