torque Torque Game Engine Documentation
TGE Version 1.5.2

BitTables Class Reference

#include <bitTables.h>


Public Member Functions

 BitTables ()

Static Public Member Functions

static const S32 numOn (U8 b)
 How many bits are on?
static const S8whichOn (U8 b)
 Return a pointer to 8 S8's, which are set according to which bits are set in the passed value.
static const S32 highBit (U8 b)
static S32 getPower16 (U16 x)
static S32 getPower32 (U32 x)

Static Private Attributes

static bool mTablesBuilt
 For first time build.
static S8 mHighBit [256]
 I.e. crude logarithm.
static S8 mWhichOn [256][8]
 Unroll a bitset collection (note.
static S8 mNumOn [256]


Constructor & Destructor Documentation

BitTables::BitTables (  ) 


Member Function Documentation

static const S32 BitTables::numOn ( U8  b  )  [inline, static]

How many bits are on?

static const S8* BitTables::whichOn ( U8  b  )  [inline, static]

Return a pointer to 8 S8's, which are set according to which bits are set in the passed value.

static const S32 BitTables::highBit ( U8  b  )  [inline, static]

static S32 BitTables::getPower16 ( U16  x  )  [inline, static]

static S32 BitTables::getPower32 ( U32  x  )  [inline, static]


Field Documentation

bool BitTables::mTablesBuilt [static, private]

For first time build.

S8 BitTables::mHighBit[256] [static, private]

I.e. crude logarithm.

S8 BitTables::mWhichOn[256][8] [static, private]

Unroll a bitset collection (note.

S8 BitTables::mNumOn[256] [static, private]




All Rights Reserved GarageGames.com, Inc. 1999-2005
Auto-magically Generated with Doxygen