X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=fp16.h;h=5f71fec593d8924deaee981a6aa3100d035171c1;hp=49828bb62af922b6069c3884f765c2ad64c96094;hb=7cfa62b39fb56fb1e5f094fa11bfe9d84445c80f;hpb=35ab97543afb74f72dd1d4c0d7d3206efe867a5e diff --git a/fp16.h b/fp16.h index 49828bb..5f71fec 100644 --- a/fp16.h +++ b/fp16.h @@ -10,7 +10,11 @@ // 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 {