#include <GenericOperation.h>
Public メソッド | |
Type | operator() (OpEmulationState *opState) |
GenericOperation.h の 526 行で定義されています。
Type Onikiri::EmulatorUtility::Operation::IntDiv< Type, TSrc1, TSrc2 >::operator() | ( | OpEmulationState * | opState | ) | [inline] |
GenericOperation.h の 528 行で定義されています。
参照先 Onikiri::Addr::address・Onikiri::EmulatorUtility::OpEmulationState::GetOpState()・Onikiri::OpStateIF::GetPC()・RUNTIME_WARNING・Type.
00529 { 00530 Type src2 = static_cast<Type>(TSrc2()(opState)); 00531 if( src2 == 0 ){ 00532 u64 addr = opState->GetOpState()->GetPC().address; 00533 RUNTIME_WARNING( 00534 "Division by zero occurred and returned 0 at PC: %08x%08x", 00535 (u32)(addr >> 32), 00536 (u32)(addr & 0xffffffff) 00537 ); 00538 return 0; 00539 } 00540 return static_cast<Type>(TSrc1()(opState)) / static_cast<Type>(TSrc2()(opState)); 00541 }
関数の呼び出しグラフ: