aboutsummaryrefslogtreecommitdiff
path: root/linux/lib/decompress_unxz.c
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2022-02-16 01:15:29 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2022-02-16 01:15:29 +0000
commite8fb28aa70cd5aeb474cc8c4f8fea29fbb4eac7d (patch)
tree25be5bb14dfc867edd537e18b3ee4fe6164a1ac1 /linux/lib/decompress_unxz.c
parent32efd47eadda7fd3e0f2d58b5d4951ccb0a500a8 (diff)
parentc00609bae91c859a075ad63c98ee7bc859064692 (diff)
downloadxz-embedded-e8fb28aa70cd5aeb474cc8c4f8fea29fbb4eac7d.tar.gz
Snap for 8188146 from c00609bae91c859a075ad63c98ee7bc859064692 to tm-frc-media-swcodec-release
Change-Id: I50a6628486207f1426c1493b4ee38fb6e4dd7133
Diffstat (limited to 'linux/lib/decompress_unxz.c')
-rw-r--r--linux/lib/decompress_unxz.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/linux/lib/decompress_unxz.c b/linux/lib/decompress_unxz.c
index 7dfdde7..9f34eb5 100644
--- a/linux/lib/decompress_unxz.c
+++ b/linux/lib/decompress_unxz.c
@@ -20,10 +20,10 @@
*
* The worst case for in-place decompression is that the beginning of
* the file is compressed extremely well, and the rest of the file is
- * incompressible. Thus, we must look for worst-case expansion when the
- * compressor is encoding incompressible data.
+ * uncompressible. Thus, we must look for worst-case expansion when the
+ * compressor is encoding uncompressible data.
*
- * The structure of the .xz file in case of a compressed kernel is as follows.
+ * The structure of the .xz file in case of a compresed kernel is as follows.
* Sizes (as bytes) of the fields are in parenthesis.
*
* Stream Header (12)
@@ -58,7 +58,7 @@
* uncompressed size of the payload is in practice never less than the
* payload size itself. The LZMA2 format would allow uncompressed size
* to be less than the payload size, but no sane compressor creates such
- * files. LZMA2 supports storing incompressible data in uncompressed form,
+ * files. LZMA2 supports storing uncompressible data in uncompressed form,
* so there's never a need to create payloads whose uncompressed size is
* smaller than the compressed size.
*
@@ -167,8 +167,8 @@
* memeq and memzero are not used much and any remotely sane implementation
* is fast enough. memcpy/memmove speed matters in multi-call mode, but
* the kernel image is decompressed in single-call mode, in which only
- * memmove speed can matter and only if there is a lot of incompressible data
- * (LZMA2 stores incompressible chunks in uncompressed form). Thus, the
+ * memcpy speed can matter and only if there is a lot of uncompressible data
+ * (LZMA2 stores uncompressible chunks in uncompressed form). Thus, the
* functions below should just be kept small; it's probably not worth
* optimizing for speed.
*/