aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2010-11-24 13:19:28 +0200
committerLasse Collin <lasse.collin@tukaani.org>2010-11-24 13:19:28 +0200
commit6ae0a26583cbcaba47a9beed0ad41ff64d264182 (patch)
tree6459f05483fbe532ce40ef829736639bb63c4979
parent1e44a8999bd27987332e15b436b1cc2b2b9c01ef (diff)
downloadxz-embedded-6ae0a26583cbcaba47a9beed0ad41ff64d264182.tar.gz
Add a comment about using uint32_t as vli_type.
-rw-r--r--linux/lib/xz/xz_stream.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/linux/lib/xz/xz_stream.h b/linux/lib/xz/xz_stream.h
index 2ffaa34..66cb5a7 100644
--- a/linux/lib/xz/xz_stream.h
+++ b/linux/lib/xz/xz_stream.h
@@ -32,8 +32,13 @@
#define FOOTER_MAGIC_SIZE 2
/*
- * Variable-length integer can hold a 63-bit unsigned integer, or a special
- * value to indicate that the value is unknown.
+ * Variable-length integer can hold a 63-bit unsigned integer or a special
+ * value indicating that the value is unknown.
+ *
+ * Experimental: vli_type can be defined to uint32_t to save a few bytes
+ * in code size (no effect on speed). Doing so limits the uncompressed and
+ * compressed size of the file to less than 256 MiB and may also weaken
+ * error detection slightly.
*/
typedef uint64_t vli_type;