Skip to content
This repository has been archived by the owner on Oct 26, 2022. It is now read-only.

utils: Optimized calculation align #229

Merged
merged 1 commit into from
Feb 13, 2022
Merged

Commits on Feb 12, 2022

  1. utils: Optimized calculation align

    Use bitwise operations instead of division.
    The length value must be less than `usize::MAX - 4`, otherwise it will
    panic. The result is the same as the original logic.
    
    Signed-off-by: wllenyj <wllenyj@linux.alibaba.com>
    wllenyj committed Feb 12, 2022
    Configuration menu
    Copy the full SHA
    9035587 View commit details
    Browse the repository at this point in the history