gallium: Add a uif() helper function to complement fui()
authorEric Anholt <eric@anholt.net>
Fri, 27 Jun 2014 14:09:32 +0000 (15:09 +0100)
committerEric Anholt <eric@anholt.net>
Thu, 31 Jul 2014 05:30:19 +0000 (22:30 -0700)
commitbfb0da9fa765242f52dc66a5acb14037ef17be94
tree782ec68ae0d89a4fae3eec56ce140b8a48370ea4
parentbf3a26266d3f5da18a215c8c11ce75d01582e989
gallium: Add a uif() helper function to complement fui()

I found myself often wanting this when I'm printing out a uint32_t mapping
of some GPU data, and I want to put in an interpretation of that value as
a float.

Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
src/gallium/auxiliary/util/u_math.h