Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
76eba0d9
T
Third Party Openssl
项目概览
OpenHarmony
/
Third Party Openssl
1 年多 前同步成功
通知
10
Star
18
Fork
1
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
Third Party Openssl
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
76eba0d9
编写于
11月 21, 2015
作者:
A
Andy Polyakov
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
x86_64 assembly pack: tune clang version detection.
RT#4142 Reviewed-by:
N
Richard Levitte
<
levitte@openssl.org
>
上级
193ed2d7
变更
13
隐藏空白更改
内联
并排
Showing
13 changed file
with
13 addition
and
13 deletion
+13
-13
crypto/aes/asm/aesni-mb-x86_64.pl
crypto/aes/asm/aesni-mb-x86_64.pl
+1
-1
crypto/aes/asm/aesni-sha1-x86_64.pl
crypto/aes/asm/aesni-sha1-x86_64.pl
+1
-1
crypto/aes/asm/aesni-sha256-x86_64.pl
crypto/aes/asm/aesni-sha256-x86_64.pl
+1
-1
crypto/bn/asm/rsaz-x86_64.pl
crypto/bn/asm/rsaz-x86_64.pl
+1
-1
crypto/bn/asm/x86_64-mont.pl
crypto/bn/asm/x86_64-mont.pl
+1
-1
crypto/bn/asm/x86_64-mont5.pl
crypto/bn/asm/x86_64-mont5.pl
+1
-1
crypto/ec/asm/ecp_nistz256-x86_64.pl
crypto/ec/asm/ecp_nistz256-x86_64.pl
+1
-1
crypto/modes/asm/aesni-gcm-x86_64.pl
crypto/modes/asm/aesni-gcm-x86_64.pl
+1
-1
crypto/modes/asm/ghash-x86_64.pl
crypto/modes/asm/ghash-x86_64.pl
+1
-1
crypto/sha/asm/sha1-mb-x86_64.pl
crypto/sha/asm/sha1-mb-x86_64.pl
+1
-1
crypto/sha/asm/sha1-x86_64.pl
crypto/sha/asm/sha1-x86_64.pl
+1
-1
crypto/sha/asm/sha256-mb-x86_64.pl
crypto/sha/asm/sha256-mb-x86_64.pl
+1
-1
crypto/sha/asm/sha512-x86_64.pl
crypto/sha/asm/sha512-x86_64.pl
+1
-1
未找到文件。
crypto/aes/asm/aesni-mb-x86_64.pl
浏览文件 @
76eba0d9
...
...
@@ -63,7 +63,7 @@ if (!$avx && $win64 && ($flavour =~ /masm/ || $ENV{ASM} =~ /ml64/) &&
$avx
=
(
$
1
>=
10
)
+
(
$
1
>=
11
);
}
if
(
!
$avx
&&
`
$ENV
{CC} -v 2>&1
`
=~
/(
^clang
version|based on LLVM) ([3-9]\.[0-9]+)/
)
{
if
(
!
$avx
&&
`
$ENV
{CC} -v 2>&1
`
=~
/(
(?:^clang|LLVM)
version|based on LLVM) ([3-9]\.[0-9]+)/
)
{
$avx
=
(
$
2
>=
3.0
)
+
(
$
2
>
3.0
);
}
...
...
crypto/aes/asm/aesni-sha1-x86_64.pl
浏览文件 @
76eba0d9
...
...
@@ -96,7 +96,7 @@ $avx=1 if (!$avx && $win64 && ($flavour =~ /nasm/ || $ENV{ASM} =~ /nasm/) &&
$avx
=
1
if
(
!
$avx
&&
$win64
&&
(
$flavour
=~
/masm/
||
$ENV
{
ASM
}
=~
/ml64/
)
&&
`
ml64 2>&1
`
=~
/Version ([0-9]+)\./
&&
$
1
>=
10
);
$avx
=
1
if
(
!
$avx
&&
`
$ENV
{CC} -v 2>&1
`
=~
/(
^clang
version|based on LLVM) ([3-9]\.[0-9]+)/
&&
$
2
>=
3.0
);
$avx
=
1
if
(
!
$avx
&&
`
$ENV
{CC} -v 2>&1
`
=~
/(
(?:^clang|LLVM)
version|based on LLVM) ([3-9]\.[0-9]+)/
&&
$
2
>=
3.0
);
$shaext
=
1
;
### set to zero if compiling for 1.0.1
...
...
crypto/aes/asm/aesni-sha256-x86_64.pl
浏览文件 @
76eba0d9
...
...
@@ -60,7 +60,7 @@ if (!$avx && $win64 && ($flavour =~ /masm/ || $ENV{ASM} =~ /ml64/) &&
$avx
=
(
$
1
>=
10
)
+
(
$
1
>=
12
);
}
if
(
!
$avx
&&
`
$ENV
{CC} -v 2>&1
`
=~
/(
^clang
version|based on LLVM) ([3-9]\.[0-9]+)/
)
{
if
(
!
$avx
&&
`
$ENV
{CC} -v 2>&1
`
=~
/(
(?:^clang|LLVM)
version|based on LLVM) ([3-9]\.[0-9]+)/
)
{
$avx
=
(
$
2
>=
3.0
)
+
(
$
2
>
3.0
);
}
...
...
crypto/bn/asm/rsaz-x86_64.pl
浏览文件 @
76eba0d9
...
...
@@ -113,7 +113,7 @@ if (!$addx && $win64 && ($flavour =~ /masm/ || $ENV{ASM} =~ /ml64/) &&
$addx
=
(
$
1
>=
12
);
}
if
(
!
$addx
&&
`
$ENV
{CC} -v 2>&1
`
=~
/(
^clang
version|based on LLVM) ([3-9])\.([0-9]+)/
)
{
if
(
!
$addx
&&
`
$ENV
{CC} -v 2>&1
`
=~
/(
(?:^clang|LLVM)
version|based on LLVM) ([3-9])\.([0-9]+)/
)
{
my
$ver
=
$
2
+
$
3
/
100.0
;
# 3.1->3.01, 3.10->3.10
$addx
=
(
$ver
>=
3.03
);
}
...
...
crypto/bn/asm/x86_64-mont.pl
浏览文件 @
76eba0d9
...
...
@@ -68,7 +68,7 @@ if (!$addx && $win64 && ($flavour =~ /masm/ || $ENV{ASM} =~ /ml64/) &&
$addx
=
(
$
1
>=
12
);
}
if
(
!
$addx
&&
`
$ENV
{CC} -v 2>&1
`
=~
/(
^clang
version|based on LLVM) ([3-9])\.([0-9]+)/
)
{
if
(
!
$addx
&&
`
$ENV
{CC} -v 2>&1
`
=~
/(
(?:^clang|LLVM)
version|based on LLVM) ([3-9])\.([0-9]+)/
)
{
my
$ver
=
$
2
+
$
3
/
100.0
;
# 3.1->3.01, 3.10->3.10
$addx
=
(
$ver
>=
3.03
);
}
...
...
crypto/bn/asm/x86_64-mont5.pl
浏览文件 @
76eba0d9
...
...
@@ -53,7 +53,7 @@ if (!$addx && $win64 && ($flavour =~ /masm/ || $ENV{ASM} =~ /ml64/) &&
$addx
=
(
$
1
>=
12
);
}
if
(
!
$addx
&&
`
$ENV
{CC} -v 2>&1
`
=~
/(
^clang
version|based on LLVM) ([3-9])\.([0-9]+)/
)
{
if
(
!
$addx
&&
`
$ENV
{CC} -v 2>&1
`
=~
/(
(?:^clang|LLVM)
version|based on LLVM) ([3-9])\.([0-9]+)/
)
{
my
$ver
=
$
2
+
$
3
/
100.0
;
# 3.1->3.01, 3.10->3.10
$addx
=
(
$ver
>=
3.03
);
}
...
...
crypto/ec/asm/ecp_nistz256-x86_64.pl
浏览文件 @
76eba0d9
...
...
@@ -81,7 +81,7 @@ if (!$addx && $win64 && ($flavour =~ /masm/ || $ENV{ASM} =~ /ml64/) &&
$addx
=
(
$
1
>=
12
);
}
if
(
!
$addx
&&
`
$ENV
{CC} -v 2>&1
`
=~
/(
^clang
version|based on LLVM) ([3-9])\.([0-9]+)/
)
{
if
(
!
$addx
&&
`
$ENV
{CC} -v 2>&1
`
=~
/(
(?:^clang|LLVM)
version|based on LLVM) ([3-9])\.([0-9]+)/
)
{
my
$ver
=
$
2
+
$
3
/
100.0
;
# 3.1->3.01, 3.10->3.10
$avx
=
(
$ver
>=
3.0
)
+
(
$ver
>=
3.01
);
$addx
=
(
$ver
>=
3.03
);
...
...
crypto/modes/asm/aesni-gcm-x86_64.pl
浏览文件 @
76eba0d9
...
...
@@ -57,7 +57,7 @@ if (!$avx && $win64 && ($flavour =~ /masm/ || $ENV{ASM} =~ /ml64/) &&
$avx
=
(
$
1
>=
10
)
+
(
$
1
>=
11
);
}
if
(
!
$avx
&&
`
$ENV
{CC} -v 2>&1
`
=~
/(
^clang
version|based on LLVM) ([3-9]\.[0-9]+)/
)
{
if
(
!
$avx
&&
`
$ENV
{CC} -v 2>&1
`
=~
/(
(?:^clang|LLVM)
version|based on LLVM) ([3-9]\.[0-9]+)/
)
{
$avx
=
(
$
2
>=
3.0
)
+
(
$
2
>
3.0
);
}
...
...
crypto/modes/asm/ghash-x86_64.pl
浏览文件 @
76eba0d9
...
...
@@ -106,7 +106,7 @@ if (!$avx && $win64 && ($flavour =~ /masm/ || $ENV{ASM} =~ /ml64/) &&
$avx
=
(
$
1
>=
10
)
+
(
$
1
>=
11
);
}
if
(
!
$avx
&&
`
$ENV
{CC} -v 2>&1
`
=~
/(
^clang
version|based on LLVM) ([3-9]\.[0-9]+)/
)
{
if
(
!
$avx
&&
`
$ENV
{CC} -v 2>&1
`
=~
/(
(?:^clang|LLVM)
version|based on LLVM) ([3-9]\.[0-9]+)/
)
{
$avx
=
(
$
2
>=
3.0
)
+
(
$
2
>
3.0
);
}
...
...
crypto/sha/asm/sha1-mb-x86_64.pl
浏览文件 @
76eba0d9
...
...
@@ -59,7 +59,7 @@ if (!$avx && $win64 && ($flavour =~ /masm/ || $ENV{ASM} =~ /ml64/) &&
$avx
=
(
$
1
>=
10
)
+
(
$
1
>=
11
);
}
if
(
!
$avx
&&
`
$ENV
{CC} -v 2>&1
`
=~
/(
^clang
version|based on LLVM) ([3-9]\.[0-9]+)/
)
{
if
(
!
$avx
&&
`
$ENV
{CC} -v 2>&1
`
=~
/(
(?:^clang|LLVM)
version|based on LLVM) ([3-9]\.[0-9]+)/
)
{
$avx
=
(
$
2
>=
3.0
)
+
(
$
2
>
3.0
);
}
...
...
crypto/sha/asm/sha1-x86_64.pl
浏览文件 @
76eba0d9
...
...
@@ -108,7 +108,7 @@ if (!$avx && $win64 && ($flavour =~ /masm/ || $ENV{ASM} =~ /ml64/) &&
$avx
=
(
$
1
>=
10
)
+
(
$
1
>=
11
);
}
if
(
!
$avx
&&
`
$ENV
{CC} -v 2>&1
`
=~
/(
^clang
version|based on LLVM) ([2-9]\.[0-9]+)/
)
{
if
(
!
$avx
&&
`
$ENV
{CC} -v 2>&1
`
=~
/(
(?:^clang|LLVM)
version|based on LLVM) ([2-9]\.[0-9]+)/
)
{
$avx
=
(
$
2
>=
3.0
)
+
(
$
2
>
3.0
);
}
...
...
crypto/sha/asm/sha256-mb-x86_64.pl
浏览文件 @
76eba0d9
...
...
@@ -60,7 +60,7 @@ if (!$avx && $win64 && ($flavour =~ /masm/ || $ENV{ASM} =~ /ml64/) &&
$avx
=
(
$
1
>=
10
)
+
(
$
1
>=
11
);
}
if
(
!
$avx
&&
`
$ENV
{CC} -v 2>&1
`
=~
/(
^clang
version|based on LLVM) ([3-9]\.[0-9]+)/
)
{
if
(
!
$avx
&&
`
$ENV
{CC} -v 2>&1
`
=~
/(
(?:^clang|LLVM)
version|based on LLVM) ([3-9]\.[0-9]+)/
)
{
$avx
=
(
$
2
>=
3.0
)
+
(
$
2
>
3.0
);
}
...
...
crypto/sha/asm/sha512-x86_64.pl
浏览文件 @
76eba0d9
...
...
@@ -125,7 +125,7 @@ if (!$avx && $win64 && ($flavour =~ /masm/ || $ENV{ASM} =~ /ml64/) &&
$avx
=
(
$
1
>=
10
)
+
(
$
1
>=
11
);
}
if
(
!
$avx
&&
`
$ENV
{CC} -v 2>&1
`
=~
/(
^clang
version|based on LLVM) ([3-9]\.[0-9]+)/
)
{
if
(
!
$avx
&&
`
$ENV
{CC} -v 2>&1
`
=~
/(
(?:^clang|LLVM)
version|based on LLVM) ([3-9]\.[0-9]+)/
)
{
$avx
=
(
$
2
>=
3.0
)
+
(
$
2
>
3.0
);
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录