This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]