From 253d741f77a351a919a7ac7df7b33b8e04d1c772 Mon Sep 17 00:00:00 2001 From: Maks Litskevich Date: Mon, 27 Jan 2025 15:57:58 +0000 Subject: [PATCH] formatting commit --- core/iwasm/interpreter/wasm_interp_fast.c | 6 +++--- core/iwasm/interpreter/wasm_loader.c | 2 +- core/iwasm/interpreter/wasm_opcode.h | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/core/iwasm/interpreter/wasm_interp_fast.c b/core/iwasm/interpreter/wasm_interp_fast.c index 384bc0ad3..c8f00aed9 100644 --- a/core/iwasm/interpreter/wasm_interp_fast.c +++ b/core/iwasm/interpreter/wasm_interp_fast.c @@ -47,7 +47,7 @@ typedef float64 CellType_F64; && (app_addr) <= shared_heap_end_off - bytes + 1) #define shared_heap_addr_app_to_native(app_addr, native_addr) \ - native_addr = shared_heap_base_addr + ((app_addr) - shared_heap_start_off) + native_addr = shared_heap_base_addr + ((app_addr)-shared_heap_start_off) #define CHECK_SHARED_HEAP_OVERFLOW(app_addr, bytes, native_addr) \ if (app_addr_in_shared_heap(app_addr, bytes)) \ @@ -1793,7 +1793,7 @@ wasm_interp_call_func_bytecode(WASMModuleInstance *module, else cur_func_type = cur_func->u.func->func_type; - /* clang-format off */ + /* clang-format off */ #if WASM_ENABLE_GC == 0 if (cur_type != cur_func_type) { wasm_set_exception(module, "indirect call type mismatch"); @@ -5897,7 +5897,7 @@ wasm_interp_call_func_bytecode(WASMModuleInstance *module, addr = GET_OPERAND(uint32, I32, 0); \ frame_ip += 2; \ addr_ret = GET_OFFSET(); \ - CHECK_MEMORY_OVERFLOW(4); \ + CHECK_MEMORY_OVERFLOW(4); \ \ simde_v128_t simde_result = simde_func(maddr); \ \ diff --git a/core/iwasm/interpreter/wasm_loader.c b/core/iwasm/interpreter/wasm_loader.c index 1eb13d7dd..efd95f426 100644 --- a/core/iwasm/interpreter/wasm_loader.c +++ b/core/iwasm/interpreter/wasm_loader.c @@ -13217,7 +13217,7 @@ re_scan: #endif *p_org = WASM_OP_GET_GLOBAL_64; } -#else /* else of WASM_ENABLE_FAST_INTERP */ +#else /* else of WASM_ENABLE_FAST_INTERP */ if (global_type == VALUE_TYPE_I64 || global_type == VALUE_TYPE_F64) { skip_label(); diff --git a/core/iwasm/interpreter/wasm_opcode.h b/core/iwasm/interpreter/wasm_opcode.h index 47036e0db..0ddf8153a 100644 --- a/core/iwasm/interpreter/wasm_opcode.h +++ b/core/iwasm/interpreter/wasm_opcode.h @@ -807,7 +807,7 @@ typedef enum WASMAtomicEXTOpcode { SET_GOTO_TABLE_ELEM(EXT_OP_TEE_LOCAL_FAST_V128), \ SET_GOTO_TABLE_ELEM(EXT_OP_COPY_STACK_TOP_V128), \ SET_GOTO_TABLE_ELEM(WASM_OP_GET_GLOBAL_128), \ - SET_GOTO_TABLE_ELEM(WASM_OP_SET_GLOBAL_128), \ + SET_GOTO_TABLE_ELEM(WASM_OP_SET_GLOBAL_128), #else #define DEF_EXT_V128_HANDLE()