summaryrefslogtreecommitdiffstats
path: root/contrib/libs/lzma/liblzma/rangecoder/range_common.h
diff options
context:
space:
mode:
authorrobot-contrib <[email protected]>2024-03-21 01:54:21 +0300
committerrobot-contrib <[email protected]>2024-03-21 02:05:24 +0300
commit1f10341ce6cb9a6be3d28925d43bd3360c256d27 (patch)
tree1285bccd1140f69412cbf72f969da0d9af7fd9a5 /contrib/libs/lzma/liblzma/rangecoder/range_common.h
parentda5121777959fc5aab4a13d1cd50e5e6b9aa8972 (diff)
Update contrib/libs/lzma to 5.6.0
de6c124a343d1b577cd3e4a152607415cfd3de0e
Diffstat (limited to 'contrib/libs/lzma/liblzma/rangecoder/range_common.h')
-rw-r--r--contrib/libs/lzma/liblzma/rangecoder/range_common.h14
1 files changed, 10 insertions, 4 deletions
diff --git a/contrib/libs/lzma/liblzma/rangecoder/range_common.h b/contrib/libs/lzma/liblzma/rangecoder/range_common.h
index 2c74dc1537c..ac4dbe196f5 100644
--- a/contrib/libs/lzma/liblzma/rangecoder/range_common.h
+++ b/contrib/libs/lzma/liblzma/rangecoder/range_common.h
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: 0BSD
+
///////////////////////////////////////////////////////////////////////////////
//
/// \file range_common.h
@@ -6,15 +8,15 @@
// Authors: Igor Pavlov
// Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#ifndef LZMA_RANGE_COMMON_H
#define LZMA_RANGE_COMMON_H
-#include "common.h"
+// Skip common.h if building price_tablegen.c.
+#ifndef BUILDING_PRICE_TABLEGEN
+# include "common.h"
+#endif
///////////////
@@ -66,6 +68,10 @@
///
/// I will be sticking to uint16_t unless some specific architectures
/// are *much* faster (20-50 %) with uint32_t.
+///
+/// Update in 2024: The branchless C and x86-64 assembly was written so that
+/// probability is assumed to be uint16_t. (In contrast, LZMA SDK 23.01
+/// assembly supports both types.)
typedef uint16_t probability;
#endif