projects
/
profile
/
ivi
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
10b0921
)
added reference to original half/float conversion code
author
Brian Paul
<brian.paul@tungstengraphics.com>
Tue, 18 Nov 2003 03:44:53 +0000
(
03:44
+0000)
committer
Brian Paul
<brian.paul@tungstengraphics.com>
Tue, 18 Nov 2003 03:44:53 +0000
(
03:44
+0000)
src/mesa/main/imports.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/imports.c
b/src/mesa/main/imports.c
index
d8549f2
..
3ca91fb
100644
(file)
--- a/
src/mesa/main/imports.c
+++ b/
src/mesa/main/imports.c
@@
-530,6
+530,8
@@
_mesa_bitcount(unsigned int n)
/**
* Convert a 4-byte float to a 2-byte half float.
+ * Based on code from:
+ * http://www.opengl.org/discussion_boards/ubb/Forum3/HTML/008786.html
*/
GLhalfNV
_mesa_float_to_half(float val)
@@
-614,6
+616,8
@@
_mesa_float_to_half(float val)
/**
* Convert a 2-byte half float to a 4-byte float.
+ * Based on code from:
+ * http://www.opengl.org/discussion_boards/ubb/Forum3/HTML/008786.html
*/
float
_mesa_half_to_float(GLhalfNV val)