Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Dmitry Baryshkov
nettle
Commits
3cce56be
Commit
3cce56be
authored
Oct 03, 2014
by
Niels Möller
Browse files
New function mpn_out_str, for use in the testsuite.
parent
5b677535
Changes
3
Hide whitespace changes
Inline
Side-by-side
ChangeLog
View file @
3cce56be
2014-10-03 Niels Möller <nisse@lysator.liu.se>
* testsuite/testutils.c (mpn_out_str): New function, needed to
replace uses of gmp_fprintf.
* testsuite/ecc-sqrt-test.c (mpz_ui_kronecker)
[NETTLE_USE_MINI_GMP]: New fallback definition when building with
mini-gmp.
...
...
testsuite/testutils.c
View file @
3cce56be
...
...
@@ -699,6 +699,13 @@ 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
)
{
mpz_t
x
;
mpz_out_str
(
f
,
base
,
mpz_roinit_n
(
x
,
xp
,
xn
));
}
#if NETTLE_USE_MINI_GMP
void
gmp_randinit_default
(
struct
knuth_lfib_ctx
*
ctx
)
...
...
testsuite/testutils.h
View file @
3cce56be
...
...
@@ -165,6 +165,9 @@ 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
];
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment