commit | fab601e81fd464342d7c31736a5bc7ad413bce63 | [log] [tgz] |
---|---|---|
author | Zoltan Szabadka <szabadka@google.com> | Fri Feb 27 16:04:43 2015 +0100 |
committer | Zoltan Szabadka <szabadka@google.com> | Fri Feb 27 16:04:43 2015 +0100 |
tree | 3307eff570d0d6e1df4b68254f1edda93a015d83 | |
parent | e60b7b846ab6a0a3de8d092b1a6aa1f1823dbb8c [diff] |
Fix encoder compilation error on MSVS 2010. As reported by @anthrotype, log2() is missing from MSVS 2010. This patch uses log() and a multiplication in FastLog2() for _MSV_VER <= 1600 and uses FastLog2() in literal_cost.cc instead of log2().
Brotli is a generic-purpose lossless compression algorithm that compresses data using a combination of a modern variant of the LZ77 algorithm, Huffman coding and 2nd order context modeling, with a compression ratio comparable to the best currently available general-purpose compression methods. It is similar in speed with deflate but offers more dense compression.
The specification of the Brotli Compressed Data Format is defined in the following internet draft: http://www.ietf.org/id/draft-alakuijala-brotli
Brotli is open-sourced under the Apache License, Version 2.0, see the LICENSE file.