diff options
author | José Fonseca <[email protected]> | 2008-06-24 14:22:09 +0900 |
---|---|---|
committer | José Fonseca <[email protected]> | 2008-06-24 14:22:09 +0900 |
commit | 9dfa6063be5ea506cc5a43d352fa2f7dcfa68dff (patch) | |
tree | 8e5bcda634e9f3f8fb2953ef86b84acf2d4ba9e4 /src/gallium/auxiliary | |
parent | a148025d94505bca08f9baa1689048032bb60e2c (diff) |
gallium: Avoid double arithmetic.
Diffstat (limited to 'src/gallium/auxiliary')
-rw-r--r-- | src/gallium/auxiliary/translate/translate_generic.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/translate/translate_generic.c b/src/gallium/auxiliary/translate/translate_generic.c index 17e37d17458..4c8179ffa87 100644 --- a/src/gallium/auxiliary/translate/translate_generic.c +++ b/src/gallium/auxiliary/translate/translate_generic.c @@ -121,7 +121,7 @@ emit_##NAME(const float *attrib, void *ptr) \ #define FROM_16_SNORM(i) ((float) ((short *) ptr)[i] / 32767.0f) #define FROM_32_SNORM(i) ((float) ((int *) ptr)[i] / 2147483647.0f) -#define FROM_32_FIXED(i) (((int *) ptr)[i] / 65536.0) +#define FROM_32_FIXED(i) (((int *) ptr)[i] / 65536.0f) #define TO_64_FLOAT(x) ((double) x) #define TO_32_FLOAT(x) (x) |