From de35c4a705e4fbd20f12217cff623e09cceac397 Mon Sep 17 00:00:00 2001 From: Krzosa Karol Date: Wed, 22 Jan 2025 17:59:30 +0100 Subject: [PATCH] wasm f32_pow, f64_pow, lots of changes to math, ui animations start --- build_file.c | 2 +- package/index.html | 2 +- src/app/app_wasm.c | 2 +- src/app/app_wasm.html | 2 +- src/core/core.h | 23 +- src/core/core_intrin.c | 151 ++++++- src/core/core_math.c | 119 ++++-- src/core/core_math.gen.c | 840 ++++++++++++++++++------------------- src/core/core_math_gen.py | 74 ++-- src/core/core_test_entry.c | 3 + src/ui/ui.c | 71 +++- src/ui/ui.gen.c | 8 + src/ui/ui.gen.h | 4 + src/ui/ui.h | 3 + src/ui/ui.meta.c | 2 + src/ui/ui_inc.c | 3 + src/ui/ui_inc.h | 1 + src/wasm_app/main.c | 8 +- todo.txt | 1 + 19 files changed, 775 insertions(+), 544 deletions(-) create mode 100644 src/ui/ui_inc.c create mode 100644 src/ui/ui_inc.h diff --git a/build_file.c b/build_file.c index 98a9eaa..936b3b0 100644 --- a/build_file.c +++ b/build_file.c @@ -82,7 +82,7 @@ int main(int argc, char **argv) { ok = os_systemf( "clang.exe ../src/wasm_app/main.c -o main.wasm" " -Oz -g -I../src" - " -Wall -Wno-missing-braces -Wno-single-bit-bitfield-constant-conversion" + " -Wall -Wno-missing-braces -Wno-single-bit-bitfield-constant-conversion -Wno-unsequenced" " -fdiagnostics-absolute-paths -fdiagnostics-format=msvc" " --target=wasm32 -nostdlib -mbulk-memory -msimd128" " -Wl,-export-dynamic,--allow-undefined,--import-memory,--no-entry,--initial-memory=131072000,--max-memory=4294967296" diff --git a/package/index.html b/package/index.html index 1a558a7..4dc37d0 100644 --- a/package/index.html +++ b/package/index.html @@ -12,7 +12,7 @@