projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
util/format: Use explicitly sized types
[mesa.git]
/
src
/
util
/
format_rgb9e5.h
diff --git
a/src/util/format_rgb9e5.h
b/src/util/format_rgb9e5.h
index 2559e1e7d1b08e095397d254739c3e75c7b436a8..70ad04fdeba50c63945e3ff1749279ae8814e5d1 100644
(file)
--- a/
src/util/format_rgb9e5.h
+++ b/
src/util/format_rgb9e5.h
@@
-57,7
+57,7
@@
static inline int rgb9e5_ClampRange(float x)
return f.u;
}
return f.u;
}
-static inline u
nsigned in
t float3_to_rgb9e5(const float rgb[3])
+static inline u
int32_
t float3_to_rgb9e5(const float rgb[3])
{
int rm, gm, bm, exp_shared;
uint32_t revdenom_biasedexp;
{
int rm, gm, bm, exp_shared;
uint32_t revdenom_biasedexp;
@@
-104,7
+104,7
@@
static inline unsigned int float3_to_rgb9e5(const float rgb[3])
return (exp_shared << 27) | (bm << 18) | (gm << 9) | rm;
}
return (exp_shared << 27) | (bm << 18) | (gm << 9) | rm;
}
-static inline void rgb9e5_to_float3(u
nsigned
rgb, float retval[3])
+static inline void rgb9e5_to_float3(u
int32_t
rgb, float retval[3])
{
int exponent;
union { float f; uint32_t u; } scale;
{
int exponent;
union { float f; uint32_t u; } scale;