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

Simplify HUF_decompress4X2_usingDTable_internal_bmi2_asm_loop #3013

Merged
merged 1 commit into from
Jan 21, 2022

Commits on Jan 19, 2022

  1. Simplify HUF_decompress4X2_usingDTable_internal_bmi2_asm_loop

    Get rid of three divisions. The original expression was:
    
        opmin := min((oend0 - op0) / 10, (oend1 - op1) / 10, (oend2 - op2) / 10, (oend3 - op3) / 10)
        r15   := min(r15, opmin)
    
    The division by 10 can be moved outside the `min`:
    
        opmin := min(oend0 - op0, oend1 - op1, oend2 - op2, oend3 - op3)
        r15   := min(r15, opmin/10)
    WojciechMula committed Jan 19, 2022
    Configuration menu
    Copy the full SHA
    e74ca79 View commit details
    Browse the repository at this point in the history