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

From: Martti Kühne <mysatyre_AT_gmail.com>
Date: Tue, 24 Jun 2014 19:47:34 +0200

On Tue, Jun 24, 2014 at 7:32 PM, FRIGN <dev_AT_frign.de> wrote:
>
> CEIL(x) ((int)(x) + ((x) > 0 && (int)(x) != (x)))
>

There are insignificant differences to results with this number
(256.99999), but it's a significantly faster than glibc's ceilf (which
takes about 200%).

cheers!
mar77i
Received on Tue Jun 24 2014 - 19:47:34 CEST

This archive was generated by hypermail 2.3.0 : Tue Jun 24 2014 - 20:00:04 CEST