aboutsummaryrefslogtreecommitdiff
path: root/linux/lib/xz/xz_stream.h
diff options
context:
space:
mode:
Diffstat (limited to 'linux/lib/xz/xz_stream.h')
-rw-r--r--linux/lib/xz/xz_stream.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/linux/lib/xz/xz_stream.h b/linux/lib/xz/xz_stream.h
index de35e67..bb70b09 100644
--- a/linux/lib/xz/xz_stream.h
+++ b/linux/lib/xz/xz_stream.h
@@ -40,4 +40,7 @@ typedef uint64_t vli_type;
#define VLI_MAX ((vli_type)-1 / 2)
#define VLI_UNKNOWN ((vli_type)-1)
+/* Maximum encoded size of a VLI */
+#define VLI_BYTES_MAX (sizeof(vli_type) * 8 / 7)
+
#endif