27 lines
877 B
Diff
27 lines
877 B
Diff
|
|
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
|
||
|
|
|