dlvhex  2.5.0
vs12/bm/bmutil.h File Reference
#include "bmdef.h"
#include "bmconst.h"
Include dependency graph for bmutil.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

class  bm::ptr_guard< T >
 Mini auto-pointer for internal memory management. More...

Namespaces

namespace  bm

Functions

template<typename T >
bm::bit_scan_fwd (T v)
template<typename T >
bm::min_value (T v1, T v2)
 Get minimum of 2 values.
template<typename T >
bm::ilog2 (T x)
 Fast loop-less function to find LOG2.
template<>
bm::gap_word_t bm::ilog2 (gap_word_t x)
template<typename T >
bm::ilog2_LUT (T x)
 Lookup table based integer LOG2.
template<>
bm::gap_word_t bm::ilog2_LUT< bm::gap_word_t > (bm::gap_word_t x)
 Lookup table based short integer LOG2.