From f0d348d3e1d24bef836b3f822e14a66e4f4fea21 Mon Sep 17 00:00:00 2001 From: wbhart Date: Mon, 2 Jun 2008 11:59:50 +0000 Subject: [PATCH] Fixed bug in gcc calling conventions. --- mpn/x86_64/add_n.as | 4 ++-- mpn/x86_64/sub_n.as | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/mpn/x86_64/add_n.as b/mpn/x86_64/add_n.as index 34f7727c..5514304c 100644 --- a/mpn/x86_64/add_n.as +++ b/mpn/x86_64/add_n.as @@ -53,7 +53,7 @@ ; mp_srcptr src1, rsi ; mp_srcptr src2, rdx ; mp_size_t len, rcx -; mp_limb_t carry [rsp+0x8] +; mp_limb_t carry r8 ; ) ; ; Calculate src1[size] plus(minus) src2[size] and store the result in @@ -81,7 +81,7 @@ %define sr2 rdx ; source 2 pointer %define len rcx ; number of limbs %define lend ecx ; number of limbs -%define cy [rsp] ; carry value +%define cy r8 ; carry value %define r_jmp r10 ; temporary for jump table entry %define r_cnt r11 ; temporary for loop count diff --git a/mpn/x86_64/sub_n.as b/mpn/x86_64/sub_n.as index d77326dc..c3399ac7 100644 --- a/mpn/x86_64/sub_n.as +++ b/mpn/x86_64/sub_n.as @@ -53,7 +53,7 @@ ; mp_srcptr src1, rsi ; mp_srcptr src2, rdx ; mp_size_t len, rcx -; mp_limb_t carry [rsp+0x8] +; mp_limb_t carry r8 ; ) ; ; Calculate src1[size] plus(minus) src2[size] and store the result in @@ -81,7 +81,7 @@ %define sr2 rdx ; source 2 pointer %define len rcx ; number of limbs %define lend ecx ; number of limbs -%define cy [rsp] ; carry value +%define cy r8 ; carry value %define r_jmp r10 ; temporary for jump table entry %define r_cnt r11 ; temporary for loop count