summaryrefslogtreecommitdiff
path: root/src/string/arm/__aeabi_memset.s
blob: f9f605838bd973d42f4dfb76d7bce66a0353e780 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
.syntax unified

.global __aeabi_memclr8
.global __aeabi_memclr4
.global __aeabi_memclr
.global __aeabi_memset8
.global __aeabi_memset4
.global __aeabi_memset

.type __aeabi_memclr8,%function
.type __aeabi_memclr4,%function
.type __aeabi_memclr,%function
.type __aeabi_memset8,%function
.type __aeabi_memset4,%function
.type __aeabi_memset,%function

__aeabi_memclr8:
__aeabi_memclr4:
__aeabi_memclr:
	movs  r2, #0
__aeabi_memset8:
__aeabi_memset4:
__aeabi_memset:
	cmp   r1, #0
	beq   2f
	adds  r1, r0, r1
1:	strb  r2, [r0]
	adds  r0, r0, #1
	cmp   r1, r0
	bne   1b
2:	bx    lr