mirror of
https://github.com/espressif/tlsf.git
synced 2025-11-16 04:24:45 +00:00
move tlsf_min, tlsf_max, tlsf_cast to the tlsf_common.h header file
This commit is contained in:
committed by
Guillaume Souchere
parent
6723d4fc98
commit
bfd855894d
8
tlsf.c
8
tlsf.c
@@ -199,14 +199,6 @@ tlsf_decl int tlsf_fls_sizet(size_t size)
|
||||
|
||||
#undef tlsf_decl
|
||||
|
||||
/*
|
||||
** Cast and min/max macros.
|
||||
*/
|
||||
|
||||
#define tlsf_cast(t, exp) ((t) (exp))
|
||||
#define tlsf_min(a, b) ((a) < (b) ? (a) : (b))
|
||||
#define tlsf_max(a, b) ((a) > (b) ? (a) : (b))
|
||||
|
||||
/*
|
||||
** Set assert macro, if it has not been provided by the user.
|
||||
*/
|
||||
|
||||
@@ -14,6 +14,13 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*
|
||||
** Cast and min/max macros.
|
||||
*/
|
||||
#define tlsf_cast(t, exp) ((t) (exp))
|
||||
#define tlsf_min(a, b) ((a) < (b) ? (a) : (b))
|
||||
#define tlsf_max(a, b) ((a) > (b) ? (a) : (b))
|
||||
|
||||
enum tlsf_config
|
||||
{
|
||||
/* log2 of number of linear subdivisions of block sizes. Larger
|
||||
|
||||
Reference in New Issue
Block a user