Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(224)

Unified Diff: src/platform/vboot_reference/crypto/sha1.c

Issue 850002: Enable SHA1 optimizations (faster bit twiddling) and SHA2 optimizations (loop unroll). (Closed)
Patch Set: Created 10 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/platform/vboot_reference/crypto/Makefile ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/platform/vboot_reference/crypto/sha1.c
diff --git a/src/platform/vboot_reference/crypto/sha1.c b/src/platform/vboot_reference/crypto/sha1.c
index ca45911e02cdc9960cd060f3dffbc333ac422f76..5844eccd7b04ffbec919505c81945a11aec72197 100644
--- a/src/platform/vboot_reference/crypto/sha1.c
+++ b/src/platform/vboot_reference/crypto/sha1.c
@@ -21,17 +21,17 @@
/* This version is about 28% faster than the generic version below,
* but assumes little-endianness.
*/
-static inline uint32_t ror27(uint32_t val) {
+static uint32_t ror27(uint32_t val) {
return (val >> 27) | (val << 5);
}
-static inline uint32_t ror2(uint32_t val) {
+static uint32_t ror2(uint32_t val) {
return (val >> 2) | (val << 30);
}
-static inline uint32_t ror31(uint32_t val) {
+static uint32_t ror31(uint32_t val) {
return (val >> 31) | (val << 1);
}
-static void SHA1_Transform(SHA_CTX* ctx) {
+static void SHA1_Transform(SHA1_CTX* ctx) {
uint32_t W[80];
register uint32_t A, B, C, D, E;
int t;
« no previous file with comments | « src/platform/vboot_reference/crypto/Makefile ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698