abc プロジェクト
14.8.15. GetValCountOfBit メンバ関数説明 |
メンバ関数名 | GetValCountOfBit |
定義ファイル名 | TuneRegion.cpp |
定義行 | 3691 |
所属名 | TTuneRegion |
アクセス属性 | private |
宣言形式 | int GetValCountOfBit ( DWORD Bits , int * Count ) |
概要 | Bitsが1部分の配列のCountを掛けた値を返す。 変数がUnroll中に、何個必要かを計算する。 |
戻り値 | Bitsが1部分の配列のCountを掛けた値を返す。 |
パラメタ説明 | Bits 有効・無効を示すBit列 Count 各変数のカウント配列 |
機能説明 | |
備考 | |
呼出し元関数一覧表
関数論理チャート
| +----------------------------------------------------------+
3691 +--+ int TTuneRegion::GetValCountOfBit(DWORD Bits,int *Count) |
3692 | { |
+--+-------------------------------------------------------+
3693 +--- int i,Total;
3694 |
3695 +--- Total = 1;
| +----------------------------+
3696 +--+ for(i = 0 ; i < 32 ; i++){ |
| +--+-------------------------+
| | +------------------------------+
3697 | +--+ if((Bits & (1 << i)) != 0){ |
| | +--+---------------------------+
3698 | | +--- Total *= Count[i];
| | +-+---+
3699 | | | } |
| | +-----+
| +-+---+
3700 | | } |
| +-----+
| +----------------+
3701 +--+ return Total; |
| +----------------+
+-+---+
3702 | } |
+-----+