構造体 テンプレート Onikiri::PPC64Linux::Operation::PPC64Cntlz< Type, TSrc >

#include <PPC64Operation.h>

すべてのメンバ一覧

Public メソッド

u64 operator() (EmulatorUtility::OpEmulationState *opState)


説明

template<typename Type, typename TSrc>
struct Onikiri::PPC64Linux::Operation::PPC64Cntlz< Type, TSrc >

PPC64Operation.h199 行で定義されています。


関数

template<typename Type, typename TSrc>
u64 Onikiri::PPC64Linux::Operation::PPC64Cntlz< Type, TSrc >::operator() ( EmulatorUtility::OpEmulationState opState  )  [inline]

PPC64Operation.h201 行で定義されています。

参照先 Type.

00202     {
00203         int lz = sizeof(Type)*8;    // leading zeros
00204         Type value = static_cast<Type>( TSrc()(opState) );  
00205 
00206         // value  n rbgEVtg0Cleading zeros  sizeof(Type)*8 - n
00207         while (value != 0) {
00208             lz --;
00209             value >>= 1;
00210         }
00211 
00212         return lz;
00213     }


この構造体の説明は次のファイルから生成されました:
Onikiri2に対してTue Jun 18 15:33:06 2013に生成されました。  doxygen 1.4.7