Is it possible to have too many (extended BV) bits (for example, too many ACT bits) at all, where it causes problems? If so, I'll probably split up the ACT bits into CONFIG bits and remaining ACT bits.
Too many bits?
Posted by Zeno on Sun 30 Jan 2005 10:46 PM — 5 posts, 19,617 views.
Extended bit's can hold a lot. From my thinking, though it may be wrong, you have 128 bits (32 bits per int * 4 ints), so that should be plenty. If you have more then that I would seperate it into two fields. Again, I may be wrong in my thinking, as no one has confirmed this for me either.
So basically up to 128 "flags" will be fine? Yeah, I'll be fine if that's right.
Yes. EXT_BV holds 128 bits. This is assuming the INTBITS value is defined as 32. As near as I can tell, this should be the case on most systems, it's hard to tell with looking through limits.h in /usr/include. It's even possible that on 64 bit systems INTBITS would be 64, in which case you'd havw 256 flag bits at your disposal.
You can also change the amount of bits in your code by increasing the amount of elements in the int array by increasing XBI. This may have mixed results though, as I have not tested it myself.It may be expecting 5 instead of 4 elements while reading it in from a file, for example.