ref: 897bcb51c39ecf2ad8f76f2c40978172bd1e8d33
parent: f3376c2537bf0e8f90dff42fd99eafdf342441f1
author: huili2 <huili2@cisco.com>
date: Thu Jun 15 10:01:05 EDT 2017
fix vs2013 crash issue by log10 or pow math function
--- a/codec/encoder/core/inc/param_svc.h
+++ b/codec/encoder/core/inc/param_svc.h
@@ -63,6 +63,9 @@
* \return 2 based scaling factor
*/
static inline uint32_t GetLogFactor (float base, float upper) {
+#if defined(_M_X64)
+ _set_FMA3_enable(0);
+#endif
const double dLog2factor = log10 (1.0 * upper / base) / log10 (2.0);
const double dEpsilon = 0.0001;
const double dRound = floor (dLog2factor + 0.5);