2
1
Fork 0
mirror of https://github.com/yuzu-emu/yuzu.git synced 2024-07-04 23:31:19 +01:00

dyncom: Simplify some comparisons in CondPassed

This commit is contained in:
Lioncash 2015-08-26 00:10:23 -04:00
parent 01dd833ffa
commit dc1b024b80

View file

@ -77,13 +77,13 @@ static bool CondPassed(ARMul_State* cpu, unsigned int cond) {
case ConditionCode::LS:
return (!c_flag || z_flag);
case ConditionCode::GE:
return ((!n_flag && !v_flag) || (n_flag && v_flag));
return (n_flag == v_flag);
case ConditionCode::LT:
return ((n_flag && !v_flag) || (!n_flag && v_flag));
return (n_flag != v_flag);
case ConditionCode::GT:
return ((!n_flag && !v_flag && !z_flag) || (n_flag && v_flag && !z_flag));
return (!z_flag && (n_flag == v_flag));
case ConditionCode::LE:
return ((n_flag && !v_flag) || (!n_flag && v_flag)) || z_flag;
return (z_flag || (n_flag != v_flag));
case ConditionCode::AL:
case ConditionCode::NV: // Unconditional
return true;