Gray C++ Libraries  0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
cBitArray.h File Reference

Go to the source code of this file.

Classes

class  GrayLib::cBitArrayStatic
 
class  GrayLib::cBitArray
 

Namespaces

 Gray
 < The main namespace for all Core functions.
 
 GrayLib
 

Macros

#define BLOCKS_FROM_BITS(nBits)   ((cBitArrayStatic::BLOCK_ENUM_t)(((nBits) + (cBitArrayStatic::k_BLOCK_BITS - 1)) / cBitArrayStatic::k_BLOCK_BITS))
 
#define BLOCK_FROM_BYTES(a, b, c, d)
 
#define BLOCKS_FROM_BYTES(a, b, c, d, e, f, g, h)   BLOCK_FROM_BYTES( a, b, c, d ), BLOCK_FROM_BYTES( e, f, g, h )
 

Functions

 Gray::DECLARE_INTERFACE (IRandomNoise)
 
 GrayLib::UNITTEST2_PREDEF (cBitArray)
 

Detailed Description

Macro Definition Documentation

◆ BLOCK_FROM_BYTES

#define BLOCK_FROM_BYTES (   a,
  b,
  c,
 
)
Value:
( (cBitArray::BLOCK_t) a << 0 ) | \
( (cBitArray::BLOCK_t) b << 8 ) | \
( (cBitArray::BLOCK_t) c << 16 ) | \
( (cBitArray::BLOCK_t) d << 24 )

◆ BLOCKS_FROM_BITS

#define BLOCKS_FROM_BITS (   nBits)    ((cBitArrayStatic::BLOCK_ENUM_t)(((nBits) + (cBitArrayStatic::k_BLOCK_BITS - 1)) / cBitArrayStatic::k_BLOCK_BITS))

◆ BLOCKS_FROM_BYTES

#define BLOCKS_FROM_BYTES (   a,
  b,
  c,
  d,
  e,
  f,
  g,
 
)    BLOCK_FROM_BYTES( a, b, c, d ), BLOCK_FROM_BYTES( e, f, g, h )