未验证 提交 91d74bb7 编写于 作者: O openharmony_ci 提交者: Gitee

!314 memcpy性能优化

Merge pull request !314 from fangting10/pr_312
......@@ -269,9 +269,15 @@ template("musl_libs") {
]
if (musl_arch == "arm") {
sources_orig -= [ "src/thread/${musl_arch}/__set_thread_area.c" ]
sources_orig -= [
"src/thread/${musl_arch}/__set_thread_area.c",
"src/string/arm/memcpy_le.S",
]
} else if (musl_arch == "aarch64") {
sources_orig -= [ "src/thread/${musl_arch}/__set_thread_area.s" ]
sources_orig -= [
"src/thread/${musl_arch}/__set_thread_area.s",
"src/string/memcpy.c",
]
}
if ("${target_abi}" == "a7_hard_neon-vfpv4") {
......@@ -282,6 +288,14 @@ template("musl_libs") {
sources += [ "${target_out_dir}/${musl_ported_dir}/${s}" ]
}
if (musl_arch == "arm") {
sources += [ "//third_party/optimized-routines/string/arm/memcpy.S" ]
asmflags = [ "-D__memcpy_arm = memcpy" ]
} else if (musl_arch == "aarch64") {
sources += [ "//third_party/optimized-routines/string/aarch64/memcpy.S" ]
asmflags = [ "-D__memcpy_aarch64 = memcpy" ]
}
cflags = [
"-O3",
"-fPIC",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册