Ciao, Il Ven, 15 Giugno 2012 7:07 am, Niels Möller ha scritto: > bodr...@mail.dm.unipi.it writes:
>> About documentation... shall we explicitly document a supported way to >> obtain an mpn form an mpz, and viceversa? The following should always ... >> mpz_export (np, &nn, -1, sizeof(mp_limb_t), 0, sizeof(mp_limb_t) * 8 - >> mp_bits_per_limb, z); > That seems quite awkward to me. I think it would make more sense to > document the contents of an mpz_t. If we allow programs to use the internal structure of an mpz_t, we will be forced not to change it, for compatibility reasons... The line above is, afaik, the only (direct) way currently supported to obtain an mpn from the value of an mpz. I think I'll add the line as an example on the mpz_export documentation. Regards, m -- http://bodrato.it/software/combinatorics.html _______________________________________________ gmp-devel mailing list gmp-devel@gmplib.org http://gmplib.org/mailman/listinfo/gmp-devel