Skip to content

math/big: avoid DIVQ #9246

@griesemer

Description

@griesemer

Suggested by Torbjörn Granlund (personal communication):

"
Division:

The DIVQ instruction is terrible. Don't ever use it. You might
want to take a look at "Improved Division by Invariant Integers" by
me and a collegue of mine. Your loop will become about 10 times
faster. You need to apply this also to generic division (not just the
one-divisor-word case.
"

(paper reference: https://gmplib.org/~tege/division-paper.pdf)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions