構造体 テンプレート Onikiri::EmulatorUtility::Operation::IntDiv< Type, TSrc1, TSrc2 >

#include <GenericOperation.h>

すべてのメンバ一覧

Public メソッド

Type operator() (OpEmulationState *opState)


説明

template<typename Type, typename TSrc1, typename TSrc2>
struct Onikiri::EmulatorUtility::Operation::IntDiv< Type, TSrc1, TSrc2 >

GenericOperation.h526 行で定義されています。


関数

template<typename Type, typename TSrc1, typename TSrc2>
Type Onikiri::EmulatorUtility::Operation::IntDiv< Type, TSrc1, TSrc2 >::operator() ( OpEmulationState opState  )  [inline]

GenericOperation.h528 行で定義されています。

参照先 Onikiri::Addr::addressOnikiri::EmulatorUtility::OpEmulationState::GetOpState()Onikiri::OpStateIF::GetPC()RUNTIME_WARNINGType.

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     }

関数の呼び出しグラフ:


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