Skip to content

Optimize uint256 multiplication #192

@chfast

Description

@chfast
  1. We want to use the "loop" procedure as in mul_loop_opt().
  2. There, it may be good to separate first iteration which does not need to load p[] values as they are zeros. Compilers are not always able to figure it out.
  3. The best score was 60 instructions.
  4. Some experimentation: https://godbolt.org/z/915aeG.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions