]> granicus.if.org Git - xz/log
xz
9 years agoxz: Make arg_count an unsigned int to silence a warning.
Lasse Collin [Sat, 7 Mar 2015 17:54:00 +0000 (19:54 +0200)]
xz: Make arg_count an unsigned int to silence a warning.

Actually the value of arg_count cannot exceed INT_MAX
but it's nicer as an unsigned int.

9 years agoliblzma: Fix a warning in index.c.
Lasse Collin [Sat, 7 Mar 2015 17:33:17 +0000 (19:33 +0200)]
liblzma: Fix a warning in index.c.

9 years agoBuild: Fix a CR+LF problem when running autoreconf -fi on OS/2.
Lasse Collin [Thu, 26 Feb 2015 18:46:14 +0000 (20:46 +0200)]
Build: Fix a CR+LF problem when running autoreconf -fi on OS/2.

9 years agoBump version and soname for 5.2.1. v5.2.1
Lasse Collin [Thu, 26 Feb 2015 14:53:44 +0000 (16:53 +0200)]
Bump version and soname for 5.2.1.

9 years agoUpdate NEWS for 5.2.1.
Lasse Collin [Thu, 26 Feb 2015 11:01:09 +0000 (13:01 +0200)]
Update NEWS for 5.2.1.

9 years agoxz: Use pipe2() if available.
Lasse Collin [Sun, 22 Feb 2015 17:38:48 +0000 (19:38 +0200)]
xz: Use pipe2() if available.

9 years agoliblzma: Fix a compression-ratio regression in LZMA1/2 in fast mode.
Lasse Collin [Sat, 21 Feb 2015 21:40:26 +0000 (23:40 +0200)]
liblzma: Fix a compression-ratio regression in LZMA1/2 in fast mode.

The bug was added in the commit
f48fce093b07aeda95c18850f5e086d9f2383380 and thus
affected 5.1.4beta and 5.2.0. Luckily the bug cannot
cause data corruption or other nasty things.

9 years agoxz: Fix the fcntl() usage when creating a pipe for the self-pipe trick.
Lasse Collin [Sat, 21 Feb 2015 21:00:19 +0000 (23:00 +0200)]
xz: Fix the fcntl() usage when creating a pipe for the self-pipe trick.

Now it reads the old flags instead of blindly setting O_NONBLOCK.
The old code may have worked correctly, but this is better.

9 years agoUpdate THANKS.
Lasse Collin [Tue, 10 Feb 2015 13:29:34 +0000 (15:29 +0200)]
Update THANKS.

9 years agotuklib_cpucores: Use cpuset_getaffinity() on FreeBSD if available.
Lasse Collin [Tue, 10 Feb 2015 13:28:30 +0000 (15:28 +0200)]
tuklib_cpucores: Use cpuset_getaffinity() on FreeBSD if available.

In FreeBSD, cpuset_getaffinity() is the preferred way to get
the number of available cores.

Thanks to Rui Paulo for the patch. I edited it slightly, but
hopefully I didn't break anything.

9 years agoxzdiff: Make the mktemp usage compatible with FreeBSD's mktemp.
Lasse Collin [Mon, 9 Feb 2015 20:08:37 +0000 (22:08 +0200)]
xzdiff: Make the mktemp usage compatible with FreeBSD's mktemp.

Thanks to Rui Paulo for the fix.

9 years agoAdd a few casts to tuklib_integer.h to silence possible warnings.
Lasse Collin [Tue, 3 Feb 2015 19:45:53 +0000 (21:45 +0200)]
Add a few casts to tuklib_integer.h to silence possible warnings.

I heard that Visual Studio 2013 gave warnings without the casts.

Thanks to Gabi Davar.

9 years agoliblzma: Set LZMA_MEMCMPLEN_EXTRA depending on the compare method.
Lasse Collin [Mon, 26 Jan 2015 19:24:39 +0000 (21:24 +0200)]
liblzma: Set LZMA_MEMCMPLEN_EXTRA depending on the compare method.

9 years agoUpdate THANKS.
Lasse Collin [Mon, 26 Jan 2015 18:40:16 +0000 (20:40 +0200)]
Update THANKS.

