mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-03 14:49:22 +00:00
Replace uintXX_t and intXX_t
This commit is contained in:
parent
99e3c6e265
commit
cb15105a9e
46 changed files with 695 additions and 690 deletions
|
@ -32,7 +32,7 @@ namespace Arm64Gen
|
|||
namespace
|
||||
{
|
||||
// For ADD/SUB
|
||||
std::optional<std::pair<u32, bool>> IsImmArithmetic(uint64_t input)
|
||||
std::optional<std::pair<u32, bool>> IsImmArithmetic(u64 input)
|
||||
{
|
||||
if (input < 4096)
|
||||
return std::pair{static_cast<u32>(input), false};
|
||||
|
@ -3094,7 +3094,7 @@ void ARM64FloatEmitter::EmitScalar3Source(bool isDouble, ARM64Reg Rd, ARM64Reg R
|
|||
}
|
||||
|
||||
// Scalar floating point immediate
|
||||
void ARM64FloatEmitter::FMOV(ARM64Reg Rd, uint8_t imm8)
|
||||
void ARM64FloatEmitter::FMOV(ARM64Reg Rd, u8 imm8)
|
||||
{
|
||||
EmitScalarImm(0, 0, 0, 0, Rd, imm8);
|
||||
}
|
||||
|
|
|
@ -1271,7 +1271,7 @@ public:
|
|||
void FNMSUB(ARM64Reg Rd, ARM64Reg Rn, ARM64Reg Rm, ARM64Reg Ra);
|
||||
|
||||
// Scalar floating point immediate
|
||||
void FMOV(ARM64Reg Rd, uint8_t imm8);
|
||||
void FMOV(ARM64Reg Rd, u8 imm8);
|
||||
|
||||
// Vector
|
||||
void ADD(u8 size, ARM64Reg Rd, ARM64Reg Rn, ARM64Reg Rm);
|
||||
|
|
|
@ -303,7 +303,7 @@ void CPUInfo::Detect()
|
|||
int mib[2];
|
||||
size_t len;
|
||||
char hwmodel[256];
|
||||
uint64_t isar0;
|
||||
u64 isar0;
|
||||
|
||||
mib[0] = CTL_HW;
|
||||
mib[1] = HW_MODEL;
|
||||
|
|
|
@ -11,6 +11,8 @@
|
|||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
#include "Common/CommonTypes.h"
|
||||
|
||||
namespace Common::GekkoAssembler::detail
|
||||
{
|
||||
// Hacky implementation of a case insensitive alphanumeric trie supporting extended entries
|
||||
|
@ -39,12 +41,12 @@ public:
|
|||
return nullptr;
|
||||
}
|
||||
static constexpr size_t NUM_CONNS = 36 + sizeof...(ExtraMatches);
|
||||
static constexpr uint32_t INVALID_CONN = static_cast<uint32_t>(-1);
|
||||
static constexpr u32 INVALID_CONN = static_cast<u32>(-1);
|
||||
|
||||
private:
|
||||
struct TrieEntry
|
||||
{
|
||||
std::array<uint32_t, 36 + sizeof...(ExtraMatches)> _conns;
|
||||
std::array<u32, 36 + sizeof...(ExtraMatches)> _conns;
|
||||
std::optional<V> _val;
|
||||
|
||||
TrieEntry() { _conns.fill(INVALID_CONN); }
|
||||
|
@ -113,7 +115,7 @@ private:
|
|||
{
|
||||
break;
|
||||
}
|
||||
last_e->_conns[idx] = static_cast<uint32_t>(m_entry_pool.size());
|
||||
last_e->_conns[idx] = static_cast<u32>(m_entry_pool.size());
|
||||
last_e = &m_entry_pool.emplace_back();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -9,6 +9,7 @@
|
|||
|
||||
#include "Common/Event.h"
|
||||
#include "Common/Flag.h"
|
||||
#include "Common/CommonTypes.h"
|
||||
|
||||
namespace Common
|
||||
{
|
||||
|
@ -123,7 +124,7 @@ public:
|
|||
// The optional timeout parameter is a timeout for how periodically the payload should be called.
|
||||
// Use timeout = 0 to run without a timeout at all.
|
||||
template <class F>
|
||||
void Run(F payload, int64_t timeout = 0)
|
||||
void Run(F payload, s64 timeout = 0)
|
||||
{
|
||||
// Asserts that Prepare is called at least once before we enter the loop.
|
||||
// But a good implementation should call this before already.
|
||||
|
|
|
@ -81,7 +81,7 @@ public:
|
|||
directories = pe->OptionalHeader.DataDirectory;
|
||||
}
|
||||
template <typename T>
|
||||
T GetRva(uint32_t rva)
|
||||
T GetRva(u32 rva)
|
||||
{
|
||||
return reinterpret_cast<T>(base + rva);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue