server-skynet-source-3rd-je.../include/jemalloc/internal/jemalloc_internal_macros.h

34 lines
751 B
C
Raw Normal View History

#ifndef JEMALLOC_INTERNAL_MACROS_H
#define JEMALLOC_INTERNAL_MACROS_H
#ifdef JEMALLOC_DEBUG
# define JEMALLOC_ALWAYS_INLINE static inline
2013-12-06 13:43:46 +08:00
#else
# define JEMALLOC_ALWAYS_INLINE JEMALLOC_ATTR(always_inline) static inline
#endif
#ifdef _MSC_VER
# define inline _inline
2013-12-06 13:43:46 +08:00
#endif
#define UNUSED JEMALLOC_ATTR(unused)
2013-12-06 13:43:46 +08:00
#define ZU(z) ((size_t)z)
#define ZD(z) ((ssize_t)z)
#define QU(q) ((uint64_t)q)
#define QD(q) ((int64_t)q)
2013-12-06 13:43:46 +08:00
#define KZU(z) ZU(z##ULL)
#define KZD(z) ZD(z##LL)
#define KQU(q) QU(q##ULL)
#define KQD(q) QI(q##LL)
2013-12-06 13:43:46 +08:00
#ifndef __DECONST
# define __DECONST(type, var) ((type)(uintptr_t)(const void *)(var))
#endif
#if !defined(JEMALLOC_HAS_RESTRICT) || defined(__cplusplus)
# define restrict
#endif
#endif /* JEMALLOC_INTERNAL_MACROS_H */