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/Core/MIPS/ARM/ArmCompVFPUNEONUtil.h
Views: 1401
1
#pragma once
2
3
#include "Core/MIPS/ARM/ArmJit.h"
4
#include "Core/MIPS/ARM/ArmRegCache.h"
5
6
namespace MIPSComp {
7
8
using namespace ArmGen;
9
10
inline ARMReg MatchSize(ARMReg x, ARMReg target) {
11
if (IsQ(target) && IsQ(x))
12
return x;
13
if (IsD(target) && IsD(x))
14
return x;
15
if (IsD(target) && IsQ(x))
16
return D_0(x);
17
// if (IsQ(target) && IsD(x))
18
return (ARMReg)(D0 + (x - Q0) * 2);
19
}
20
21
}
22