math/mpx-mul4-*-sse2.S (mpxmont_redc4): Fix end-of-outer-loop commentary.
[catacomb] / math / mpx-mul4-x86-sse2.S
index 9e1d478..7e7173f 100644 (file)
@@ -1062,7 +1062,9 @@ FUNC(mpxmont_redc4_x86_sse2)
        cmp     edi, esi
        jb      0b
 
-       // Deal with the tail end.
+       // Deal with the tail end.  Note that the actual destination length
+       // won't be an exact number of blocks of four, so it's safe to just
+       // drop through here.
 7:     add     [edi], eax
        mov     eax, 0
        add     edi, 4
@@ -1070,9 +1072,7 @@ FUNC(mpxmont_redc4_x86_sse2)
        cmp     edi, edx
        jb      7b
 
-       // All done for this iteration.  Start the next.  (This must have at
-       // least one follow-on iteration, or we'd not have started this outer
-       // loop.)
+       // All done for this iteration.  Start the next.
 8:     mov     edi, [SP + 0]           // -> dv[i - 1]
        mov     ebx, [BP + 28]          // -> X = nv[0]
        lea     edx, [SP + 44]          // -> space for Y