PATCH extended ordinal helpers for bit patterns
Original Reporter info from Mantis: Thaddy
-
Reporter name: Thaddy de Koning
Original Reporter info from Mantis: Thaddy
- Reporter name: Thaddy de Koning
Description:
Added for all ordinals for which there is a type helper:
Proper range for all sizes.
- String representation as bit string
ToBinString
- Set a bit
SetBit(const Index: proper_range);
-Clear a bit
ClearBit(const Index: proper_range);
-Toggle a bit
ToggleBit(const Index: proper_range);
- Test if a bit is set
TestBit(const Index: proper_range);
Additional information:
I had this laying around for some time and I finally am satisfied that it actually adds something for other users too.
Playing with hardware can be dangerous for old men like me...
The patch is straightforward, but if tests are required I will add them. Just point me to where I should add them
Mantis conversion info:
- Mantis ID: 36146
- OS: all
- OS Build: all
- Build: 43151
- Platform: all
- Version: 3.3.1
- Fixed in version: 3.3.1
- Fixed in revision: 43417 (#5f6f5cb8)
- Target version: 3.2.0