Skip to content

math/big: improve assembly cores: alignment and unrolling #9244

@griesemer

Description

@griesemer

Suggestions from Torbjörn Granlund (personal e-mail):

"Aligning:

Consider aligning loops to at least a 0 mod 16 address.
Same for function start.

Tail code after unrolling:

Setting up a loop which runs 0-3 iterations is quite expensive.
It should be better to follow the pattern:

    test $2, Rcount
    je       skip2
    restore CF
    [do two "iterations"]
    save CF
  skip2:
    test $2, Rcount
    je       skip1
    restore CF
    [do one "iteration"]
  skip1:
    [footer]

"

Metadata

Metadata

Assignees

No one assigned

    Labels

    NeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions