Behdad Esfahbod wrote: > So the ceil function can be implemented as: > > return -((-f)>>16); > > right? That looks right to me. Good idea.