Skip to content

<ranges>: _Div_ceil can be implemented more efficiently for _Signed128 and _Unsigned128 #2948

Description

The current implementation:

https://github.com/microsoft/STL/blob/main/stl/inc/ranges#L5238-L5245

effectively performs two divisions, when all we need to do is to simply divide and add 1 to the quotient if the remainder is non-zero.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    fixedSomething works now, yay!performanceMust go faster

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions