Torque2D Reference
Loading...
Searching...
No Matches
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?
 
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.
 
static const S32 highBit (U8 b)
 
static S32 getPower16 (U16 x)
 
static S32 getPower32 (U32 x)
 

Constructor & Destructor Documentation

◆ BitTables()

BitTables ( )

Member Function Documentation

◆ getPower16()

static S32 getPower16 ( U16  x)
inlinestatic

◆ getPower32()

static S32 getPower32 ( U32  x)
inlinestatic

◆ highBit()

static const S32 highBit ( U8  b)
inlinestatic

◆ numOn()

static const S32 numOn ( U8  b)
inlinestatic

How many bits are on?

◆ whichOn()

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: