From f2b0a31bb3fef3dbe67042b35eb69e66d12ad536 Mon Sep 17 00:00:00 2001 From: Lamdonn Date: Wed, 19 Nov 2025 22:31:52 +0800 Subject: [PATCH] 1. Fix test_floatl.c compile fail issue 2. Update muti-core compile run.sh --- run.sh | 4 ++-- test/test_floatl.c | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/run.sh b/run.sh index b8449e2..b6d044c 100644 --- a/run.sh +++ b/run.sh @@ -10,9 +10,9 @@ fi echo "compilling..." if [ "$1" == "debug" ]; then - make CFLAG=-g + make -j CFLAG=-g else - make + make -j fi if [ -f $exe_file ]; then diff --git a/test/test_floatl.c b/test/test_floatl.c index 46421d6..ab2aea4 100644 --- a/test/test_floatl.c +++ b/test/test_floatl.c @@ -4,6 +4,7 @@ #include #include #include +#include #if defined(TEST_TARGET_floatl) #include #include @@ -295,8 +296,8 @@ float double_to_float(double d) } // 将 double 的二进制表示转换为 uint64_t -typedef unsigned long long uint64_t; -typedef long long int64_t; +// typedef unsigned long long uint64_t; +// typedef long long int64_t; uint64_t double_to_bits(double x) { return *((uint64_t*)&x);