Hi, On Sat, Aug 30, 2008 at 9:42 AM, Bartlomiej Wolowiec <bartek.wolowiec at gmail.com> wrote: > Friday 29 August 2008 22:36:10 Michael Niedermayer napisa?(a): >> (int)some_float is slow, lrintf() should be faster > > yes, but here rounding down is needed. lrintf(x-0.5) ? floorf(), not sure if it's portable. Ronald