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 各変数のカウント配列
機能説明
備考

呼出し元関数一覧表
名称 定義ファイル名 定義行
1 TTuneRegion::OutputUnroll_DoBlock TuneRegion.cpp 2845
2 TTuneRegion::OutputUnroll_IfBlock TuneRegion.cpp 3417
3 TTuneRegion::OutputUnrollExecCode TuneRegion.cpp 2411

関数論理チャート

        |  +----------------------------------------------------------+ 
  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      |  }  | 
            +-----+