Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Harfbuzz
提交
e36cd1df
T
Third Party Harfbuzz
项目概览
OpenHarmony
/
Third Party Harfbuzz
接近 2 年 前同步成功
通知
1
Star
18
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
Third Party Harfbuzz
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
e36cd1df
编写于
5月 31, 2018
作者:
B
Behdad Esfahbod
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Remove trivial HB_ATOMIC_INT_INIT()
上级
550a70f8
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
2 addition
and
9 deletion
+2
-9
src/hb-atomic-private.hh
src/hb-atomic-private.hh
+1
-8
src/hb-object-private.hh
src/hb-object-private.hh
+1
-1
未找到文件。
src/hb-atomic-private.hh
浏览文件 @
e36cd1df
...
@@ -63,7 +63,6 @@ static inline void _HBMemoryBarrier (void) {
...
@@ -63,7 +63,6 @@ static inline void _HBMemoryBarrier (void) {
}
}
typedef
LONG
hb_atomic_int_impl_t
;
typedef
LONG
hb_atomic_int_impl_t
;
#define HB_ATOMIC_INT_IMPL_INIT(V) (V)
#define hb_atomic_int_impl_add(AI, V) InterlockedExchangeAdd (&(AI), (V))
#define hb_atomic_int_impl_add(AI, V) InterlockedExchangeAdd (&(AI), (V))
#define hb_atomic_ptr_impl_get(P) (_HBMemoryBarrier (), (void *) *(P))
#define hb_atomic_ptr_impl_get(P) (_HBMemoryBarrier (), (void *) *(P))
...
@@ -73,7 +72,6 @@ typedef LONG hb_atomic_int_impl_t;
...
@@ -73,7 +72,6 @@ typedef LONG hb_atomic_int_impl_t;
#elif !defined(HB_NO_MT) && defined(HAVE_INTEL_ATOMIC_PRIMITIVES)
#elif !defined(HB_NO_MT) && defined(HAVE_INTEL_ATOMIC_PRIMITIVES)
typedef
int
hb_atomic_int_impl_t
;
typedef
int
hb_atomic_int_impl_t
;
#define HB_ATOMIC_INT_IMPL_INIT(V) (V)
#define hb_atomic_int_impl_add(AI, V) __sync_fetch_and_add (&(AI), (V))
#define hb_atomic_int_impl_add(AI, V) __sync_fetch_and_add (&(AI), (V))
#define hb_atomic_ptr_impl_get(P) (void *) (__sync_synchronize (), *(P))
#define hb_atomic_ptr_impl_get(P) (void *) (__sync_synchronize (), *(P))
...
@@ -86,7 +84,6 @@ typedef int hb_atomic_int_impl_t;
...
@@ -86,7 +84,6 @@ typedef int hb_atomic_int_impl_t;
#include <mbarrier.h>
#include <mbarrier.h>
typedef
unsigned
int
hb_atomic_int_impl_t
;
typedef
unsigned
int
hb_atomic_int_impl_t
;
#define HB_ATOMIC_INT_IMPL_INIT(V) (V)
#define hb_atomic_int_impl_add(AI, V) ( ({__machine_rw_barrier ();}), atomic_add_int_nv (&(AI), (V)) - (V))
#define hb_atomic_int_impl_add(AI, V) ( ({__machine_rw_barrier ();}), atomic_add_int_nv (&(AI), (V)) - (V))
#define hb_atomic_ptr_impl_get(P) ( ({__machine_rw_barrier ();}), (void *) *(P))
#define hb_atomic_ptr_impl_get(P) ( ({__machine_rw_barrier ();}), (void *) *(P))
...
@@ -104,7 +101,6 @@ typedef unsigned int hb_atomic_int_impl_t;
...
@@ -104,7 +101,6 @@ typedef unsigned int hb_atomic_int_impl_t;
typedef
int32_t
hb_atomic_int_impl_t
;
typedef
int32_t
hb_atomic_int_impl_t
;
#define HB_ATOMIC_INT_IMPL_INIT(V) (V)
#define hb_atomic_int_impl_add(AI, V) (OSAtomicAdd32Barrier ((V), &(AI)) - (V))
#define hb_atomic_int_impl_add(AI, V) (OSAtomicAdd32Barrier ((V), &(AI)) - (V))
#define hb_atomic_ptr_impl_get(P) (OSMemoryBarrier (), (void *) *(P))
#define hb_atomic_ptr_impl_get(P) (OSMemoryBarrier (), (void *) *(P))
...
@@ -138,7 +134,6 @@ static inline int _hb_compare_and_swaplp(volatile long* P, long O, long N) {
...
@@ -138,7 +134,6 @@ static inline int _hb_compare_and_swaplp(volatile long* P, long O, long N) {
}
}
typedef
int
hb_atomic_int_impl_t
;
typedef
int
hb_atomic_int_impl_t
;
#define HB_ATOMIC_INT_IMPL_INIT(V) (V)
#define hb_atomic_int_impl_add(AI, V) _hb_fetch_and_add (&(AI), (V))
#define hb_atomic_int_impl_add(AI, V) _hb_fetch_and_add (&(AI), (V))
#define hb_atomic_ptr_impl_get(P) (__sync(), (void *) *(P))
#define hb_atomic_ptr_impl_get(P) (__sync(), (void *) *(P))
...
@@ -149,7 +144,6 @@ typedef int hb_atomic_int_impl_t;
...
@@ -149,7 +144,6 @@ typedef int hb_atomic_int_impl_t;
#define HB_ATOMIC_INT_NIL 1
/* Warn that fallback implementation is in use. */
#define HB_ATOMIC_INT_NIL 1
/* Warn that fallback implementation is in use. */
typedef
volatile
int
hb_atomic_int_impl_t
;
typedef
volatile
int
hb_atomic_int_impl_t
;
#define HB_ATOMIC_INT_IMPL_INIT(V) (V)
#define hb_atomic_int_impl_add(AI, V) (((AI) += (V)) - (V))
#define hb_atomic_int_impl_add(AI, V) (((AI) += (V)) - (V))
#define hb_atomic_ptr_impl_get(P) ((void *) *(P))
#define hb_atomic_ptr_impl_get(P) ((void *) *(P))
...
@@ -159,7 +153,6 @@ typedef volatile int hb_atomic_int_impl_t;
...
@@ -159,7 +153,6 @@ typedef volatile int hb_atomic_int_impl_t;
#else
/* HB_NO_MT */
#else
/* HB_NO_MT */
typedef
int
hb_atomic_int_impl_t
;
typedef
int
hb_atomic_int_impl_t
;
#define HB_ATOMIC_INT_IMPL_INIT(V) (V)
#define hb_atomic_int_impl_add(AI, V) (((AI) += (V)) - (V))
#define hb_atomic_int_impl_add(AI, V) (((AI) += (V)) - (V))
#define hb_atomic_ptr_impl_get(P) ((void *) *(P))
#define hb_atomic_ptr_impl_get(P) ((void *) *(P))
...
@@ -169,7 +162,7 @@ typedef int hb_atomic_int_impl_t;
...
@@ -169,7 +162,7 @@ typedef int hb_atomic_int_impl_t;
#endif
#endif
#define HB_ATOMIC_INT_INIT(V)
{HB_ATOMIC_INT_IMPL_INIT(V)
}
#define HB_ATOMIC_INT_INIT(V)
{V
}
struct
hb_atomic_int_t
struct
hb_atomic_int_t
{
{
...
...
src/hb-object-private.hh
浏览文件 @
e36cd1df
...
@@ -43,7 +43,7 @@
...
@@ -43,7 +43,7 @@
#define HB_REFERENCE_COUNT_INERT_VALUE 0
#define HB_REFERENCE_COUNT_INERT_VALUE 0
#define HB_REFERENCE_COUNT_POISON_VALUE -0x0000DEAD
#define HB_REFERENCE_COUNT_POISON_VALUE -0x0000DEAD
#define HB_REFERENCE_COUNT_INIT {HB_ATOMIC_INT_INIT(HB_REFERENCE_COUNT_INERT_VALUE)}
#define HB_REFERENCE_COUNT_INIT {HB_ATOMIC_INT_INIT
(HB_REFERENCE_COUNT_INERT_VALUE)}
struct
hb_reference_count_t
struct
hb_reference_count_t
{
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录