Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Wim Lewis
nettle
Commits
5831b559
Commit
5831b559
authored
Mar 13, 2013
by
Niels Möller
Browse files
Eliminated a temporary in the SHA512 round.
parent
34836b97
Changes
2
Show whitespace changes
Inline
Side-by-side
ChangeLog
View file @
5831b559
2013-03-13 Niels Möller <nisse@lysator.liu.se>
* sha512-compress.c (ROUND): Eliminated a temporary, analogous to
sha256 change below.
* x86_64/sha256-compress.asm: New file, 16% speedup (benchmarked
on intel i5).
...
...
sha512-compress.c
View file @
5831b559
...
...
@@ -86,9 +86,9 @@
/* It's crucial that DATA is only used once, as that argument will
* have side effects. */
#define ROUND(a,b,c,d,e,f,g,h,k,data) do { \
uint64_t T =
h + S1(e) + Choice(e,f,g) + k + data; \
d +=
T;
\
h
= T
+ S0(a) + Majority(a,b,c); \
h +
=
S1(e) + Choice(e,f,g) + k + data; \
d +=
h;
\
h +
=
S0(a) + Majority(a,b,c); \
} while (0)
void
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment