mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-01 02:29:59 -06: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:
@ -231,7 +231,7 @@ constexpr std::array<u8, 8> sizes{{32, 0, 0, 0, 8, 16, 8, 16}};
|
||||
void CommonAsmRoutines::GenQuantizedStores()
|
||||
{
|
||||
// Aligned to 256 bytes as least significant byte needs to be zero (See: Jit64::psq_stXX).
|
||||
pairedStoreQuantized = reinterpret_cast<const u8**>(const_cast<u8*>(AlignCodeTo(256)));
|
||||
pairedStoreQuantized = reinterpret_cast<const u8**>(AlignCodeTo(256));
|
||||
ReserveCodeSpace(8 * sizeof(u8*));
|
||||
|
||||
for (int type = 0; type < 8; type++)
|
||||
@ -242,7 +242,7 @@ void CommonAsmRoutines::GenQuantizedStores()
|
||||
void CommonAsmRoutines::GenQuantizedSingleStores()
|
||||
{
|
||||
// Aligned to 256 bytes as least significant byte needs to be zero (See: Jit64::psq_stXX).
|
||||
singleStoreQuantized = reinterpret_cast<const u8**>(const_cast<u8*>(AlignCodeTo(256)));
|
||||
singleStoreQuantized = reinterpret_cast<const u8**>(AlignCodeTo(256));
|
||||
ReserveCodeSpace(8 * sizeof(u8*));
|
||||
|
||||
for (int type = 0; type < 8; type++)
|
||||
@ -263,7 +263,7 @@ const u8* CommonAsmRoutines::GenQuantizedStoreRuntime(bool single, EQuantizeType
|
||||
void CommonAsmRoutines::GenQuantizedLoads()
|
||||
{
|
||||
// Aligned to 256 bytes as least significant byte needs to be zero (See: Jit64::psq_lXX).
|
||||
pairedLoadQuantized = reinterpret_cast<const u8**>(const_cast<u8*>(AlignCodeTo(256)));
|
||||
pairedLoadQuantized = reinterpret_cast<const u8**>(AlignCodeTo(256));
|
||||
ReserveCodeSpace(8 * sizeof(u8*));
|
||||
|
||||
for (int type = 0; type < 8; type++)
|
||||
@ -273,7 +273,7 @@ void CommonAsmRoutines::GenQuantizedLoads()
|
||||
void CommonAsmRoutines::GenQuantizedSingleLoads()
|
||||
{
|
||||
// Aligned to 256 bytes as least significant byte needs to be zero (See: Jit64::psq_lXX).
|
||||
singleLoadQuantized = reinterpret_cast<const u8**>(const_cast<u8*>(AlignCodeTo(256)));
|
||||
singleLoadQuantized = reinterpret_cast<const u8**>(AlignCodeTo(256));
|
||||
ReserveCodeSpace(8 * sizeof(u8*));
|
||||
|
||||
for (int type = 0; type < 8; type++)
|
||||
|
Reference in New Issue
Block a user