mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-21 03:54:57 +00:00
DSPEmitter: Convert defines into typed constants
Also moves them into more qualified scopes where possible.
This commit is contained in:
parent
c37889efcb
commit
646d96a216
2 changed files with 7 additions and 5 deletions
|
@ -18,8 +18,9 @@
|
|||
#include "Core/DSP/DSPMemoryMap.h"
|
||||
#include "Core/DSP/DSPTables.h"
|
||||
|
||||
#define MAX_BLOCK_SIZE 250
|
||||
#define DSP_IDLE_SKIP_CYCLES 0x1000
|
||||
constexpr size_t COMPILED_CODE_SIZE = 2097152;
|
||||
constexpr size_t MAX_BLOCK_SIZE = 250;
|
||||
constexpr u16 DSP_IDLE_SKIP_CYCLES = 0x1000;
|
||||
|
||||
using namespace Gen;
|
||||
|
||||
|
|
|
@ -4,24 +4,25 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include <cstddef>
|
||||
#include <list>
|
||||
#include <vector>
|
||||
|
||||
#include "Common/CommonTypes.h"
|
||||
#include "Common/x64ABI.h"
|
||||
#include "Common/x64Emitter.h"
|
||||
|
||||
#include "Core/DSP/DSPCommon.h"
|
||||
#include "Core/DSP/Jit/DSPJitRegCache.h"
|
||||
|
||||
#define COMPILED_CODE_SIZE 2097152
|
||||
#define MAX_BLOCKS 0x10000
|
||||
|
||||
typedef u32 (*DSPCompiledCode)();
|
||||
typedef const u8* Block;
|
||||
|
||||
class DSPEmitter : public Gen::X64CodeBlock
|
||||
{
|
||||
public:
|
||||
static constexpr size_t MAX_BLOCKS = 0x10000;
|
||||
|
||||
DSPEmitter();
|
||||
~DSPEmitter();
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue