]> git.codecow.com Git - Monocypher.git/commit
Optimised Poly1305 loading code
authorLoup Vaillant <loup@loup-vaillant.fr>
Fri, 22 Mar 2019 20:52:30 +0000 (21:52 +0100)
committerLoup Vaillant <loup@loup-vaillant.fr>
Fri, 22 Mar 2019 20:52:30 +0000 (21:52 +0100)
commit4635859c4c75fcfdf652491375cee96216df7170
tree5ac49620ef11afa91ef815acfc35a32d6466b033
parentbe2a12981a672ef199aa7a64e1dab9193fdd0016
Optimised Poly1305 loading code

By actually *rolling* the loading code.  I haven't looked at the
assembly, but I suspect the loop is easier for the compiler to
vectorise.

This results in a 5% speed increase on my machine (Intel i5 Skylake
laptop, gcc 7.3.0).

This fix was made possible by @Sadoon-AlBader on GitHub, who submitted
pull request #118
src/monocypher.c