mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2025-02-08 16:05:07 +00:00
![wenyongh](/assets/img/avatar_default.png)
Use FastISel for JIT mode Use united aot version in aot file and aot runtime Disable check signature failed warning for wamrc Fix fast interpreter x86_32 float issue Remove unused empty lvgl folder
48 lines
907 B
C
48 lines
907 B
C
/*
|
|
* Copyright (C) 2019 Intel Corporation. All rights reserved.
|
|
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
*/
|
|
|
|
#ifndef __MEM_ALLOC_H
|
|
#define __MEM_ALLOC_H
|
|
|
|
#include "bh_platform.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
typedef void *mem_allocator_t;
|
|
|
|
mem_allocator_t
|
|
mem_allocator_create(void *mem, uint32_t size);
|
|
|
|
void
|
|
mem_allocator_destroy(mem_allocator_t allocator);
|
|
|
|
void *
|
|
mem_allocator_malloc(mem_allocator_t allocator, uint32_t size);
|
|
|
|
void *
|
|
mem_allocator_realloc(mem_allocator_t allocator, void *ptr, uint32_t size);
|
|
|
|
void
|
|
mem_allocator_free(mem_allocator_t allocator, void *ptr);
|
|
|
|
int
|
|
mem_allocator_migrate(mem_allocator_t allocator,
|
|
mem_allocator_t allocator_old);
|
|
|
|
int
|
|
mem_allocator_reinit_lock(mem_allocator_t allocator);
|
|
|
|
void
|
|
mem_allocator_destroy_lock(mem_allocator_t allocator);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* #ifndef __MEM_ALLOC_H */
|
|
|