9 years agoliblzma: Silence harmless Valgrind errors.
Lasse Collin [Mon, 26 Jan 2015 18:39:28 +0000 (20:39 +0200)]
liblzma: Silence harmless Valgrind errors.

Thanks to Torsten Rupp for reporting this. I had
forgotten to run Valgrind before the 5.2.0 release.

9 years agoxz: Fix comments.
Lasse Collin [Fri, 9 Jan 2015 19:50:19 +0000 (21:50 +0200)]
xz: Fix comments.

9 years agoUpdate THANKS.
Lasse Collin [Fri, 9 Jan 2015 19:35:06 +0000 (21:35 +0200)]
Update THANKS.

9 years agoxz: Don't fail if stdout doesn't support O_NONBLOCK.
Lasse Collin [Fri, 9 Jan 2015 19:34:06 +0000 (21:34 +0200)]
xz: Don't fail if stdout doesn't support O_NONBLOCK.

This is similar to the case with stdin.

Thanks to Brad Smith for the bug report and testing
on OpenBSD.

9 years agoxz: Fix a memory leak in DOS-specific code.
Lasse Collin [Wed, 7 Jan 2015 17:18:20 +0000 (19:18 +0200)]
xz: Fix a memory leak in DOS-specific code.

9 years agoxz: Don't fail if stdin doesn't support O_NONBLOCK.
Lasse Collin [Wed, 7 Jan 2015 17:08:06 +0000 (19:08 +0200)]
xz: Don't fail if stdin doesn't support O_NONBLOCK.

It's a problem at least on OpenBSD which doesn't support
O_NONBLOCK on e.g. /dev/null. I'm not surprised if it's
a problem on other OSes too since this behavior is allowed
in POSIX-1.2008.

The code relying on this behavior was committed in June 2013
and included in 5.1.3alpha released on 2013-10-26. Clearly
the development releases only get limited testing.

9 years agoTests: Don't hide unexpected error messages in test_files.sh.
Lasse Collin [Tue, 6 Jan 2015 18:30:15 +0000 (20:30 +0200)]
Tests: Don't hide unexpected error messages in test_files.sh.

Hiding them makes no sense since normally there's no error
when testing the "good" files. With "bad" files errors are
expected and then it makes sense to keep the messages hidden.

9 years agoUpdate Solaris notes in INSTALL.
Lasse Collin [Tue, 30 Dec 2014 09:17:16 +0000 (11:17 +0200)]
Update Solaris notes in INSTALL.

Mention the possible "make check" failure on Solaris in the
Solaris-specific section of INSTALL. It was already in
section 4.5 but it is better mention it in the OS-specific
section too.

10 years agoBuild: POSIX shell isn't required if scripts are disabled.
Lasse Collin [Fri, 26 Dec 2014 10:00:05 +0000 (12:00 +0200)]
Build: POSIX shell isn't required if scripts are disabled.

10 years agoDOS: Update Makefile. v5.2.0
Lasse Collin [Sun, 21 Dec 2014 18:48:37 +0000 (20:48 +0200)]
DOS: Update Makefile.

10 years agoWindows: Fix bin_i486 to bin_i686 in build.bash.
Lasse Collin [Sun, 21 Dec 2014 17:50:38 +0000 (19:50 +0200)]
Windows: Fix bin_i486 to bin_i686 in build.bash.

10 years agoDocs: Use lzma_cputhreads() in 04_compress_easy_mt.c.
Lasse Collin [Sun, 21 Dec 2014 16:58:44 +0000 (18:58 +0200)]
Docs: Use lzma_cputhreads() in 04_compress_easy_mt.c.

10 years agoDocs: Update docs/examples/00_README.txt.
Lasse Collin [Sun, 21 Dec 2014 16:56:44 +0000 (18:56 +0200)]
Docs: Update docs/examples/00_README.txt.

10 years agoBump version and soname for 5.2.0.
Lasse Collin [Sun, 21 Dec 2014 16:11:17 +0000 (18:11 +0200)]
Bump version and soname for 5.2.0.

I know that soname != app version, but I skip AGE=1
in -version-info to make the soname match the liblzma
version anyway. It doesn't hurt anything as long as
it doesn't conflict with library versioning rules.

10 years agoAvoid variable-length arrays in the debug programs.
Lasse Collin [Sun, 21 Dec 2014 16:05:03 +0000 (18:05 +0200)]
Avoid variable-length arrays in the debug programs.

10 years agoBuild: Include 04_compress_easy_mt.c in the tarball.
Lasse Collin [Sun, 21 Dec 2014 16:01:45 +0000 (18:01 +0200)]
Build: Include 04_compress_easy_mt.c in the tarball.

10 years agoFix build when --disable-threads is used.
Lasse Collin [Sun, 21 Dec 2014 16:00:38 +0000 (18:00 +0200)]
Fix build when --disable-threads is used.

10 years agopo/fr: improve wording for help for --lzma1/--lzma2.
Adrien Nader [Sun, 21 Dec 2014 14:56:15 +0000 (15:56 +0100)]
po/fr: improve wording for help for --lzma1/--lzma2.

10 years agopo/fr: missing line in translation of --extreme.
Adrien Nader [Sun, 21 Dec 2014 14:55:48 +0000 (15:55 +0100)]
po/fr: missing line in translation of --extreme.

10 years agoUpdate NEWS for 5.2.0.
Lasse Collin [Sun, 21 Dec 2014 12:32:33 +0000 (14:32 +0200)]
Update NEWS for 5.2.0.

10 years agoUpdate NEWS for 5.0.8.
Lasse Collin [Sun, 21 Dec 2014 12:32:22 +0000 (14:32 +0200)]
Update NEWS for 5.0.8.

10 years agoxz: Fix a comment.
Lasse Collin [Sun, 21 Dec 2014 12:07:54 +0000 (14:07 +0200)]
xz: Fix a comment.

10 years agoUpdate INSTALL about the dependencies of the scripts.
Lasse Collin [Sat, 20 Dec 2014 18:43:14 +0000 (20:43 +0200)]
Update INSTALL about the dependencies of the scripts.

10 years agoWindows: Update build instructions.
Lasse Collin [Sat, 20 Dec 2014 18:42:33 +0000 (20:42 +0200)]
Windows: Update build instructions.

10 years agoWindows: Update the build script and README-Windows.txt.
Lasse Collin [Sat, 20 Dec 2014 18:41:48 +0000 (20:41 +0200)]
Windows: Update the build script and README-Windows.txt.

The 32-bit build is now for i686 or newer because the
prebuilt MinGW-w64 toolchains include i686 code in the
executables even if one uses -march=i486.

The build script builds 32-bit SSE2 enabled version too.
Run-time detection of SSE2 support would be nice (on any OS)
but it's not implemented in XZ Utils yet.

10 years agoWindows: Define TUKLIB_SYMBOL_PREFIX in config.h.
Lasse Collin [Fri, 19 Dec 2014 13:51:50 +0000 (15:51 +0200)]
Windows: Define TUKLIB_SYMBOL_PREFIX in config.h.

It is to keep all symbols in the lzma_ namespace.

10 years agoxz: Update the man page about --threads.
Lasse Collin [Tue, 16 Dec 2014 19:00:09 +0000 (21:00 +0200)]
xz: Update the man page about --threads.

10 years agoxz: Update the man page about --block-size.
Lasse Collin [Tue, 16 Dec 2014 18:57:43 +0000 (20:57 +0200)]
xz: Update the man page about --block-size.

10 years agopo/fr: several more translation updates: reword and handle --ignore-check.
Adrien Nader [Wed, 10 Dec 2014 21:26:57 +0000 (22:26 +0100)]
po/fr: several more translation updates: reword and handle --ignore-check.

10 years agopo/fr: yet another place where my email address had to be updated.
Adrien Nader [Wed, 10 Dec 2014 21:23:01 +0000 (22:23 +0100)]
po/fr: yet another place where my email address had to be updated.

10 years agopo/fr: fix several typos that have been around since the beginning.
Adrien Nader [Wed, 10 Dec 2014 21:22:20 +0000 (22:22 +0100)]
po/fr: fix several typos that have been around since the beginning.

10 years agopo/fr: last batch of new translations for now.
Adrien Nader [Wed, 3 Dec 2014 19:02:31 +0000 (20:02 +0100)]
po/fr: last batch of new translations for now.

Four new error messages.

10 years agopo/fr: translations for --threads, --block-size and --block-list.
Adrien Nader [Wed, 3 Dec 2014 19:01:32 +0000 (20:01 +0100)]
po/fr: translations for --threads, --block-size and --block-list.

10 years agopo/fr: remove fuzzy marker for error messages that will be kept in English.
Adrien Nader [Wed, 3 Dec 2014 19:00:53 +0000 (20:00 +0100)]
po/fr: remove fuzzy marker for error messages that will be kept in English.

The following is a copy of a comment inside fr.po:

Note from translator on "file status flags".
The following entry is kept un-translated on purpose. It is difficult to
translate and should only happen in exceptional circumstances which means
that translating would:
- lose some of the meaning
- make it more difficult to look up in search engines; it might happen one
in
a million times, if we dilute the error message in 20 languages, it will be
almost impossible to find an explanation and support for the error.

10 years agopo/fr: several minor updates and better wording.
Adrien Nader [Wed, 3 Dec 2014 18:58:25 +0000 (19:58 +0100)]
po/fr: several minor updates and better wording.

Meaning doesn't change at all: it's only for better wording and/or
formatting of a few strings.

10 years agopo/fr: update my email address and copyright years.
Adrien Nader [Wed, 3 Dec 2014 18:56:12 +0000 (19:56 +0100)]
po/fr: update my email address and copyright years.

10 years agofr.po: commit file after only "update-po" so actual is readable.
Adrien Nader [Wed, 26 Nov 2014 09:08:26 +0000 (10:08 +0100)]
fr.po: commit file after only "update-po" so actual is readable.

10 years agoliblzma: Document how lzma_mt.block_size affects memory usage.
Lasse Collin [Tue, 2 Dec 2014 18:04:07 +0000 (20:04 +0200)]
liblzma: Document how lzma_mt.block_size affects memory usage.

10 years agoUpdate INSTALL about a "make check" failure in test_scripts.sh.
Lasse Collin [Fri, 28 Nov 2014 18:07:18 +0000 (20:07 +0200)]
Update INSTALL about a "make check" failure in test_scripts.sh.

10 years agoRemove LZMA_UNSTABLE macro.
Lasse Collin [Wed, 26 Nov 2014 18:12:27 +0000 (20:12 +0200)]
Remove LZMA_UNSTABLE macro.

10 years agoliblzma: Update lzma_stream_encoder_mt() API docs.
Lasse Collin [Wed, 26 Nov 2014 18:10:33 +0000 (20:10 +0200)]
liblzma: Update lzma_stream_encoder_mt() API docs.

10 years agoliblzma: Verify the filter chain in threaded encoder initialization.
Lasse Collin [Tue, 25 Nov 2014 10:32:05 +0000 (12:32 +0200)]
liblzma: Verify the filter chain in threaded encoder initialization.

This way an invalid filter chain is detected at the Stream
encoder initialization instead of delaying it to the first
call to lzma_code() which triggers the initialization of
the actual filter encoder(s).

10 years agoBuild: Update m4/ax_pthread.m4 from Autoconf Archive.
Lasse Collin [Mon, 17 Nov 2014 17:11:49 +0000 (19:11 +0200)]
Build: Update m4/ax_pthread.m4 from Autoconf Archive.

10 years agoBuild: Replace obsolete AC_HELP_STRING with AS_HELP_STRING.
Lasse Collin [Mon, 17 Nov 2014 16:52:21 +0000 (18:52 +0200)]
Build: Replace obsolete AC_HELP_STRING with AS_HELP_STRING.

10 years agoBuild: Fix Autoconf warnings about escaped backquotes.
Lasse Collin [Mon, 17 Nov 2014 16:43:19 +0000 (18:43 +0200)]
Build: Fix Autoconf warnings about escaped backquotes.

Thanks to Daniel Richard G. for pointing out that it's
good to sometimes run autoreconf -fi with -Wall.

10 years agoxzdiff: Use mkdir if mktemp isn't available.
Lasse Collin [Mon, 10 Nov 2014 16:54:40 +0000 (18:54 +0200)]
xzdiff: Use mkdir if mktemp isn't available.

