Skip to content
GitLab
菜单
项目
群组
代码片段
帮助
帮助
支持
社区论坛
快捷键
?
提交反馈
登录/注册
切换导航
菜单
打开侧边栏
Panda
TinyCC
提交
468f338e
提交
468f338e
编辑于
4月 06, 2021
作者:
Danny Milosavljevic
浏览文件
riscv64-asm: Optimize gen_le32
上级
99189ea7
变更
1
Hide whitespace changes
Inline
Side-by-side
riscv64-asm.c
浏览文件 @
468f338e
...
...
@@ -40,8 +40,16 @@ ST_FUNC void gen_le16 (int i)
ST_FUNC
void
gen_le32
(
int
i
)
{
gen_le16
(
i
);
gen_le16
(
i
>>
16
);
int
ind1
;
if
(
nocode_wanted
)
return
;
ind1
=
ind
+
4
;
if
(
ind1
>
cur_text_section
->
data_allocated
)
section_realloc
(
cur_text_section
,
ind1
);
cur_text_section
->
data
[
ind
++
]
=
i
&
0xFF
;
cur_text_section
->
data
[
ind
++
]
=
(
i
>>
8
)
&
0xFF
;
cur_text_section
->
data
[
ind
++
]
=
(
i
>>
16
)
&
0xFF
;
cur_text_section
->
data
[
ind
++
]
=
(
i
>>
24
)
&
0xFF
;
}
ST_FUNC
void
gen_expr32
(
ExprValue
*
pe
)
...
...
编辑
预览
Supports
Markdown
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录