Skip to content

Address compiler warnings: C4146 - Use two's complement instead of negation #7561

@alsepkow

Description

@alsepkow

Cases where we are storing the lhs as an unsigned type and the rhs is guaranteed to be negative we can make use of negation being equivalent to 2's complement.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions