File: memcpy.S

package info (click to toggle)
criu 4.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 11,500 kB
  • sloc: ansic: 139,280; python: 7,484; sh: 3,824; java: 2,799; makefile: 2,659; asm: 1,137; perl: 206; xml: 117; exp: 45
file content (22 lines) | stat: -rw-r--r-- 270 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22

#include "common/asm/linkage.h"

	.section .head.text, "ax"
ENTRY(memcpy)
	.set noreorder
	dadd v0,zero,a0
	daddiu t1,zero,0
loop:
	beq t1,a2,exit
	nop
	lb t2,0(a1)
	sb t2,0(a0)
	daddiu t1,t1,1
	daddiu a0,a0,1
	daddiu a1,a1,1
	j loop
	nop
exit:
	jr ra
	nop
END(memcpy)