version 1.1.1.1, 2000/09/09 14:12:42 |
version 1.1.1.2, 2003/08/25 16:06:28 |
|
|
dnl AMD K7 mpn_add_n/mpn_sub_n -- mpn add or subtract. |
dnl AMD K7 mpn_add_n/mpn_sub_n -- mpn add or subtract. |
dnl |
|
dnl K7: 1.64 cycles/limb (at 16 limb/loop). |
|
|
|
|
dnl Copyright 1999, 2000, 2001, 2002 Free Software Foundation, Inc. |
dnl Copyright (C) 1999, 2000 Free Software Foundation, Inc. |
|
dnl |
dnl |
dnl This file is part of the GNU MP Library. |
dnl This file is part of the GNU MP Library. |
dnl |
dnl |
Line 22 dnl License along with the GNU MP Library; see the fi |
|
Line 19 dnl License along with the GNU MP Library; see the fi |
|
dnl not, write to the Free Software Foundation, Inc., 59 Temple Place - |
dnl not, write to the Free Software Foundation, Inc., 59 Temple Place - |
dnl Suite 330, Boston, MA 02111-1307, USA. |
dnl Suite 330, Boston, MA 02111-1307, USA. |
|
|
|
|
include(`../config.m4') |
include(`../config.m4') |
|
|
|
|
|
C K7: 1.64 cycles/limb (at 16 limbs/loop). |
|
|
|
|
|
|
dnl K7: UNROLL_COUNT cycles/limb |
dnl K7: UNROLL_COUNT cycles/limb |
dnl 8 1.9 |
dnl 8 1.9 |
dnl 16 1.64 |
dnl 16 1.64 |
Line 89 defframe(SAVE_EBX, -12) |
|
Line 89 defframe(SAVE_EBX, -12) |
|
defframe(SAVE_EDI, -16) |
defframe(SAVE_EDI, -16) |
deflit(STACK_SPACE, 16) |
deflit(STACK_SPACE, 16) |
|
|
.text |
TEXT |
ALIGN(32) |
ALIGN(32) |
deflit(`FRAME',0) |
deflit(`FRAME',0) |
|
|
PROLOGUE(M4_function_nc) |
PROLOGUE(M4_function_nc) |
movl PARAM_CARRY, %eax |
movl PARAM_CARRY, %eax |
jmp LF(M4_function_n,start) |
jmp L(start) |
EPILOGUE() |
EPILOGUE() |
|
|
PROLOGUE(M4_function_n) |
PROLOGUE(M4_function_n) |
|
|
|
|
ifdef(`PIC',` |
ifdef(`PIC',` |
L(pic_calc): |
L(pic_calc): |
C See README.family about old gas bugs |
C See mpn/x86/README about old gas bugs |
leal (%edi,%edi,8), %esi |
leal (%edi,%edi,8), %esi |
addl $L(entry)-L(here), %esi |
addl $L(entry)-L(here), %esi |
addl (%esp), %esi |
addl (%esp), %esi |