From: José Fonseca Date: Fri, 1 Jan 2010 19:39:09 +0000 (+0000) Subject: util: Silent potential loss of precision warnings. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c852e960ccb5d2727ccaaf2829e89596a6be3128;p=mesa.git util: Silent potential loss of precision warnings. Also ensure multiplication doesn't happen for negative numbers. --- diff --git a/src/gallium/auxiliary/util/u_math.h b/src/gallium/auxiliary/util/u_math.h index 81aeb83cbb5..b2969a210a7 100644 --- a/src/gallium/auxiliary/util/u_math.h +++ b/src/gallium/auxiliary/util/u_math.h @@ -585,13 +585,12 @@ do { \ static INLINE uint32_t util_unsigned_fixed(float value, unsigned frac_bits) { - value *= (1<