#ifndef __PLATFORM_H
#define __PLATFORM_H
#if TARGET_OS_EMBEDDED
#define MALLOC_TARGET_IOS 1
#else // MALLOC_TARGET_IOS
#define MALLOC_TARGET_IOS 0
#endif // MALLOC_TARGET_IOS
#ifdef __LP64__
#define MALLOC_TARGET_64BIT 1
#else // __LP64__
#define MALLOC_TARGET_64BIT 0
#endif
#if MALLOC_TARGET_IOS
# define CONFIG_MADVISE_PRESSURE_RELIEF 0
#else // MALLOC_TARGET_IOS
# define CONFIG_MADVISE_PRESSURE_RELIEF 1
#endif // MALLOC_TARGET_IOS
#if MALLOC_TARGET_IOS
# define CONFIG_RECIRC_DEPOT 0
# define CONFIG_AGGRESSIVE_MADVISE 1
#else // MALLOC_TARGET_IOS
# define CONFIG_RECIRC_DEPOT 1
# define CONFIG_AGGRESSIVE_MADVISE 0
#endif // MALLOC_TARGET_IOS
#define CONFIG_RELAXED_INVARIANT_CHECKS 1
#define CONFIG_MADVISE_STYLE MADV_FREE_REUSABLE
#if TARGET_OS_SIMULATOR
#define CONFIG_OS_LOCK_HANDOFF 1
#elif MALLOC_TARGET_IOS
#define CONFIG_OS_LOCK_UNFAIR 1
#else // MALLOC_TARGET_IOS
#define CONFIG_OS_LOCK_UNFAIR 1
#endif // MALLOC_TARGET_IOS
#if MALLOC_TARGET_64BIT
#define CONFIG_NANOZONE 1
#define CONFIG_ASLR_INTERNAL 0
#else // MALLOC_TARGET_64BIT
#define CONFIG_NANOZONE 0
#define CONFIG_ASLR_INTERNAL 1
#endif // MALLOC_TARGET_64BIT
#define NANO_FREE_DEQUEUE_DILIGENCE 1
#define CONFIG_TINY_CACHE 1
#define CONFIG_SMALL_CACHE 1
#if MALLOC_TARGET_IOS
#define CONFIG_LARGE_CACHE 0
#else
#define CONFIG_LARGE_CACHE 1
#endif
#if MALLOC_TARGET_IOS
#define CONFIG_SMALL_CUTTOFF_127KB 0
#else
#define CONFIG_SMALL_CUTTOFF_127KB 1
#endif // MALLOC_TARGET_IOS
#if MALLOC_TARGET_IOS || TARGET_OS_SIMULATOR
#define ENABLE_MEMORY_RESOURCE_EXCEPTION_HANDLING 0
#else
#define ENABLE_MEMORY_RESOURCE_EXCEPTION_HANDLING 1
#endif
#define CONFIG_HAS_COMMPAGE_MEMSIZE 1
#endif // __PLATFORM_H