diff options
author | Oxore <oxore@protonmail.com> | 2023-04-22 11:31:08 +0300 |
---|---|---|
committer | Oxore <oxore@protonmail.com> | 2023-04-22 11:36:45 +0300 |
commit | a0c6582980dbbf7b3e0260d1c5fed2ecddeb2d49 (patch) | |
tree | 407d31e5aea3f8895ae27abc14cb59c261df34b9 /common.h | |
parent | 07657ce0e68da80a6af10eb091cb531d625f1767 (diff) |
Optimize by speed
Diffstat (limited to 'common.h')
-rw-r--r-- | common.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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; } |