Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
nettle
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
5
Merge Requests
5
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Nettle
nettle
Commits
5ba1d4e1
Commit
5ba1d4e1
authored
Mar 31, 2015
by
Niels Möller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Exclude asm files which fail when building on w64 using mini-gmp.
parent
9c95a3d3
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
23 additions
and
0 deletions
+23
-0
ChangeLog
ChangeLog
+10
-0
asm.m4
asm.m4
+2
-0
configure.ac
configure.ac
+7
-0
x86_64/ecc-224-modp.asm
x86_64/ecc-224-modp.asm
+2
-0
x86_64/ecc-521-modp.asm
x86_64/ecc-521-modp.asm
+2
-0
No files found.
ChangeLog
View file @
5ba1d4e1
2015-03-31 Niels Möller <nisse@diamant.hack.org>
* x86_64/ecc-224-modp.asm: Require that GMP_NUMB_BITS == 64.
* x86_64/ecc-521-modp.asm: Likewise. Note that the other
ecc-*-modp.asm files happen to work fine on x86_64, with either 32
or 64 bits.
* asm.m4 (GMP_NUMB_BITS): New macro, expanding to nothing.
* configure.ac: Move tests for compiler characteristics,
libraries, and GMP_NUMB_BITS, before assembler-related tests.
For files in $asm_hogweed_optional_list, check if they declare
a GMP_NUMB_BITS requirement, and skip files which are incompatible
with the configuration. Needed for --enable-mini-gmp om w64.
* Makefile.in (clean-here): Unconditionally delete *.a (including
stub libraries like *.dll.a).
...
...
asm.m4
View file @
5ba1d4e1
...
...
@@ -27,6 +27,8 @@ COFF_STYLE, yes,
.endef>,
<>)>)
define(<GMP_NUMB_BITS>,<>)dnl
define(<PROLOGUE>,
<.globl C_NAME($1)
DECLARE_FUNC(C_NAME($1))
...
...
configure.ac
View file @
5ba1d4e1
...
...
@@ -464,6 +464,13 @@ EOF
tmp_b=`echo "$tmp_h" | sed 's/\.[[^.]]*$//'`
for asm_dir in $asm_path ; do
if test -f "$srcdir/$asm_dir/$tmp_h"; then
dnl Note double square brackets, for extra m4 quoting.
tmp_bits=`grep GMP_NUMB_BITS "$srcdir/$asm_dir/$tmp_h" \
| sed 's/^.*GMP_NUMB_BITS(\([[0-9]]*\)).*$/\1/'`
if test "$tmp_bits" && test "$tmp_bits" != '${GMP_NUMB_BITS}' ; then
AC_MSG_WARN([skipping $tmp_h, because GMP_NUMB_BITS != $tmp_bits])
continue
fi
asm_file_list="$asm_file_list $tmp_h"
AC_CONFIG_LINKS($tmp_h:$asm_dir/$tmp_h)
while read tmp_func ; do
...
...
x86_64/ecc-224-modp.asm
View file @
5ba1d4e1
...
...
@@ -32,6 +32,8 @@ ifelse(<
.file
"ecc-224-modp.asm"
GMP_NUMB_BITS
(
64
)
define
(
<
RP
>
,
<%
rsi
>
)
define
(
<
T0
>
,
<%
rdi
>
)
C
Overlaps
unused
modulo
input
define
(
<
T1
>
,
<%
rcx
>
)
...
...
x86_64/ecc-521-modp.asm
View file @
5ba1d4e1
...
...
@@ -32,6 +32,8 @@ ifelse(<
.file
"ecc-521-modp.asm"
GMP_NUMB_BITS
(
64
)
define
(
<
RP
>
,
<%
rsi
>
)
define
(
<
U0
>
,
<%
rax
>
)
define
(
<
U1
>
,
<%
rbx
>
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment