=================================================================== RCS file: /home/cvs/OpenXM_contrib/gmp/mpn/x86/k7/Attic/diveby3.asm,v retrieving revision 1.1 retrieving revision 1.1.1.2 diff -u -p -r1.1 -r1.1.1.2 --- OpenXM_contrib/gmp/mpn/x86/k7/Attic/diveby3.asm 2000/09/09 14:12:42 1.1 +++ OpenXM_contrib/gmp/mpn/x86/k7/Attic/diveby3.asm 2003/08/25 16:06:28 1.1.1.2 @@ -1,9 +1,6 @@ dnl AMD K7 mpn_divexact_by3 -- mpn division by 3, expecting no remainder. -dnl -dnl K7: 8.0 cycles/limb - -dnl Copyright (C) 2000 Free Software Foundation, Inc. +dnl Copyright 2000, 2002 Free Software Foundation, Inc. dnl dnl This file is part of the GNU MP Library. dnl @@ -22,10 +19,12 @@ dnl License along with the GNU MP Library; see the fi dnl not, write to the Free Software Foundation, Inc., 59 Temple Place - dnl Suite 330, Boston, MA 02111-1307, USA. - include(`../config.m4') +C K7: 8.0 cycles/limb + + C mp_limb_t mpn_divexact_by3c (mp_ptr dst, mp_srcptr src, mp_size_t size, C mp_limb_t carry); @@ -41,7 +40,7 @@ dnl ceil(b/3) and floor(b*2/3) where b=2^32 deflit(ONE_THIRD_CEIL, 0x55555556) deflit(TWO_THIRDS_FLOOR, 0xAAAAAAAA) - .text + TEXT ALIGN(32) PROLOGUE(mpn_divexact_by3c) @@ -109,7 +108,7 @@ L(last): C edi &dst[size-1] C ebp - imull $INVERSE_3, %eax + imull $INVERSE_3, %eax, %eax cmpl $ONE_THIRD_CEIL, %eax movl %eax, (%edi)