10 years agoxzdiff: Create a temporary directory to hold a temporary file.
Lasse Collin [Mon, 10 Nov 2014 16:45:01 +0000 (18:45 +0200)]
xzdiff: Create a temporary directory to hold a temporary file.

This avoids the possibility of "File name too long" when
creating a temp file when the input file name is very long.

This also means that other users on the system can no longer
see the input file names in /tmp (or whatever $TMPDIR is)
since the temporary directory will have a generic name. This
usually doesn't matter since on many systems one can see
the arguments given to all processes anyway.

The number X chars to mktemp where increased from 6 to 10.

Note that with some shells temp files or dirs won't be used at all.

10 years agoliblzma: Fix lzma_mt.preset in lzma_stream_encoder_mt_memusage().
Lasse Collin [Mon, 10 Nov 2014 13:38:47 +0000 (15:38 +0200)]
liblzma: Fix lzma_mt.preset in lzma_stream_encoder_mt_memusage().

It read the filter chain from a wrong variable. This is a similar
bug that was fixed in 9494fb6d0ff41c585326f00aa8f7fe58f8106a5e.

10 years agoUpdate THANKS.
Lasse Collin [Mon, 10 Nov 2014 12:49:55 +0000 (14:49 +0200)]
Update THANKS.

10 years agoUpdate .gitignore files.
Lasse Collin [Wed, 29 Oct 2014 19:28:25 +0000 (21:28 +0200)]
Update .gitignore files.

10 years agoBuild: Prepare to support Automake's subdir-objects.
Lasse Collin [Wed, 29 Oct 2014 19:15:35 +0000 (21:15 +0200)]
Build: Prepare to support Automake's subdir-objects.

Due to a bug in Automake, subdir-objects won't be enabled
for now.

http://debbugs.gnu.org/cgi/bugreport.cgi?bug=17354

Thanks to Daniel Richard G. for the original patches.

10 years agoTranslations: Update the Italian translation.
Lasse Collin [Fri, 24 Oct 2014 17:09:29 +0000 (20:09 +0300)]
Translations: Update the Italian translation.

Thanks to Milo Casagrande.

10 years agoTranslations: Update the Polish translation.
Lasse Collin [Sat, 18 Oct 2014 15:51:45 +0000 (18:51 +0300)]
Translations: Update the Polish translation.

Thanks to Jakub Bogusz.

10 years agol10n: de.po: Change translator email address.
Andre Noll [Tue, 14 Oct 2014 15:30:30 +0000 (17:30 +0200)]
l10n: de.po: Change translator email address.

Although the old address is still working, the new one should
be preferred. So this commit changes all three places in de.po
accordingly.

Signed-off-by: Andre Noll <maan@tuebingen.mpg.de>
10 years agol10n: de.po: Update German translation
Andre Noll [Tue, 14 Oct 2014 15:30:29 +0000 (17:30 +0200)]
l10n: de.po: Update German translation

Signed-off-by: Andre Noll <maan@systemlinux.org>
10 years agol10n: de.po: Fix typo: Schießen -> Schließen.
Andre Noll [Tue, 14 Oct 2014 15:30:28 +0000 (17:30 +0200)]
l10n: de.po: Fix typo: Schießen -> Schließen.

That's a funny one since "schießen" means to shoot :)

Signed-off-by: Andre Noll <maan@systemlinux.org>
10 years agoUpdate THANKS.
Lasse Collin [Thu, 9 Oct 2014 16:42:26 +0000 (19:42 +0300)]
Update THANKS.

10 years agoAdd support for AmigaOS/AROS to tuklib_physmem().
Lasse Collin [Thu, 9 Oct 2014 16:41:51 +0000 (19:41 +0300)]
Add support for AmigaOS/AROS to tuklib_physmem().

Thanks to Fredrik Wikstrom.

10 years agoxzgrep: Avoid passing both -q and -l to grep.
Lasse Collin [Thu, 9 Oct 2014 15:42:14 +0000 (18:42 +0300)]
xzgrep: Avoid passing both -q and -l to grep.

The behavior of grep -ql varies:
  - GNU grep behaves like grep -q.
  - OpenBSD grep behaves like grep -l.

POSIX doesn't make it 100 % clear what behavior is expected.
Anyway, using both -q and -l at the same time makes no sense
so both options simply should never be used at the same time.

