gallium/auxiliary: Avoid double promotion.

Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
This commit is contained in:
Matt Turner 2015-07-12 18:01:42 -07:00
parent 4251ccb47b
commit 29ef7a9f19
2 changed files with 2 additions and 2 deletions

View file

@ -75,7 +75,7 @@ typedef union {
static inline float rgb9e5_ClampRange(float x)
{
if (x > 0.0) {
if (x > 0.0f) {
if (x >= MAX_RGB9E5) {
return MAX_RGB9E5;
} else {

View file

@ -240,7 +240,7 @@ util_iround(float f)
static inline boolean
util_is_approx(float a, float b, float tol)
{
return fabs(b - a) <= tol;
return fabsf(b - a) <= tol;
}