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

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

On Tue, Jun 24, 2014 at 7:47 PM, Martti Kühne <mysatyre_AT_gmail.com> wrote:
> 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

sorry. -256.99999

cheers!
mar77i
Received on Tue Jun 24 2014 - 19:49:58 CEST

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