From 4252712a7648055045c380d3d0948ea6f03f05b6 Mon Sep 17 00:00:00 2001 From: lloyd Date: Sat, 2 Sep 2006 21:16:41 +0000 Subject: Remove explicit alignment settings before the loops; the loop macro already sets alignment. Change the core multiply/add macro a bit; probably not any faster, but a bit cleaner. --- modules/alg_ia32/mp_muladd.S | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'modules/alg_ia32') diff --git a/modules/alg_ia32/mp_muladd.S b/modules/alg_ia32/mp_muladd.S index 1b01dce08..cba82a23c 100644 --- a/modules/alg_ia32/mp_muladd.S +++ b/modules/alg_ia32/mp_muladd.S @@ -21,14 +21,12 @@ START_FUNCTION(bigint_mul_add_words) ASSIGN(EAX, ARRAY4(EBX, N)) ; \ MUL(EBP) ; \ ADD_W_CARRY(EAX, EDX, EDI) ; \ - ADD_W_CARRY(EAX, EDX, ARRAY4(ECX, N)) ; \ - ASSIGN(ARRAY4(ECX, N), EAX) ; \ - ASSIGN(EDI, EDX) ; + ASSIGN(EDI, EDX) ; \ + ADD_W_CARRY(ARRAY4(ECX, N), EDI, EAX) ; JUMP_IF_ZERO(ESI, .MUL_ADD_DONE) JUMP_IF_LT(ESI, 8, .MULADD1_LOOP) - ALIGN START_LOOP(.MULADD8) MULADD_OP(0) MULADD_OP(1) @@ -46,7 +44,6 @@ LOOP_UNTIL_LT(ESI, 8, .MULADD8) JUMP_IF_ZERO(ESI, .MUL_ADD_DONE) - ALIGN START_LOOP(.MULADD1) MULADD_OP(0) -- cgit v1.2.3