dnl Copyright 2002, 2005, 2007 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 603e: ?
C 604e: ? old: 3.25
C 75x (G3): ? old: 3.5
C 7400,7410 (G4): 3.25
C 744x,745x (G4+): 4
C POWER3/PPC630 2
C POWER4/PPC970 2.4
C POWER5 2.75
C POWER6 40-140
C POWER7 3
PROLOGUE(func_nc)
IFADD(` addic r0, cy, -1') C set carry from argument
IFSUB(` subfic r0, cy, 0') C set carry from argument
b L(ent)
EPILOGUE()
PROLOGUE(func)
IFADD(` addic r0, n, 0') C clear carry
IFSUB(` addic r0, n, -1') C set carry
L(ent): andi. r0, n, 3
addi r3, r3, -12
addi n, n, 1
cmpwi cr7, r0, 2
srwi r0, n, 2 sub r4, r4, r3 sub r5, r5, r3
mtctr r0
bne cr0, L(n00)
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.