extract certain portions of digits from GMP and MPFR numbers

Jim White mathimagics at yahoo.co.uk
Wed Jan 10 02:00:06 CET 2007


If you simply map your requirements into base 2 digits
(or base 2^32), then you can directly access any part
of the number you like via the limb pointer.

The internal format of both GMP and MPFR numbers is
well documented, so you can easily "extract" any
bit-substring you like.

Jim White
ANU, Canberra



More information about the gmp-discuss mailing list