dnl AMD64 mpn_addlsh1_n, mpn_rsblsh1_n optimised for Intel Atom.
dnl Used also for AMD bd1.
dnl Contributed to the GNU project by Torbjorn Granlund.
dnl Copyright 2011, 2012 Free Software Foundation, Inc.
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 TODO
C * Thiscode is slightly large at 433 bytes.
C * sublsh1_n.asm andthis file use the same basic pattern.
C cycles/limb
C AMD K8,K9 ?
C AMD K10 ?
C AMD bd1 2.3
C AMD bobcat ?
C Intel P4 ?
C Intel core2 ?
C Intel NHM ?
C Intel SBR ?
C Intel atom 4.875 (4.75 is probably possible)
C VIA nano ?
L(end): pop %rbx pop %r14 pop %r13 pop %r12
L(rtn): ifdef(`OPERATION_addlsh1_n',` add R32(%rbp), R32(%rax) neg R32(%rax)') ifdef(`OPERATION_rsblsh1_n',` sub R32(%rax), R32(%rbp)
movslq R32(%rbp), %rax')
pop %rbp
FUNC_EXIT() ret
EPILOGUE()
PROLOGUE(func_nc)
FUNC_ENTRY(4)
IFDOS(` mov 56(%rsp), %r8 ') push %rbp neg %r8 C set CF
sbb R32(%rbp), R32(%rbp) C save acy jmp L(ent)
EPILOGUE()
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.