aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/sorter.s (renamed from src/sorting.s)4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sorting.s b/src/sorter.s
index 771b4c8..ba232fe 100644
--- a/src/sorting.s
+++ b/src/sorter.s
@@ -4,7 +4,7 @@
# key in A_i, address and size of A, and an address of a sorting algorithm to be
# used
# INPUTS : rdi = address for A
-# rsi = length of A in bytes
+# rsi = length of A in 64 bit chunks
# rdx = index of key to sort by
# rcx = address of sorting algorithm
# OUTPUTS : rax = address for sorted A
@@ -26,7 +26,7 @@ sorter:
# rdi is the addres of a
# rsi is the length of a
# rdx is the index of the key
- call rcx # Sort the array
+ call *%rcx # Sort the array (* is indirect call)
# Restore registers
pop %r15