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);