#include <PHT.h>
Onikiri::PHTに対する継承グラフ
Public メソッド | |
BEGIN_PARAM_MAP (GetParamPath()) PHT() | |
int | GetIndexBitSize () |
void | Initialize (InitPhase phase) |
bool | Predict (int index) |
void | Update (int index, bool taken) |
~PHT () |
PHT::~PHT | ( | ) |
Onikiri::PHT::BEGIN_PARAM_MAP | ( | GetParamPath() | ) |
int Onikiri::PHT::GetIndexBitSize | ( | ) | [inline] |
void PHT::Initialize | ( | InitPhase | phase | ) |
参照先 Onikiri::PhysicalResourceNode::INIT_PRE_CONNECTION・Onikiri::ParamExchange::LoadParam().
00052 { 00053 if(phase == INIT_PRE_CONNECTION){ 00054 LoadParam(); 00055 u8 max = (1 << m_counterBits) - 1; 00056 m_table.construct( 00057 1 << m_entryBits, // size 00058 (max + 1) / 2, // init 00059 0, // min 00060 max, // max 00061 1, // add 00062 1, // sub 00063 (max + 1) / 2 // threshold 00064 ); 00065 } 00066 }
関数の呼び出しグラフ:
bool PHT::Predict | ( | int | index | ) |
void PHT::Update | ( | int | index, | |
bool | taken | |||
) |