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

griesemer opened this Issue Dec 10, 2014 · 0 comments


None yet
3 participants
Copy link

griesemer commented Dec 10, 2014

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


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
    test $2, Rcount
    je       skip1
    restore CF
    [do one "iteration"]


@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
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.