OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [gcc.c-torture/] [compile/] [pr24883.c] - Diff between revs 297 and 338

Only display areas with differences | Details | Blame | View Log

Rev 297 Rev 338
typedef struct _rec_stl rec_stl;
typedef struct _rec_stl rec_stl;
struct _rec_stl {
struct _rec_stl {
   unsigned char **strs;
   unsigned char **strs;
};
};
orec_str_list(int count) {
orec_str_list(int count) {
   rec_stl *stl;
   rec_stl *stl;
   int i, j;
   int i, j;
   int li, lj;
   int li, lj;
   unsigned char ci, cj;
   unsigned char ci, cj;
   for (i = 0; i < count; i++) {
   for (i = 0; i < count; i++) {
      for (j = i + 1; j < count; j++) {
      for (j = i + 1; j < count; j++) {
         cj = lj > 2 ? stl->strs[j][0] : (long)stl->strs[j] & 0xff;
         cj = lj > 2 ? stl->strs[j][0] : (long)stl->strs[j] & 0xff;
         if ((count >= 16 && cj < ci) || (cj == ci && lj > li)) {
         if ((count >= 16 && cj < ci) || (cj == ci && lj > li)) {
            stl->strs[j] = stl->strs[i];
            stl->strs[j] = stl->strs[i];
            ci ^= cj;
            ci ^= cj;
            cj ^= ci;
            cj ^= ci;
            ci ^= cj;
            ci ^= cj;
         }
         }
      }
      }
   }
   }
}
}
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.