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
Assignees
Milestone

Comments

@griesemer
Copy link
Contributor

@griesemer griesemer commented Dec 10, 2014

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
@rsc rsc removed release-none labels Apr 10, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.