Sorting algorithms/Cocktail sort with shifting bounds: Difference between revisions

Content added Content deleted
(add task to aarch64 assembly raspberry pi)
(error correction to arm assembly)
Line 535: Line 535:
cocktailSortBound:
cocktailSortBound:
push {r1-r9,lr} @ save registers
push {r1-r9,lr} @ save registers
sub r2,r2,#1 @ compute endidx = n - 1
sub r2,r2,#2 @ compute endidx = n - 2
@ and r1= beginidx
@ and r1= beginidx
1: @ start loop 1
1: @ start loop 1