Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
4df2280b
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看板
提交
4df2280b
编写于
5月 25, 2013
作者:
A
Andy Polyakov
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
aesni-sha1-x86_64.pl: Atom-specific optimization.
上级
504bbcf3
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
13 addition
and
4 deletion
+13
-4
crypto/aes/asm/aesni-sha1-x86_64.pl
crypto/aes/asm/aesni-sha1-x86_64.pl
+13
-4
未找到文件。
crypto/aes/asm/aesni-sha1-x86_64.pl
浏览文件 @
4df2280b
...
@@ -52,9 +52,9 @@
...
@@ -52,9 +52,9 @@
#
#
# AES-128-CBC AES-192-CBC AES-256-CBC
# AES-128-CBC AES-192-CBC AES-256-CBC
# Westmere 1.31 1.55 1.80
# Westmere 1.31 1.55 1.80
# Sandy Bridge 0.
93 1.06 1.22
# Sandy Bridge 0.
74 0.91 1.09
# Ivy Bridge 0.
92 1.06 1.2
1
# Ivy Bridge 0.
74 0.90 1.1
1
# Bulldozer 0.7
6 0.90 1.04
# Bulldozer 0.7
0 0.85 0.99
$flavour
=
shift
;
$flavour
=
shift
;
$output
=
shift
;
$output
=
shift
;
...
@@ -125,6 +125,13 @@ my $K_XX_XX="%r11";
...
@@ -125,6 +125,13 @@ my $K_XX_XX="%r11";
my
(
$iv
,
$in
,
$rndkey0
)
=
map
("
%xmm
$_
",(
11
..
13
));
my
(
$iv
,
$in
,
$rndkey0
)
=
map
("
%xmm
$_
",(
11
..
13
));
my
@rndkey
=
("
%xmm14
","
%xmm15
");
my
@rndkey
=
("
%xmm14
","
%xmm15
");
if
(
1
)
{
@X
=
map
("
%xmm
$_
",(
4
..
11
));
@Tx
=
map
("
%xmm
$_
",(
12
..
14
));
(
$iv
,
$in
,
$rndkey0
)
=
map
("
%xmm
$_
",(
2
,
3
,
15
));
@rndkey
=
("
%xmm0
","
%xmm1
");
}
sub
AUTOLOAD
()
#
thunk
[
simplified
]
32-
bit
style
perlasm
sub
AUTOLOAD
()
#
thunk
[
simplified
]
32-
bit
style
perlasm
{
my
$opcode
=
$AUTOLOAD
;
$opcode
=~
s/.*:://
;
{
my
$opcode
=
$AUTOLOAD
;
$opcode
=~
s/.*:://
;
my
$arg
=
pop
;
my
$arg
=
pop
;
...
@@ -671,9 +678,11 @@ my ($in0,$out,$len,$key,$ivp,$ctx,$inp)=("%rdi","%rsi","%rdx","%rcx","%r8","%r9"
...
@@ -671,9 +678,11 @@ my ($in0,$out,$len,$key,$ivp,$ctx,$inp)=("%rdi","%rsi","%rdx","%rcx","%r8","%r9"
my
$Xi
=
4
;
my
$Xi
=
4
;
my
@X
=
map
("
%xmm
$_
",(
4
..
7
,
0
..
3
));
my
@X
=
map
("
%xmm
$_
",(
4
..
7
,
0
..
3
));
my
@Tx
=
map
("
%xmm
$_
",(
8
..
10
));
my
@Tx
=
map
("
%xmm
$_
",(
8
..
10
));
my
$Kx
=
$rndkey0
;
my
@V
=
(
$A
,
$B
,
$C
,
$D
,
$E
)
=
("
%eax
","
%ebx
","
%ecx
","
%edx
","
%ebp
");
# size optimization
my
@V
=
(
$A
,
$B
,
$C
,
$D
,
$E
)
=
("
%eax
","
%ebx
","
%ecx
","
%edx
","
%ebp
");
# size optimization
my
@T
=
("
%esi
","
%edi
");
my
@T
=
("
%esi
","
%edi
");
my
(
$iv
,
$in
,
$rndkey0
)
=
map
("
%xmm
$_
",(
11
..
13
));
my
@rndkey
=
("
%xmm14
","
%xmm15
");
my
$Kx
=
$rndkey0
;
my
$_rol
=
sub
{
&shld
(
@_
[
0
],
@
_
)
};
my
$_rol
=
sub
{
&shld
(
@_
[
0
],
@
_
)
};
my
$_ror
=
sub
{
&shrd
(
@_
[
0
],
@
_
)
};
my
$_ror
=
sub
{
&shrd
(
@_
[
0
],
@
_
)
};
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录