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
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
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
Justus Winter
nettle
Commits
c0ff081f
Commit
c0ff081f
authored
Apr 27, 2020
by
Niels Möller
Browse files
Options
Downloads
Patches
Plain Diff
Update mini-gmp to latest version
parent
54129096
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
ChangeLog
+6
-0
6 additions, 0 deletions
ChangeLog
mini-gmp.c
+529
-360
529 additions, 360 deletions
mini-gmp.c
mini-gmp.h
+12
-2
12 additions, 2 deletions
mini-gmp.h
with
547 additions
and
362 deletions
ChangeLog
+
6
−
0
View file @
c0ff081f
2020-04-27 Niels Möller <nisse@lysator.liu.se>
* mini-gmp.c: Updated mini-gmp from the gmp repository, latest
change from 2020-04-20.
* mini-gmp.h: Likewise.
2020-04-25 Niels Möller <nisse@lysator.liu.se>
2020-04-25 Niels Möller <nisse@lysator.liu.se>
* gmp-glue.c (mpz_limbs_read, mpz_limbs_write, mpz_limbs_modify)
* gmp-glue.c (mpz_limbs_read, mpz_limbs_write, mpz_limbs_modify)
...
...
This diff is collapsed.
Click to expand it.
mini-gmp.c
+
529
−
360
View file @
c0ff081f
This diff is collapsed.
Click to expand it.
mini-gmp.h
+
12
−
2
View file @
c0ff081f
/* mini-gmp, a minimalistic implementation of a GNU GMP subset.
/* mini-gmp, a minimalistic implementation of a GNU GMP subset.
Copyright 2011-2015 Free Software Foundation, Inc.
Copyright 2011-2015
, 2017, 2019
Free Software Foundation, Inc.
This file is part of the GNU MP Library.
This file is part of the GNU MP Library.
...
@@ -53,7 +53,11 @@ void mp_get_memory_functions (void *(**) (size_t),
...
@@ -53,7 +53,11 @@ void mp_get_memory_functions (void *(**) (size_t),
void
*
(
**
)
(
void
*
,
size_t
,
size_t
),
void
*
(
**
)
(
void
*
,
size_t
,
size_t
),
void
(
**
)
(
void
*
,
size_t
));
void
(
**
)
(
void
*
,
size_t
));
typedef
unsigned
long
mp_limb_t
;
#ifndef MINI_GMP_LIMB_TYPE
#define MINI_GMP_LIMB_TYPE long
#endif
typedef
unsigned
MINI_GMP_LIMB_TYPE
mp_limb_t
;
typedef
long
mp_size_t
;
typedef
long
mp_size_t
;
typedef
unsigned
long
mp_bitcnt_t
;
typedef
unsigned
long
mp_bitcnt_t
;
...
@@ -217,6 +221,8 @@ void mpz_rootrem (mpz_t, mpz_t, const mpz_t, unsigned long);
...
@@ -217,6 +221,8 @@ void mpz_rootrem (mpz_t, mpz_t, const mpz_t, unsigned long);
int
mpz_root
(
mpz_t
,
const
mpz_t
,
unsigned
long
);
int
mpz_root
(
mpz_t
,
const
mpz_t
,
unsigned
long
);
void
mpz_fac_ui
(
mpz_t
,
unsigned
long
);
void
mpz_fac_ui
(
mpz_t
,
unsigned
long
);
void
mpz_2fac_ui
(
mpz_t
,
unsigned
long
);
void
mpz_mfac_uiui
(
mpz_t
,
unsigned
long
,
unsigned
long
);
void
mpz_bin_uiui
(
mpz_t
,
unsigned
long
,
unsigned
long
);
void
mpz_bin_uiui
(
mpz_t
,
unsigned
long
,
unsigned
long
);
int
mpz_probab_prime_p
(
const
mpz_t
,
int
);
int
mpz_probab_prime_p
(
const
mpz_t
,
int
);
...
@@ -238,6 +244,10 @@ mp_bitcnt_t mpz_scan1 (const mpz_t, mp_bitcnt_t);
...
@@ -238,6 +244,10 @@ mp_bitcnt_t mpz_scan1 (const mpz_t, mp_bitcnt_t);
int
mpz_fits_slong_p
(
const
mpz_t
);
int
mpz_fits_slong_p
(
const
mpz_t
);
int
mpz_fits_ulong_p
(
const
mpz_t
);
int
mpz_fits_ulong_p
(
const
mpz_t
);
int
mpz_fits_sint_p
(
const
mpz_t
);
int
mpz_fits_uint_p
(
const
mpz_t
);
int
mpz_fits_sshort_p
(
const
mpz_t
);
int
mpz_fits_ushort_p
(
const
mpz_t
);
long
int
mpz_get_si
(
const
mpz_t
);
long
int
mpz_get_si
(
const
mpz_t
);
unsigned
long
int
mpz_get_ui
(
const
mpz_t
);
unsigned
long
int
mpz_get_ui
(
const
mpz_t
);
double
mpz_get_d
(
const
mpz_t
);
double
mpz_get_d
(
const
mpz_t
);
...
...
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