Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
70b76d39
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看板
提交
70b76d39
编写于
12月 29, 2009
作者:
A
Andy Polyakov
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ppccap.c: fix compiler warning and perform sanity check outside signal masking.
ppc64-mont.pl: clarify comment and fix spelling.
上级
6a9d28f9
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
5 addition
and
3 deletion
+5
-3
crypto/bn/asm/ppc64-mont.pl
crypto/bn/asm/ppc64-mont.pl
+2
-2
crypto/ppccap.c
crypto/ppccap.c
+3
-1
未找到文件。
crypto/bn/asm/ppc64-mont.pl
浏览文件 @
70b76d39
...
...
@@ -56,10 +56,10 @@
# that asynchronous signals have to be blocked upon entry to this
# subroutine. Signal masking (and complementary unmasking) has quite
# an impact on performance, naturally larger for shorter keys. It's
# so severe that
shorter
key performance can be as low as 1/3 of
# so severe that
512-bit
key performance can be as low as 1/3 of
# expected one. This is why this routine can be engaged for longer
# key operations only, see crypto/ppccap.c for further details.
# Alternative is to break depend
a
nce on upper halves on GPRs...
# Alternative is to break depend
e
nce on upper halves on GPRs...
# MacOS X is an exception from this and doesn't require signal
# masking, and that's where above improvement coefficients were
# collected.
...
...
crypto/ppccap.c
浏览文件 @
70b76d39
...
...
@@ -25,7 +25,7 @@ int bn_mul_mont(BN_ULONG *rp, const BN_ULONG *ap, const BN_ULONG *bp, const BN_U
#else
/* boundary of 32 was experimentally determined on
Linux 2.6.22, might have to be adjusted on AIX... */
if
(
(
num
>=
32
)
&&
(
OPENSSL_ppccap_P
&
PPC_FPU64
))
if
(
num
>=
32
&&
(
num
&
3
)
==
0
&&
(
OPENSSL_ppccap_P
&
PPC_FPU64
))
{
sigset_t
oset
;
int
ret
;
...
...
@@ -50,6 +50,8 @@ int bn_mul_mont(BN_ULONG *rp, const BN_ULONG *ap, const BN_ULONG *bp, const BN_U
static
sigjmp_buf
ill_jmp
;
static
void
ill_handler
(
int
sig
)
{
siglongjmp
(
ill_jmp
,
sig
);
}
void
OPENSSL_ppc64_probe
(
void
);
void
OPENSSL_cpuid_setup
(
void
)
{
char
*
e
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录