mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-29 03:40:10 +01:00
gallium: Avoid double arithmetic.
This commit is contained in:
parent
a148025d94
commit
9dfa6063be
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue