Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
9b720e07
T
TDengine
项目概览
taosdata
/
TDengine
1 年多 前同步成功
通知
1185
Star
22016
Fork
4786
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
TDengine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
9b720e07
编写于
7月 08, 2021
作者:
T
tickduan
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
compatible windows os
上级
ddcd211f
变更
9
隐藏空白更改
内联
并排
Showing
9 changed file
with
19 addition
and
18 deletion
+19
-18
deps/SZ/sz/include/ByteToolkit.h
deps/SZ/sz/include/ByteToolkit.h
+1
-2
deps/SZ/sz/include/dictionary.h
deps/SZ/sz/include/dictionary.h
+0
-1
deps/SZ/sz/include/sz.h
deps/SZ/sz/include/sz.h
+0
-1
deps/SZ/sz/src/conf.c
deps/SZ/sz/src/conf.c
+1
-7
deps/SZ/sz/src/dataCompression.c
deps/SZ/sz/src/dataCompression.c
+0
-1
deps/SZ/sz/src/dictionary.c
deps/SZ/sz/src/dictionary.c
+0
-1
deps/SZ/sz/src/sz.c
deps/SZ/sz/src/sz.c
+17
-3
deps/SZ/sz/src/sz_double.c
deps/SZ/sz/src/sz_double.c
+0
-1
deps/SZ/sz/src/sz_float.c
deps/SZ/sz/src/sz_float.c
+0
-1
未找到文件。
deps/SZ/sz/include/ByteToolkit.h
浏览文件 @
9b720e07
...
@@ -26,8 +26,7 @@ short getExponent_float(float value);
...
@@ -26,8 +26,7 @@ short getExponent_float(float value);
short
getPrecisionReqLength_float
(
float
precision
);
short
getPrecisionReqLength_float
(
float
precision
);
short
getExponent_double
(
double
value
);
short
getExponent_double
(
double
value
);
short
getPrecisionReqLength_double
(
double
precision
);
short
getPrecisionReqLength_double
(
double
precision
);
unsigned
char
numberOfLeadingZeros_Int
(
int
i
);
unsigned
char
numberOfLeadingZeros_Long
(
long
i
);
float
bytesToFloat
(
unsigned
char
*
bytes
);
float
bytesToFloat
(
unsigned
char
*
bytes
);
void
floatToBytes
(
unsigned
char
*
b
,
float
num
);
void
floatToBytes
(
unsigned
char
*
b
,
float
num
);
double
bytesToDouble
(
unsigned
char
*
bytes
);
double
bytesToDouble
(
unsigned
char
*
bytes
);
...
...
deps/SZ/sz/include/dictionary.h
浏览文件 @
9b720e07
...
@@ -21,7 +21,6 @@
...
@@ -21,7 +21,6 @@
#include <stdio.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdlib.h>
#include <string.h>
#include <string.h>
#include <unistd.h>
/*---------------------------------------------------------------------------
/*---------------------------------------------------------------------------
New types
New types
...
...
deps/SZ/sz/include/sz.h
浏览文件 @
9b720e07
...
@@ -12,7 +12,6 @@
...
@@ -12,7 +12,6 @@
#include <stdio.h>
#include <stdio.h>
#include <stdint.h>
#include <stdint.h>
#include <sys/time.h>
/* For gettimeofday(), in microseconds */
#include <time.h>
/* For time(), in seconds */
#include <time.h>
/* For time(), in seconds */
#include "pub.h"
#include "pub.h"
#include "CompressElement.h"
#include "CompressElement.h"
...
...
deps/SZ/sz/src/conf.c
浏览文件 @
9b720e07
...
@@ -138,7 +138,7 @@ int SZ_ReadConf(const char* sz_cfgFile) {
...
@@ -138,7 +138,7 @@ int SZ_ReadConf(const char* sz_cfgFile) {
// default option
// default option
if
(
sz_cfgFile
==
NULL
||
access
(
sz_cfgFile
,
F_OK
)
!=
0
)
if
(
sz_cfgFile
==
NULL
)
{
{
dataEndianType
=
LITTLE_ENDIAN_DATA
;
dataEndianType
=
LITTLE_ENDIAN_DATA
;
setDefaulParams
(
exe_params
,
confparams_cpr
);
setDefaulParams
(
exe_params
,
confparams_cpr
);
...
@@ -146,12 +146,6 @@ int SZ_ReadConf(const char* sz_cfgFile) {
...
@@ -146,12 +146,6 @@ int SZ_ReadConf(const char* sz_cfgFile) {
return
SZ_SUCCESS
;
return
SZ_SUCCESS
;
}
}
if
(
access
(
sz_cfgFile
,
F_OK
)
!=
0
)
{
printf
(
"[SZ] Configuration file NOT accessible.
\n
"
);
return
SZ_FAILED
;
}
//printf("[SZ] Reading SZ configuration file (%s) ...\n", sz_cfgFile);
//printf("[SZ] Reading SZ configuration file (%s) ...\n", sz_cfgFile);
ini
=
iniparser_load
(
sz_cfgFile
);
ini
=
iniparser_load
(
sz_cfgFile
);
if
(
ini
==
NULL
)
if
(
ini
==
NULL
)
...
...
deps/SZ/sz/src/dataCompression.c
浏览文件 @
9b720e07
...
@@ -10,7 +10,6 @@
...
@@ -10,7 +10,6 @@
#include <stdio.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdlib.h>
#include <string.h>
#include <string.h>
#include <unistd.h>
#include "sz.h"
#include "sz.h"
#include "DynamicByteArray.h"
#include "DynamicByteArray.h"
#include "DynamicIntArray.h"
#include "DynamicIntArray.h"
...
...
deps/SZ/sz/src/dictionary.c
浏览文件 @
9b720e07
...
@@ -18,7 +18,6 @@
...
@@ -18,7 +18,6 @@
#include <stdio.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdlib.h>
#include <string.h>
#include <string.h>
#include <unistd.h>
/** Maximum value size for integers and doubles. */
/** Maximum value size for integers and doubles. */
#define MAXVALSZ 1024
#define MAXVALSZ 1024
...
...
deps/SZ/sz/src/sz.c
浏览文件 @
9b720e07
...
@@ -11,7 +11,6 @@
...
@@ -11,7 +11,6 @@
#include <stdio.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdlib.h>
#include <string.h>
#include <string.h>
#include <unistd.h>
#include "sz.h"
#include "sz.h"
#include "CompressElement.h"
#include "CompressElement.h"
#include "DynamicByteArray.h"
#include "DynamicByteArray.h"
...
@@ -21,6 +20,7 @@
...
@@ -21,6 +20,7 @@
#include "conf.h"
#include "conf.h"
#include "utility.h"
#include "utility.h"
//#include "CurveFillingCompressStorage.h"
//#include "CurveFillingCompressStorage.h"
unsigned
char
versionNumber
=
DATA_FROMAT_VER1
;
unsigned
char
versionNumber
=
DATA_FROMAT_VER1
;
...
@@ -170,14 +170,27 @@ void modulePath(char *buf, int size)
...
@@ -170,14 +170,27 @@ void modulePath(char *buf, int size)
pos
[
1
]
=
0
;
pos
[
1
]
=
0
;
}
}
#ifdef WINDOWS
int
gettimeofday
(
struct
timeval
*
tv
,
struct
timezone
*
tz
)
{
time_t
t
;
t
=
time
(
NULL
);
SYSTEMTIME
st
;
GetLocalTime
(
&
st
);
tv
->
tv_sec
=
(
long
)
t
;
tv
->
tv_usec
=
st
.
wMilliseconds
*
1000
;
return
0
;
}
#else
#include <sys/time.h>
#endif
struct
timeval
startTime
;
struct
timeval
startTime
;
struct
timeval
endTime
;
/* Start and end times */
struct
timeval
endTime
;
/* Start and end times */
struct
timeval
costStart
;
/*only used for recording the cost*/
struct
timeval
costStart
;
/*only used for recording the cost*/
double
totalCost
=
0
;
double
totalCost
=
0
;
void
cost_start
()
void
cost_start
()
{
{
totalCost
=
0
;
totalCost
=
0
;
...
@@ -201,3 +214,4 @@ void show_rate(int in_len, int out_len)
...
@@ -201,3 +214,4 @@ void show_rate(int in_len, int out_len)
float
rate
=
100
*
(
float
)
out_len
/
(
float
)
in_len
;
float
rate
=
100
*
(
float
)
out_len
/
(
float
)
in_len
;
printf
(
" in_len=%d out_len=%d compress rate=%.4f%%
\n
"
,
in_len
,
out_len
,
rate
);
printf
(
" in_len=%d out_len=%d compress rate=%.4f%%
\n
"
,
in_len
,
out_len
,
rate
);
}
}
deps/SZ/sz/src/sz_double.c
浏览文件 @
9b720e07
...
@@ -11,7 +11,6 @@
...
@@ -11,7 +11,6 @@
#include <stdio.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdlib.h>
#include <string.h>
#include <string.h>
#include <unistd.h>
#include <math.h>
#include <math.h>
#include "sz.h"
#include "sz.h"
#include "CompressElement.h"
#include "CompressElement.h"
...
...
deps/SZ/sz/src/sz_float.c
浏览文件 @
9b720e07
...
@@ -12,7 +12,6 @@
...
@@ -12,7 +12,6 @@
#include <stdio.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdlib.h>
#include <string.h>
#include <string.h>
#include <unistd.h>
#include <math.h>
#include <math.h>
#include "sz.h"
#include "sz.h"
#include "CompressElement.h"
#include "CompressElement.h"
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录