Remove noexcept from sampler functions to match the signature of SamplerT (#309)

This change fixes compilation problems on gcc 9.1 with -std=c++17.
This commit is contained in:
Minmin Gong 2019-07-01 22:42:21 -07:00 committed by kcat
parent bc1d058d2d
commit cee8100f19

View File

@ -14,13 +14,13 @@
namespace {
inline ALfloat do_point(const InterpState&, const ALfloat *RESTRICT vals, const ALsizei) noexcept
inline ALfloat do_point(const InterpState&, const ALfloat *RESTRICT vals, const ALsizei)
{ return vals[0]; }
inline ALfloat do_lerp(const InterpState&, const ALfloat *RESTRICT vals, const ALsizei frac) noexcept
inline ALfloat do_lerp(const InterpState&, const ALfloat *RESTRICT vals, const ALsizei frac)
{ return lerp(vals[0], vals[1], frac * (1.0f/FRACTIONONE)); }
inline ALfloat do_cubic(const InterpState&, const ALfloat *RESTRICT vals, const ALsizei frac) noexcept
inline ALfloat do_cubic(const InterpState&, const ALfloat *RESTRICT vals, const ALsizei frac)
{ return cubic(vals[0], vals[1], vals[2], vals[3], frac * (1.0f/FRACTIONONE)); }
inline ALfloat do_bsinc(const InterpState &istate, const ALfloat *RESTRICT vals, const ALsizei frac) noexcept
inline ALfloat do_bsinc(const InterpState &istate, const ALfloat *RESTRICT vals, const ALsizei frac)
{
ASSUME(istate.bsinc.m > 0);