summaryrefslogtreecommitdiffstats
path: root/src/mesa/main
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2003-11-18 03:44:53 +0000
committerBrian Paul <[email protected]>2003-11-18 03:44:53 +0000
commitaa0d6dcd652ca3f6ece2e9314020283589d79a2a (patch)
treefada74a5fc5f4896ce5795870bbcd0016028e08c /src/mesa/main
parent10b09212e8e3adc1751ae32bb632ad9bd8287c64 (diff)
added reference to original half/float conversion code
Diffstat (limited to 'src/mesa/main')
-rw-r--r--src/mesa/main/imports.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/main/imports.c b/src/mesa/main/imports.c
index d8549f2b10f..3ca91fb15b7 100644
--- 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)