mirror of
https://github.com/google/brotli.git
synced 2026-07-08 17:56:58 +00:00
[PR #33] [MERGED] Fix encoder compilation error on MSVS 2010. #612
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/google/brotli/pull/33
Author: @szabadka
Created: 2/27/2015
Status: ✅ Merged
Merged: 2/27/2015
Merged by: @szabadka
Base:
master← Head:master📝 Commits (1)
fab601eFix encoder compilation error on MSVS 2010.📊 Changes
2 files changed (+10 additions, -2 deletions)
View changed files
📝
enc/fast_log.h(+7 -0)📝
enc/literal_cost.cc(+3 -2)📄 Description
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().
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.