On Tue, 24 Jun 2014 16:30:16 +0200 Jakob Kramer <jakob.kra...@gmx.de> wrote:
> Finally, I don't think that reimplementing a function that already is in > the standard library for "more efficiency" makes any sense. Correctness > is most important, and I rather trust my C library implementation on that. Jakob, this is not some complex function, this is a macro. I agree on using stdlib-functions in most cases, but here, using CEIL over ceilf is obvious: We want to use the value directly as an integer, whereas ceilf returns a float. Reat Marttin's implementation to see why our solution is superior and a not form of NiH. Cheers FRIGN -- FRIGN <d...@frign.de>