diff options
author | Denys Vlasenko | 2022-01-07 14:55:31 +0100 |
---|---|---|
committer | Denys Vlasenko | 2022-01-07 14:55:31 +0100 |
commit | 0bab5da37e6c2351936bf3fade2eb1a6d75bb171 (patch) | |
tree | b65f540c2324276a71da78981d3e2494e97e57ea /libbb | |
parent | 89092c61bc37ed61bfacf10433d52b9bc4299116 (diff) | |
download | busybox-0bab5da37e6c2351936bf3fade2eb1a6d75bb171.zip busybox-0bab5da37e6c2351936bf3fade2eb1a6d75bb171.tar.gz |
libbb/sha1: tweak comments
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'libbb')
-rw-r--r-- | libbb/hash_md5_sha_x86-32_shaNI.S | 6 | ||||
-rw-r--r-- | libbb/hash_md5_sha_x86-64_shaNI.S | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/libbb/hash_md5_sha_x86-32_shaNI.S b/libbb/hash_md5_sha_x86-32_shaNI.S index 7202c76..6b12d14 100644 --- a/libbb/hash_md5_sha_x86-32_shaNI.S +++ b/libbb/hash_md5_sha_x86-32_shaNI.S @@ -34,7 +34,7 @@ #define MSG3 %xmm6 #define SHUF_MASK %xmm7 - .balign 8 # allow decoders to fetch at least 2 first insns + .balign 8 # allow decoders to fetch at least 3 first insns sha1_process_block64_shaNI: pushl %ebp movl %esp, %ebp @@ -44,8 +44,8 @@ sha1_process_block64_shaNI: /* load initial hash values */ xor128 E0, E0 movu128 76(%eax), ABCD - pinsrd $3, 76+4*4(%eax), E0 # load to upper 32-bit word - shuf128_32 $0x1B, ABCD, ABCD # 00011011: bswap + pinsrd $3, 76+4*4(%eax), E0 # load to uppermost 32-bit word + shuf128_32 $0x1B, ABCD, ABCD # DCBA -> ABCD mova128 PSHUFFLE_BYTE_FLIP_MASK, SHUF_MASK diff --git a/libbb/hash_md5_sha_x86-64_shaNI.S b/libbb/hash_md5_sha_x86-64_shaNI.S index 473b472..e2e5357 100644 --- a/libbb/hash_md5_sha_x86-64_shaNI.S +++ b/libbb/hash_md5_sha_x86-64_shaNI.S @@ -40,8 +40,8 @@ sha1_process_block64_shaNI: xor128 E0, E0 movu128 80(%rdi), ABCD - pinsrd $3, 80+4*4(%rdi), E0 # load to upper 32-bit word - shuf128_32 $0x1B, ABCD, ABCD # 00011011: bswap + pinsrd $3, 80+4*4(%rdi), E0 # load to uppermost 32-bit word + shuf128_32 $0x1B, ABCD, ABCD # DCBA -> ABCD mova128 PSHUFFLE_BYTE_FLIP_MASK(%rip), SHUF_MASK |