This is an automated email from the ASF dual-hosted git repository.
masahi pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tvm.git
The following commit(s) were added to refs/heads/main by this push:
new 8826c1c386 Mark base64.h encode and decode API's as inline (#13556)
8826c1c386 is described below
commit 8826c1c386ca0bbba96cbd2ea3be235ab30411d4
Author: Krishna Bindumadhavan <[email protected]>
AuthorDate: Wed Dec 7 00:45:06 2022 +0530
Mark base64.h encode and decode API's as inline (#13556)
---
src/contrib/torch/base64.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/contrib/torch/base64.h b/src/contrib/torch/base64.h
index 859fd1abcf..d7dac4b86c 100644
--- a/src/contrib/torch/base64.h
+++ b/src/contrib/torch/base64.h
@@ -36,7 +36,7 @@
namespace tvm {
namespace support {
-size_t b64strlen(const std::string b64str) {
+inline size_t b64strlen(const std::string b64str) {
ICHECK(b64str.size() % 4 == 0) << "invalid base64 encoding";
size_t length = b64str.size() / 4 * 3;
if (b64str[b64str.size() - 2] == '=') {
@@ -47,7 +47,7 @@ size_t b64strlen(const std::string b64str) {
return length;
}
-void b64decode(const std::string b64str, u_char* ret) {
+inline void b64decode(const std::string b64str, u_char* ret) {
size_t index = 0;
const auto length = b64str.size();
for (size_t i = 0; i < length; i += 4) {