~mdw
/
catacomb
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rand/noise.c (noise_devrandom): Use OpenBSD system call `getentropy'.
[catacomb]
/
math
/
mp.h
diff --git
a/math/mp.h
b/math/mp.h
index
8a299c8
..
ad4309e
100644
(file)
--- a/
math/mp.h
+++ b/
math/mp.h
@@
-37,6
+37,7
@@
#include <assert.h>
#include <string.h>
#include <assert.h>
#include <string.h>
+#include <mLib/macros.h>
#include <mLib/sub.h>
#ifndef CATACOMB_MPW_H
#include <mLib/sub.h>
#ifndef CATACOMB_MPW_H
@@
-196,7
+197,8
@@
extern void mp_destroy(mp */*m*/);
extern mp *mp_copy(mp */*m*/);
extern mp *mp_copy(mp */*m*/);
-#define MP_COPY(m) ((m)->ref++, (m))
+#define MP_COPY(m) MUFFLE_WARNINGS_EXPR(GCC_WARNING("-Wunused-value"), \
+ ((m)->ref++, (m)))
/* --- @mp_drop@ --- *
*
/* --- @mp_drop@ --- *
*
@@
-965,7
+967,7
@@
extern mp *mp_modinv(mp */*d*/, mp */*x*/, mp */*p*/);
* congruent to 1 or 7 (mod 8), or %$-1$% otherwise.
*
* If %$n$% is positive and odd, then this is the Jacobi
* congruent to 1 or 7 (mod 8), or %$-1$% otherwise.
*
* If %$n$% is positive and odd, then this is the Jacobi
- * symbol. (The Kronecker symbol is a consist
a
nt domain
+ * symbol. (The Kronecker symbol is a consist
e
nt domain
* extension; the Jacobi symbol was implemented first, and the
* name stuck.)
*/
* extension; the Jacobi symbol was implemented first, and the
* name stuck.)
*/