From 12fe3cc1eb61174d8ab5c3d6768e9bdd4c61317b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20M=C3=B6ller?= <nisse@lysator.liu.se> Date: Wed, 6 Mar 2013 15:51:55 +0100 Subject: [PATCH] Comment fixes. --- armv7/ecc-384-modp.asm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/armv7/ecc-384-modp.asm b/armv7/ecc-384-modp.asm index e34d95f8..fb5a6e12 100644 --- a/armv7/ecc-384-modp.asm +++ b/armv7/ecc-384-modp.asm @@ -153,7 +153,7 @@ PROLOGUE(nettle_ecc_384_modp) C Fold high limbs, we need to add in C - C F4 F4 -F4 F4 H H -H H + C F4 F4 0 -F4 F4 H H 0 -H H C C We always have F4 >= 0, but we can have H < 0. C Sign extension gets tricky when F4 = 0 and H < 0. @@ -163,7 +163,7 @@ PROLOGUE(nettle_ecc_384_modp) C H H 0 -H H C ---------------- - C S F4 F3 F2 F1 F0 + C S H F3 F2 F1 F0 C C Define S = H >> 31 (asr), we then have C @@ -171,7 +171,7 @@ PROLOGUE(nettle_ecc_384_modp) C F1 = S - H C F2 = - [H > 0] C F3 = H - [H > 0] - C F4 = H + S + C H = H + S C C And we get underflow in S - H iff H > 0 -- GitLab