Removed explicit usage of the 'register' keyword.

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/2/head
Michele Calgaro 5 years ago
parent fdb60f1a21
commit 7ad464335b
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -143,7 +143,7 @@
static inline void vis_set_gsr(unsigned int _val)
{
register unsigned int val asm("g1");
unsigned int val asm("g1");
val = _val;
__asm__ __volatile__(".word 0xa7804000"
@ -165,7 +165,7 @@ static inline void vis_set_gsr(unsigned int _val)
#define vis_st64_2(rs1,mem1,mem2) vis_r2m_2(std, rs1, mem1, mem2)
#define vis_ldblk(mem, rd) \
do { register void *__mem asm("g1"); \
do { void *__mem asm("g1"); \
__mem = &(mem); \
__asm__ __volatile__(".word 0xc1985e00 | %1" \
: \
@ -175,7 +175,7 @@ do { register void *__mem asm("g1"); \
} while (0)
#define vis_stblk(rd, mem) \
do { register void *__mem asm("g1"); \
do { void *__mem asm("g1"); \
__mem = &(mem); \
__asm__ __volatile__(".word 0xc1b85e00 | %1" \
: \
@ -227,7 +227,7 @@ do { register void *__mem asm("g1"); \
static inline void *vis_alignaddr(void *_ptr)
{
register void *ptr asm("g1");
void *ptr asm("g1");
ptr = _ptr;
@ -244,7 +244,7 @@ static inline void *vis_alignaddr(void *_ptr)
static inline void vis_alignaddr_g0(void *_ptr)
{
register void *ptr asm("g1");
void *ptr asm("g1");
ptr = _ptr;
@ -259,7 +259,7 @@ static inline void vis_alignaddr_g0(void *_ptr)
static inline void *vis_alignaddrl(void *_ptr)
{
register void *ptr asm("g1");
void *ptr asm("g1");
ptr = _ptr;
@ -276,7 +276,7 @@ static inline void *vis_alignaddrl(void *_ptr)
static inline void vis_alignaddrl_g0(void *_ptr)
{
register void *ptr asm("g1");
void *ptr asm("g1");
ptr = _ptr;

@ -414,10 +414,10 @@ int k9requant::increment_quant(int quant)
return quant;
}
int k9requant::intmax( register int x, register int y )
int k9requant::intmax( int x, int y )
{ return x < y ? y : x; }
int k9requant::intmin( register int x, register int y )
int k9requant::intmin( int x, int y )
{ return x < y ? x : y; }

@ -189,9 +189,9 @@ private:
void flush_write_buffer();
int scale_quant(double quant );
int increment_quant(int quant);
int intmax( register int x, register int y );
int intmax( int x, int y );
int intmin( register int x, register int y );
int intmin( int x, int y );
void putmbtype(int mb_type);
int getNewQuant(int curQuant, int intra);

@ -83,8 +83,8 @@ private:
void flush_write_buffer();
int scale_quant(double quant);
int increment_quant(int quant);
int intmax( register int x, register int y );
int intmin( register int x, register int y );
int intmax( int x, int y );
int intmin( int x, int y );
int getNewQuant(int curQuant);
int isNotEmpty(RunLevel *blk);
int putAC(int run, int signed_level, int vlcformat);

Loading…
Cancel
Save