Skip to content

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

@CaseyCarter

Description

@CaseyCarter

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.

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