clang-tidy: run readability-non-const-parameter
This commit is contained in:
parent
092ee6d8a5
commit
67435c71e8
|
@ -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;
|
||||
|
|
|
@ -127,6 +127,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);
|
||||
|
|
|
@ -1415,7 +1415,7 @@ static void rtl8139_TxStatus_write(RTL8139State *s, uint32_t txRegOffset, uint32
|
|||
rtl8139_transmit(s);
|
||||
}
|
||||
|
||||
static uint32_t rtl8139_TxStatus_TxAddr_read(RTL8139State *s, uint32_t regs[],
|
||||
static uint32_t rtl8139_TxStatus_TxAddr_read(RTL8139State *s, const uint32_t regs[],
|
||||
uint32_t base, uint8_t addr,
|
||||
int size)
|
||||
{
|
||||
|
|
|
@ -627,7 +627,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;
|
||||
|
|
|
@ -31,7 +31,7 @@ bool pend_rend = false;
|
|||
|
||||
TA_context* _pvrrc;
|
||||
|
||||
static void dump_frame(const char* file, TA_context* ctx, u8* vram, u8* vram_ref = NULL) {
|
||||
static void dump_frame(const char* file, TA_context* ctx, u8* vram, const u8* vram_ref = NULL) {
|
||||
FILE* fw = fopen(file, "wb");
|
||||
|
||||
//append to it
|
||||
|
|
|
@ -51,7 +51,7 @@ void YUV_init()
|
|||
YUV_index = 0;
|
||||
}
|
||||
|
||||
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;
|
||||
|
|
|
@ -55,7 +55,7 @@ struct RuntimeBlockInfo: RuntimeBlockInfo_Core
|
|||
|
||||
std::vector<shil_opcode> oplist;
|
||||
|
||||
bool contains_code(u8* ptr)
|
||||
bool contains_code(const u8* ptr)
|
||||
{
|
||||
return ((unat)(ptr-(u8*)code))<host_code_size;
|
||||
}
|
||||
|
|
|
@ -901,7 +901,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),
|
||||
|
||||
double idp = (double)fn[0] * fm[0];
|
||||
idp += (double)fn[1] * fm[1];
|
||||
|
@ -941,7 +941,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 = (double)fm[0] * fn[0] +
|
||||
(double)fm[4] * fn[1] +
|
||||
|
@ -1081,7 +1081,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++)
|
||||
|
|
|
@ -86,7 +86,7 @@ struct spti_s
|
|||
BYTE senseBuf[0x12];
|
||||
} ;
|
||||
|
||||
ULONG msf2fad( UCHAR Addr[4] )
|
||||
ULONG msf2fad(const UCHAR Addr[4])
|
||||
{
|
||||
ULONG Sectors = ( Addr[0] * (CD_BLOCKS_PER_SECOND*60) ) + ( Addr[1]*CD_BLOCKS_PER_SECOND) + Addr[2];
|
||||
return Sectors;
|
||||
|
|
Loading…
Reference in New Issue