Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
griesemer opened this issue Dec 10, 2014 · 0 comments
Open

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

griesemer opened this issue Dec 10, 2014 · 0 comments
Milestone

Comments

@griesemer
Copy link
Contributor

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]

"

@griesemer griesemer self-assigned this Dec 10, 2014
@rsc rsc added this to the Unplanned milestone Apr 10, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants