[Mesa-dev] [PATCH 2/2] nir/opcodes: Don't go through doubles when constant-folding iabs
Jason Ekstrand
jason at jlekstrand.net
Mon Jan 26 11:16:49 PST 2015
On Mon, Jan 26, 2015 at 11:15 AM, Eric Anholt <eric at anholt.net> wrote:
> Jason Ekstrand <jason at jlekstrand.net> writes:
>
> > Previously, we called the abs() function in math.h. However, this
> involves
> > unnecessarily going through double. This commit changes it to use
> integers
> > directly with a ternary.
>
> Or just use fabs()?
>
This is for the integer version. We don't want to go through floats or
doubles.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20150126/a6150a30/attachment.html>
More information about the mesa-dev
mailing list