SNAP Library , User Reference
2013-01-07 14:03:36
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
|
#include <bits.h>
Public Types | |
typedef uint | TB4 |
Public Member Functions | |
TB4Def () | |
~TB4Def () | |
TB4Def & | operator= (const TB4Def &) |
Static Public Member Functions | |
static int | GetB4Bits (const TB4 &B4) |
static uint | GetP2 (const int &P2Exp) |
static int | GetL2 (const uint &Val) |
Public Attributes | |
TB4 * | B4P2T |
Static Public Attributes | |
static const int | B4Bits = 32 |
static const int | MxP2Exp = TB4Def::B4Bits-1 |
static const TB4 | MxB4 = 0xFFFFFFFF |
static const TB4Def | B4Def |
typedef uint TB4Def::TB4 |
TB4Def::TB4Def | ( | ) |
TB4Def::~TB4Def | ( | ) | [inline] |
int TB4Def::GetB4Bits | ( | const TB4 & | B4 | ) | [static] |
Definition at line 83 of file bits.cpp.
{ return TB1Def::B1Def.B1BitsT[(B4>>(0*TB1Def::B1Def.B1Bits))&TB1Def::B1Def.MxB1]+ TB1Def::B1Def.B1BitsT[(B4>>(1*TB1Def::B1Def.B1Bits))&TB1Def::B1Def.MxB1]+ TB1Def::B1Def.B1BitsT[(B4>>(2*TB1Def::B1Def.B1Bits))&TB1Def::B1Def.MxB1]+ TB1Def::B1Def.B1BitsT[(B4>>(3*TB1Def::B1Def.B1Bits))&TB1Def::B1Def.MxB1]; }
int TB4Def::GetL2 | ( | const uint & | Val | ) | [static] |
Definition at line 96 of file bits.cpp.
{ int L2=0; while ((L2<TB4Def::MxP2Exp)&&(Val>=B4Def.B4P2T[L2])){L2++;} return L2-1; }
uint TB4Def::GetP2 | ( | const int & | P2Exp | ) | [static] |
const int TB4Def::B4Bits = 32 [static] |
const TB4Def TB4Def::B4Def [static] |
const TB4Def::TB4 TB4Def::MxB4 = 0xFFFFFFFF [static] |
const int TB4Def::MxP2Exp = TB4Def::B4Bits-1 [static] |