]> git.puffer.fish Git - matthieu/frr.git/commit
lib: bitfield: new macros for bit processing
authorAnuradha Karuppiah <anuradhak@cumulusnetworks.com>
Wed, 25 Mar 2020 13:17:34 +0000 (06:17 -0700)
committerAnuradha Karuppiah <anuradhak@cumulusnetworks.com>
Wed, 5 Aug 2020 13:46:12 +0000 (06:46 -0700)
commit89fbf168c22501f518c7532e0d4c97cf0e3f119c
tree9bc6937088c461b73ccb42257486225218ce71b3
parent185fb14a4138c0cd2ce98711d31205c657893c2f
lib: bitfield: new macros for bit processing

New macros have been added for the following -
1. to efficiently iterate and execute functions on already set bits
2. to check if a bit is in use
3. to check if a bitfield has been initialized (this is to safetly
handle cases where the bitfield is freed and re-allocated).
4. to check if two bitfields have the same bits set

Signed-off-by: Anuradha Karuppiah <anuradhak@cumulusnetworks.com>
lib/bitfield.h