Re:A compact bitset implementation used in Ocarina of Time s...
by warvair on Tuesday July 08, 2025 @03:07PM
(#44502999)
This seems quite nice. Simple bit-shifting of the 16-bit ID gives both the index into the array of 16-bit words and the bit in the word and allows up to 65536 bitflags. This makes for a very efficient and easy to implement bitflag set/check system given these constraints.
[ Parent
| on HN ]
There are no comments on this comment yet.