mpi_get_nlimbs
q = mpi_alloc(mpi_get_nlimbs(ctx->p));
res = mpi_alloc(mpi_get_nlimbs(in) * 2);
if (mpi_get_nlimbs(res) * BYTES_PER_MPI_LIMB > mlen) {