Skip to content

Improving speed/quality #45

Description

@Bulat-Ziganshin

I have two suggestions for this code:

s0 = folded_multiply(load(v, 0) ^ s0, load(v, 32) ^ seeds[0]);

  1. use more variables. MUL latency is 3 (and 4 for higher 64 bits afaik), other operations 1, so at least 6 vars required to hide latency
  2. mix vars. Instead of seed[0], use next var - i.e. s1 for s0 computation and so on. This way, entropy from a single input bit will spread around all vars. It will allow one to use it as a proper 128-256 bit hash if she needs one

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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