Commit a4306b9e authored by Marshall Mohror's avatar Marshall Mohror Committed by FearlessTobi
Browse files

Common: remove a mod from AlignUp (#5441)

In cases where the size is not a known constant when inlining, AlignUp<std::size_t> currently generates two 64-bit div instructions.
This generates one div and a cmov which is significantly cheaper.
parent a0ee597b
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment