From a0c6582980dbbf7b3e0260d1c5fed2ecddeb2d49 Mon Sep 17 00:00:00 2001 From: Oxore Date: Sat, 22 Apr 2023 11:31:08 +0300 Subject: Optimize by speed --- common.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'common.h') diff --git a/common.h b/common.h index ab7a359..315946f 100644 --- a/common.h +++ b/common.h @@ -1,6 +1,8 @@ #pragma once constexpr size_t kInstructionSizeStepBytes = 2; +constexpr size_t kRomSizeBytes = 4 * 1024 * 1024; +constexpr size_t kDisasmMapSizeElements = kRomSizeBytes / kInstructionSizeStepBytes; static inline size_t Min(size_t a, size_t b) { return a < b ? a : b; } -- cgit v1.2.3