summaryrefslogtreecommitdiffstats
path: root/src/filter/equaliz0r/equaliz0r.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/filter/equaliz0r/equaliz0r.cpp')
-rw-r--r--src/filter/equaliz0r/equaliz0r.cpp9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/filter/equaliz0r/equaliz0r.cpp b/src/filter/equaliz0r/equaliz0r.cpp
index b9c6354..b4eae1e 100644
--- a/src/filter/equaliz0r/equaliz0r.cpp
+++ b/src/filter/equaliz0r/equaliz0r.cpp
@@ -18,18 +18,11 @@
*/
#include "frei0r.hpp"
+#include "frei0r_math.h"
#include <string.h>
#include <cstring>
-/* Clamps a int32-range int between 0 and 255 inclusive. */
-unsigned char CLAMP0255(int32_t a)
-{
- return (unsigned char)
- ( (((-a) >> 31) & a) // 0 if the number was negative
- | (255 - a) >> 31); // -1 if the number was greater than 255
-}
-
class equaliz0r : public frei0r::filter
{
// Look-up tables for equaliz0r values.