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
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
Nettle
nettle
Commits
ede8bf66
Commit
ede8bf66
authored
Mar 25, 2013
by
Martin Storsjö
Committed by
Niels Möller
Apr 4, 2013
Browse files
Options
Downloads
Patches
Plain Diff
Add a fallback definition for mpn_sqr.
parent
38859630
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
+1
-0
1 addition, 0 deletions
ChangeLog
gmp-glue.h
+4
-0
4 additions, 0 deletions
gmp-glue.h
with
5 additions
and
0 deletions
ChangeLog
+
1
−
0
View file @
ede8bf66
...
@@ -3,6 +3,7 @@
...
@@ -3,6 +3,7 @@
From Martin Storsjö. Fallback functions for older GMP releases.
From Martin Storsjö. Fallback functions for older GMP releases.
* gmp-glue.c (mpn_copyd, mpn_copyi, mpn_zero): New functions.
* gmp-glue.c (mpn_copyd, mpn_copyi, mpn_zero): New functions.
* gmp-glue.h: Declare them.
* gmp-glue.h: Declare them.
(mpn_sqr): Fallback macro.
* gmp-glue.h (cnd_add_n, cnd_sub_n): Moved here, define in terms
* gmp-glue.h (cnd_add_n, cnd_sub_n): Moved here, define in terms
of mpn_cnd_add_n and mpn_sub_n if available, otherwise in terms of
of mpn_cnd_add_n and mpn_sub_n if available, otherwise in terms of
...
...
This diff is collapsed.
Click to expand it.
gmp-glue.h
+
4
−
0
View file @
ede8bf66
...
@@ -54,6 +54,10 @@
...
@@ -54,6 +54,10 @@
#define mpn_zero _nettle_mpn_zero
#define mpn_zero _nettle_mpn_zero
#endif
#endif
#ifndef mpn_sqr
#define mpn_sqr(rp, ap, n) mpn_mul_n((rp), (ap), (ap), (n))
#endif
#define mpz_limbs_cmp _nettle_mpz_limbs_cmp
#define mpz_limbs_cmp _nettle_mpz_limbs_cmp
#define mpz_limbs_read_n _nettle_mpz_limbs_read_n
#define mpz_limbs_read_n _nettle_mpz_limbs_read_n
#define mpz_limbs_copy _nettle_mpz_limbs_copy
#define mpz_limbs_copy _nettle_mpz_limbs_copy
...
...
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