gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[libmicrohttpd] branch master updated: md5 small optimization


From: gnunet
Subject: [libmicrohttpd] branch master updated: md5 small optimization
Date: Tue, 18 May 2021 21:24:22 +0200

This is an automated email from the git hooks/post-receive script.

karlson2k pushed a commit to branch master
in repository libmicrohttpd.

The following commit(s) were added to refs/heads/master by this push:
     new 65413082 md5 small optimization
65413082 is described below

commit 65413082c902934cacc32899fcda4ddae35e2f21
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Tue May 18 22:21:48 2021 +0300

    md5 small optimization
---
 src/microhttpd/md5.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/microhttpd/md5.c b/src/microhttpd/md5.c
index 785873b5..b4ca7af8 100644
--- a/src/microhttpd/md5.c
+++ b/src/microhttpd/md5.c
@@ -134,7 +134,7 @@ MHD_MD5Final (void *ctx_,
 
 /* This is the central step in the MD5 algorithm. */
 #define MD5STEP(f, w, x, y, z, data, s) \
-  (w += f (x, y, z) + data,  w = w << s | w >> (32 - s),  w += x)
+  (w += f (x, y, z) + data,  w = _MHD_ROTL32(w, s),  w += x)
 
 /**
  * The core of the MD5 algorithm, this alters an existing MD5 hash to

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]