Thanks to Christian Weisgerber.

10 years agol10n: vi.po: Update Vietnamese translation
Trần Ngọc Quân [Thu, 25 Sep 2014 02:22:45 +0000 (09:22 +0700)]
l10n: vi.po: Update Vietnamese translation

Signed-off-by: Trần Ngọc Quân <vnwildman@gmail.com>
10 years agoBuild: Detect supported compiler warning flags better.
Lasse Collin [Thu, 25 Sep 2014 15:38:48 +0000 (18:38 +0300)]
Build: Detect supported compiler warning flags better.

Clang and nowadays also GCC accept any -Wfoobar option
but then may give a warning that an unknown warning option
was specified. To avoid adding unsupported warning options,
the options are now tested with -Werror.

Thanks to Charles Diza.

10 years agoUpdate NEWS for 5.0.7.
Lasse Collin [Sat, 20 Sep 2014 18:01:21 +0000 (21:01 +0300)]
Update NEWS for 5.0.7.

10 years agoliblzma: Fix a portability problem in Makefile.am.
Lasse Collin [Sat, 20 Sep 2014 16:42:56 +0000 (19:42 +0300)]
liblzma: Fix a portability problem in Makefile.am.

POSIX supports $< only in inference rules (suffix rules).
Using it elsewhere is a GNU make extension and doesn't
work e.g. with OpenBSD make.

Thanks to Christian Weisgerber for the patch.

10 years agoBump the version number to 5.1.4beta. v5.1.4beta
Lasse Collin [Sun, 14 Sep 2014 18:54:09 +0000 (21:54 +0300)]
Bump the version number to 5.1.4beta.

10 years agoUpdate NEWS for 5.0.6 and 5.1.4beta.
Lasse Collin [Sun, 14 Sep 2014 18:50:13 +0000 (21:50 +0300)]
Update NEWS for 5.0.6 and 5.1.4beta.

10 years agoUpdate TODO.
Lasse Collin [Sun, 14 Sep 2014 18:02:41 +0000 (21:02 +0300)]
Update TODO.

10 years agoxz: Add --ignore-check.
Lasse Collin [Tue, 5 Aug 2014 19:32:36 +0000 (22:32 +0300)]
xz: Add --ignore-check.

10 years agoliblzma: Add support for LZMA_IGNORE_CHECK.
Lasse Collin [Tue, 5 Aug 2014 19:15:07 +0000 (22:15 +0300)]
liblzma: Add support for LZMA_IGNORE_CHECK.

10 years agoliblzma: Add support for lzma_block.ignore_check.
Lasse Collin [Tue, 5 Aug 2014 19:03:30 +0000 (22:03 +0300)]
liblzma: Add support for lzma_block.ignore_check.

Note that this slightly changes how lzma_block_header_decode()
has been documented. Earlier it said that the .version is set
to the lowest required value, but now it says that the .version
field is kept unchanged if possible. In practice this doesn't
affect any old code, because before this commit the only
possible .version was 0.

10 years agoliblzma: Use lzma_memcmplen() in the BT3 match finder.
Lasse Collin [Mon, 4 Aug 2014 16:25:58 +0000 (19:25 +0300)]
liblzma: Use lzma_memcmplen() in the BT3 match finder.

I had missed this when writing the commit
5db75054e900fa06ef5ade5f2c21dffdd5d16141.

Thanks to Jun I Jin.

10 years agoUpdate THANKS.
Lasse Collin [Sun, 3 Aug 2014 21:25:44 +0000 (00:25 +0300)]
Update THANKS.

10 years agoliblzma: SHA-256: Optimize the Maj macro slightly.
Lasse Collin [Sun, 3 Aug 2014 18:32:25 +0000 (21:32 +0300)]
liblzma: SHA-256: Optimize the Maj macro slightly.

The Maj macro is used where multiple things are added
together, so making Maj a sum of two expressions allows
some extra freedom for the compiler to schedule the
instructions.

I learned this trick from
<http://www.hackersdelight.org/corres.txt>.

10 years agoliblzma: SHA-256: Optimize the way rotations are done.
Lasse Collin [Sun, 3 Aug 2014 18:08:12 +0000 (21:08 +0300)]
liblzma: SHA-256: Optimize the way rotations are done.

