[Mesa-dev] [PATCH 3/7] mesa: Replace F_TO_I() with _mesa_lroundevenf().

Matt Turner mattst88 at gmail.com
Mon Aug 3 09:20:25 PDT 2015


On Fri, Jul 31, 2015 at 5:46 PM, Roland Scheidegger <sroland at vmware.com> wrote:
>> + */
>> +static inline long
>> +_mesa_lroundevenf(float x)
>> +{
>> +   return lrintf(x);
>> +}
>> +
>> +/**
>> + * \brief Rounds \c x to the nearest integer, with ties to the even integer,
>> + * and returns the value as a long int.
>> + */
>> +static inline long
>> +_mesa_lroundeven(double x)
> Is there any need for this one? In any case,

Only to make sure it's available when/if someone needs it.

> Reviewed-by: Roland Scheidegger <sroland at vmware.com>

Thanks!


More information about the mesa-dev mailing list