Commit f942d79d authored by Libretro-Admin's avatar Libretro-Admin
Browse files
parent 7c85bc77
......@@ -62,7 +62,7 @@ s32 DYNACALL UNPACK(u16 val)
return uval;
}
void DecodeInst(u32 *IPtr,_INST *i)
void DecodeInst(const u32 *IPtr, _INST *i)
{
i->TRA = (IPtr[0] >> 9) & 0x7F;
i->TWT = IPtr[0] & 0x100;
......
......@@ -124,6 +124,6 @@ struct _INST
bool NXADR; //MRQ set
};
void DecodeInst(u32 *IPtr,_INST *i);
void DecodeInst(const u32 *IPtr, _INST *i);
u16 DYNACALL PACK(s32 val);
s32 DYNACALL UNPACK(u16 val);
......@@ -645,7 +645,7 @@ private:
return num_physical_blocks(size) - num_bitmap_blocks(size) - 1;
}
inline int is_allocated(u8 *bitmap, u32 phys_id)
inline int is_allocated(const u8 *bitmap, u32 phys_id)
{
int index = (phys_id - 1) % FLASH_BITMAP_BLOCKS;
return (bitmap[index / 8] & (0x80 >> (index % 8))) == 0x0;
......
......@@ -57,7 +57,7 @@ void YUV_init(void)
#pragma GCC optimize ("-O2")
#endif
static void YUV_Block8x8(u8* inuv,u8* iny, u8* out)
static void YUV_Block8x8(const u8* inuv, const u8* iny, u8* out)
{
u8* line_out_0=out+0;
u8* line_out_1=out+YUV_x_size*2;
......
......@@ -64,7 +64,7 @@ struct RuntimeBlockInfo: RuntimeBlockInfo_Core
vector<shil_opcode> oplist;
bool contains_code(u8* ptr)
bool contains_code(const u8* ptr)
{
return ((size_t)(ptr-(u8*)code)) < host_code_size;
}
......
......@@ -919,7 +919,7 @@ shil_opc(fipr)
#if HOST_CPU == CPU_X86 || HOST_CPU == CPU_X64
shil_canonical
(
f32,f1,(float* fn, float* fm),
f32,f1,(const float* fn, const float* fm),
// multiplications are done with 28 bits of precision (53 - 25) and the final sum at 30 bits
double idp = reduce_precision<25>((double)fn[0] * fm[0]);
......@@ -960,7 +960,7 @@ shil_opc(ftrv)
#if HOST_CPU == CPU_X86 || HOST_CPU == CPU_X64
shil_canonical
(
void,f1,(float* fd,float* fn, float* fm),
void,f1,(float* fd, const float* fn, const float* fm),
double v1 = reduce_precision<25>((double)fm[0] * fn[0]) +
reduce_precision<25>((double)fm[4] * fn[1]) +
......@@ -1100,7 +1100,7 @@ shil_opc_end()
shil_opc(frswap)
shil_canonical
(
void,f1,(u64* fd1,u64* fd2,u64* fs1,u64* fs2),
void,f1,(u64* fd1, u64* fd2, const u64* fs1, const u64* fs2),
u64 temp;
for (int i=0;i<8;i++)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment