Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/marian-nmt/sentencepiece.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/util.h')
-rw-r--r--src/util.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/util.h b/src/util.h
index bf8a758..b390d4c 100644
--- a/src/util.h
+++ b/src/util.h
@@ -339,7 +339,7 @@ inline std::string JoinPath(absl::string_view path) {
}
template <typename... T>
-inline std::string JoinPath(absl::string_view first, const T &... rest) {
+inline std::string JoinPath(absl::string_view first, const T &...rest) {
#ifdef OS_WIN
return JoinPath(first) + "\\" + JoinPath(rest...);
#else
@@ -412,6 +412,8 @@ class StatusBuilder {
#define CHECK_GT_OR_RETURN(a, b) CHECK_OR_RETURN((a) > (b))
#define CHECK_LT_OR_RETURN(a, b) CHECK_OR_RETURN((a) < (b))
+inline uint32 Swap32(uint32 x) { return __builtin_bswap32(x); }
+
} // namespace util
namespace port {