Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
btwise
openssl
提交
a356e488
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,发现更多精彩内容 >>
提交
a356e488
编写于
6月 28, 2014
作者:
A
Andy Polyakov
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
x86_64 assembly pack: refine clang detection.
上级
7c206db9
变更
13
隐藏空白更改
内联
并排
Showing
13 changed file
with
30 addition
and
24 deletion
+30
-24
crypto/aes/asm/aesni-mb-x86_64.pl
crypto/aes/asm/aesni-mb-x86_64.pl
+2
-2
crypto/aes/asm/aesni-sha1-x86_64.pl
crypto/aes/asm/aesni-sha1-x86_64.pl
+1
-1
crypto/aes/asm/aesni-sha256-x86_64.pl
crypto/aes/asm/aesni-sha256-x86_64.pl
+2
-2
crypto/bn/asm/rsaz-avx2.pl
crypto/bn/asm/rsaz-avx2.pl
+4
-3
crypto/bn/asm/rsaz-x86_64.pl
crypto/bn/asm/rsaz-x86_64.pl
+5
-0
crypto/modes/asm/aesni-gcm-x86_64.pl
crypto/modes/asm/aesni-gcm-x86_64.pl
+2
-2
crypto/modes/asm/ghash-x86_64.pl
crypto/modes/asm/ghash-x86_64.pl
+2
-2
crypto/sha/asm/sha1-586.pl
crypto/sha/asm/sha1-586.pl
+2
-2
crypto/sha/asm/sha1-mb-x86_64.pl
crypto/sha/asm/sha1-mb-x86_64.pl
+2
-2
crypto/sha/asm/sha1-x86_64.pl
crypto/sha/asm/sha1-x86_64.pl
+2
-2
crypto/sha/asm/sha256-586.pl
crypto/sha/asm/sha256-586.pl
+2
-2
crypto/sha/asm/sha256-mb-x86_64.pl
crypto/sha/asm/sha256-mb-x86_64.pl
+2
-2
crypto/sha/asm/sha512-x86_64.pl
crypto/sha/asm/sha512-x86_64.pl
+2
-2
未找到文件。
crypto/aes/asm/aesni-mb-x86_64.pl
浏览文件 @
a356e488
...
...
@@ -63,8 +63,8 @@ if (!$avx && $win64 && ($flavour =~ /masm/ || $ENV{ASM} =~ /ml64/) &&
$avx
=
(
$
1
>=
10
)
+
(
$
1
>=
11
);
}
if
(
!
$avx
&&
`
$ENV
{CC} -v 2>&1
`
=~
/
LLVM
([3-9]\.[0-9]+)/
)
{
$avx
=
(
$
1
>=
3.0
)
+
(
$
1
>=
3.1
);
if
(
!
$avx
&&
`
$ENV
{CC} -v 2>&1
`
=~
/
(^clang version|based on LLVM)
([3-9]\.[0-9]+)/
)
{
$avx
=
(
$
2
>=
3.0
)
+
(
$
2
>
3.0
);
}
open
OUT
,"
|
\"
$^X
\"
$xlate
$flavour
$output
";
...
...
crypto/aes/asm/aesni-sha1-x86_64.pl
浏览文件 @
a356e488
...
...
@@ -94,7 +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 2>&1
`
=~
/
LLVM ([3-9]\.[0-9]+)/
&&
$
1
>=
3.0
);
$avx
=
1
if
(
!
$avx
&&
`
$ENV
{CC} -v 2>&1
`
=~
/
(^clang version|based on LLVM) ([3-9]\.[0-9]+)/
&&
$
2
>=
3.0
);
$shaext
=
1
;
### set to zero if compiling for 1.0.1
...
...
crypto/aes/asm/aesni-sha256-x86_64.pl
浏览文件 @
a356e488
...
...
@@ -59,8 +59,8 @@ if (!$avx && $win64 && ($flavour =~ /masm/ || $ENV{ASM} =~ /ml64/) &&
$avx
=
(
$
1
>=
10
)
+
(
$
1
>=
11
);
}
if
(
!
$avx
&&
`
$ENV
{CC} -v 2>&1
`
=~
/
LLVM
([3-9]\.[0-9]+)/
)
{
$avx
=
(
$
1
>=
3.0
)
+
(
$
1
>=
3.1
);
if
(
!
$avx
&&
`
$ENV
{CC} -v 2>&1
`
=~
/
(^clang version|based on LLVM)
([3-9]\.[0-9]+)/
)
{
$avx
=
(
$
2
>=
3.0
)
+
(
$
2
>
3.0
);
}
$shaext
=
$avx
;
### set to zero if compiling for 1.0.1
...
...
crypto/bn/asm/rsaz-avx2.pl
浏览文件 @
a356e488
...
...
@@ -93,9 +93,10 @@ if (!$avx && $win64 && ($flavour =~ /masm/ || $ENV{ASM} =~ /ml64/) &&
$addx
=
(
$
1
>=
11
);
}
if
(
!
$avx
&&
`
$ENV
{CC} -v 2>&1
`
=~
/LLVM ([3-9]\.[0-9]+)/
)
{
$avx
=
(
$
1
>=
3.0
)
+
(
$
1
>=
3.1
);
$addx
=
0
;
if
(
!
$avx
&&
`
$ENV
{CC} -v 2>&1
`
=~
/(^clang version|based on LLVM) ([3-9])\.([0-9]+)/
)
{
my
$ver
=
$
2
+
$
3
/
100.0
;
# 3.1->3.01, 3.10->3.10
$avx
=
(
$ver
>=
3.0
)
+
(
$ver
>=
3.01
);
$addx
=
(
$ver
>=
3.03
);
}
open
OUT
,"
| $^X
$xlate
$flavour
$output
";
...
...
crypto/bn/asm/rsaz-x86_64.pl
浏览文件 @
a356e488
...
...
@@ -113,6 +113,11 @@ if (!$addx && $win64 && ($flavour =~ /masm/ || $ENV{ASM} =~ /ml64/) &&
$addx
=
(
$
1
>=
11
);
}
if
(
!
$addx
&&
`
$ENV
{CC} -v 2>&1
`
=~
/(^clang version|based on LLVM) ([3-9])\.([0-9]+)/
)
{
my
$ver
=
$
2
+
$
3
/
100.0
;
# 3.1->3.01, 3.10->3.10
$addx
=
(
$ver
>=
3.03
);
}
(
$out
,
$inp
,
$mod
)
=
("
%rdi
",
"
%rsi
",
"
%rbp
");
# common internal API
{
my
(
$out
,
$inp
,
$mod
,
$n0
,
$times
)
=
("
%rdi
","
%rsi
","
%rdx
","
%rcx
","
%r8d
");
...
...
crypto/modes/asm/aesni-gcm-x86_64.pl
浏览文件 @
a356e488
...
...
@@ -53,8 +53,8 @@ if (!$avx && $win64 && ($flavour =~ /masm/ || $ENV{ASM} =~ /ml64/) &&
$avx
=
(
$
1
>=
10
)
+
(
$
1
>=
11
);
}
if
(
!
$avx
&&
`
$ENV
{CC} -v 2>&1
`
=~
/
LLVM
([3-9]\.[0-9]+)/
)
{
$avx
=
(
$
1
>=
3.0
)
+
(
$
1
>=
3.1
);
if
(
!
$avx
&&
`
$ENV
{CC} -v 2>&1
`
=~
/
(^clang version|based on LLVM)
([3-9]\.[0-9]+)/
)
{
$avx
=
(
$
2
>=
3.0
)
+
(
$
2
>
3.0
);
}
open
OUT
,"
|
\"
$^X
\"
$xlate
$flavour
$output
";
...
...
crypto/modes/asm/ghash-x86_64.pl
浏览文件 @
a356e488
...
...
@@ -102,8 +102,8 @@ if (!$avx && $win64 && ($flavour =~ /masm/ || $ENV{ASM} =~ /ml64/) &&
$avx
=
(
$
1
>=
10
)
+
(
$
1
>=
11
);
}
if
(
!
$avx
&&
`
$ENV
{CC} -v 2>&1
`
=~
/
LLVM
([3-9]\.[0-9]+)/
)
{
$avx
=
(
$
1
>=
3.0
)
+
(
$
1
>=
3.1
);
if
(
!
$avx
&&
`
$ENV
{CC} -v 2>&1
`
=~
/
(^clang version|based on LLVM)
([3-9]\.[0-9]+)/
)
{
$avx
=
(
$
2
>=
3.0
)
+
(
$
2
>
3.0
);
}
open
OUT
,"
|
\"
$^X
\"
$xlate
$flavour
$output
";
...
...
crypto/sha/asm/sha1-586.pl
浏览文件 @
a356e488
...
...
@@ -128,8 +128,8 @@ $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 2>&1
`
=~
/
LLVM
([3-9]\.[0-9]+)/
&&
$
1
>=
3.0
);
# first version supporting AVX
$ymm
=
1
if
(
$xmm
&&
!
$ymm
&&
`
$ENV
{CC} -v 2>&1
`
=~
/
(^clang version|based on LLVM)
([3-9]\.[0-9]+)/
&&
$
2
>=
3.0
);
# first version supporting AVX
$shaext
=
$xmm
;
### set to zero if compiling for 1.0.1
...
...
crypto/sha/asm/sha1-mb-x86_64.pl
浏览文件 @
a356e488
...
...
@@ -58,8 +58,8 @@ if (!$avx && $win64 && ($flavour =~ /masm/ || $ENV{ASM} =~ /ml64/) &&
$avx
=
(
$
1
>=
10
)
+
(
$
1
>=
11
);
}
if
(
!
$avx
&&
`
$ENV
{CC} -v 2>&1
`
=~
/
LLVM
([3-9]\.[0-9]+)/
)
{
$avx
=
(
$
1
>=
3.0
)
+
(
$
1
>=
3.1
);
if
(
!
$avx
&&
`
$ENV
{CC} -v 2>&1
`
=~
/
(^clang version|based on LLVM)
([3-9]\.[0-9]+)/
)
{
$avx
=
(
$
2
>=
3.0
)
+
(
$
2
>
3.0
);
}
open
OUT
,"
|
\"
$^X
\"
$xlate
$flavour
$output
";
...
...
crypto/sha/asm/sha1-x86_64.pl
浏览文件 @
a356e488
...
...
@@ -107,8 +107,8 @@ if (!$avx && $win64 && ($flavour =~ /masm/ || $ENV{ASM} =~ /ml64/) &&
$avx
=
(
$
1
>=
10
)
+
(
$
1
>=
11
);
}
if
(
!
$avx
&&
`
$ENV
{CC} -v 2>&1
`
=~
/
LLVM
([2-9]\.[0-9]+)/
)
{
$avx
=
(
$
1
>=
3.0
)
+
(
$
1
>=
3.1
);
if
(
!
$avx
&&
`
$ENV
{CC} -v 2>&1
`
=~
/
(^clang version|based on LLVM)
([2-9]\.[0-9]+)/
)
{
$avx
=
(
$
2
>=
3.0
)
+
(
$
2
>
3.0
);
}
$shaext
=
1
;
### set to zero if compiling for 1.0.1
...
...
crypto/sha/asm/sha256-586.pl
浏览文件 @
a356e488
...
...
@@ -82,8 +82,8 @@ if ($xmm && !$avx && $ARGV[0] eq "win32" &&
$avx
=
(
$
1
>=
10
)
+
(
$
1
>=
11
);
}
if
(
$xmm
&&
!
$avx
&&
`
$ENV
{CC} -v 2>&1
`
=~
/
LLVM
([3-9]\.[0-9]+)/
)
{
$avx
=
(
$
1
>=
3.0
)
+
(
$
1
>=
3.1
);
if
(
$xmm
&&
!
$avx
&&
`
$ENV
{CC} -v 2>&1
`
=~
/
(^clang version|based on LLVM)
([3-9]\.[0-9]+)/
)
{
$avx
=
(
$
2
>=
3.0
)
+
(
$
2
>
3.0
);
}
$shaext
=
$xmm
;
### set to zero if compiling for 1.0.1
...
...
crypto/sha/asm/sha256-mb-x86_64.pl
浏览文件 @
a356e488
...
...
@@ -59,8 +59,8 @@ if (!$avx && $win64 && ($flavour =~ /masm/ || $ENV{ASM} =~ /ml64/) &&
$avx
=
(
$
1
>=
10
)
+
(
$
1
>=
11
);
}
if
(
!
$avx
&&
`
$ENV
{CC} -v 2>&1
`
=~
/
LLVM
([3-9]\.[0-9]+)/
)
{
$avx
=
(
$
1
>=
3.0
)
+
(
$
1
>=
3.1
);
if
(
!
$avx
&&
`
$ENV
{CC} -v 2>&1
`
=~
/
(^clang version|based on LLVM)
([3-9]\.[0-9]+)/
)
{
$avx
=
(
$
2
>=
3.0
)
+
(
$
2
>
3.0
);
}
open
OUT
,"
|
\"
$^X
\"
$xlate
$flavour
$output
";
...
...
crypto/sha/asm/sha512-x86_64.pl
浏览文件 @
a356e488
...
...
@@ -123,8 +123,8 @@ if (!$avx && $win64 && ($flavour =~ /masm/ || $ENV{ASM} =~ /ml64/) &&
$avx
=
(
$
1
>=
10
)
+
(
$
1
>=
11
);
}
if
(
!
$avx
&&
`
$ENV
{CC} -v 2>&1
`
=~
/
LLVM
([3-9]\.[0-9]+)/
)
{
$avx
=
(
$
1
>=
3.0
)
+
(
$
1
>=
3.1
);
if
(
!
$avx
&&
`
$ENV
{CC} -v 2>&1
`
=~
/
(^clang version|based on LLVM)
([3-9]\.[0-9]+)/
)
{
$avx
=
(
$
2
>=
3.0
)
+
(
$
2
>
3.0
);
}
$shaext
=
1
;
### set to zero if compiling for 1.0.1
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录