From 88ed5f76b2512cc36d00872d2769a49c05362fb8 Mon Sep 17 00:00:00 2001 From: Richard Kreckel Date: Sat, 3 Nov 2007 22:47:30 +0000 Subject: [PATCH] * src/base/digitseq/cl_asm_i386_.cc (compare_loop_up, compare_loop_down): Fix empty ranges. --- ChangeLog | 5 +++++ src/base/digitseq/cl_asm_i386_.cc | 2 ++ 2 files changed, 7 insertions(+) diff --git a/ChangeLog b/ChangeLog index 3577425..dcd6a51 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-11-03 Richard B. Kreckel + + * src/base/digitseq/cl_asm_i386_.cc (compare_loop_up, + compare_loop_down): Fix empty ranges. + 2007-10-12 Richard B. Kreckel Fix compilation on CYGWIN: diff --git a/src/base/digitseq/cl_asm_i386_.cc b/src/base/digitseq/cl_asm_i386_.cc index 24e0bb2..2d67b9e 100644 --- a/src/base/digitseq/cl_asm_i386_.cc +++ b/src/base/digitseq/cl_asm_i386_.cc @@ -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