mirror of
https://gitee.com/Lamdonn/varch.git
synced 2025-12-06 08:46:42 +08:00
1. Fix test_floatl.c compile fail issue
2. Update muti-core compile run.sh
This commit is contained in:
parent
49025692ca
commit
f2b0a31bb3
4
run.sh
4
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
|
||||
|
||||
@ -4,6 +4,7 @@
|
||||
#include <time.h>
|
||||
#include <math.h>
|
||||
#include <float.h>
|
||||
#include <stdint.h>
|
||||
#if defined(TEST_TARGET_floatl)
|
||||
#include <varch/command.h>
|
||||
#include <varch/unitt.h>
|
||||
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user