diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2011-06-29 20:46:11 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2011-06-29 20:46:11 +0000 |
commit | f7956ea4e1b85fbdb003cd7746a5a7794675eeec (patch) | |
tree | 91e9834684b33ed40df343904fc9291a7ce7ad2e | |
parent | 89139d7e02abd8be273c136a2771b46354d539d6 (diff) | |
download | gdb-f7956ea4e1b85fbdb003cd7746a5a7794675eeec.tar.gz |
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.
-rw-r--r-- | opcodes/ChangeLog | 5 | ||||
-rw-r--r-- | opcodes/tilegx-opc.c | 8 | ||||
-rw-r--r-- | opcodes/tilepro-opc.c | 8 |
3 files changed, 13 insertions, 8 deletions
diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog index 6cc01c74dbc..10c9a28e226 100644 --- a/opcodes/ChangeLog +++ b/opcodes/ChangeLog @@ -1,3 +1,8 @@ +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. + 2011-06-29 Richard Sandiford <rdsandiford@googlemail.com> * mips16-opc.c (jalrc, jrc): Move earlier in file. diff --git a/opcodes/tilegx-opc.c b/opcodes/tilegx-opc.c index cb8a03ffb17..4f97019337b 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; } } diff --git a/opcodes/tilepro-opc.c b/opcodes/tilepro-opc.c index c79c911e655..c3f6be4b46a 100644 --- a/opcodes/tilepro-opc.c +++ b/opcodes/tilepro-opc.c @@ -10103,19 +10103,19 @@ const struct tilepro_opcode * find_opcode (tilepro_bundle_bits bits, tilepro_pipeline pipe) { const unsigned short *table = tilepro_bundle_decoder_fsms[pipe]; - 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 <= TILEPRO_OPC_NONE) return &tilepro_opcodes[next]; - index = next - TILEPRO_OPC_NONE; + i = next - TILEPRO_OPC_NONE; } } |