diff options
Diffstat (limited to 'ft_list_sort.s')
| -rw-r--r-- | ft_list_sort.s | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ft_list_sort.s b/ft_list_sort.s index a541bd8..b077b89 100644 --- a/ft_list_sort.s +++ b/ft_list_sort.s @@ -10,12 +10,12 @@ ; ; ; **************************************************************************** ; -global _ft_list_sort +global ft_list_sort %define NULL 0x0 ; void ft_list_sort(t_list **begin_list, int (*cmp)(void*, void*)); -_ft_list_sort: +ft_list_sort: ; t_list *slow : rax = *begin_list ; t_list *fast : rbx = (*begin_list)->next ; t_list *middle : rsp + 0 @@ -54,9 +54,9 @@ FT_LIST_SORT_MIDDLE_LOOP_END: ; === sorting both child list === push rdi push rsi - call _ft_list_sort ; ft_list_sort(begin_list, cmp) + call ft_list_sort ; ft_list_sort(begin_list, cmp) lea rdi, [rbp - 8] - call _ft_list_sort ; ft_list_sort(&middle, cmp) + call ft_list_sort ; ft_list_sort(&middle, cmp) pop rsi pop rdi |
