opnsense-src/tests/sys/sys
Vladimir Kondratyev 14a4d6d013 bitstring(3): Add bitstring traversal macros.
The macro bit_foreach() traverses all set bits in the bitstring in the
forward direction, assigning each location in turn to variable.

The macro bit_foreach_at() traverses all set bits in the bitstring in
the forward direction at or after the zero-based bit index, assigning
each location in turn to variable.

The bit_foreach_unset() and bit_foreach_unset_at() macros which
traverses unset bits are implemented for completeness.

Reviewed by:	asomers, dougm
MFC after:	1 week
Differential revision:	https://reviews.freebsd.org/D31469
2021-08-16 23:24:05 +03:00
..
arb_test.c Introduce arb(3), the Array-based Red-Black Tree macros: similar 2019-09-14 19:23:46 +00:00
bitstring_test.c bitstring(3): Add bitstring traversal macros. 2021-08-16 23:24:05 +03:00
Makefile Fix gcc build 2019-11-24 15:03:35 +00:00
Makefile.depend DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
qmath_test.c Revert r357246 2020-01-29 22:37:01 +00:00
rb_test.c Improve tree(3) tests by using ATF_REQUIRE where applicable. 2019-05-20 18:35:23 +00:00
splay_test.c Improve tree(3) tests by using ATF_REQUIRE where applicable. 2019-05-20 18:35:23 +00:00