DSPEmitter: Convert defines into typed constants

Also moves them into more qualified scopes where possible.
This commit is contained in:
Lioncash 2016-12-26 19:15:34 -05:00
parent c37889efcb
commit 646d96a216
2 changed files with 7 additions and 5 deletions

View File

@ -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;

View File

@ -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();