Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
8b71d354
T
Third Party Openssl
项目概览
OpenHarmony
/
Third Party Openssl
大约 1 年 前同步成功
通知
9
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看板
提交
8b71d354
编写于
3月 20, 2007
作者:
A
Andy Polyakov
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
nasm fixes.
上级
760e3535
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
8 addition
and
7 deletion
+8
-7
crypto/bn/asm/bn-586.pl
crypto/bn/asm/bn-586.pl
+1
-1
crypto/bn/asm/x86-mont.pl
crypto/bn/asm/x86-mont.pl
+5
-5
crypto/perlasm/x86nasm.pl
crypto/perlasm/x86nasm.pl
+2
-1
未找到文件。
crypto/bn/asm/bn-586.pl
浏览文件 @
8b71d354
...
...
@@ -340,7 +340,7 @@ sub bn_sqr_words
&movd
("
mm0
",
&DWP
(
0
,
$a
));
# mm0 = a[i]
&pmuludq
("
mm0
","
mm0
");
# a[i] *= a[i]
&lea
(
$a
,
&DWP
(
4
,
$a
));
# a++
&movq
(
&
D
WP
(
0
,
$r
),"
mm0
");
# r[i] = a[i]*a[i]
&movq
(
&
Q
WP
(
0
,
$r
),"
mm0
");
# r[i] = a[i]*a[i]
&sub
(
$c
,
1
);
&lea
(
$r
,
&DWP
(
8
,
$r
));
# r += 2
&jnz
(
&label
("
sqr_sse2_loop
"));
...
...
crypto/bn/asm/x86-mont.pl
浏览文件 @
8b71d354
...
...
@@ -51,7 +51,7 @@ $_rp=&DWP(4*1,"esp");
$_ap
=
&DWP
(
4
*
2
,"
esp
");
$_bp
=
&DWP
(
4
*
3
,"
esp
");
$_np
=
&DWP
(
4
*
4
,"
esp
");
$_n0
=
&DWP
(
4
*
5
,"
esp
");
$_n0
=
&DWP
(
4
*
5
,"
esp
");
$_n0q
=
&QWP
(
4
*
5
,"
esp
");
$_sp
=
&DWP
(
4
*
6
,"
esp
");
$_bpend
=
&DWP
(
4
*
7
,"
esp
");
$frame
=
32
;
# size of above frame rounded up to 16n
...
...
@@ -136,7 +136,7 @@ $mask="mm7";
&movq
(
$acc0
,
$mul1
);
# I wish movd worked for
&pand
(
$acc0
,
$mask
);
# inter-register transfers
&pmuludq
(
$mul1
,
$_n0
);
# *=n0
&pmuludq
(
$mul1
,
$_n0
q
);
# *=n0
&pmuludq
(
$car1
,
$mul1
);
# "t[0]"*np[0]*n0
&paddq
(
$car1
,
$acc0
);
...
...
@@ -181,7 +181,7 @@ $mask="mm7";
&psrlq
(
$car1
,
32
);
&paddq
(
$car1
,
$car0
);
&movq
(
&
D
WP
(
$frame
,"
esp
",
$num
,
4
),
$car1
);
# tp[num].tp[num-1]
&movq
(
&
Q
WP
(
$frame
,"
esp
",
$num
,
4
),
$car1
);
# tp[num].tp[num-1]
&inc
(
$i
);
# i++
&set_label
("
outer
");
...
...
@@ -198,7 +198,7 @@ $mask="mm7";
&movq
(
$car0
,
$mul1
);
&pand
(
$acc0
,
$mask
);
&pmuludq
(
$mul1
,
$_n0
);
# *=n0
&pmuludq
(
$mul1
,
$_n0
q
);
# *=n0
&pmuludq
(
$car1
,
$mul1
);
&paddq
(
$car1
,
$acc0
);
...
...
@@ -250,7 +250,7 @@ $mask="mm7";
&movd
(
$temp
,
&DWP
(
$frame
+
4
,"
esp
",
$num
,
4
));
# += tp[num]
&paddq
(
$car1
,
$car0
);
&paddq
(
$car1
,
$temp
);
&movq
(
&
D
WP
(
$frame
,"
esp
",
$num
,
4
),
$car1
);
# tp[num].tp[num-1]
&movq
(
&
Q
WP
(
$frame
,"
esp
",
$num
,
4
),
$car1
);
# tp[num].tp[num-1]
&lea
(
$i
,
&DWP
(
1
,
$i
));
# i++
&cmp
(
$i
,
$num
);
...
...
crypto/perlasm/x86nasm.pl
浏览文件 @
8b71d354
...
...
@@ -81,7 +81,7 @@ sub get_mem
}
sub
::BP {
&get_mem
("
BYTE
",
@
_
);
}
sub
::DWP {
&get_mem
("
DWORD
",
@
_
);
}
sub
::QWP {
&get_mem
("
QWORD
",
@
_
);
}
sub
::QWP {
&get_mem
("
",
@
_
);
}
sub
::BC {
((
$
::
mwerks
)?"":"
BYTE
")
.
"
@_
";
}
sub
::DWC {
((
$
::
mwerks
)?"":"
DWORD
")
.
"
@_
";
}
...
...
@@ -160,6 +160,7 @@ dd ${lprfx}OPENSSL_ia32cap_init
segment .bss
common ${under}OPENSSL_ia32cap_P 4
___
grep
{
s/(^extern\s+${under}OPENSSL_ia32cap_P)/\;$1/
}
@out
;
push
(
@out
,
$tmp
);
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录