Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
btwise
openssl
提交
4dca00ce
O
openssl
项目概览
btwise
/
openssl
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
O
openssl
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
4dca00ce
编写于
6月 05, 2006
作者:
A
Andy Polyakov
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Minor sha1-ppc.pl update.
上级
061d774b
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
11 addition
and
12 deletion
+11
-12
crypto/sha/asm/sha1-ppc.pl
crypto/sha/asm/sha1-ppc.pl
+11
-12
未找到文件。
crypto/sha/asm/sha1-ppc.pl
浏览文件 @
4dca00ce
...
...
@@ -6,27 +6,28 @@
# forms are granted according to the OpenSSL license.
# ====================================================================
# I let hardware handle unaligned input, except on page boundaries
# I let hardware handle unaligned input
(*)
, except on page boundaries
# (see below for details). Otherwise straightforward implementation
# with X vector in register bank. The module is big-endian [which is
# not big deal as there're no little-endian targets left around].
#
# (*) this means that this module is inappropriate for PPC403? Does
# anybody know if pre-POWER3 can sustain unaligned load?
#
gcc-4.0.0
-m64 -m32
# --------------------------
#
sha1
+76% +59%
#
-m64 -m32
# --------------------------
--------
#
PPC970,gcc-4.0.0
+76% +59%
$output
=
shift
;
if
(
$output
=~
/64\.s/
)
{
$SIZE_T
=
8
;
$RZONE
=
288
;
$UCMP
=
"
cmpld
";
$STU
=
"
stdu
";
$POP
=
"
ld
";
$PUSH
=
"
std
";
}
elsif
(
$output
=~
/32\.s/
)
{
$SIZE_T
=
4
;
$RZONE
=
224
;
$UCMP
=
"
cmplw
";
$STU
=
"
stwu
";
$POP
=
"
lwz
";
...
...
@@ -149,14 +150,13 @@ ___
}
$code
=
<<___;
.machine "any"
.text
.globl .sha1_block_asm_data_order
.align 4
.sha1_block_asm_data_order:
mflr r0
$STU $sp,`-($FRAME+64
+$RZONE
)`($sp)
$STU $sp,`-($FRAME+64)`($sp)
$PUSH r0,`$FRAME-$SIZE_T*18`($sp)
$PUSH r15,`$FRAME-$SIZE_T*17`($sp)
$PUSH r16,`$FRAME-$SIZE_T*16`($sp)
...
...
@@ -205,7 +205,7 @@ Ldone:
$POP r30,`$FRAME-$SIZE_T*2`($sp)
$POP r31,`$FRAME-$SIZE_T*1`($sp)
mtlr r0
addi $sp,$sp,`$FRAME+64
+$RZONE
`
addi $sp,$sp,`$FRAME+64`
blr
___
...
...
@@ -218,15 +218,14 @@ ___
$code
.=
<<___;
.align 4
Lunaligned:
li $t1,4096
subf $t1,$inp,$t1
subfic $t1,$inp,4096
andi. $t1,$t1,4095 ; distance to closest page boundary
srwi. $t1,$t1,6 ; t1/=64
beq Lcross_page
$UCMP $num,$t1
ble- Laligned ; didn't cross the page boundary
mtctr $t1
subf $num,$t1,$num
subf
c
$num,$t1,$num
bl Lsha1_block_private
Lcross_page:
li $t1,16
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录