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
3cce56be
Commit
3cce56be
authored
Oct 03, 2014
by
Niels Möller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
New function mpn_out_str, for use in the testsuite.
parent
5b677535
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
0 deletions
+13
-0
ChangeLog
ChangeLog
+3
-0
testsuite/testutils.c
testsuite/testutils.c
+7
-0
testsuite/testutils.h
testsuite/testutils.h
+3
-0
No files found.
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
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