3 ms·
My apologies, I may have misunderstood what OP meant! I thought they assumed bitfields were always 1-bit in size. BitInt looks neat. It sounds kind of like a b
by bananaboy 4y ago
My apologies, I may have misunderstood what OP meant! I thought they assumed bitfields were always 1-bit in size.
BitInt looks neat. It sounds kind of like a bit array which we use quite a lot (which is as you suggest a class wrapper over an array of uint32_t templated on a size).
We use bitfields quite a bit across clang and MSVC targeting mobile, PC, and console, and haven't had any problems as far as I know.