dnl Copyright 1994, 1995, 2000, 2009 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 EV4: ?
C EV5: 3.25
C EV6: 1.75
C INPUT PARAMETERS
C rp r16
C up r17
C n r18
C cnt r19
ASM_START()
PROLOGUE(mpn_rshift)
ldq r4,0(r17) C load first limb
subq r31,r19,r20
subq r18,1,r18 and r18,4-1,r28 C number of limbs in first loop
sll r4,r20,r0 C compute function result
addq r17,32,r17
bne r18,L(top)
C cool down phase 2/1
L(end2):
stq r7,0(r16)
bis r5,r22,r5
stq r8,8(r16)
bis r6,r23,r6
sll r1,r20,r7
srl r1,r19,r21
sll r2,r20,r8
srl r2,r19,r22
stq r5,16(r16)
bis r7,r24,r7
stq r6,24(r16)
bis r8,r21,r8
sll r3,r20,r5
srl r3,r19,r23
sll r4,r20,r6
srl r4,r19,r24
C cool down phase 2/2
stq r7,32(r16)
bis r5,r22,r5
stq r8,40(r16)
bis r6,r23,r6
stq r5,48(r16)
stq r6,56(r16)
C cool down phase 2/3
stq r24,64(r16) ret r31,(r26),1
C cool down phase 1/1
L(end1):
srl r2,r19,r22
sll r3,r20,r5
bis r7,r24,r7
srl r3,r19,r23
bis r8,r21,r8
sll r4,r20,r6
srl r4,r19,r24
C cool down phase 1/2
stq r7,0(r16)
bis r5,r22,r5
stq r8,8(r16)
bis r6,r23,r6
stq r5,16(r16)
stq r6,24(r16)
stq r24,32(r16) ret r31,(r26),1
L(end): stq r24,0(r16) ret r31,(r26),1
EPILOGUE(mpn_rshift)
ASM_END()
Messung V0.5
¤ Dauer der Verarbeitung: 0.12 Sekunden
(vorverarbeitet)
¤
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.