mirror of
				https://git.zaroz.cloud/nintendo-back-up/yuzu/yuzu.git
				synced 2025-05-12 00:45:25 +00:00 
			
		
		
		
	Merge pull request #1208 from Hexagon12/pred-comp-14
Add predicate comparison 14 (GreaterEqualWithNan)
This commit is contained in:
		
						commit
						e205e74e1f
					
				@ -147,6 +147,7 @@ enum class PredCondition : u64 {
 | 
				
			|||||||
    LessThanWithNan = 9,
 | 
					    LessThanWithNan = 9,
 | 
				
			||||||
    GreaterThanWithNan = 12,
 | 
					    GreaterThanWithNan = 12,
 | 
				
			||||||
    NotEqualWithNan = 13,
 | 
					    NotEqualWithNan = 13,
 | 
				
			||||||
 | 
					    GreaterEqualWithNan = 14,
 | 
				
			||||||
    // TODO(Subv): Other condition types
 | 
					    // TODO(Subv): Other condition types
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -729,8 +729,7 @@ private:
 | 
				
			|||||||
            {PredCondition::LessEqual, "<="},         {PredCondition::GreaterThan, ">"},
 | 
					            {PredCondition::LessEqual, "<="},         {PredCondition::GreaterThan, ">"},
 | 
				
			||||||
            {PredCondition::NotEqual, "!="},          {PredCondition::GreaterEqual, ">="},
 | 
					            {PredCondition::NotEqual, "!="},          {PredCondition::GreaterEqual, ">="},
 | 
				
			||||||
            {PredCondition::LessThanWithNan, "<"},    {PredCondition::NotEqualWithNan, "!="},
 | 
					            {PredCondition::LessThanWithNan, "<"},    {PredCondition::NotEqualWithNan, "!="},
 | 
				
			||||||
            {PredCondition::GreaterThanWithNan, ">"},
 | 
					            {PredCondition::GreaterThanWithNan, ">"}, {PredCondition::GreaterEqualWithNan, ">="}};
 | 
				
			||||||
        };
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
        const auto& comparison{PredicateComparisonStrings.find(condition)};
 | 
					        const auto& comparison{PredicateComparisonStrings.find(condition)};
 | 
				
			||||||
        ASSERT_MSG(comparison != PredicateComparisonStrings.end(),
 | 
					        ASSERT_MSG(comparison != PredicateComparisonStrings.end(),
 | 
				
			||||||
@ -739,7 +738,8 @@ private:
 | 
				
			|||||||
        std::string predicate{'(' + op_a + ") " + comparison->second + " (" + op_b + ')'};
 | 
					        std::string predicate{'(' + op_a + ") " + comparison->second + " (" + op_b + ')'};
 | 
				
			||||||
        if (condition == PredCondition::LessThanWithNan ||
 | 
					        if (condition == PredCondition::LessThanWithNan ||
 | 
				
			||||||
            condition == PredCondition::NotEqualWithNan ||
 | 
					            condition == PredCondition::NotEqualWithNan ||
 | 
				
			||||||
            condition == PredCondition::GreaterThanWithNan) {
 | 
					            condition == PredCondition::GreaterThanWithNan ||
 | 
				
			||||||
 | 
					            condition == PredCondition::GreaterEqualWithNan) {
 | 
				
			||||||
            predicate += " || isnan(" + op_a + ") || isnan(" + op_b + ')';
 | 
					            predicate += " || isnan(" + op_a + ") || isnan(" + op_b + ')';
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user