Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MSVC optimizations for count_digits #1890

Merged
merged 1 commit into from
Sep 21, 2020
Merged

Commits on Sep 20, 2020

  1. MSVC optimizations for count_digits.

    Changed the clz implementations to use xor instead of subtraction so that when
    count_digits "undoes" the BSR -> CLZ translation, the optimizer is more
    willing to recognize the equivalence.
    Changed the data array in bsr2log10 to static since otherwise MSVC generates
    code to build the array every time the function is called.
    mwinterb committed Sep 20, 2020
    Configuration menu
    Copy the full SHA
    45a439e View commit details
    Browse the repository at this point in the history