Thank you for your work on these and getting them merged into fpc.
You're most welcome. It was a pleasure, not work
The bit functions such as ClearBit, SetBit, and TestBit take bit index values, but they don't work with bit mask values. It would be nice to add bit functions that work with masks as well since many APIs and libraries use them.
Devs are very picky (rightfully) with what goes into sysutils, so you should better discuss with them in the mail list before doing any real work. My wild guess would be that if your patches get accepted, they would need to be in some other unit.