X-Git-Url: https://wimlib.net/git/?a=blobdiff_plain;f=src%2Fcompress_common.c;h=c6d1133f901c909181a170f9bab0b1870358b7ab;hb=01ddb53ca45569b9f8d8d5051b9ce3f366a67ad1;hp=e2ad298e3f33d8ec88536df26c3c9e52d48a0428;hpb=f18b7fc3361c4daac0ddd104af65a8eff8466fec;p=wimlib diff --git a/src/compress_common.c b/src/compress_common.c index e2ad298e..c6d1133f 100644 --- a/src/compress_common.c +++ b/src/compress_common.c @@ -3,11 +3,21 @@ * * Code for compression shared among multiple compression formats. * - * Author: Eric Biggers - * Year: 2012 - 2014 + * The following copying information applies to this specific source code file: * - * The author dedicates this file to the public domain. - * You can do whatever you want with this file. + * Written in 2012-2014 by Eric Biggers + * + * To the extent possible under law, the author(s) have dedicated all copyright + * and related and neighboring rights to this software to the public domain + * worldwide via the Creative Commons Zero 1.0 Universal Public Domain + * Dedication (the "CC0"). + * + * This software is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the CC0 for more details. + * + * You should have received a copy of the CC0 along with this software; if not + * see . */ #ifdef HAVE_CONFIG_H @@ -125,7 +135,7 @@ sort_symbols(unsigned num_syms, const u32 freqs[restrict], * Tests were done with building the codes for LZX. Results may * vary for different compression algorithms...! */ - num_counters = (DIV_ROUND_UP(num_syms, 4) + 3) & ~3; + num_counters = ALIGN(DIV_ROUND_UP(num_syms, 4), 4); unsigned counters[num_counters];