[PR #33] Fix encoder compilation error on MSVS 2010. #614

Closed
opened 2026-01-29 20:46:25 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/google/brotli/pull/33

State: closed
Merged: Yes


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().

**Original Pull Request:** https://github.com/google/brotli/pull/33 **State:** closed **Merged:** Yes --- 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().
claunia added the pull-request label 2026-01-29 20:46:25 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/brotli#614