From ad9407c66e25cdf0e60f8083ce0d0ab0ea6dcc42 Mon Sep 17 00:00:00 2001 From: Ahmet Inan Date: Tue, 13 Oct 2020 10:26:26 +0200 Subject: [PATCH] use the std wrappers --- movext.hh | 8 ++------ sma.hh | 3 +-- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/movext.hh b/movext.hh index 9e7fc37..b52bfcd 100644 --- a/movext.hh +++ b/movext.hh @@ -44,9 +44,7 @@ public: template class MovMin { - struct Equal { bool operator () (TYPE a, TYPE b) { return a == b; } }; - struct Less { bool operator () (TYPE a, TYPE b) { return a < b; } }; - MovExt movmin; + MovExt, std::less, NUM> movmin; public: TYPE operator () (TYPE input) { @@ -57,9 +55,7 @@ public: template class MovMax { - struct Equal { bool operator () (TYPE a, TYPE b) { return a == b; } }; - struct Greater { bool operator () (TYPE a, TYPE b) { return a > b; } }; - MovExt movmax; + MovExt, std::greater, NUM> movmax; public: TYPE operator () (TYPE input) { diff --git a/sma.hh b/sma.hh index 5000c76..dd2039a 100644 --- a/sma.hh +++ b/sma.hh @@ -82,8 +82,7 @@ public: template class SMA4 { - struct Add { TYPE operator () (TYPE a, TYPE b) { return a + b; } }; - SWA swa; + SWA, NUM> swa; public: SMA4() : swa(0) {