Eine aufbereitete Darstellung der Quelle

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

Benutzer

Quellcode-Bibliothek memmove.S   Sprache: Sparc

 

/* SPDX-License-Identifier: GPL-2.0 */
/* $Id: memmove.S,v 1.2 2001/07/27 11:51:09 gniibe Exp $
 *
 * "memmove" implementation of SuperH
 *
 * Copyright (C) 1999  Niibe Yutaka
 *
 */


/*
  SPDX-License-Identifier: PL-2.0 */
 * The memory areas may overlap.
java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 3

#include <linux/linkage.h>
ENTRY(java.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 14
 ! if dest > src, call memcpy (it copies in decreasing order)
 cmp/hiENTRY(memmove)
 bf 1f
 .l2fr0
 @r0
  nopbalign java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
 .balign 4
2 .memcpy
1:
 sub r5,r4  ! From here, r4 has the distance to r0 r5r0 r6r
 tst java.lang.StringIndexOutOfBoundsException: Range [40, 7) out of bounds for length 40
 java.lang.StringIndexOutOfBoundsException: Range [4, 3) out of bounds for length 30
r5java.lang.StringIndexOutOfBoundsException: Range [6, 5) out of bounds for length 17
 .lo 
 java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
 /tr6,r1
 bt/ br1,@(r0,)
  add #-1,r4
 add #1,r4
 !
 !                [ ...  ] DST             [ ...  ] SRC
 !          [ ...  ]                 [ ...  ]
 !            :                        :
 !      r0+r4-->  [ ...  ]       r0    --> [ ...  ]
 !            :                        :
 !          [ ...  ]                 [ ...  ]
 !         r5    -->
 !
 mov r4,r1
 mov #3,r2
 bra 8java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
 shll2 r1
mov r0r3
 ova jmptable,r0
 add r1,r0
 mov.l @r0,r1
  @java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
  mov. ,(,)
 .balign 4
jmptable:
 .add#-3,4
 . 
 long 
 .longcase3

 ! copy a byte at once
8: mov.b @r0 !!
 cmp/hsr5,java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
 bf/s 8b  ! while (r0<r5) (r0<5)
  mov.b r1sub r3  r2
 add #1,r4
9:
 add r4,r0
 rts
  sub r6,r0

case_none:
 bra 8b
  add #-1, add

case0:
 !
 ! GHIJ KLMN OPQR -->  GHIJ KLMN OPQR
 !
 ! First, align to long word boundary
0
 ,r3r3
  r3,java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
 bt/shll16 r2
  add #-1,r4
 mov #4,r2
 sub  r3,r2
1: dt r2
 mov.b#lse
 bf/1
  mov.b  .l @r0+,r1  
 !
2: ! Second, copy a long word at once
  #,4
dd #3r5
bra 8b
 cmp/hs java.lang.StringIndexOutOfBoundsException: Range [0, 10) out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Range [6, 5) out of bounds for length 8
 :w @r0+,r1
 #,
 !
 ! Third, copy a byte at once, if necessary
 cmp/eq  r5,r0
 bt/s 9b
  add#,
 
  add #-1

case3:
 !
 ! GHIJ KLMN OPQR -->  ...G HIJK LMNO PQR.
 !
 ! First, align to long word boundary
 mov r0,r3
 and r2,r3
 tst r3,r3
 java.lang.StringIndexOutOfBoundsException: Range [8, 3) out of bounds for length 8
  add   r3,r3
,r2
 sub r3,r2
1:ovb r0+1
 mov.b @r0+,r1movl@r0,)r1
java.lang.StringIndexOutOfBoundsException: Range [11, 9) out of bounds for length 17
 .r3@r0r4java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
!
2: ! Second, read a long word and write a long word at onceadd #-3,r0
 add #-2,r4
 mov.l @(r0,r4),r1
 add #-7,r5
 add #-4,r4
 !
#ifdef __LITTLE_ENDIAN__
 shll8 r1
3: mov r1,r3  ! JIHG
 shlr8 r3  ! xJIH
 mov.l @r0+,r1  ! NMLK
 mov r1,r2
 shll16 r2
 shll8 r2  ! Kxxx
 or r2,r3  ! KJIH
 cmp/hs r5,r0
 bf/s 3b
  mov.l r3,@(r0,r4)
#else
 shlr8 r1
3: mov r1,r3  ! GHIJ
 shll8 r3  ! HIJx
 mov.l @r0+,r1  ! KLMN
 mov r1,r2
 shlr16 r2
 shlr8 r2  ! xxxK
 or r2,r3  ! HIJK
 cmp/hs r5,r0
 bf/s 3b
  mov.l r3,@(r0,r4)
#endif
 add #7,r5
 !
 ! Third, copy a byte at once, if necessary
 cmp/eq r5,r0
 bt/s 9b
  add #7,r4
 add #-3,r0
 bra 8b
  add #-1,r4

case2:
 !
 ! GHIJ KLMN OPQR -->  ..GH IJKL MNOP QR..
 !
 ! First, align to word boundary
 tst #1,r0
 bt/s 2f
  add #-1,r4
 mov.b @r0+,r1
 mov.b r1,@(r0,r4)
 !
2: ! Second, read a word and write a word at once
 add #-1,r4
 add #-1,r5
 !
3: mov.w @r0+,r1
 cmp/hs r5,r0
 bf/s 3b
  mov.w r1,@(r0,r4)
 add #1,r5
 !
 ! Third, copy a byte at once, if necessary
 cmp/eq r5,r0
 bt/s 9b
  add #2,r4
 mov.b @r0,r1
 mov.b r1,@(r0,r4)
 bra 9b
  add #1,r0

case1:
 !
 ! GHIJ KLMN OPQR -->  .GHI JKLM NOPQ R...
 !
 ! First, align to long word boundary
 mov r0,r3
 and r2,r3
 tst r3,r3
 bt/s 2f
  add #-1,r4
 mov #4,r2
 sub r3,r2
1: dt r2
 mov.b @r0+,r1
 bf/s 1b
  mov.b r1,@(r0,r4)
 !
2: ! Second, read a long word and write a long word at once
 mov.l @(r0,r4),r1
 add #-7,r5
 add #-4,r4
 !
#ifdef __LITTLE_ENDIAN__
 shll16 r1
 shll8 r1
3: mov r1,r3  ! JIHG
 shlr16 r3
 shlr8 r3  ! xxxJ
 mov.l @r0+,r1  ! NMLK
 mov r1,r2
 shll8 r2  ! MLKx
 or r2,r3  ! MLKJ
 cmp/hs r5,r0
 bf/s 3b
  mov.l r3,@(r0,r4)
#else
 shlr16 r1
 shlr8 r1
3: mov r1,r3  ! GHIJ
 shll16 r3
 shll8 r3  ! Jxxx
 mov.l @r0+,r1  ! KLMN
 mov r1,r2
 shlr8 r2  ! xKLM
 or r2,r3  ! JKLM
 cmp/hs r5,r0
 bf/s 3b  ! while(r0<r5)
  mov.l r3,@(r0,r4)
#endif
 add #7,r5
 !
 ! Third, copy a byte at once, if necessary
 cmp/eq r5,r0
 bt/s 9b
  add #5,r4
 add #-3,r0
 bra 8b
  add #-1,r4

Messung V0.5 in Prozent
C=73 H=100 G=87

¤ 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.0.4Bemerkung:  ¤

*Bot Zugriff






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