aboutsummaryrefslogtreecommitdiff
path: root/opcodes/tilegx-opc.c
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2011-06-29 20:46:11 +0000
committerH.J. Lu <hjl.tools@gmail.com>2011-06-29 20:46:11 +0000
commit906efcbc31606e530623c356b2fbdca336131f86 (patch)
treec72a48b4294acf8ea4506e41272beb62bf95ff9d /opcodes/tilegx-opc.c
parent13408f1edda36e182af15fa250ddd38f52ee8564 (diff)
downloadgdb-906efcbc31606e530623c356b2fbdca336131f86.zip
gdb-906efcbc31606e530623c356b2fbdca336131f86.tar.gz
gdb-906efcbc31606e530623c356b2fbdca336131f86.tar.bz2
Replace "index" with "i".
2011-06-29 H.J. Lu <hongjiu.lu@intel.com> * tilegx-opc.c (find_opcode): Replace "index" with "i". * tilepro-opc.c (find_opcode): Likewise.
Diffstat (limited to 'opcodes/tilegx-opc.c')
-rw-r--r--opcodes/tilegx-opc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/opcodes/tilegx-opc.c b/opcodes/tilegx-opc.c
index cb8a03f..4f97019 100644
--- a/opcodes/tilegx-opc.c
+++ b/opcodes/tilegx-opc.c
@@ -7976,19 +7976,19 @@ const char * const tilegx_register_names[] =
static const struct tilegx_opcode *
find_opcode (tilegx_bundle_bits bits, const unsigned short *table)
{
- int index = 0;
+ int i = 0;
while (1)
{
- unsigned short bitspec = table[index];
+ unsigned short bitspec = table[i];
unsigned int bitfield =
((unsigned int)(bits >> (bitspec & 63))) & (bitspec >> 6);
- unsigned short next = table[index + 1 + bitfield];
+ unsigned short next = table[i + 1 + bitfield];
if (next <= TILEGX_OPC_NONE)
return & tilegx_opcodes[next];
- index = next - TILEGX_OPC_NONE;
+ i = next - TILEGX_OPC_NONE;
}
}