#include <AlphaOperation.h>
Public メソッド | |
u64 | operator() (EmulatorUtility::OpEmulationState *opState) |
AlphaOperation.h の 510 行で定義されています。
u64 Onikiri::AlphaLinux::Operation::AlphaVectorMax< Type, TSrc1, TSrc2 >::operator() | ( | EmulatorUtility::OpEmulationState * | opState | ) | [inline] |
AlphaOperation.h の 512 行で定義されています。
参照先 Type.
00513 { 00514 u64 src1 = TSrc1()(opState); 00515 u64 src2 = TSrc2()(opState); 00516 u64 retval = 0; 00517 int vsize = sizeof(Type); 00518 00519 for(int i = 0; i < 8/vsize; i++) 00520 { 00521 Type tempSrc1 = (Type)((src1>>(8*i*vsize)) & (0xff<<((vsize-1)*8) | 0xff)); 00522 Type tempSrc2 = (Type)((src2>>(8*i*vsize)) & (0xff<<((vsize-1)*8) | 0xff)); 00523 retval |= std::max<Type>(tempSrc1,tempSrc2) << 8*i*vsize; 00524 } 00525 return retval; 00526 }