This repository has been archived on 2023-11-05. You can view files and clone it, but cannot push or open issues or pull requests.
wasm-micro-runtime/core/iwasm/compilation/simd
Wenyong Huang a5188f5574
Add checks to avoid wasm_runtime_malloc memory with size 0 (#507)
In some platforms, allocating memory with size 0 may return NULL but not an empty memory block, which causes runtime load, instantiate or execute wasm/aot file failed. We add checks to try to avoid allocating memory in runtime if the size is 0. And in wasm_runtime_malloc/free, output warning if allocate memory with size 0 and free memory with NULL ptr.
Also fix some coding style issues, fix handle riscv32 ilp32d issue, and fix several wasm-c-api issues.

Signed-off-by: Wenyong Huang <wenyong.huang@intel.com>
2021-01-28 16:16:02 +08:00
..
simd_access_lanes.c Add checks to avoid wasm_runtime_malloc memory with size 0 (#507) 2021-01-28 16:16:02 +08:00
simd_access_lanes.h Import SIMD feature and add some workload samples (#438) 2020-11-05 18:15:15 +08:00
simd_bit_shifts.c Import SIMD feature and add some workload samples (#438) 2020-11-05 18:15:15 +08:00
simd_bit_shifts.h Import SIMD feature and add some workload samples (#438) 2020-11-05 18:15:15 +08:00
simd_bitmask_extracts.c Import SIMD feature and add some workload samples (#438) 2020-11-05 18:15:15 +08:00
simd_bitmask_extracts.h Import SIMD feature and add some workload samples (#438) 2020-11-05 18:15:15 +08:00
simd_bitwise_ops.c Import SIMD feature and add some workload samples (#438) 2020-11-05 18:15:15 +08:00
simd_bitwise_ops.h Import SIMD feature and add some workload samples (#438) 2020-11-05 18:15:15 +08:00
simd_bool_reductions.c Import SIMD feature and add some workload samples (#438) 2020-11-05 18:15:15 +08:00
simd_bool_reductions.h Import SIMD feature and add some workload samples (#438) 2020-11-05 18:15:15 +08:00
simd_common.c Import SIMD feature and add some workload samples (#438) 2020-11-05 18:15:15 +08:00
simd_common.h Import SIMD feature and add some workload samples (#438) 2020-11-05 18:15:15 +08:00
simd_comparisons.c Import SIMD feature and add some workload samples (#438) 2020-11-05 18:15:15 +08:00
simd_comparisons.h Import SIMD feature and add some workload samples (#438) 2020-11-05 18:15:15 +08:00
simd_construct_values.c Import SIMD feature and add some workload samples (#438) 2020-11-05 18:15:15 +08:00
simd_construct_values.h Import SIMD feature and add some workload samples (#438) 2020-11-05 18:15:15 +08:00
simd_conversions.c Import SIMD feature and add some workload samples (#438) 2020-11-05 18:15:15 +08:00
simd_conversions.h Import SIMD feature and add some workload samples (#438) 2020-11-05 18:15:15 +08:00
simd_floating_point.c Implement SIMD float ceil/floor/trunc/nearest opcodes (#472) 2020-12-16 15:33:25 +08:00
simd_floating_point.h Implement SIMD float ceil/floor/trunc/nearest opcodes (#472) 2020-12-16 15:33:25 +08:00
simd_int_arith.c Import SIMD feature and add some workload samples (#438) 2020-11-05 18:15:15 +08:00
simd_int_arith.h Import SIMD feature and add some workload samples (#438) 2020-11-05 18:15:15 +08:00
simd_load_store.c Import SIMD feature and add some workload samples (#438) 2020-11-05 18:15:15 +08:00
simd_load_store.h Import SIMD feature and add some workload samples (#438) 2020-11-05 18:15:15 +08:00
simd_sat_int_arith.c Import SIMD feature and add some workload samples (#438) 2020-11-05 18:15:15 +08:00
simd_sat_int_arith.h Import SIMD feature and add some workload samples (#438) 2020-11-05 18:15:15 +08:00