LtRtProcessing: Make ClampFull() internally linked

inline provides external linkage instead of internal linkage which is
more desirable here. We can enclose it within an anonymous namespace to
make it internally linked.
This commit is contained in:
Lioncash 2019-08-24 22:56:54 -04:00
parent 7c5a9ab4df
commit 93045d5264
1 changed files with 6 additions and 4 deletions

View File

@ -1,14 +1,15 @@
#include "LtRtProcessing.hpp"
#include <cmath>
#include "lib/audiodev/LtRtProcessing.hpp"
#include <algorithm>
#include <cmath>
#undef min
#undef max
namespace boo {
namespace {
template <typename T>
inline T ClampFull(float in) {
T ClampFull(float in) {
if (std::is_floating_point<T>()) {
return std::min<T>(std::max<T>(in, -1.f), 1.f);
} else {
@ -23,6 +24,7 @@ inline T ClampFull(float in) {
return in;
}
}
} // Anonymous namespace
#if INTEL_IPP