Move things out of util.h

This commit is contained in:
Ming Ming 2022-06-14 19:26:29 +08:00
parent 498ec7b88a
commit 8bda69d5b0
3 changed files with 12 additions and 4 deletions

View file

@ -0,0 +1,11 @@
#pragma once
#include <algorithm>
namespace plugin {
template <typename T> inline T clamp(const T &min, const T &x, const T &max) {
return std::max(min, std::min(x, max));
}
} // namespace plugin

View file

@ -1,5 +1,6 @@
#include "util.h"
#include "log.h"
#include "math_util.h"
#include <RenderScriptToolkit.h>
#include <algorithm>
#include <android/asset_manager.h>

View file

@ -57,10 +57,6 @@ private:
AAsset *asset = nullptr;
};
template <typename T> inline T clamp(const T &min, const T &x, const T &max) {
return std::max(min, std::min(x, max));
}
void initOpenMp();
int getNumberOfProcessors();