On 01/09, Stotland, Inga wrote: > Well, shift is a less expensive operation than a division (I believe, > some compilers may substitute integer division by 2 with a shift). So leave this to the compiler. In 99.999% cases it knows better. http://www.linux-kongress.org/2009/slides/compiler_survey_felix_von_leitner.pdf slide 36 -- Michał Lowas-Rzechonek <michal.lowas-rzechonek@xxxxxxxxxxx> Silvair http://silvair.com Jasnogórska 44, 31-358 Krakow, POLAND