Re: [dev] [st] [PATCH] Explicit cast in CEIL macro

From: FRIGN <>
Date: Tue, 24 Jun 2014 16:39:38 +0200

On Tue, 24 Jun 2014 16:30:16 +0200
Jakob Kramer <> 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.



Received on Tue Jun 24 2014 - 16:39:38 CEST

This archive was generated by hypermail 2.3.0 : Tue Jun 24 2014 - 16:48:06 CEST