Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
N
nettle
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Dmitry Baryshkov
nettle
Commits
78823b2c
Commit
78823b2c
authored
7 years ago
by
Niels Möller
Browse files
Options
Downloads
Patches
Plain Diff
Avoid redefining mpn_zero_p when building with mini-gmp.
parent
6320374d
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
ChangeLog
+8
-0
8 additions, 0 deletions
ChangeLog
testsuite/testutils.h
+12
-7
12 additions, 7 deletions
testsuite/testutils.h
with
20 additions
and
7 deletions
ChangeLog
+
8
−
0
View file @
78823b2c
2017-09-12 Niels Möller <nisse@lysator.liu.se>
* testsuite/testutils.h (mpn_zero_p): Avoid redefining mpn_zero_p
when building with mini-gmp. Since the mini-gmp update, this
function is defined by mini-gmp, causing link errors if nettle is
configured with --enable-mini-gmp --disable-shared. Reported by
Tim Rühsen.
2017-09-09 Daiki Ueno <dueno@redhat.com>
* testsuite/ecc-mul-g-test.c (test_main): Fixed mpn_cmp call.
...
...
This diff is collapsed.
Click to expand it.
testsuite/testutils.h
+
12
−
7
View file @
78823b2c
...
...
@@ -163,13 +163,6 @@ test_armor(const struct nettle_armor *armor,
const
char
*
ascii
);
#if WITH_HOGWEED
#ifndef mpn_zero_p
int
mpn_zero_p
(
mp_srcptr
ap
,
mp_size_t
n
);
#endif
void
mpn_out_str
(
FILE
*
f
,
int
base
,
const
mp_limb_t
*
xp
,
mp_size_t
xn
);
#if NETTLE_USE_MINI_GMP
typedef
struct
knuth_lfib_ctx
gmp_randstate_t
[
1
];
...
...
@@ -180,8 +173,20 @@ void mpz_urandomb (mpz_t r, struct knuth_lfib_ctx *ctx, mp_bitcnt_t bits);
/* This is cheating */
#define mpz_rrandomb mpz_urandomb
/* mini-gmp defines this function (in the GMP library, it was added in
gmp in version 6.1.0). */
#define mpn_zero_p mpn_zero_p
#endif
/* NETTLE_USE_MINI_GMP */
#ifndef mpn_zero_p
int
mpn_zero_p
(
mp_srcptr
ap
,
mp_size_t
n
);
#endif
void
mpn_out_str
(
FILE
*
f
,
int
base
,
const
mp_limb_t
*
xp
,
mp_size_t
xn
);
mp_limb_t
*
xalloc_limbs
(
mp_size_t
n
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment