Replace "index" with "i".
authorH.J. Lu <hjl.tools@gmail.com>
Wed, 29 Jun 2011 20:46:11 +0000 (20:46 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Wed, 29 Jun 2011 20:46:11 +0000 (20:46 +0000)
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.

opcodes/ChangeLog
opcodes/tilegx-opc.c
opcodes/tilepro-opc.c

index 6cc01c74dbc8821626d9a67911051646919417ec..10c9a28e226e4cae92fa2f1795ff603d1168e0e6 100644 (file)
@@ -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.
index cb8a03ffb17ac4d67c530d4324d5662c0a47e311..4f97019337b6fb1dc811eb83eabb86b5cab1b2df 100644 (file)
@@ -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;
     }
 }
 
index c79c911e655c98d8e4ece3f3a258c3c742cb07d4..c3f6be4b46abcc0af44c62ae73a2fa81dbb19633 100644 (file)
@@ -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;
     }
 }
 
This page took 0.031538 seconds and 4 git commands to generate.