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:
@@ -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 {
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user