Tomato Branch:

* Compile fix for windows platforms, pow10 -> pow.
This commit is contained in:
Thomas Dinges
2012-06-29 11:42:57 +00:00
parent 117fcf3a77
commit 5a540dec5e

View File

@@ -669,7 +669,7 @@ static float rdt_shaper_fwd( float x)
// Parameters controlling linear extrapolation.
const float LIGHT_SLOPE = 0.023;
const float CROSSOVER = pow(10,-KNOT_END);
const float REV_CROSSOVER = pow10( -KNOT_DENS[ KNOT_LEN - 1]) - FLARE;
const float REV_CROSSOVER = pow(10.0f, -KNOT_DENS[ KNOT_LEN - 1]) - FLARE;
const float DARK_SLOPE = REV_CROSSOVER / CROSSOVER;
// Textbook monomial to basis-function conversion matrix.
@@ -750,7 +750,7 @@ static float rdt_shaper_fwd( float x)
}
}
}
y = pow10( -out_dens) - FLARE;
y = pow(10.0f, -out_dens) - FLARE;
}
return y;
}