pixelshift: simplified and increased readability of code

This commit is contained in:
heckflosse
2016-12-06 22:52:36 +01:00
parent 49b5dbd595
commit 9bd874eb8c
2 changed files with 59 additions and 71 deletions

View File

@@ -74,19 +74,6 @@ inline const _Tp& max(const _Tp& a, const _Tp& b, const _Tp& c, const _Tp& d)
return std::max(d, std::max(c, std::max(a, b)));
}
template<typename _Tp>
inline const _Tp& max(const _Tp& a, const _Tp& b, const _Tp& c, const _Tp& d, const _Tp& e)
{
return max(max(a,b,c),std::max(d,e));
}
template<typename _Tp>
inline const _Tp& max(const _Tp& a, const _Tp& b, const _Tp& c, const _Tp& d, const _Tp& e, const _Tp& f, const _Tp& g)
{
return max(max(a,b,c,d),max(e,f,g));
}
template<typename _Tp>
inline _Tp intp(_Tp a, _Tp b, _Tp c)
{