Gray C++ Libraries  0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
cBits.h File Reference
#include "GrayCore.h"
#include "cUnitTestDecl.h"

Go to the source code of this file.

Classes

struct  Gray::cBits
 
class  Gray::cBitmask< TYPE >
 

Namespaces

 Gray
 < The main namespace for all Core functions.
 

Macros

#define _1BITMASK(b)   (((size_t)1)<<(b))
 default bitmask type = size_t. Use cBits::Mask1() for other type. More...
 
#define CUINT64(h, l)   0x##h##l##ULL
 
#define GETSIZEBYTES(nBits)   (((nBits)+7)/8)
 

Typedefs

typedef unsigned short Gray::BIT_SIZE_t
 number of bits in some intrinsic type. <= 256 ? More...
 
typedef unsigned int Gray::BIT_ENUM_t
 Enumerate number of bits or address a single bit in some array of bits. More...
 

Enumerations

enum  Gray::BITOP_TYPE { Gray::BITOP_TOGGLE = -1 , Gray::BITOP_CLR = 0 , Gray::BITOP_SET = 1 }
 

Detailed Description

Macro Definition Documentation

◆ _1BITMASK

#define _1BITMASK (   b)    (((size_t)1)<<(b))

default bitmask type = size_t. Use cBits::Mask1() for other type.

◆ CUINT64

#define CUINT64 (   h,
 
)    0x##h##l##ULL

◆ GETSIZEBYTES

#define GETSIZEBYTES (   nBits)    (((nBits)+7)/8)