mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-12 02:59:00 +00:00
x64Emitter: Make the Align* functions return a non-const data pointer
There's no real requirement to make this const, and this should also be decided by the calling code, considering we had places that would simply cast away the const and carry on.
This commit is contained in:
parent
bbd1bb8eaa
commit
e28d063539
3 changed files with 12 additions and 12 deletions
|
@ -146,7 +146,7 @@ void XEmitter::ReserveCodeSpace(int bytes)
|
|||
*code++ = 0xCC;
|
||||
}
|
||||
|
||||
const u8* XEmitter::AlignCodeTo(size_t alignment)
|
||||
u8* XEmitter::AlignCodeTo(size_t alignment)
|
||||
{
|
||||
ASSERT_MSG(DYNA_REC, alignment != 0 && (alignment & (alignment - 1)) == 0,
|
||||
"Alignment must be power of two");
|
||||
|
@ -156,17 +156,17 @@ const u8* XEmitter::AlignCodeTo(size_t alignment)
|
|||
return code;
|
||||
}
|
||||
|
||||
const u8* XEmitter::AlignCode4()
|
||||
u8* XEmitter::AlignCode4()
|
||||
{
|
||||
return AlignCodeTo(4);
|
||||
}
|
||||
|
||||
const u8* XEmitter::AlignCode16()
|
||||
u8* XEmitter::AlignCode16()
|
||||
{
|
||||
return AlignCodeTo(16);
|
||||
}
|
||||
|
||||
const u8* XEmitter::AlignCodePage()
|
||||
u8* XEmitter::AlignCodePage()
|
||||
{
|
||||
return AlignCodeTo(4096);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue