commit | f89ec832f826cd79dba7bd136c57faa3b8d80b55 | [log] [tgz] |
---|---|---|
author | Jeff Muizelaar <jmuizelaar@mozilla.com> | Fri Apr 08 00:50:25 2011 -0700 |
committer | Jeff Muizelaar <jmuizelaar@mozilla.com> | Fri Apr 08 00:50:25 2011 -0700 |
tree | bb5e3a75cbb0e736f43cfd54c1c35b207f2bf020 | |
parent | d204e2b79c6e7c8e7182eed19a6d79f146d290b5 [diff] |
Add a comment about the accuracy of s15Fixed16Number_to_float
diff --git a/qcmsint.h b/qcmsint.h index c34f099..efe7b15 100644 --- a/qcmsint.h +++ b/qcmsint.h
@@ -141,6 +141,8 @@ #define inline _inline #endif +/* produces the nearest float to 'a' with a maximum error + * of 1/1024 which happens for large values like 0x40000040 */ static inline float s15Fixed16Number_to_float(s15Fixed16Number a) { return ((int32_t)a)/65536.f;