#include <GenericOperation.h>
Public メソッド | |
RegisterType | operator() (OpEmulationState *opState) |
GenericOperation.h の 637 行で定義されています。
RegisterType Onikiri::EmulatorUtility::Operation::BorrowOfSubWithBorrow< Type, TSrc1, TSrc2, TSrcBorrow >::operator() | ( | OpEmulationState * | opState | ) | [inline] |
GenericOperation.h の 639 行で定義されています。
00640 { 00641 Type lhs = static_cast<Type>( TSrc1()(opState) ); 00642 Type rhs = static_cast<Type>( TSrc2()(opState) ); 00643 Type borrow = static_cast<Type>( TSrcBorrow()(opState) ); 00644 00645 ASSERT(borrow == 0 || borrow == 1); 00646 00647 if (rhs == ~(Type)0 || lhs < rhs + borrow) 00648 return 1; 00649 else 00650 return 0; 00651 }