1 Star 0 Fork 21

jiachao2130/tbb

forked from src-openEuler/tbb 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
bugfix-tbb-fix-__TBB_machine_fetchadd4-was-not-declared-on-.patch 1.30 KB
一键复制 编辑 原始数据 按行查看 历史
sxt1001 提交于 2020-07-24 14:17 . update to 2020.3
From e9a3bdcebf1d469b36b874d01c4116e7e23821cd Mon Sep 17 00:00:00 2001
From: lvying6 <lvying6@huawei.com>
Date: Sun, 26 Apr 2020 17:17:34 +0800
Subject: [PATCH] tbb: fix __TBB_machine_fetchadd4 was not declared on ARM64
../../src/tbb/tools_api/ittnotify_config.h:338:12: error: '__TBB_machine_fetchadd4' was not declared in this scope
return __TBB_machine_fetchadd4(ptr, 1) + 1L;
^~~~~~~~~~~~~~~~~~~~~~~
../../src/tbb/tools_api/ittnotify_config.h:338:12: note:
suggested alternative: '__atomic_fetch_add_4'
return __TBB_machine_fetchadd4(ptr, 1) + 1L;
^~~~~~~~~~~~~~~~~~~~~~~
__atomic_fetch_add_4
Signed-off-by: lvying6 <lvying6@huawei.com>
---
src/tbb/tools_api/ittnotify_config.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/tbb/tools_api/ittnotify_config.h b/src/tbb/tools_api/ittnotify_config.h
index bdb4ec2..041ceb3 100644
--- a/src/tbb/tools_api/ittnotify_config.h
+++ b/src/tbb/tools_api/ittnotify_config.h
@@ -335,7 +335,7 @@ ITT_INLINE long
__itt_interlocked_increment(volatile long* ptr) ITT_INLINE_ATTRIBUTE;
ITT_INLINE long __itt_interlocked_increment(volatile long* ptr)
{
- return __TBB_machine_fetchadd4(ptr, 1) + 1L;
+ return __atomic_fetch_add(ptr, 1L, __ATOMIC_SEQ_CST) + 1L;
}
#endif /* ITT_SIMPLE_INIT */
--
1.8.3.1
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/jiachao2130/tbb.git
git@gitee.com:jiachao2130/tbb.git
jiachao2130
tbb
tbb
master

搜索帮助

D67c1975 1850385 1daf7b77 1850385