diff --git a/deps/TSZ b/deps/TSZ index ceda5bf9fcd7836509ac97dcc0056b3f1dd48cc5..11c1060d4f917dd799ae628b131db5d6a5ef6954 160000 --- a/deps/TSZ +++ b/deps/TSZ @@ -1 +1 @@ -Subproject commit ceda5bf9fcd7836509ac97dcc0056b3f1dd48cc5 +Subproject commit 11c1060d4f917dd799ae628b131db5d6a5ef6954 diff --git a/src/kit/taospack/taospack.c b/src/kit/taospack/taospack.c index ddb9e660af4b4c479c0d8bc4b8be47c9f900dfce..9e7355b42af8fe296975f78960639de0a43a4d18 100644 --- a/src/kit/taospack/taospack.c +++ b/src/kit/taospack/taospack.c @@ -712,6 +712,15 @@ void leakTest(){ } #define DB_CNT 500 +void test_same_float(int algo, bool lossy){ + float ori = 123.456789123; + float floats [DB_CNT]; + for(int i=0; i< DB_CNT; i++){ + floats[i] = ori; + } + DoFloat(floats, DB_CNT, algo, lossy); +} + void test_same_double(int algo){ double ori = 3.1415926; @@ -721,7 +730,6 @@ void test_same_double(int algo){ } DoDouble(doubles, DB_CNT, algo); - } #ifdef TD_TSZ @@ -781,6 +789,10 @@ int main(int argc, char *argv[]) { return 0; } + if(strcmp(argv[1], "-samef") == 0) { + test_same_float(atoi(argv[2]), true); + return 0; + } if(strcmp(argv[1], "-samed") == 0) { test_same_double(atoi(argv[2])); return 0;