#include <GenericOperation.h>
Public メソッド | |
Type | operator() (OpEmulationState *opState) |
GenericOperation.h の 747 行で定義されています。
Type Onikiri::EmulatorUtility::Operation::RotateR< Type, TSrcValue, TSrcCount >::operator() | ( | OpEmulationState * | opState | ) | [inline] |
GenericOperation.h の 749 行で定義されています。
参照先 Type.
00750 { 00751 const int typeBitCount = sizeof(Type)*8; 00752 Type value = static_cast<Type>( TSrcValue()(opState) ); 00753 int count = static_cast<int>( TSrcCount()(opState) & (typeBitCount-1) ); 00754 00755 if (count == 0) 00756 return value; 00757 else 00758 return (value >> count) | (value << (typeBitCount-count)); 00759 }