commit 65413082c902934cacc32899fcda4ddae35e2f21
parent f959b8435217a903d0b5ddaa2deaa23af54812ab
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date: Tue, 18 May 2021 22:21:48 +0300
md5 small optimization
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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