Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
ac171925
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看板
提交
ac171925
编写于
6月 24, 2014
作者:
A
Andy Polyakov
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
x86_64 assembly pack: allow clang to compile AVX code.
上级
015364ba
变更
12
隐藏空白更改
内联
并排
Showing
12 changed file
with
44 addition
and
0 deletion
+44
-0
crypto/aes/asm/aesni-mb-x86_64.pl
crypto/aes/asm/aesni-mb-x86_64.pl
+4
-0
crypto/aes/asm/aesni-sha1-x86_64.pl
crypto/aes/asm/aesni-sha1-x86_64.pl
+1
-0
crypto/aes/asm/aesni-sha256-x86_64.pl
crypto/aes/asm/aesni-sha256-x86_64.pl
+4
-0
crypto/bn/asm/rsaz-avx2.pl
crypto/bn/asm/rsaz-avx2.pl
+4
-0
crypto/modes/asm/aesni-gcm-x86_64.pl
crypto/modes/asm/aesni-gcm-x86_64.pl
+4
-0
crypto/modes/asm/ghash-x86_64.pl
crypto/modes/asm/ghash-x86_64.pl
+4
-0
crypto/sha/asm/sha1-586.pl
crypto/sha/asm/sha1-586.pl
+3
-0
crypto/sha/asm/sha1-mb-x86_64.pl
crypto/sha/asm/sha1-mb-x86_64.pl
+4
-0
crypto/sha/asm/sha1-x86_64.pl
crypto/sha/asm/sha1-x86_64.pl
+4
-0
crypto/sha/asm/sha256-586.pl
crypto/sha/asm/sha256-586.pl
+4
-0
crypto/sha/asm/sha256-mb-x86_64.pl
crypto/sha/asm/sha256-mb-x86_64.pl
+4
-0
crypto/sha/asm/sha512-x86_64.pl
crypto/sha/asm/sha512-x86_64.pl
+4
-0
未找到文件。
crypto/aes/asm/aesni-mb-x86_64.pl
浏览文件 @
ac171925
...
...
@@ -63,6 +63,10 @@ if (!$avx && $win64 && ($flavour =~ /masm/ || $ENV{ASM} =~ /ml64/) &&
$avx
=
(
$
1
>=
10
)
+
(
$
1
>=
11
);
}
if
(
!
$avx
&&
`
$ENV
{CC} -v
`
=~
/LLVM ([3-9]\.[0-9]+)/
)
{
$avx
=
(
$
1
>=
3.0
)
+
(
$
1
>=
3.1
);
}
open
OUT
,"
|
\"
$^X
\"
$xlate
$flavour
$output
";
*STDOUT
=
*OUT
;
...
...
crypto/aes/asm/aesni-sha1-x86_64.pl
浏览文件 @
ac171925
...
...
@@ -94,6 +94,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
`
=~
/LLVM ([3-9]\.[0-9]+)/
&&
$
1
>=
3.0
);
$shaext
=
1
;
### set to zero if compiling for 1.0.1
...
...
crypto/aes/asm/aesni-sha256-x86_64.pl
浏览文件 @
ac171925
...
...
@@ -59,6 +59,10 @@ if (!$avx && $win64 && ($flavour =~ /masm/ || $ENV{ASM} =~ /ml64/) &&
$avx
=
(
$
1
>=
10
)
+
(
$
1
>=
11
);
}
if
(
!
$avx
&&
`
$ENV
{CC} -v
`
=~
/LLVM ([3-9]\.[0-9]+)/
)
{
$avx
=
(
$
1
>=
3.0
)
+
(
$
1
>=
3.1
);
}
$shaext
=
$avx
;
### set to zero if compiling for 1.0.1
$avx
=
1
if
(
!
$shaext
&&
$avx
);
...
...
crypto/bn/asm/rsaz-avx2.pl
浏览文件 @
ac171925
...
...
@@ -90,6 +90,10 @@ if (!$avx && $win64 && ($flavour =~ /masm/ || $ENV{ASM} =~ /ml64/) &&
$avx
=
(
$
1
>=
10
)
+
(
$
1
>=
11
);
}
if
(
!
$avx
&&
`
$ENV
{CC} -v
`
=~
/LLVM ([3-9]\.[0-9]+)/
)
{
$avx
=
(
$
1
>=
3.0
)
+
(
$
1
>=
3.1
);
}
open
OUT
,"
| $^X
$xlate
$flavour
$output
";
*STDOUT
=
*OUT
;
...
...
crypto/modes/asm/aesni-gcm-x86_64.pl
浏览文件 @
ac171925
...
...
@@ -53,6 +53,10 @@ if (!$avx && $win64 && ($flavour =~ /masm/ || $ENV{ASM} =~ /ml64/) &&
$avx
=
(
$
1
>=
10
)
+
(
$
1
>=
11
);
}
if
(
!
$avx
&&
`
$ENV
{CC} -v
`
=~
/LLVM ([3-9]\.[0-9]+)/
)
{
$avx
=
(
$
1
>=
3.0
)
+
(
$
1
>=
3.1
);
}
open
OUT
,"
|
\"
$^X
\"
$xlate
$flavour
$output
";
*STDOUT
=
*OUT
;
...
...
crypto/modes/asm/ghash-x86_64.pl
浏览文件 @
ac171925
...
...
@@ -102,6 +102,10 @@ if (!$avx && $win64 && ($flavour =~ /masm/ || $ENV{ASM} =~ /ml64/) &&
$avx
=
(
$
1
>=
10
)
+
(
$
1
>=
11
);
}
if
(
!
$avx
&&
`
$ENV
{CC} -v
`
=~
/LLVM ([3-9]\.[0-9]+)/
)
{
$avx
=
(
$
1
>=
3.0
)
+
(
$
1
>=
3.1
);
}
open
OUT
,"
|
\"
$^X
\"
$xlate
$flavour
$output
";
*STDOUT
=
*OUT
;
...
...
crypto/sha/asm/sha1-586.pl
浏览文件 @
ac171925
...
...
@@ -128,6 +128,9 @@ $ymm=1 if ($xmm && !$ymm && $ARGV[0] eq "win32" &&
`
ml 2>&1
`
=~
/Version ([0-9]+)\./
&&
$
1
>=
10
);
# first version supporting AVX
$ymm
=
1
if
(
$xmm
&&
!
$ymm
&&
`
$ENV
{CC} -v
`
=~
/LLVM ([3-9]\.[0-9]+)/
&&
$
1
>=
3.0
);
# first version supporting AVX
$shaext
=
$xmm
;
### set to zero if compiling for 1.0.1
&external_label
("
OPENSSL_ia32cap_P
")
if
(
$xmm
);
...
...
crypto/sha/asm/sha1-mb-x86_64.pl
浏览文件 @
ac171925
...
...
@@ -58,6 +58,10 @@ if (!$avx && $win64 && ($flavour =~ /masm/ || $ENV{ASM} =~ /ml64/) &&
$avx
=
(
$
1
>=
10
)
+
(
$
1
>=
11
);
}
if
(
!
$avx
&&
`
$ENV
{CC} -v
`
=~
/LLVM ([3-9]\.[0-9]+)/
)
{
$avx
=
(
$
1
>=
3.0
)
+
(
$
1
>=
3.1
);
}
open
OUT
,"
|
\"
$^X
\"
$xlate
$flavour
$output
";
*STDOUT
=
*OUT
;
...
...
crypto/sha/asm/sha1-x86_64.pl
浏览文件 @
ac171925
...
...
@@ -107,6 +107,10 @@ if (!$avx && $win64 && ($flavour =~ /masm/ || $ENV{ASM} =~ /ml64/) &&
$avx
=
(
$
1
>=
10
)
+
(
$
1
>=
11
);
}
if
(
!
$avx
&&
`
$ENV
{CC} -v
`
=~
/LLVM ([2-9]\.[0-9]+)/
)
{
$avx
=
(
$
1
>=
3.0
)
+
(
$
1
>=
3.1
);
}
$shaext
=
1
;
### set to zero if compiling for 1.0.1
$avx
=
1
if
(
!
$shaext
&&
$avx
);
...
...
crypto/sha/asm/sha256-586.pl
浏览文件 @
ac171925
...
...
@@ -82,6 +82,10 @@ if ($xmm && !$avx && $ARGV[0] eq "win32" &&
$avx
=
(
$
1
>=
10
)
+
(
$
1
>=
11
);
}
if
(
$xmm
&&
!
$avx
&&
`
$ENV
{CC} -v
`
=~
/LLVM ([3-9]\.[0-9]+)/
)
{
$avx
=
(
$
1
>=
3.0
)
+
(
$
1
>=
3.1
);
}
$shaext
=
$xmm
;
### set to zero if compiling for 1.0.1
$unroll_after
=
64
*
4
;
# If pre-evicted from L1P cache first spin of
...
...
crypto/sha/asm/sha256-mb-x86_64.pl
浏览文件 @
ac171925
...
...
@@ -59,6 +59,10 @@ if (!$avx && $win64 && ($flavour =~ /masm/ || $ENV{ASM} =~ /ml64/) &&
$avx
=
(
$
1
>=
10
)
+
(
$
1
>=
11
);
}
if
(
!
$avx
&&
`
$ENV
{CC} -v
`
=~
/LLVM ([3-9]\.[0-9]+)/
)
{
$avx
=
(
$
1
>=
3.0
)
+
(
$
1
>=
3.1
);
}
open
OUT
,"
|
\"
$^X
\"
$xlate
$flavour
$output
";
*STDOUT
=
*OUT
;
...
...
crypto/sha/asm/sha512-x86_64.pl
浏览文件 @
ac171925
...
...
@@ -123,6 +123,10 @@ if (!$avx && $win64 && ($flavour =~ /masm/ || $ENV{ASM} =~ /ml64/) &&
$avx
=
(
$
1
>=
10
)
+
(
$
1
>=
11
);
}
if
(
!
$avx
&&
`
$ENV
{CC} -v
`
=~
/LLVM ([3-9]\.[0-9]+)/
)
{
$avx
=
(
$
1
>=
3.0
)
+
(
$
1
>=
3.1
);
}
$shaext
=
1
;
### set to zero if compiling for 1.0.1
$avx
=
1
if
(
!
$shaext
&&
$avx
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录