dnl Intel mpn_add_n/mpn_sub_n optimised for Conroe, Nehalem.
dnl Copyright 2006, 2007, 2011-2013 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 cycles/limb
C AMD K8,K9 2
C AMD K10 1.93\2
C AMD bull 1.62\2.1
C AMD pile 1.6\1.7
C AMD steam
C AMD excavator
C AMD bobcat 2.79
C AMD jaguar 2.54
C Intel P4 10
C Intel core2 2
C Intel NHM 2
C Intel SBR 2
C Intel IBR 1.95
C Intel HWL 1.72
C Intel BWL 1.54
C Intel SKL 1.52
C Intel atom 9
C Intel SLM 6.5
C VIA nano 3
lea (up,n,8), up lea (vp,n,8), vp lea (rp,n,8), rp mov R32(n), R32(%rax) neg n and $3, R32(%rax) je L(b00) add %rax, n C clear low rcx bits for jrcxz cmp $2, R32(%rax) jl L(b01) je L(b10)
L(b11): neg %r8 C set cy jmp L(e11)
L(b00): neg %r8 C set cy mov %r10, %r8 mov %r11, %r9 lea 4(n), n jmp L(e00)
nop nop nop
L(b01): neg %r8 C set cy jmp L(top)
L(b10): neg %r8 C set cy mov %r10, %r8 mov %r11, %r9 jmp L(e10)
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.