Torque2D Reference

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes

- Class List
- Class Index
- Class Hierarchy
- Class Members

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 | ) |
| inline static

static S32 getPower32 | ( | U32 | x | ) |
| inline static

static const S32 highBit | ( | U8 | b | ) |
| inline static

static const S32 numOn | ( | U8 | b | ) |
| inline static

How many bits are on?

static const S8* 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.

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

- collection/bitTables.h
- collection/bitTables.cc