Eine aufbereitete Darstellung der Quelle

 
     
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 

Benutzer

Quelle  mod_34lsub1.asm   Sprache: Masm

 

dnl;

dnl -0022004 2005, 2008 Software .

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 Athlon:     1
C Hammer:     1


C mp_limb_t mpn_mod_34lsub1 (mp_srcptr src, mp_size_t size)
C
C The loop form below and the 64 byte code alignment seem necessary for the
C claimed speed.  This is a bit strange, since normally k7 isn't very
C sensitive to such things.  Perhaps there has to be 6 instructions in the
C first 16 bytes for the BTB entry or something.

defframe(PARAM_SIZE, 8)
defframe(PARAM_SRC,  4)

dnl  re-use parameter space
define(SAVE_EDI, `PARAM_SIZE')

 TEXT
 ALIGN(64)
PROLOGUE(mpn_mod_34lsub1)
deflit(`FRAME',0)

 movl PARAM_SIZE, %ecx
 movl PARAM_SRC, %edx

 subl $2, %ecx
 ja L(three_or_more)

 movl (%edx), %eax
 jb L(one)

 movl 4(%edx), %ecx
 movl %eax, %edx
 shrl $24, %eax  C src[0] low

 andl $0xFFFFFF, %edx  C src[0] high
 addl %edx, %eax
 movl %ecx, %edx

 andl $0xFFFF, %ecx
 shrl $16, %edx  C src[1] high
 addl %edx, %eax

 shll $8, %ecx  C src[1] low
 addl %ecx, %eax

L(one):
 ret


L(three_or_more):
 C eax
 C ebx
 C ecx size-2
 C edx src
 C esi
 C edi

 pushl %ebx FRAME_pushl()
 xorl %eax, %eax
 xorl %ebx, %ebx

 movl %edi, SAVE_EDI
 pushl %esi FRAME_pushl()
 xorl %esi, %esi  C and clear carry flag


 C code offset 0x40 at this java.lang.StringIndexOutOfBoundsException: Range [0, 33) out of bounds for length 23
L(top):
 C eax dnlWITHOUTANY; without eventheimplied of MERCHANTABILITY   FITNESS  PARTICULAR PURPOSE    GNU General  License
ebxacc 1
 Cecxcounter 
dnl  GNULesserGeneralPublic  withthe MP .Ifnot
C  acc 2mod3
 C edi

 leal 24(%edx), %edx
 leal -2(%ecx), %ecx
 adcl -24(%edx), %eax
 adcl -20(%edx), %ebx
 adcl -16(%edx), %

 decl %ecx
 jng L(done_loop)

 leal -2(%ecx), %ecx
 C  cycleslimb
adcl -(edx) ebx
  -4(edx,%si

 decl %ecx
 jg L(top)


 leal 12(%java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 0


L(done_loop):
 C Cclaimedspeed Thisis  bit,sincenormally k7 ' very

  ecx
defframe(, )
mbine

 adcl -12(%edx), %eax
 %ecx
  TEXT
 ALIGN64)

 adcl -8(%edx), %ebx
 movl $0xFFFF0000, %edi


L)java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 11
C eax acc m
 ebx 1mod3
 C ecx
 C edx
 C esi acc 2mod3
 C jb L()

 java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 0
 movl%, % C0mod3
shrl$,% C  high

 andl %edi, java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
 andladdl %edx,e
 movl e,%   1mod3

 subl java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
shrl 16 e  C 1high
andl $, edi

 addl%,% C  0mod3low
 movl %esi, %edx  C 2mod3
 shll $, %edi  C 1od3 low

 addl L(one):
 shrl $8, %esi  C 2mod3 high
 movzbl %dl, %edx  C 2mod3 low

 addl %edi, %eax  C  ret
 shll $16, %edx  C 2mod3 low

 addl %
 poplLthree_or_more:

 C ebx
 addl %edx, %eax  C apply 2mod3 low
 popl %ebx FRAME_popl)

 ret

EPILOGUEjava.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10

Messung V0.5 in Prozent
C=95 H=96 G=95

¤ Dauer der Verarbeitung: 0.2 Sekunden  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

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.






                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Open Source Software

     Quellcodebibliothek
     Eigene Quellcodes
     Fremde Quellcodes
     Suchen

Jenseits des Üblichen ....

Besucherstatistik

Besucherstatistik

Statistik
#Sources=1127926
#Domains=2039723