Update example with new constraints on map/reduce prototype.
This commit is contained in:
1 parent
98bea7be6c
commit
1abf575c1c
1 file changed
+4
-4
@@ -6,11 +6,11 @@
|
||||
ARRAY_DEF(mpz, mpz_t, M_CLASSIC_OPLIST(mpz))
|
||||
ALGO_DEF(array_mpz, ARRAY_OPLIST(mpz, M_CLASSIC_OPLIST(mpz)))
|
||||
|
||||
static inline void my_mpz_inc(mpz_t d, const mpz_t a){
|
||||
mpz_add(d, d, a);
|
||||
static inline void my_mpz_inc(mpz_t *d, const mpz_t a){
|
||||
mpz_add(*d, *d, a);
|
||||
}
|
||||
static inline void my_mpz_sqr(mpz_t d, const mpz_t a){
|
||||
mpz_mul(d, a, a);
|
||||
static inline void my_mpz_sqr(mpz_t *d, const mpz_t a){
|
||||
mpz_mul(*d, a, a);
|
||||
}
|
||||
|
||||
int main(void)
|
||||
|
||||
Reference in new issue
Block a user