vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/sandy2x/fe51_pack.S in rbnacl-libsodium-1.0.10 vs vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/sandy2x/fe51_pack.S in rbnacl-libsodium-1.0.11

- old
+ new

@@ -33,10 +33,12 @@ movq 24(%rsi),%r9 movq 32(%rsi),%rsi movq REDMASK51(%rip),%rax lea -18(%rax),%r10 mov $3,%r11 + +.p2align 4 ._reduceloop: mov %rdx,%r12 shr $51,%r12 and %rax,%rdx add %r12,%rcx @@ -57,9 +59,10 @@ and %rax,%rsi imulq $19, %r12,%r12 add %r12,%rdx sub $1,%r11 ja ._reduceloop + mov $1,%r12 cmp %r10,%rdx cmovl %r11,%r12 cmp %rax,%rcx cmovne %r11,%r12