mesa: new BYTE/SHORT_TO_FLOATZ() macros
authorBrian Paul <brianp@vmware.com>
Sat, 12 Nov 2011 18:50:32 +0000 (11:50 -0700)
committerBrian Paul <brianp@vmware.com>
Tue, 15 Nov 2011 14:49:26 +0000 (07:49 -0700)
commit546f76d58f619e3d7e016b3eb04254d5c5c3f39f
tree7550dd18a5864300189b15117de22a5759581b92
parentb098e1af1cdaea8767b8f1416469cdd02a9c39a9
mesa: new BYTE/SHORT_TO_FLOATZ() macros

Rather than redefining the BYTE/SHORT_TO_FLOAT macros, just define new
ones with different names.  These macros preserve zero when converting.

Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/main/image.c
src/mesa/main/macros.h
src/mesa/main/pack.c