Go to the source code of this file.
◆ NNDEPLOY_ABS
| #define NNDEPLOY_ABS |
( |
|
x | ) |
((x) > (0) ? (x) : (-(x))) |
◆ NNDEPLOY_ALIGN_PTR
| #define NNDEPLOY_ALIGN_PTR |
( |
|
x, |
|
|
|
y |
|
) |
| (void *)(x & ~static_cast<size_t>(NNDEPLOY_ABS(y) - 1)) |
◆ NNDEPLOY_ALIGN_UP4
◆ NNDEPLOY_ALIGN_UP8
◆ NNDEPLOY_ARCHITECTURE_ARM
| #define NNDEPLOY_ARCHITECTURE_ARM 0 |
◆ NNDEPLOY_ARCHITECTURE_CPU
| #define NNDEPLOY_ARCHITECTURE_CPU 1 |
◆ NNDEPLOY_ARCHITECTURE_X86
| #define NNDEPLOY_ARCHITECTURE_X86 0 |
◆ NNDEPLOY_C_API
| #define NNDEPLOY_C_API extern "C" NNDEPLOY_CC_API |
◆ NNDEPLOY_CC_API
◆ NNDEPLOY_DEFAULT_STR
| #define NNDEPLOY_DEFAULT_STR "nndeploy_default_str" |
string
Definition at line 74 of file macro.h.
◆ NNDEPLOY_DEPRECATED
| #define NNDEPLOY_DEPRECATED |
deprecated
Definition at line 67 of file macro.h.
◆ NNDEPLOY_FORCE_LOAD_LIB_SYMBOL
| #define NNDEPLOY_FORCE_LOAD_LIB_SYMBOL |
( |
|
TYPE | ) |
|
Value: TYPE *forceLoad(TYPE *ptr) { \
if (ptr == nullptr) return ptr; \
return ptr; \
}
Force load library symbol.
Definition at line 51 of file macro.h.
◆ NNDEPLOY_GENERATE_DEFAULT_STR
| #define NNDEPLOY_GENERATE_DEFAULT_STR |
( |
| ) |
|
Value: std::string file = __FILE__; \
std::string function = __FUNCTION__; \
std::string line = std::to_string(__LINE__); \
#define NNDEPLOY_DEFAULT_STR
string
Definition at line 77 of file macro.h.
◆ NNDEPLOY_LIKELY
| #define NNDEPLOY_LIKELY |
( |
|
expr | ) |
(expr) |
◆ NNDEPLOY_MAX
| #define NNDEPLOY_MAX |
( |
|
x, |
|
|
|
y |
|
) |
| ((x) > (y) ? (x) : (y)) |
◆ NNDEPLOY_MIN
| #define NNDEPLOY_MIN |
( |
|
x, |
|
|
|
y |
|
) |
| ((x) < (y) ? (x) : (y)) |
◆ NNDEPLOY_NAMESPACE_PLUS_TO_STR
| #define NNDEPLOY_NAMESPACE_PLUS_TO_STR |
( |
|
x | ) |
nndeploy_namespace##x |
◆ NNDEPLOY_OS_ANDROID
| #define NNDEPLOY_OS_ANDROID 0 |
◆ NNDEPLOY_OS_DARWIN
| #define NNDEPLOY_OS_DARWIN 0 |
◆ NNDEPLOY_OS_IOS
| #define NNDEPLOY_OS_IOS 0 |
◆ NNDEPLOY_OS_LINUX
| #define NNDEPLOY_OS_LINUX 0 |
◆ NNDEPLOY_OS_UNIX
| #define NNDEPLOY_OS_UNIX 0 |
◆ NNDEPLOY_OS_UNKNOWN [1/2]
| #define NNDEPLOY_OS_UNKNOWN 0 |
◆ NNDEPLOY_OS_UNKNOWN [2/2]
| #define NNDEPLOY_OS_UNKNOWN 1 |
◆ NNDEPLOY_OS_WINDOWS
| #define NNDEPLOY_OS_WINDOWS 0 |
◆ NNDEPLOY_PRAGMA
| #define NNDEPLOY_PRAGMA |
( |
|
X | ) |
_Pragma(#X) |
program
Definition at line 44 of file macro.h.
◆ NNDEPLOY_ROUND_UP
| #define NNDEPLOY_ROUND_UP |
( |
|
x, |
|
|
|
y |
|
) |
| |
Value: ((static_cast<int>(x) + static_cast<int>(y) - (1)) / static_cast<int>(y) * \
static_cast<int>(y))
Definition at line 92 of file macro.h.
◆ NNDEPLOY_TO_STR
| #define NNDEPLOY_TO_STR |
( |
|
x | ) |
#x |
◆ NNDEPLOY_UNLIKELY
| #define NNDEPLOY_UNLIKELY |
( |
|
expr | ) |
(expr) |
◆ NNDEPLOY_UP_DIV
| #define NNDEPLOY_UP_DIV |
( |
|
x, |
|
|
|
y |
|
) |
| ((static_cast<int>(x) + static_cast<int>(y) - (1)) / static_cast<int>(y)) |