chromium/third_party/xnnpack/src/src/allocator.c

// Copyright 2019 Google LLC
//
// This source code is licensed under the BSD-style license found in the
// LICENSE file in the root directory of this source tree.

#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 =;