Re: gmp_snprintf tries to allocate 18 EB on long strings

2018-02-09 Thread Marco Bodrato
Ciao Vincent, Il Gio, 1 Febbraio 2018 11:32 am, Niels Möller ha scritto: > I think we should be able to rely on C99 vsnprintf. If need, check for > correct behavior in configure, and fall back to repl_vsnprintf if > snprintf exhibits non-standard behavior. The issue you spotted should be healed

Re: How to push

2018-02-09 Thread Marco Bodrato
Ciao, Il Ven, 9 Febbraio 2018 5:04 pm, Win C ha scritto: > I have tried to do an `hg push` to the repo of gmp. However, it says: I think the way Ilya Yanok just used is the correct answer to "how to push". Share the proposed (small, readable and explained) change on the list and wait to see if

Re: [RFC][PATCH] mini-gmp: move memory allocation out of loops

2018-02-09 Thread Marco Bodrato
Ciao! Il Mar, 6 Febbraio 2018 7:21 pm, Ilya Yanok ha scritto: > I did a small patch for mini-gmp, that removes memory allocations in loop, > when mpz_get_str gets called. This might be undesired behaviour in the May I suggest a different approach? Modify mpn_div_qr_1_preinv to work in-place,

Re: How to push

2018-02-09 Thread Torbjörn Granlund
Win C writes: I have tried to do an `hg push` to the repo of gmp. However, it says: ssl required How to fix this? Thanks! This isn't going to be "fixed"; we don't allow unauthorised modification of the GMP sources. -- Torbjörn Please encrypt, key id

How to push

2018-02-09 Thread Win C
I have tried to do an `hg push` to the repo of gmp. However, it says: ssl required How to fix this? Thanks! Win C ___ gmp-devel mailing list gmp-devel@gmplib.org https://gmplib.org/mailman/listinfo/gmp-devel

[RFC][PATCH] mini-gmp: move memory allocation out of loops

2018-02-09 Thread Ilya Yanok
Hello GMP developers, I did a small patch for mini-gmp, that removes memory allocations in loop, when mpz_get_str gets called. This might be undesired behaviour in the presence of a garbage collector. So I've tried to avoid looped allocation/deallocation, moving allocation out of loops. Regards,