Best way to import without copy

Julien D Arques acc.gccquestions at
Wed May 3 14:57:38 CEST 2023


I currently use mpz_import, but reading the source code, it appears that
gmp copies the already allocated buffer I give it.
That's double the work, and the said buffer is big.

Is there a correct/reliable way to avoid that?


More information about the gmp-discuss mailing list