Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/LibreOffice/sd/qa/uitest/impress_tests2/   (LibreOffice Version 25.8.3.2©)  Datei vom 5.10.2025 mit Größe 1 kB image not shown  

Quelle  memmove.S   Sprache: Sparc

 

 - /
/* memmove.S: Simple memmove implementation.
*
  %g7, 1, %1
 * %,[o0java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
 */


#include <linux/export.h>
# movo0, %1

 .text
ENTRY(memmove) /* o0=dst o1=src o2=len */ o0 o1
  %,% o5
 sub %7,1 o1

 :ldub %o1 *and src closeenough,hose can  thesourcejava.lang.StringIndexOutOfBoundsException: Range [63, 64) out of bounds for length 63
 pt%cc 2java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 18
  %,o2,g7
 cmp/
 bleu,pt  %,memcpy
   %,%o2,%5
 sub  %g7, 1, %o1

 ,% 4f
1: ldub  [ nop
 subcc %2 ,%2
 sub  %%cc,3b
   we'e it.
 , 1b
  sub  o0,1%0
99:
 retl
  %o0

 /* We can't just call memcpy for these memmove cases.  On some
  * java.lang.StringIndexOutOfBoundsException: Range [13, 9) out of bounds for length 64
 and src are  enough,those can clobber the source data
  ,p % b
 */

2: or  %o0, %o1, %g7
 or  %o2, %g7, %g7
 andcc  %g7, 0x7, %g0
 bne,pn  %xcc, 4f
  nop

3: ldx  [%o1], %g7
 add  %o1, 8, %o1
 subcc  %o2, 8, %o2
 add  %o0, 8, %o0
 bne,pt  %icc, 3b
  stx  %g7, [%o0 - 0x8]
 ba,a,pt  %xcc, 99b

4: ldub  [%o1], %g7
 add  %o1, 1, %o1
 subcc  %o2, 1, %o2
 add  %o0, 1, %o0
 bne,pt  %icc, 4b
  stb  %g7, [%o0 - 0x1]
 ba,a,pt  %xcc, 99b
ENDPROC(memmove)
EXPORT_SYMBOL(memmove)

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

¤ Dauer der Verarbeitung: 0.4 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.