Revive old alignment utility functions, give them better names.

This commit is contained in:
Henrik Rydgård committed 2025-09-03 20:48:51 +02:00
1 parent f2df336f79
commit 33b87578c5
6 files changed
+31 -19

No files matched your search

+2 -1
View File
@@ -27,6 +27,7 @@
#include "Common/Data/Encoding/Utf8.h"
#include "Common/Log.h"
#include "Common/StringUtils.h"
#include "Common/Math/math_util.h"
#include "Core/MemMap.h"
#include "Core/System.h"
#include "Core/MIPS/MIPSDebugInterface.h"
@@ -191,7 +192,7 @@ void DisassemblyManager::analyze(u32 address, u32 size = 1024)
{
u32 end = address+size;
address &= ~3;
address = RoundDownToMultipleOf(address, 4);
u32 start = address;
while (address < end && start <= address)