mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 04:58:05 +02:00
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:
parent
4251ccb47b
commit
29ef7a9f19
2 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue