#include <GenericOperation.h>
Public メソッド | |
Type | operator() (OpEmulationState *opState) |
GenericOperation.h の 731 行で定義されています。
Type Onikiri::EmulatorUtility::Operation::RotateL< Type, TSrcValue, TSrcCount >::operator() | ( | OpEmulationState * | opState | ) | [inline] |
GenericOperation.h の 733 行で定義されています。
参照先 Type.
00734 { 00735 const int typeBitCount = sizeof(Type)*8; 00736 Type value = static_cast<Type>( TSrcValue()(opState) ); 00737 int count = static_cast<int>( TSrcCount()(opState) & (typeBitCount-1) ); 00738 00739 if (count == 0) 00740 return value; 00741 else 00742 return (value << count) | (value >> (typeBitCount-count)); 00743 }