#include <PPC64Operation.h>
Public メソッド | |
u64 | operator() (EmulatorUtility::OpEmulationState *opState) |
PPC64Operation.h の 199 行で定義されています。
u64 Onikiri::PPC64Linux::Operation::PPC64Cntlz< Type, TSrc >::operator() | ( | EmulatorUtility::OpEmulationState * | opState | ) | [inline] |
PPC64Operation.h の 201 行で定義されています。
参照先 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 }