This looks weird because the rotations become sequential,
but it helps quite a bit on both 32-bit and 64-bit x86:

  - It requires fewer instructions on two-operand
    instruction sets like x86.

  - It requires one register less which matters especially
    on 32-bit x86.

I hope this doesn't hurt other archs.

I didn't invent this idea myself, but I don't remember where
I saw it first.

10 years agoliblzma: SHA-256: Remove the GCC #pragma that became unneeded.
Lasse Collin [Sun, 3 Aug 2014 17:38:13 +0000 (20:38 +0300)]
liblzma: SHA-256: Remove the GCC #pragma that became unneeded.

The unrolling in the previous commit should avoid the
situation where a compiler may think that an uninitialized
variable might be accessed.

10 years agoliblzma: SHA-256: Unroll a little more.
Lasse Collin [Sun, 3 Aug 2014 17:33:38 +0000 (20:33 +0300)]
liblzma: SHA-256: Unroll a little more.

This way a branch isn't needed for each operation
to choose between blk0 and blk2, and still the code
doesn't grow as much as it would with full unrolling.

10 years agoliblzma: SHA-256: Do the byteswapping without a temporary buffer.
Lasse Collin [Sun, 3 Aug 2014 16:56:43 +0000 (19:56 +0300)]
liblzma: SHA-256: Do the byteswapping without a temporary buffer.

10 years agoliblzma: Use lzma_memcmplen() in normal mode of LZMA.
Lasse Collin [Fri, 25 Jul 2014 19:38:28 +0000 (22:38 +0300)]
liblzma: Use lzma_memcmplen() in normal mode of LZMA.

Two locations were not changed yet because the simplest change
assumes that the initial "len" may be greater than "limit".

10 years agoliblzma: Simplify LZMA fast mode code by using memcmp().
Lasse Collin [Fri, 25 Jul 2014 19:30:38 +0000 (22:30 +0300)]
liblzma: Simplify LZMA fast mode code by using memcmp().

10 years agoliblzma: Use lzma_memcmplen() in fast mode of LZMA.
Lasse Collin [Fri, 25 Jul 2014 19:29:49 +0000 (22:29 +0300)]
liblzma: Use lzma_memcmplen() in fast mode of LZMA.

10 years agoUpdate THANKS.
Lasse Collin [Fri, 25 Jul 2014 18:16:23 +0000 (21:16 +0300)]
Update THANKS.

10 years agoliblzma: Use lzma_memcmplen() in the match finders.
Lasse Collin [Fri, 25 Jul 2014 18:15:07 +0000 (21:15 +0300)]
liblzma: Use lzma_memcmplen() in the match finders.

This doesn't change the match finder output.

10 years agoliblzma: Add lzma_memcmplen() for fast memory comparison.
Lasse Collin [Fri, 25 Jul 2014 17:57:20 +0000 (20:57 +0300)]
liblzma: Add lzma_memcmplen() for fast memory comparison.

This commit just adds the function. Its uses will be in
separate commits.

This hasn't been tested much yet and it's perhaps a bit early
to commit it but if there are bugs they should get found quite
quickly.

Thanks to Jun I Jin from Intel for help and for pointing out
that string comparison needs to be optimized in liblzma.

10 years agoUpdate THANKS.
Lasse Collin [Sat, 12 Jul 2014 18:10:09 +0000 (21:10 +0300)]
Update THANKS.

10 years agoTranslations: Add Vietnamese translation.
Lasse Collin [Sat, 12 Jul 2014 17:06:08 +0000 (20:06 +0300)]
Translations: Add Vietnamese translation.

Thanks to Trần Ngọc Quân.

10 years agoxz: Update the help message of a few options.
Lasse Collin [Sun, 29 Jun 2014 17:54:14 +0000 (20:54 +0300)]
xz: Update the help message of a few options.

Updated: --threads, --block-size, and --block-list
Added: --flush-timeout

10 years agoxz: Use lzma_cputhreads() instead of own copy of tuklib_cpucores().
Lasse Collin [Wed, 18 Jun 2014 19:07:06 +0000 (22:07 +0300)]
xz: Use lzma_cputhreads() instead of own copy of tuklib_cpucores().