#include <AlphaOperation.h>
Public メソッド | |
u64 | operator() (EmulatorUtility::OpEmulationState *opState) |
AlphaOperation.h の 530 行で定義されています。
u64 Onikiri::AlphaLinux::Operation::AlphaPixelError< TSrc1, TSrc2 >::operator() | ( | EmulatorUtility::OpEmulationState * | opState | ) | [inline] |
AlphaOperation.h の 532 行で定義されています。
00533 { 00534 u64 src1 = TSrc1()(opState); 00535 u64 src2 = TSrc2()(opState); 00536 u64 retval = 0; 00537 00538 for(int i = 0; i < 8; i++) 00539 { 00540 u64 tempSrc1 = src1>>(8*i) & 0xff; 00541 u64 tempSrc2 = src2>>(8*i) & 0xff; 00542 retval += (tempSrc1 > tempSrc2) ? tempSrc1 - tempSrc2 : 00543 tempSrc2 - tempSrc1; 00544 } 00545 return retval; 00546 }