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

#include <GenericOperation.h>

すべてのメンバ一覧

Public メソッド

Type operator() (OpEmulationState *opState)


説明

template<typename Type, typename TSrc1, typename TSrc2, unsigned int count_mask>
struct Onikiri::EmulatorUtility::Operation::AShiftR< Type, TSrc1, TSrc2, count_mask >

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


関数

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

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

参照先 Onikiri::EmulatorUtility::cast_to_signed()Onikiri::EmulatorUtility::cast_to_unsigned()Type.

00687     {
00688         Type value = static_cast<Type>( TSrc1()(opState) );
00689         typename TSrc2::result_type count = static_cast<typename TSrc2::result_type>( TSrc2()(opState) ) & count_mask;
00690         
00691         if (count >= sizeof(Type)*8)
00692             return 0;
00693         else
00694             return static_cast<Type>( cast_to_unsigned( cast_to_signed(value) >> count ) );
00695     }

関数の呼び出しグラフ:


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