Torque2D Reference
Loading...
Searching...
No Matches
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()

S32 getPower16 ( U16 x)
inlinestatic

◆ getPower32()

S32 getPower32 ( U32 x)
inlinestatic

◆ highBit()

const S32 highBit ( U8 b)
inlinestatic

◆ numOn()

const S32 numOn ( U8 b)
inlinestatic

How many bits are on?

◆ whichOn()

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: