提交 a72da9ec 编写于 作者: A Amitay Isaacs 提交者: Matt Caswell

Configure: Check if 128-bit integers are supported by compiler

Add a config variable "use_int128" to indicate if 128-bit integers are
supported or not at the configure time.  This makes it easier to
automatically select 64-bit versus 32-bit implementation for curve448.
Signed-off-by: NAmitay Isaacs <amitay@ozlabs.org>
Reviewed-by: NTomas Mraz <tomas@openssl.org>
Reviewed-by: NMatt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/14784)
上级 f684a2d7
......@@ -1573,6 +1573,20 @@ if (!$disabled{asm} && !$predefined_C{__MACH__} && $^O ne 'VMS') {
}
}
# Check if __SIZEOF_INT128__ is defined by compiler
$config{use_int128} = 0;
{
my $cc = $config{CROSS_COMPILE}.$config{CC};
open(PIPE, "$cc -E -dM - </dev/null 2>&1 |");
while(<PIPE>) {
if (m/__SIZEOF_INT128__/) {
$config{use_int128} = 1;
last;
}
}
close(PIPE);
}
# Deal with bn_ops ###################################################
$config{bn_ll} =0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册