wasm-micro-runtime/core/shared/utils
liang.he@intel.com 779edfa277 feat(api): expose aligned allocation through wasm_runtime_aligned_alloc
Add public API for aligned memory allocation, exposing the existing
mem_allocator_malloc_aligned infrastructure through wasm_export.h.

- Add wasm_runtime_aligned_alloc() API declaration with documentation
- Implement internal helper wasm_runtime_aligned_alloc_internal()
- Add public function with size/alignment validation
- POOL mode only, returns NULL for other memory modes
- Follows wasm_runtime_malloc() patterns for consistency

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-04-16 09:00:06 +08:00
..
uncommon Enhance memory profiling with structured logging support (#4896) 2026-04-08 10:34:48 +08:00
bh_assert.c Use logger for runtime error/debug prints (#3097) 2024-02-06 13:02:54 +08:00
bh_assert.h Add a conditional check for the macro __STDC_VERSION__ (#4080) 2025-02-14 16:13:15 +08:00
bh_atomic.h Improvements for platform thread APIs on Windows and Zephyr (#3941) 2024-12-06 14:39:53 +08:00
bh_bitmap.c Fix data/elem drop (#2747) 2023-11-18 08:50:16 +08:00
bh_bitmap.h Fix compilation warnings on Windows (#2868) 2023-12-06 16:12:33 +08:00
bh_common.c Add bh_strtok_r function (#4790) 2026-01-20 09:13:22 +08:00
bh_common.h Add bh_strtok_r function (#4790) 2026-01-20 09:13:22 +08:00
bh_hashmap.c Fix some issues reported by CodeQL (#3064) 2024-01-23 21:38:30 +08:00
bh_hashmap.h Limit the minimal size of bh_hashmap (#2073) 2023-03-28 14:50:31 +08:00
bh_leb128.c [refactoring] Extract read leb to a separate file, share the code between loader and mini loader (#3701) 2024-08-14 08:46:24 +08:00
bh_leb128.h [refactoring] Extract read leb to a separate file, share the code between loader and mini loader (#3701) 2024-08-14 08:46:24 +08:00
bh_list.c fix: correct typos and improve comments across multiple files by codespell (#4116) 2025-03-07 08:21:54 +08:00
bh_list.h Fix issue in multi-thread sample (#1458) 2022-09-07 12:56:50 +08:00
bh_log.c Fix several typos and fix bh_log calculate mills (#3441) 2024-05-20 15:54:01 +08:00
bh_log.h Forward log and log level to custom bh_log callback (#3070) 2024-01-24 13:05:07 +08:00
bh_platform.h feat(api): expose aligned allocation through wasm_runtime_aligned_alloc 2026-04-16 09:00:06 +08:00
bh_queue.c Collective fix (#4808) 2026-01-28 15:55:19 +08:00
bh_queue.h Suppress the warnings when building with GCC11 (#1622) 2022-10-20 21:26:57 +08:00
bh_vector.c Collective fix (#4413) 2025-06-26 10:20:40 +08:00
bh_vector.h Enable lock for Vector to protect wasm-c-api read/write/extend operations (#1010) 2022-03-23 11:42:57 +08:00
gnuc.h Implement suspend flags as atomic variable (#2361) 2023-07-21 08:27:09 +08:00
runtime_timer.c Fix typos (#4472) 2025-07-14 13:12:08 +08:00
runtime_timer.h Suppress the warnings when building with GCC11 (#1622) 2022-10-20 21:26:57 +08:00
SConscript add porting codes of rt-thread (#494) 2021-01-14 11:26:35 +08:00
shared_utils.cmake re-org platform APIs, simplify porting process (#201) 2020-03-16 16:43:57 +08:00