mirror of
https://github.com/AxioDL/boo.git
synced 2025-12-09 05:27:58 +00:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user