commit 394ac51ae6bd8d2d9ac6ff845043ee0bcec8d3e7
parent 528a4a161cd6fc1c4cf9d397787f9514959c2738
Author: d.levin256@gmail.com <d.levin256@gmail.com>
Date: Tue, 2 Aug 2016 22:33:22 +0300
empty_test: Include all headers
Diffstat:
3 files changed, 6 insertions(+), 7 deletions(-)
diff --git a/include/kfr/dsp/interpolation.hpp b/include/kfr/dsp/interpolation.hpp
@@ -32,7 +32,7 @@ namespace kfr
template <typename T, typename M>
KFR_SINTRIN T nearest(M mu, T x1, T x2)
{
- return native::select(mu < M(0.5), x1, x2);
+ return select(mu < M(0.5), x1, x2);
}
template <typename T, typename M>
@@ -44,7 +44,7 @@ KFR_SINTRIN T linear(M mu, T x1, T x2)
template <typename T, typename M>
KFR_SINTRIN T cosine(M mu, T x1, T x2)
{
- return mix((M(1) - native::fastcos(mu * c_pi<T>)) * M(0.5), x1, x2);
+ return mix((M(1) - fastcos(mu * c_pi<T>)) * M(0.5), x1, x2);
}
template <typename T, typename M>
diff --git a/include/kfr/dsp/waveshaper.hpp b/include/kfr/dsp/waveshaper.hpp
@@ -22,21 +22,20 @@
*/
#pragma once
-#include "../base/abs.hpp"
+#include "../base/clamp.hpp"
#include "../base/hyperbolic.hpp"
-#include "../base/min_max.hpp"
namespace kfr
{
template <typename E1>
inline auto waveshaper_hardclip(E1&& input, double clip_level)
{
- return native::clamp(input, -clip_level, +clip_level);
+ return clamp(input, -clip_level, +clip_level);
}
template <typename E1>
inline auto waveshaper_tanh(E1&& input, double saturation)
{
- return native::tanh(saturation * input) * (native::coth(saturation));
+ return tanh(saturation * input) * (coth(saturation));
}
}
diff --git a/tests/empty_test.cpp b/tests/empty_test.cpp
@@ -1,4 +1,4 @@
-#include <kfr/math.hpp>
+#include <kfr/all.hpp>
using namespace kfr;