Torque2D Reference
Public Member Functions | Static Public Member Functions | List of all members
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? More...
 
static const S8 * whichOn (U8 b)
 Return a pointer to 8 S8's, which are set according to which bits are set in the passed value. More...
 
static const S32 highBit (U8 b)
 
static S32 getPower16 (U16 x)
 
static S32 getPower32 (U32 x)
 

Constructor & Destructor Documentation

BitTables ( )

Member Function Documentation

static S32 getPower16 ( U16  x)
inlinestatic
static S32 getPower32 ( U32  x)
inlinestatic
static const S32 highBit ( U8  b)
inlinestatic
static const S32 numOn ( U8  b)
inlinestatic

How many bits are on?

static const S8* whichOn ( U8  b)
inlinestatic

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


The documentation for this class was generated from the following files: