Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Harfbuzz
提交
5252677e
T
Third Party Harfbuzz
项目概览
OpenHarmony
/
Third Party Harfbuzz
1 年多 前同步成功
通知
0
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看板
提交
5252677e
编写于
5月 10, 2019
作者:
B
Behdad Esfahbod
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[meta] Rewrite hb_int_min/max
上级
caa3f92e
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
22 addition
and
22 deletion
+22
-22
src/hb-meta.hh
src/hb-meta.hh
+22
-22
未找到文件。
src/hb-meta.hh
浏览文件 @
5252677e
...
...
@@ -265,30 +265,30 @@ using hb_is_unsigned = hb_conditional<hb_is_arithmetic (T),
#define hb_is_unsigned(T) hb_is_unsigned<T>::value
template
<
typename
T
>
struct
hb_int_min
;
template
<
>
struct
hb_int_min
<
char
>
{
static
constexpr
char
value
=
CHAR_MIN
;
};
template
<
>
struct
hb_int_min
<
signed
char
>
{
static
constexpr
signed
char
value
=
SCHAR_MIN
;
};
template
<
>
struct
hb_int_min
<
unsigned
char
>
{
static
constexpr
unsigned
char
value
=
0
;
};
template
<
>
struct
hb_int_min
<
signed
short
>
{
static
constexpr
signed
short
value
=
SHRT_MIN
;
};
template
<
>
struct
hb_int_min
<
unsigned
short
>
{
static
constexpr
unsigned
short
value
=
0
;
};
template
<
>
struct
hb_int_min
<
signed
int
>
{
static
constexpr
signed
int
value
=
INT_MIN
;
};
template
<
>
struct
hb_int_min
<
unsigned
int
>
{
static
constexpr
unsigned
int
value
=
0
;
};
template
<
>
struct
hb_int_min
<
signed
long
>
{
static
constexpr
signed
long
value
=
LONG_MIN
;
};
template
<
>
struct
hb_int_min
<
unsigned
long
>
{
static
constexpr
unsigned
long
value
=
0
;
};
template
<
>
struct
hb_int_min
<
signed
long
long
>
{
static
constexpr
signed
long
long
value
=
LLONG_MIN
;
};
template
<
>
struct
hb_int_min
<
unsigned
long
long
>
{
static
constexpr
unsigned
long
long
value
=
0
;
};
template
<
>
struct
hb_int_min
<
char
>
:
hb_integral_constant
<
char
,
CHAR_MIN
>
{
};
template
<
>
struct
hb_int_min
<
signed
char
>
:
hb_integral_constant
<
signed
char
,
SCHAR_MIN
>
{
};
template
<
>
struct
hb_int_min
<
unsigned
char
>
:
hb_integral_constant
<
unsigned
char
,
0
>
{
};
template
<
>
struct
hb_int_min
<
signed
short
>
:
hb_integral_constant
<
signed
short
,
SHRT_MIN
>
{
};
template
<
>
struct
hb_int_min
<
unsigned
short
>
:
hb_integral_constant
<
unsigned
short
,
0
>
{
};
template
<
>
struct
hb_int_min
<
signed
int
>
:
hb_integral_constant
<
signed
int
,
INT_MIN
>
{
};
template
<
>
struct
hb_int_min
<
unsigned
int
>
:
hb_integral_constant
<
unsigned
int
,
0
>
{
};
template
<
>
struct
hb_int_min
<
signed
long
>
:
hb_integral_constant
<
signed
long
,
LONG_MIN
>
{
};
template
<
>
struct
hb_int_min
<
unsigned
long
>
:
hb_integral_constant
<
unsigned
long
,
0
>
{
};
template
<
>
struct
hb_int_min
<
signed
long
long
>
:
hb_integral_constant
<
signed
long
long
,
LLONG_MIN
>
{
};
template
<
>
struct
hb_int_min
<
unsigned
long
long
>
:
hb_integral_constant
<
unsigned
long
long
,
0
>
{
};
#define hb_int_min(T) hb_int_min<T>::value
template
<
typename
T
>
struct
hb_int_max
;
template
<
>
struct
hb_int_max
<
char
>
{
static
constexpr
char
value
=
CHAR_MAX
;
};
template
<
>
struct
hb_int_max
<
signed
char
>
{
static
constexpr
signed
char
value
=
SCHAR_MAX
;
};
template
<
>
struct
hb_int_max
<
unsigned
char
>
{
static
constexpr
unsigned
char
value
=
UCHAR_MAX
;
};
template
<
>
struct
hb_int_max
<
signed
short
>
{
static
constexpr
signed
short
value
=
SHRT_MAX
;
};
template
<
>
struct
hb_int_max
<
unsigned
short
>
{
static
constexpr
unsigned
short
value
=
USHRT_MAX
;
};
template
<
>
struct
hb_int_max
<
signed
int
>
{
static
constexpr
signed
int
value
=
INT_MAX
;
};
template
<
>
struct
hb_int_max
<
unsigned
int
>
{
static
constexpr
unsigned
int
value
=
UINT_MAX
;
};
template
<
>
struct
hb_int_max
<
signed
long
>
{
static
constexpr
signed
long
value
=
LONG_MAX
;
};
template
<
>
struct
hb_int_max
<
unsigned
long
>
{
static
constexpr
unsigned
long
value
=
ULONG_MAX
;
};
template
<
>
struct
hb_int_max
<
signed
long
long
>
{
static
constexpr
signed
long
long
value
=
LLONG_MAX
;
};
template
<
>
struct
hb_int_max
<
unsigned
long
long
>
{
static
constexpr
unsigned
long
long
value
=
ULLONG_MAX
;
};
template
<
>
struct
hb_int_max
<
char
>
:
hb_integral_constant
<
char
,
CHAR_MAX
>
{
};
template
<
>
struct
hb_int_max
<
signed
char
>
:
hb_integral_constant
<
signed
char
,
SCHAR_MAX
>
{
};
template
<
>
struct
hb_int_max
<
unsigned
char
>
:
hb_integral_constant
<
unsigned
char
,
UCHAR_MAX
>
{
};
template
<
>
struct
hb_int_max
<
signed
short
>
:
hb_integral_constant
<
signed
short
,
SHRT_MAX
>
{
};
template
<
>
struct
hb_int_max
<
unsigned
short
>
:
hb_integral_constant
<
unsigned
short
,
USHRT_MAX
>
{
};
template
<
>
struct
hb_int_max
<
signed
int
>
:
hb_integral_constant
<
signed
int
,
INT_MAX
>
{
};
template
<
>
struct
hb_int_max
<
unsigned
int
>
:
hb_integral_constant
<
unsigned
int
,
UINT_MAX
>
{
};
template
<
>
struct
hb_int_max
<
signed
long
>
:
hb_integral_constant
<
signed
long
,
LONG_MAX
>
{
};
template
<
>
struct
hb_int_max
<
unsigned
long
>
:
hb_integral_constant
<
unsigned
long
,
ULONG_MAX
>
{
};
template
<
>
struct
hb_int_max
<
signed
long
long
>
:
hb_integral_constant
<
signed
long
long
,
LLONG_MAX
>
{
};
template
<
>
struct
hb_int_max
<
unsigned
long
long
>
:
hb_integral_constant
<
unsigned
long
long
,
ULLONG_MAX
>
{
};
#define hb_int_max(T) hb_int_max<T>::value
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录