aboutsummaryrefslogtreecommitdiff
path: root/mesalib/src
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2014-08-22 21:51:08 +0200
committermarha <marha@users.sourceforge.net>2014-08-22 21:51:08 +0200
commitbcb354180f20f0c410a77bd32cbf2c1e799632d5 (patch)
tree17d9af613872a12c098572c3fbebef538edf76f5 /mesalib/src
parent8e27619ab489dece35cc4bec86950ee7729cd309 (diff)
downloadvcxsrv-bcb354180f20f0c410a77bd32cbf2c1e799632d5.tar.gz
vcxsrv-bcb354180f20f0c410a77bd32cbf2c1e799632d5.tar.bz2
vcxsrv-bcb354180f20f0c410a77bd32cbf2c1e799632d5.zip
Compiled and synchronised
Diffstat (limited to 'mesalib/src')
-rw-r--r--mesalib/src/mesa/main/macros.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/mesalib/src/mesa/main/macros.h b/mesalib/src/mesa/main/macros.h
index 0ba658a9a..947efac1f 100644
--- a/mesalib/src/mesa/main/macros.h
+++ b/mesalib/src/mesa/main/macros.h
@@ -153,21 +153,21 @@ extern GLfloat _mesa_ubyte_to_float_color_tab[256];
else if (__tmp.i >= IEEE_ONE) \
UB = (GLubyte) 255; \
else { \
- __tmp.f = __tmp.f * (255.0F/256.0F) + 32768.0F; \
+ __tmp.f = __tmp.f * (255.0f/256.0f) + 32768.0f; \
UB = (GLubyte) __tmp.i; \
} \
} while (0)
#define CLAMPED_FLOAT_TO_UBYTE(UB, F) \
do { \
fi_type __tmp; \
- __tmp.f = (F) * (255.0F/256.0F) + 32768.0F; \
+ __tmp.f = (F) * (255.0f/256.0f) + 32768.0f; \
UB = (GLubyte) __tmp.i; \
} while (0)
#else
-#define UNCLAMPED_FLOAT_TO_UBYTE(ub, f) \
- ub = ((GLubyte) F_TO_I(CLAMP((f), 0.0F, 1.0F) * 255.0F))
-#define CLAMPED_FLOAT_TO_UBYTE(ub, f) \
- ub = ((GLubyte) F_TO_I((f) * 255.0F))
+#define UNCLAMPED_FLOAT_TO_UBYTE(ub, fl) \
+ ub = ((GLubyte) F_TO_I(CLAMP((fl), 0.0f, 1.0f) * 255.0f))
+#define CLAMPED_FLOAT_TO_UBYTE(ub, fl) \
+ ub = ((GLubyte) F_TO_I((fl) * 255.0f))
#endif
static inline GLfloat INT_AS_FLT(GLint i)