mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
Add 'Bits2Bytes' to SDK
Converts bitnum to bytenum.
This commit is contained in:
parent
0f660aee8b
commit
6dce43616b
@ -210,6 +210,7 @@ inline int CalcNumIntsForBits( int numBits ) { return (numBits + (BITS_PER_INT-1
|
||||
#endif
|
||||
#define BitVec_Int( bitNum ) ( (bitNum) >> LOG2_BITS_PER_INT )
|
||||
|
||||
#define Bits2Bytes(b) ((b+7)>>3)
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// template CBitVecT
|
||||
|
Loading…
x
Reference in New Issue
Block a user