libbb/sha1: tweak comments

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko 2022-01-07 14:55:31 +01:00
parent 89092c61bc
commit 0bab5da37e
2 changed files with 5 additions and 5 deletions

View File

@ -34,7 +34,7 @@
#define MSG3 %xmm6 #define MSG3 %xmm6
#define SHUF_MASK %xmm7 #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: sha1_process_block64_shaNI:
pushl %ebp pushl %ebp
movl %esp, %ebp movl %esp, %ebp
@ -44,8 +44,8 @@ sha1_process_block64_shaNI:
/* load initial hash values */ /* load initial hash values */
xor128 E0, E0 xor128 E0, E0
movu128 76(%eax), ABCD movu128 76(%eax), ABCD
pinsrd $3, 76+4*4(%eax), E0 # load to upper 32-bit word pinsrd $3, 76+4*4(%eax), E0 # load to uppermost 32-bit word
shuf128_32 $0x1B, ABCD, ABCD # 00011011: bswap shuf128_32 $0x1B, ABCD, ABCD # DCBA -> ABCD
mova128 PSHUFFLE_BYTE_FLIP_MASK, SHUF_MASK mova128 PSHUFFLE_BYTE_FLIP_MASK, SHUF_MASK

View File

@ -40,8 +40,8 @@ sha1_process_block64_shaNI:
xor128 E0, E0 xor128 E0, E0
movu128 80(%rdi), ABCD movu128 80(%rdi), ABCD
pinsrd $3, 80+4*4(%rdi), E0 # load to upper 32-bit word pinsrd $3, 80+4*4(%rdi), E0 # load to uppermost 32-bit word
shuf128_32 $0x1B, ABCD, ABCD # 00011011: bswap shuf128_32 $0x1B, ABCD, ABCD # DCBA -> ABCD
mova128 PSHUFFLE_BYTE_FLIP_MASK(%rip), SHUF_MASK mova128 PSHUFFLE_BYTE_FLIP_MASK(%rip), SHUF_MASK