This is a (somewhat inefficient) method of storing lots of true/false values (up to 31) all in one DinkC integer.
I welcome any enhancements or improvements.
|Released:||June 21st, 2022|
|File Size:||9.75 KB|
|Release Notes:||I've added the SUBSTANTIAL improvement to the original checkbit.c code provided by ebilV. |
Of all the improved versions that ebilV provided to me a while back, I like chkbit3m.c the best. So, I added it to the checkbit development download on the DN.
#1 It allows for the same parameters as the previous checkbit (which turns out to be handy in the process of development, allowing me to search for numbers like 1073741824 to help me find where all the places are in code that use a certain bit).
#2 I like the internal efficiencies that the code uses, to reduce the number of executed lines needed for any one bit.