Skip to content

Optimize bigint division (div_rem::compute) for fast case #1850

@ChALkeR

Description

@ChALkeR

Somewhere along

// If rhs has fewer digits than quoc/rem it must be resized.
const bool needToResizeRhs = rhs.numDigits < resultSize;

If lhs.numDigits < rhs.numDigits, the result could be trivially optimized to [0, lhs]

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