Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Musl
提交
27828f7e
T
Third Party Musl
项目概览
OpenHarmony
/
Third Party Musl
1 年多 前同步成功
通知
37
Star
125
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
Third Party Musl
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
27828f7e
编写于
11月 06, 2014
作者:
J
Joakim Sindholt
提交者:
Rich Felker
11月 23, 2014
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
arm assembly changes for clang compatibility
上级
4134c68d
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
32 addition
and
32 deletion
+32
-32
src/setjmp/arm/longjmp.s
src/setjmp/arm/longjmp.s
+1
-1
src/setjmp/arm/setjmp.s
src/setjmp/arm/setjmp.s
+1
-1
src/string/armel/memcpy.s
src/string/armel/memcpy.s
+30
-30
未找到文件。
src/setjmp/arm/longjmp.s
浏览文件 @
27828f7e
...
...
@@ -20,7 +20,7 @@ longjmp:
ldc
p2
,
cr4
,
[
ip
],
#
48
2
:
tst
r1
,#
0x40
beq
2
f
ldc
p11
,
cr8
,
[
ip
],
#
64
.
inst
0xecbc8b10
/*
vldmia
ip
!,
{
d8
-
d15
}
*/
2
:
tst
r1
,#
0x200
beq
3
f
ldcl
p1
,
cr10
,
[
ip
],
#
8
...
...
src/setjmp/arm/setjmp.s
浏览文件 @
27828f7e
...
...
@@ -22,7 +22,7 @@ setjmp:
stc
p2
,
cr4
,
[
ip
],
#
48
2
:
tst
r1
,#
0x40
beq
2
f
stc
p11
,
cr8
,
[
ip
],
#
64
.
inst
0xecac8b10
/*
vstmia
ip
!,
{
d8
-
d15
}
*/
2
:
tst
r1
,#
0x200
beq
3
f
stcl
p1
,
cr10
,
[
ip
],
#
8
...
...
src/string/armel/memcpy.s
浏览文件 @
27828f7e
...
...
@@ -73,12 +73,12 @@ memcpy:
*/
movs
r12
,
r3
,
lsl
#
31
sub
r2
,
r2
,
r3
/*
we
know
that
r3
<=
r2
because
r2
>=
4
*/
ldr
mib
r3
,
[
r1
],
#
1
ldr
csb
r4
,
[
r1
],
#
1
ldr
csb
r12
,[
r1
],
#
1
str
mib
r3
,
[
r0
],
#
1
str
csb
r4
,
[
r0
],
#
1
str
csb
r12
,[
r0
],
#
1
ldr
bmi
r3
,
[
r1
],
#
1
ldr
bcs
r4
,
[
r1
],
#
1
ldr
bcs
r12
,[
r1
],
#
1
str
bmi
r3
,
[
r0
],
#
1
str
bcs
r4
,
[
r0
],
#
1
str
bcs
r12
,[
r0
],
#
1
src_aligned
:
...
...
@@ -101,10 +101,10 @@ src_aligned:
/
*
conditionnaly
copies
0
to
7
words
(
length
in
r3
)
*/
movs
r12
,
r3
,
lsl
#
28
ldm
csia
r1
!,
{
r4
,
r5
,
r6
,
r7
}
/*
16
bytes
*/
ldm
miia
r1
!,
{
r8
,
r9
}
/*
8
bytes
*/
stm
csia
r0
!,
{
r4
,
r5
,
r6
,
r7
}
stm
miia
r0
!,
{
r8
,
r9
}
ldm
iacs
r1
!,
{
r4
,
r5
,
r6
,
r7
}
/*
16
bytes
*/
ldm
iami
r1
!,
{
r8
,
r9
}
/*
8
bytes
*/
stm
iacs
r0
!,
{
r4
,
r5
,
r6
,
r7
}
stm
iami
r0
!,
{
r8
,
r9
}
tst
r3
,
#
0x4
ldrne
r10
,[
r1
],
#
4
/*
4
bytes
*/
strne
r10
,[
r0
],
#
4
...
...
@@ -171,18 +171,18 @@ less_than_32_left:
/
*
conditionnaly
copies
0
to
31
bytes
*/
movs
r12
,
r2
,
lsl
#
28
ldm
csia
r1
!,
{
r4
,
r5
,
r6
,
r7
}
/*
16
bytes
*/
ldm
miia
r1
!,
{
r8
,
r9
}
/*
8
bytes
*/
stm
csia
r0
!,
{
r4
,
r5
,
r6
,
r7
}
stm
miia
r0
!,
{
r8
,
r9
}
ldm
iacs
r1
!,
{
r4
,
r5
,
r6
,
r7
}
/*
16
bytes
*/
ldm
iami
r1
!,
{
r8
,
r9
}
/*
8
bytes
*/
stm
iacs
r0
!,
{
r4
,
r5
,
r6
,
r7
}
stm
iami
r0
!,
{
r8
,
r9
}
movs
r12
,
r2
,
lsl
#
30
ldrcs
r3
,
[
r1
],
#
4
/*
4
bytes
*/
ldr
mih
r4
,
[
r1
],
#
2
/*
2
bytes
*/
ldr
hmi
r4
,
[
r1
],
#
2
/*
2
bytes
*/
strcs
r3
,
[
r0
],
#
4
str
mih
r4
,
[
r0
],
#
2
str
hmi
r4
,
[
r0
],
#
2
tst
r2
,
#
0x1
ldr
neb
r3
,
[
r1
]
/*
last
byte
*/
str
neb
r3
,
[
r0
]
ldr
bne
r3
,
[
r1
]
/*
last
byte
*/
str
bne
r3
,
[
r0
]
/
*
we
're done! restore everything and return */
1
:
ldmfd
sp
!,
{
r5
-
r11
}
...
...
@@ -224,11 +224,11 @@ non_congruent:
*
becomes
aligned
to
32
bits
(
r5
=
nb
of
words
to
copy
for
alignment
)
*/
movs
r5
,
r5
,
lsl
#
31
str
mib
r3
,
[
r0
],
#
1
str
bmi
r3
,
[
r0
],
#
1
movmi
r3
,
r3
,
lsr
#
8
str
csb
r3
,
[
r0
],
#
1
str
bcs
r3
,
[
r0
],
#
1
movcs
r3
,
r3
,
lsr
#
8
str
csb
r3
,
[
r0
],
#
1
str
bcs
r3
,
[
r0
],
#
1
movcs
r3
,
r3
,
lsr
#
8
cmp
r2
,
#
4
...
...
@@ -355,23 +355,23 @@ less_than_thirtytwo:
partial_word_tail
:
/
*
we
have
a
partial
word
in
the
input
buffer
*/
movs
r5
,
lr
,
lsl
#(
31
-
3
)
str
mib
r3
,
[
r0
],
#
1
str
bmi
r3
,
[
r0
],
#
1
movmi
r3
,
r3
,
lsr
#
8
str
csb
r3
,
[
r0
],
#
1
str
bcs
r3
,
[
r0
],
#
1
movcs
r3
,
r3
,
lsr
#
8
str
csb
r3
,
[
r0
],
#
1
str
bcs
r3
,
[
r0
],
#
1
/
*
Refill
spilled
registers
from
the
stack
.
Don
't update sp. */
ldmfd
sp
,
{
r5
-
r11
}
copy_last_3_and_return
:
movs
r2
,
r2
,
lsl
#
31
/*
copy
remaining
0
,
1
,
2
or
3
bytes
*/
ldr
mib
r2
,
[
r1
],
#
1
ldr
csb
r3
,
[
r1
],
#
1
ldr
csb
r12
,[
r1
]
str
mib
r2
,
[
r0
],
#
1
str
csb
r3
,
[
r0
],
#
1
str
csb
r12
,[
r0
]
ldr
bmi
r2
,
[
r1
],
#
1
ldr
bcs
r3
,
[
r1
],
#
1
ldr
bcs
r12
,[
r1
]
str
bmi
r2
,
[
r0
],
#
1
str
bcs
r3
,
[
r0
],
#
1
str
bcs
r12
,[
r0
]
/
*
we
're done! restore sp and spilled registers and return */
add
sp
,
sp
,
#
28
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录