Commit 5162af43 5162af437ea0b5ee87c879f048858da822c1b67d by Sergey Poznyakoff

Restored optimization of F1

1 parent b6e3add3
...@@ -169,8 +169,8 @@ MD5Final(unsigned char digest[16], struct MD5Context *ctx) ...@@ -169,8 +169,8 @@ MD5Final(unsigned char digest[16], struct MD5Context *ctx)
169 169
170 /* The four core functions - F1 is optimized somewhat */ 170 /* The four core functions - F1 is optimized somewhat */
171 171
172 #define F1(x, y, z) (x & y | ~x & z) 172 /*#define F1(x, y, z) (x & y | ~x & z) */
173 /*#define F1(x, y, z) (z ^ (x & (y ^ z))) */ 173 #define F1(x, y, z) (z ^ (x & (y ^ z)))
174 #define F2(x, y, z) F1(z, x, y) 174 #define F2(x, y, z) F1(z, x, y)
175 #define F3(x, y, z) (x ^ y ^ z) 175 #define F3(x, y, z) (x ^ y ^ z)
176 #define F4(x, y, z) (y ^ (x | ~z)) 176 #define F4(x, y, z) (y ^ (x | ~z))
......