Mercurial > hg > vamp-build-and-test
diff DEPENDENCIES/generic/include/boost/math/distributions/rayleigh.hpp @ 101:c530137014c0
Update Boost headers (1.58.0)
author | Chris Cannam |
---|---|
date | Mon, 07 Sep 2015 11:12:49 +0100 |
parents | 2665513ce2d3 |
children |
line wrap: on
line diff
--- a/DEPENDENCIES/generic/include/boost/math/distributions/rayleigh.hpp Fri Sep 04 12:01:02 2015 +0100 +++ b/DEPENDENCIES/generic/include/boost/math/distributions/rayleigh.hpp Mon Sep 07 11:12:49 2015 +0100 @@ -179,7 +179,11 @@ { return result; } - result = exp(-x * x / ( 2 * sigma * sigma)); + RealType ea = x * x / (2 * sigma * sigma); + // Fix for VC11/12 x64 bug in exp(float): + if (ea >= tools::max_value<RealType>()) + return 0; + result = exp(-ea); return result; } // cdf complement