aboutsummaryrefslogtreecommitdiff
path: root/src/insertion_sort.s
diff options
context:
space:
mode:
Diffstat (limited to 'src/insertion_sort.s')
-rw-r--r--src/insertion_sort.s10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/insertion_sort.s b/src/insertion_sort.s
index f5c38ad..3048a89 100644
--- a/src/insertion_sort.s
+++ b/src/insertion_sort.s
@@ -6,17 +6,13 @@
# rsi = number of coordinates n
# rdx = index of key to sort by
# OUTPUTS : rax = address for sorted A
-# CLOBBERS: none
+# CLOBBERS: rax, rdx, rdi, rsi, r8, r9, r10, r11
# --------------------------------------------
.section .text
.globl insertion_sort
.type insertion_sort, @function
insertion_sort:
# save
- push %r8
- push %r9
- push %r10
- push %r11
push %r14
push %r15
@@ -71,8 +67,4 @@ done:
# retrieve
pop %r15
pop %r14
- pop %r11
- pop %r10
- pop %r9
- pop %r8
ret