]> git.sesse.net Git - movit/blobdiff - fp16.h
Use ryg's much faster fp16 conversion code.
[movit] / fp16.h
diff --git a/fp16.h b/fp16.h
index 49828bb62af922b6069c3884f765c2ad64c96094..5f71fec593d8924deaee981a6aa3100d035171c1 100644 (file)
--- a/fp16.h
+++ b/fp16.h
 // handling of NaNs and infinities). This is needed because some OpenGL
 // drivers don't properly round off when asked to convert data themselves.
 //
-// These routines are not particularly fast.
+// These routines are originally written by Fabian Giesen, and released by
+// him into the public domain;
+// see https://fgiesen.wordpress.com/2012/03/28/half-to-float-done-quic/.
+// They are quite fast, and can be vectorized if need be; of course, using
+// the f16c instructions (see below) will be faster still.
 
 namespace movit {