[Bug optimization/13454] -funroll-loops depth option

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Sat Dec 20 02:58:00 GMT 2003


------- Additional Comments From pinskia at gcc dot gnu dot org  2003-12-20 02:22 -------
Actually GCC something like this with -funroll-loops (already explained in IRC):
for (q = 0 ; q < height; q++) {
  if (width % 2) {
    *(scr8++) = BGR233ToPixel[*(buf++)];
  }
  for (p = 0 ; q < width/2; p++) {
    *(scr8++) = BGR233ToPixel[*(buf++)];
     *(scr8++) = BGR233ToPixel[*(buf++)];
   }
}

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13454



More information about the Gcc-bugs mailing list