title: how to optimize repetitive addition
body: <pre><code>#define NULL 0
  
  int main()
  {
      int *array1=NULL,*array2=NULL;
      int x =add(array1[0],array2[0]);
      int y =add(array1[1],array2[7]); 
      int x =add(array1[2],array2[3]);
      int y =add(array1[3],array2[4]);
      int x =add(array1[4],array2[6]);
      int y =add(array1[5],array2[1]); 
      int x =add(array1[6],array2[5]);
      int y =add(array1[7],array2[2]);
      ................
      ................
      int x =add(array1[252],array2[0]);
      int y =add(array1[253],array2[7]); 
      int x =add(array1[254],array2[3]);
      int y =add(array1[255],array2[4]);
  }
  </code></pre>
  
  <p>Basically index for <code>array1</code> is incrementing by 1 starting from 0 to till 255
  but the index for <code>array2</code> is fixed from 0 to 7. So I want to optimize this multiple addition. How to optimize this?</p>