← Commit list

5c0c55823

Denys Vlasenko
Denys Vlasenko
2022-01-02
SUCCESS Duration: 154s

Subject

libbb/sha1: code shrink in medium-speed version

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

libbb/hash_md5_sha.c+2 -2
@@ -1121,7 +1121,7 @@ static void FAST_FUNC sha1_process_block64(sha1_ctx_t *ctx)
* see what the value will be).
* """
*/
-#if defined(__i386__)
+#if defined(__GNUC__) && defined(__i386__)
# define DO_NOT_TRY_PROPAGATING(m) asm("":"+m"(m))
#else
# 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);
b = a;
a = work;
- n = (n + 1) & 15;
+ n = (n + 1) /* & 15*/;
} while (n != 4);
/* 2nd round of 20 operations */
j = 19;