dnl This file is part of the GNU MP Library.
dnl
dnl The GNU MP Library is free software; you can redistribute it and/or modify
dnl it under the terms of either:
dnl
dnl * the GNU Lesser General Public License as published by the Free
dnl Software Foundation; either version 3 of the License, or (at your
dnl option) any later version.
dnl
dnl or
dnl
dnl * the GNU General Public License as published by the Free Software
dnl Foundation; either version 2 of the License, or (at your option) any
dnl later version.
dnl
dnl or both in parallel, as here.
dnl
dnl The GNU MP Library is distributed in the hope that it will be useful, but
dnl WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
dnl or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
dnl for more details.
dnl
dnl You should have received copies of the GNU General Public License and the
dnl GNU Lesser General Public License along with the GNU MP Library. If not,
dnl see https://www.gnu.org/licenses/.
include(`../config.m4')
C P6/13: 3.35 cycles/limb (separate mpn_sub_n + mpn_lshift needs 4.12)
C (1) The loop is not scheduled in any way, and scheduling attempts have not
C improved speed on P6/13. Presumably, the K7 will want scheduling, if it
C at all wants to use MMX.
C (2) We could save a register by not alternatingly using eaxandedx in the
C loop.
mov 16(%esp), rp mov 20(%esp), up mov 24(%esp), vp mov 28(%esp), n mov $32, %eax sub 32(%esp), %eax movd %eax, cnt
lea (up,n,4), up lea (vp,n,4), vp lea (rp,n,4), rp
neg n mov n, %eax and $-8, n and $7, %eax
shl %eax C eax = 2x lea (%eax,%eax,4), %edx C edx = 10x ifdef(`PIC',` call L(pic_calc)
L(here): ',` lea L(ent)(%eax,%edx,2), %eax C eax = 22x ')
pxor %mm1, %mm1
pxor %mm0, %mm0
jmp *%eax
ifdef(`PIC',`
L(pic_calc):
C See mpn/x86/README about old gas bugs lea (%eax,%edx,2), %eax add $L(ent)-L(here), %eax add (%esp), %eax
ret_internal ')
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.