CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
hrydgard

CoCalc provides the best real-time collaborative environment for Jupyter Notebooks, LaTeX documents, and SageMath, scalable from individual users to large groups and classes!

GitHub Repository: hrydgard/ppsspp
Path: blob/master/Common/ArmCommon.h
Views: 1401
1
// Copyright 2013 Dolphin Emulator Project
2
// Licensed under GPLv2
3
// Refer to the license.txt file included.
4
5
#pragma once
6
7
#include "CommonTypes.h"
8
9
enum CCFlags
10
{
11
CC_EQ = 0, // Equal
12
CC_NEQ, // Not equal
13
CC_CS, // Carry Set
14
CC_CC, // Carry Clear
15
CC_MI, // Minus (Negative)
16
CC_PL, // Plus
17
CC_VS, // Overflow
18
CC_VC, // No Overflow
19
CC_HI, // Unsigned higher
20
CC_LS, // Unsigned lower or same
21
CC_GE, // Signed greater than or equal
22
CC_LT, // Signed less than
23
CC_GT, // Signed greater than
24
CC_LE, // Signed less than or equal
25
CC_AL, // Always (unconditional) 14
26
CC_HS = CC_CS, // Alias of CC_CS Unsigned higher or same
27
CC_LO = CC_CC, // Alias of CC_CC Unsigned lower
28
};
29
const u32 NO_COND = 0xE0000000;
30
31
inline CCFlags InvertCond(CCFlags fl) {
32
int x = (int)fl;
33
x ^= 1;
34
return (CCFlags)x;
35
}
36