LJ Archive

Listing 3.

void vecrev_naive (long *src, long *dst,
    long size)
   {
   long i;
   for (i = 0; i < size/sizeof(long); i += 4)
   {
      dst[i + 0] = byterev_long(src[i + 0]);
      dst[i + 1] = byterev_long(src[i + 1]);
      dst[i + 2] = byterev_long(src[i + 2]);
      dst[i + 3] = byterev_long(src[i + 3]);
   }
}
LJ Archive