1 Star 0 Fork 19

gordonwwang / snappy

forked from src-openEuler / snappy 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
fix-the-AdvanceToNextTag-fails-to-be-compiled-without-inline.patch 877 Bytes
一键复制 编辑 原始数据 按行查看 历史
renmingshuai 提交于 2021-12-24 16:24 . update version to 1.1.9
From 581af0c0a819da2214466e4d30416616966e781d Mon Sep 17 00:00:00 2001
From: hanxinke <hanxinke@huawei.com>
Date: Tue, 7 Dec 2021 15:47:14 +0800
Subject: [PATCH] fix the AdvanceToNextTag fails to be compiled without inline
Signed-off-by: hanxinke <hanxinke@huawei.com>
---
snappy.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/snappy.cc b/snappy.cc
index 79dc0e8..51157be 100644
--- a/snappy.cc
+++ b/snappy.cc
@@ -1014,7 +1014,7 @@ void MemMove(ptrdiff_t dst, const void* src, size_t size) {
}
SNAPPY_ATTRIBUTE_ALWAYS_INLINE
-size_t AdvanceToNextTag(const uint8_t** ip_p, size_t* tag) {
+inline size_t AdvanceToNextTag(const uint8_t** ip_p, size_t* tag) {
const uint8_t*& ip = *ip_p;
// This section is crucial for the throughput of the decompression loop.
// The latency of an iteration is fundamentally constrained by the
--
1.8.3.1
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/gordonwwang/snappy.git
git@gitee.com:gordonwwang/snappy.git
gordonwwang
snappy
snappy
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891