libbb/sha1: code shrink in medium-speed version
function old new delta sha1_process_block64 654 641 -13 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
4d4f1f2096
commit
5c0c558231
@ -1121,7 +1121,7 @@ static void FAST_FUNC sha1_process_block64(sha1_ctx_t *ctx)
|
|||||||
* see what the value will be).
|
* see what the value will be).
|
||||||
* """
|
* """
|
||||||
*/
|
*/
|
||||||
#if defined(__i386__)
|
#if defined(__GNUC__) && defined(__i386__)
|
||||||
# define DO_NOT_TRY_PROPAGATING(m) asm("":"+m"(m))
|
# define DO_NOT_TRY_PROPAGATING(m) asm("":"+m"(m))
|
||||||
#else
|
#else
|
||||||
# define DO_NOT_TRY_PROPAGATING(m) ((void)0)
|
# define DO_NOT_TRY_PROPAGATING(m) ((void)0)
|
||||||
@ -1212,7 +1212,7 @@ static void FAST_FUNC sha1_process_block64(sha1_ctx_t *ctx)
|
|||||||
c = rotl32(b, 30);
|
c = rotl32(b, 30);
|
||||||
b = a;
|
b = a;
|
||||||
a = work;
|
a = work;
|
||||||
n = (n + 1) & 15;
|
n = (n + 1) /* & 15*/;
|
||||||
} while (n != 4);
|
} while (n != 4);
|
||||||
/* 2nd round of 20 operations */
|
/* 2nd round of 20 operations */
|
||||||
j = 19;
|
j = 19;
|
||||||
|
Loading…
Reference in New Issue
Block a user