#include <assert.h>
#include <stddef.h>
#include <stdlib.h>
#ifdef __ANDROID__
#include <malloc.h>
#endif
#include "xnnpack.h"
#include "xnnpack/allocator.h"
#include "xnnpack/common.h"
extern int posix_memalign(void **memptr, size_t alignment, size_t size);
static void* xnn_allocate(void* context, size_t size) { … }
static void* xnn_reallocate(void* context, void* pointer, size_t size) { … }
static void xnn_deallocate(void* context, void* pointer) { … }
static void* xnn_aligned_allocate(void* context, size_t alignment, size_t size) { … }
static void xnn_aligned_deallocate(void* context, void* pointer) { … }
const struct xnn_allocator xnn_default_allocator = …;