]> www.ginac.de Git - cln.git/commitdiff
* src/base/digitseq/cl_asm_i386_.cc (compare_loop_up,
authorRichard Kreckel <kreckel@ginac.de>
Sat, 3 Nov 2007 22:47:30 +0000 (22:47 +0000)
committerRichard Kreckel <kreckel@ginac.de>
Sat, 3 Nov 2007 22:47:30 +0000 (22:47 +0000)
        compare_loop_down): Fix empty ranges.

ChangeLog
src/base/digitseq/cl_asm_i386_.cc

index 3577425d9137744172d1cd32e485215437fb6c89..dcd6a515ce6411b5124d306f65e866dadaa85d57 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-11-03  Richard B. Kreckel  <kreckel@ginac.de>
+
+       * src/base/digitseq/cl_asm_i386_.cc (compare_loop_up, 
+       compare_loop_down): Fix empty ranges.
+
 2007-10-12  Richard B. Kreckel  <kreckel@ginac.de>
 
        Fix compilation on CYGWIN:
index 24e0bb26074d1446015e612c015df5fbbf56bbc3..2d67b9e7044a5c71eb41aa181aabfa3e35373ce8 100644 (file)
@@ -536,6 +536,7 @@ C(compare_loop_up:)
             movl    4(%esp),%esi    // %esi = xptr
             movl    8(%esp),%edi    // %edi = yptr
             movl    12(%esp),%ecx   // %ecx = count
+            cmp     %ecx,%ecx       // initialize flags for the case %ecx is 0
             dir0start
             repz                    // Falls %ecx > 0:
               cmpsl                 // %ecx mal aufwärts (%edi) und (%esi) vergleichen
@@ -1377,6 +1378,7 @@ C(compare_loop_down:)
             movl    12(%esp),%ecx   // %ecx = count
             leal    -4(%esi),%esi
             leal    -4(%edi),%edi
+            cmp     %ecx,%ecx       // initialize flags for the case %ecx is 0
             dir1start
             repz                    // Falls %ecx > 0:
               cmpsl                 // %ecx mal aufwärts (%edi) und (%esi) vergleichen