This is the mail archive of the
mailing list for the Java project.
Re: Using GMP for BigIntegers.
"Mark J. Roberts" <email@example.com> writes:
> I read I have to declare it as unsigned, like:
> unsigned(var) >>= 10;
> It compiles, but is it right?
I don't know. At the very least it is confusing.
carry = (uint64_t) carry >> 32;
(where unit64_t is defined in stdint.h).
> udiv_qrnnd (jlong N, jint D)
> doesn't seem to be available either: the comment says it was copied from
> GMP 2.0--maybe it's obsolete. Is there a substitute?
It's a macro defined in longlong.h.