mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-03-26 08:54:42 +01:00
Move things out of util.h
This commit is contained in:
parent
498ec7b88a
commit
8bda69d5b0
3 changed files with 12 additions and 4 deletions
11
plugin/android/src/main/cpp/math_util.h
Normal file
11
plugin/android/src/main/cpp/math_util.h
Normal 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
|
|
@ -1,5 +1,6 @@
|
|||
#include "util.h"
|
||||
#include "log.h"
|
||||
#include "math_util.h"
|
||||
#include <RenderScriptToolkit.h>
|
||||
#include <algorithm>
|
||||
#include <android/asset_manager.h>
|
||||
|
|
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue