pcm/FloatConvert: make IntegerToFloatSampleConvert::Convert() constexpr

This commit is contained in:
Max Kellermann 2018-10-29 23:52:25 +01:00
parent 901229699e
commit aa77bc323f

View File

@ -57,8 +57,7 @@ struct IntegerToFloatSampleConvert {
static constexpr DV factor = 1.0 / FloatToIntegerSampleConvert<F, Traits>::factor;
static_assert(factor > 0, "Wrong factor");
gcc_const
static DV Convert(SV src) noexcept {
static constexpr DV Convert(SV src) noexcept {
return DV(src) * factor;
}
};