__forceinline doesn't make a measureable difference here, so no need to make the code nonstandard

This commit is contained in:
Peter Thoman 2013-05-05 01:49:16 +02:00
parent f49cc04c7d
commit e7b382dc57

View File

@ -241,7 +241,7 @@ namespace {
// B = Bi/100 and C = Ci/100 (template parameters to allow compiler to specialize weighting function for each spline type)
// see Mitchell & Netravali, "Reconstruction Filters in Computer Graphics"
template<int Bi, int Ci>
__forceinline float mitchell(float x) {
inline float mitchell(float x) {
const float B = Bi/100.0f, C = Ci/100.0f;
float ax = fabs(x);
if(ax>=2.0f) return 0.0f;